stationMgr.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /*********************** 【机加工人端-待完成任务/已完成任务】API ********************/
  2. import axiosApi from '../AxiosApi.js'
  3. const apiList = {
  4. getList: {
  5. method: 'POST',
  6. url: `/authority/stationUser/query`
  7. },
  8. update: {
  9. method: 'PUT',
  10. url: `/authority/stationUser`
  11. },
  12. saveAll: {
  13. method: 'POST',
  14. url: `/authority/stationUser/saveAll`
  15. },
  16. updateAll: {
  17. method: 'POST',
  18. url: `/authority/stationUser/updateAll`
  19. },
  20. updateSchedule: {
  21. method: 'POST',
  22. url: `/authority/scheduleUserDate/updateSchedule`
  23. },
  24. allStation: {
  25. method: 'GET',
  26. url: `/authority/stationUser/allStation`
  27. },
  28. allUser: {
  29. method: 'GET',
  30. url: `/authority/stationUser/allUser`
  31. },
  32. stationUser: {
  33. method: 'GET',
  34. url: `/authority/stationUser/stationUser`
  35. },
  36. getStation:{
  37. method: 'GET',
  38. url: `/authority/stationUser/getStation`
  39. },
  40. getCurrentSchedule:{
  41. method: 'POST',
  42. url: `/authority/scheduleUserDate/getCurrentSchedule`
  43. },
  44. schedulePageList:{
  45. method: 'POST',
  46. url: `/authority/scheduleUserDate/getPageList`
  47. },
  48. getCutToolStation:{
  49. method: 'GET',
  50. url: `/authority/stationUser/getCutToolStation`
  51. },
  52. getCutToolStockInfo:{
  53. method: 'GET',
  54. url: `/authority/stationUser/getCutToolStockInfo`
  55. },
  56. addCutToolStockInfo:{
  57. method: 'POST',
  58. url: `/authority/stationUser/addCutToolStockInfo`
  59. },
  60. addCutToolTask:{
  61. method: 'POST',
  62. url: `/authority/stationUser/addCutToolTask`
  63. },
  64. addCutToolTaskMore:{
  65. method: 'POST',
  66. url: `/authority/stationUser/addCutToolTaskMore`
  67. },
  68. setWriteTakeCutter:{
  69. method: 'POST',
  70. url: `/authority/stationUser/setWriteTakeCutter`
  71. },
  72. setWriteTakeCutterMore:{
  73. method: 'POST',
  74. url: `/authority/stationUser/setWriteTakeCutterMore`
  75. },
  76. remove: {
  77. method: 'DELETE',
  78. url: `/authority/stationUser`
  79. },
  80. }
  81. export default {
  82. getList (data) {
  83. return axiosApi({
  84. ...apiList.getList,
  85. data
  86. })
  87. },
  88. // 获取【所有人员】信息
  89. allUser (data) {
  90. return axiosApi({
  91. ...apiList.allUser,
  92. data
  93. })
  94. },
  95. page (data) {
  96. return axiosApi({
  97. ...apiList.page,
  98. data
  99. })
  100. },
  101. saveAll (data) {
  102. return axiosApi({
  103. ...apiList.saveAll,
  104. data
  105. })
  106. },
  107. updateAll (data) {
  108. return axiosApi({
  109. ...apiList.updateAll,
  110. data
  111. })
  112. },
  113. allStation (data) {
  114. return axiosApi({
  115. ...apiList.allStation,
  116. data
  117. })
  118. },
  119. stationUser (data) {
  120. return axiosApi({
  121. ...apiList.stationUser,
  122. data
  123. })
  124. },
  125. getStation (data) {
  126. return axiosApi({
  127. ...apiList.getStation,
  128. data
  129. })
  130. },
  131. getCurrentSchedule (data) {
  132. return axiosApi({
  133. ...apiList.getCurrentSchedule,
  134. data
  135. })
  136. },
  137. update (data) {
  138. return axiosApi({
  139. ...apiList.update,
  140. data
  141. })
  142. },
  143. updateSchedule (data) {
  144. return axiosApi({
  145. ...apiList.updateSchedule,
  146. data
  147. })
  148. },
  149. getCutToolStation (data) {
  150. return axiosApi({
  151. ...apiList.getCutToolStation,
  152. data
  153. })
  154. },
  155. schedulePageList (data) {
  156. return axiosApi({
  157. ...apiList.schedulePageList,
  158. data
  159. })
  160. },
  161. getCutToolStockInfo (data) {
  162. return axiosApi({
  163. ...apiList.getCutToolStockInfo,
  164. data
  165. })
  166. },
  167. addCutToolStockInfo (data) {
  168. return axiosApi({
  169. ...apiList.addCutToolStockInfo,
  170. data
  171. })
  172. },
  173. addCutToolTask (data) {
  174. return axiosApi({
  175. ...apiList.addCutToolTask,
  176. data
  177. })
  178. },
  179. addCutToolTaskMore (data) {
  180. return axiosApi({
  181. ...apiList.addCutToolTaskMore,
  182. data
  183. })
  184. },
  185. setWriteTakeCutter (data) {
  186. return axiosApi({
  187. ...apiList.setWriteTakeCutter,
  188. data
  189. })
  190. },
  191. setWriteTakeCutterMore (data) {
  192. return axiosApi({
  193. ...apiList.setWriteTakeCutterMore,
  194. data
  195. })
  196. },
  197. remove (data) {
  198. return axiosApi({
  199. ...apiList.remove,
  200. data
  201. })
  202. }
  203. }