index.js 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  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 fleetListTwo(data) {
  180. return request({
  181. url: '/api/blade-client/land-vehicle/driver-list',
  182. method: 'get',
  183. params:data
  184. })
  185. }
  186. //获取省市区
  187. export function addressList(name) {
  188. return request({
  189. url: '/api/blade-system/region/match?address='+name,
  190. method: 'get'
  191. })
  192. }
  193. //获取总数
  194. export function totalList(data) {
  195. return request({
  196. url: '/api/blade-land/order/count',
  197. method: 'get',
  198. params:data
  199. })
  200. }
  201. //获取车队司机总数
  202. export function motorcadeDriver(data) {
  203. return request({
  204. url: '/api/blade-land/order-item/count',
  205. method: 'get',
  206. params:data
  207. })
  208. }
  209. //保存车队司机
  210. export function fleetDriverSave(data) {
  211. return request({
  212. url: '/api/blade-land/order-item/submit',
  213. method: 'post',
  214. data:data
  215. })
  216. }
  217. //获取电话信息
  218. export function telephone(key) {
  219. return request({
  220. url: '/api/blade-client/land-driver/driver-list',
  221. method: 'get'
  222. })
  223. }
  224. //获取附件
  225. export function getAttachment(data) {
  226. return request({
  227. url: '/api/blade-land/order-item/file-list',
  228. method: 'get',
  229. params:data
  230. })
  231. }
  232. //保存附件
  233. export function saveAttached(data) {
  234. return request({
  235. url: '/api/blade-land/order-item/file',
  236. method: 'post',
  237. data:data
  238. })
  239. }
  240. //获取附件
  241. export function getFee(data) {
  242. return request({
  243. url: '/api/blade-land/order-fee/file-list',
  244. method: 'get',
  245. params:data
  246. })
  247. }
  248. //保存附件
  249. export function saveFile(data) {
  250. return request({
  251. url: '/api/blade-land/order-fee/file',
  252. method: 'post',
  253. data:data
  254. })
  255. }
  256. //获取默认公司名称
  257. export function getCorp() {
  258. return request({
  259. url: '/api/blade-client/corpsattn/get-corp',
  260. method: 'get'
  261. })
  262. }
  263. //查询业务员
  264. export function getSalesman(data) {
  265. return request({
  266. url: '/api/blade-user/userList',
  267. method: 'get',
  268. params:{
  269. roleAlias:'业务员',
  270. ...data
  271. }
  272. })
  273. }
  274. //批量提交调度
  275. export function dispatchBatch(data) {
  276. return request({
  277. url: '/api/blade-land/order-item/dispatch-batch',
  278. method: 'post',
  279. data:data
  280. })
  281. }
  282. //打开变更记录
  283. export function recordingDetails(data) {
  284. return request({
  285. url: '/api/blade-land/order-change/all-list',
  286. method: 'get',
  287. params:data
  288. })
  289. }
  290. //调度变更提交
  291. export function changeFleet(data) {
  292. return request({
  293. url: '/api/blade-land/order-item/change-fleet',
  294. method: 'post',
  295. data:data
  296. })
  297. }
  298. //派车变更提交
  299. export function changeVehicle(data) {
  300. return request({
  301. url: '/api/blade-land/order-item/change-vehicle',
  302. method: 'post',
  303. data:data
  304. })
  305. }
  306. //查询车号
  307. export function queryVehicle(data) {
  308. return request({
  309. url: '/api/blade-land/order-fee/plate-no',
  310. method: 'get',
  311. params:data
  312. })
  313. }
  314. //杂费保存
  315. export function incidentalSubmit(data) {
  316. return request({
  317. url: '/api/blade-land/order-fee/save',
  318. method: 'post',
  319. data:data
  320. })
  321. }
  322. //变更提交
  323. export function changeSubmission(data) {
  324. return request({
  325. url: '/api/blade-land/order/change',
  326. method: 'post',
  327. data:data
  328. })
  329. }
  330. //变更校验
  331. export function validChange(data) {
  332. return request({
  333. url: '/api/blade-land/order/valid-change',
  334. method: 'get',
  335. params:data
  336. })
  337. }
  338. //删除途径地
  339. export function tRemove(data) {
  340. return request({
  341. url: '/api/blade-land/order-address/remove',
  342. method: 'post',
  343. params:data
  344. })
  345. }
  346. // /blade-land/order/file
  347. // /blade-land/order/file-list
  348. //保存附件
  349. export function conserveDispatch(data) {
  350. return request({
  351. url: '/api/blade-land/order/file',
  352. method: 'post',
  353. data
  354. })
  355. }
  356. //查询附件
  357. export function checkAttachment(data) {
  358. return request({
  359. url: '/api/blade-land/order/file-list',
  360. method: 'get',
  361. params:data
  362. })
  363. }
  364. //更新账单
  365. export function generateBill(data) {
  366. return request({
  367. url: '/api/blade-land/order/generateBill',
  368. method: 'get',
  369. params:data
  370. })
  371. }