index.js 7.9 KB

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