productlineAvailability.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*********************** 【质量中心-查看质检结果】API ********************/
  2. import axiosApi from '../AxiosApi.js'
  3. const apiList = {
  4. getList: {
  5. method: 'POST',
  6. url: `/authority/productLinePerformance/query`
  7. },
  8. page: {
  9. method: 'POST',
  10. url: `/authority/productLinePerformance/page`
  11. },
  12. queryOperatorDetailPerformance: {
  13. method: 'POST',
  14. url: `/authority/productLinePerformance/queryOperatorDetailPerformance`
  15. },
  16. queryOperatorDetailsPerformance: {
  17. method: 'POST',
  18. url: `/authority/productLinePerformance/queryOperatorDetailsPerformance`
  19. },
  20. deviceResourceSum: {
  21. method: 'POST',
  22. url: `/authority/productLinePerformance/deviceResourceSum`
  23. },
  24. queryProductionLineOee: {
  25. method: 'POST',
  26. url: `/authority/productLinePerformance/queryProductionLineOee`
  27. },
  28. expectProduct:{
  29. method:'GET',
  30. url:`/authority/productLinePerformance/expectProduct`
  31. },
  32. expectProductInfo:{
  33. method:'GET',
  34. url:`/authority/productLinePerformance/expectProductInfo`
  35. },
  36. expectProcedure:{
  37. method:'GET',
  38. url:`/authority/productLinePerformance/expectProcedure`
  39. },
  40. expectprocedureSum:{
  41. method: 'GET',
  42. url: `/authority/productLinePerformance/expectprocedureSum`
  43. },
  44. }
  45. export default {
  46. getList (data) {
  47. return axiosApi({
  48. ...apiList.page,
  49. data
  50. })
  51. },
  52. page (data) {
  53. return axiosApi({
  54. ...apiList.page,
  55. data
  56. })
  57. },
  58. queryOperatorDetailPerformance (data) {
  59. return axiosApi({
  60. ...apiList.queryOperatorDetailPerformance,
  61. data
  62. })
  63. },
  64. queryOperatorDetailsPerformance (data) {
  65. return axiosApi({
  66. ...apiList.queryOperatorDetailsPerformance,
  67. data
  68. })
  69. },
  70. queryProductionLineOee (data) {
  71. return axiosApi({
  72. ...apiList.queryProductionLineOee,
  73. data
  74. })
  75. },
  76. getProductStatistics(page,limit,searchObj){
  77. return axiosApi({
  78. url: `/authority/productLinePerformance/getProductStatistics/${page}/${limit}`,
  79. method: 'post',
  80. data:searchObj
  81. })
  82. },
  83. getProductInfoStatistics(page,limit,searchObj){
  84. return axiosApi({
  85. url: `/authority/productLinePerformance/getProductInfoStatistics/${page}/${limit}`,
  86. method: 'post',
  87. data:searchObj
  88. })
  89. },
  90. resourceRate(searchObj){
  91. return axiosApi({
  92. url: `/authority/productLinePerformance/resourceRate`,
  93. method: 'post',
  94. data:searchObj
  95. })
  96. },
  97. expectProduct(data){
  98. return axiosApi({
  99. ...apiList.expectProduct,
  100. responseType: 'blob',
  101. data
  102. })
  103. },
  104. expectProductInfo(data){
  105. return axiosApi({
  106. ...apiList.expectProductInfo,
  107. responseType: 'blob',
  108. data
  109. })
  110. },
  111. queryProcedure(page,limit,searchObj){
  112. return axiosApi({
  113. url: `/authority/productLinePerformance/queryProcedure/${page}/${limit}`,
  114. method: 'post',
  115. data:searchObj
  116. })
  117. },
  118. expectProcedure(data){
  119. return axiosApi({
  120. ...apiList.expectProcedure,
  121. responseType: 'blob',
  122. data
  123. })
  124. },
  125. procedureSum(page,limit,searchObj){
  126. return axiosApi({
  127. url: `/authority/productLinePerformance/procedureSum/${page}/${limit}`,
  128. method: 'post',
  129. data:searchObj
  130. })
  131. },
  132. deviceResourceSum(page,limit,searchObj){
  133. return axiosApi({
  134. url: `/authority/productLinePerformance/deviceResourceSum/${page}/${limit}`,
  135. method: 'post',
  136. data:searchObj
  137. })
  138. },
  139. frockSearch(page,limit,searchObj){
  140. return axiosApi({
  141. url: `/authority/stockInfo/frockSearch/${page}/${limit}`,
  142. method: 'post',
  143. data:searchObj
  144. })
  145. },
  146. deviceResourceDetail(page,limit,searchObj){
  147. return axiosApi({
  148. url: `/authority/productLinePerformance/deviceResourceDetail/${page}/${limit}`,
  149. method: 'post',
  150. data:searchObj
  151. })
  152. },
  153. procedureInfo(searchObj) {
  154. return axiosApi({
  155. url: `/authority/productLinePerformance/procedureInfo`,
  156. method: 'post',
  157. data:searchObj
  158. })
  159. },
  160. expectprocedureSum(data){
  161. return axiosApi({
  162. ...apiList.expectprocedureSum,
  163. responseType: 'blob',
  164. data
  165. })
  166. },
  167. workHourReport(page,limit,searchObj){
  168. return axiosApi({
  169. url: `/authority/productLinePerformance/workHourReport/${page}/${limit}`,
  170. method: 'post',
  171. data:searchObj
  172. })
  173. },
  174. otherHourReport(page,limit,searchObj){
  175. return axiosApi({
  176. url: `/authority/productLinePerformance/otherHourReport/${page}/${limit}`,
  177. method: 'post',
  178. data:searchObj
  179. })
  180. },
  181. productionLineRate(){
  182. return axiosApi({
  183. url: `/authority/productLinePerformance/productionLineRate`,
  184. method: 'post'
  185. })
  186. },
  187. }