processInspection.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. import req from '@/utils/request.js'
  2. /**
  3. * 查询用户序检信息
  4. * @param userId
  5. */
  6. export function getProcessInspecionList(data) {
  7. return req.request({
  8. url: '/business/inspecion/list',
  9. method: 'post',
  10. data: data
  11. })
  12. }
  13. export function getExamineListList(data) {
  14. return req.request({
  15. url: '/business/inspecion/examineList',
  16. method: 'post',
  17. data: data
  18. })
  19. }
  20. export function getInstrumentRoomInspection(data) {
  21. return req.request({
  22. url: '/business/inspecion/getInstrumentRoomInspection',
  23. method: 'post',
  24. data: data
  25. })
  26. }
  27. export function updateAdoptStatus(data) {
  28. return req.request({
  29. url: '/business/inspecion/updateAdoptStatus',
  30. method: 'put',
  31. data: data
  32. })
  33. }
  34. /**
  35. * 查询用户序检信息
  36. * @param userId
  37. */
  38. export function getOutsourcedInspection(data) {
  39. return req.request({
  40. url: '/business/inspecion/outsourcedlist',
  41. method: 'post',
  42. data: data
  43. })
  44. }
  45. /**
  46. * 查询产品技术负责人
  47. */
  48. export function getProductConsult(data) {
  49. return req.request({
  50. url: '/business/inspecion/getProductConsult',
  51. method: 'post',
  52. data: data
  53. })
  54. }
  55. /**
  56. * 结束报工保存
  57. * @param {Object} data
  58. */
  59. export function saveProcessInspecion(data) {
  60. return req.request({
  61. url: '/business/inspecion/saveProcessInspecion',
  62. method: 'post',
  63. data: data
  64. })
  65. }
  66. export function saveOnSiteInspecion(data) {
  67. return req.request({
  68. url: '/business/inspecion/saveOnSiteInspection',
  69. method: 'post',
  70. data: data
  71. })
  72. }
  73. export function saveDeliveryInspecion(data) {
  74. return req.request({
  75. url: '/business/inspecion/saveDeliveryInspection',
  76. method: 'post',
  77. data: data
  78. })
  79. }
  80. export function saveFirstInspection(data) {
  81. return req.request({
  82. url: '/business/inspecion/saveFirstInspection',
  83. method: 'post',
  84. data: data
  85. })
  86. }
  87. export function saveFactoryInspecion(data) {
  88. return req.request({
  89. url: '/business/inspecion/saveFactoryInspection',
  90. method: 'post',
  91. data: data
  92. })
  93. }
  94. export function saveInstrumentRoomInspection(data) {
  95. return req.request({
  96. url: '/business/inspecion/saveInstrumentRoomInspection',
  97. method: 'post',
  98. data: data
  99. })
  100. }
  101. export function saveFirstInstrumentRoomInspection(data) {
  102. return req.request({
  103. url: '/business/inspecion/saveFirstInstrumentRoomInspection',
  104. method: 'post',
  105. data: data
  106. })
  107. }
  108. /**
  109. * 结束报工保存
  110. * @param {Object} data
  111. */
  112. export function saveOutsourcedInspecion(data) {
  113. return req.request({
  114. url: '/business/inspecion/saveOutsourcedInspecion',
  115. method: 'post',
  116. data: data
  117. })
  118. }
  119. export function getInspectionInfoByInspectionCarrierCode(data) {
  120. return req.request({
  121. url: '/business/inspecion/getInspectionInfoByInspectionCarrierCode',
  122. method: 'post',
  123. data: data
  124. })
  125. }
  126. //解绑外协载具
  127. export function unbindInspectionCarrier(data) {
  128. return req.request({
  129. url: '/business/inspecion/unbindInspectionCarrier',
  130. method: 'post',
  131. data: data
  132. })
  133. }
  134. export function checkCarrier(data) {
  135. return req.request({
  136. url: '/business/inspecion/checkCarrier',
  137. method: 'post',
  138. data: data
  139. })
  140. }
  141. /**
  142. * 查询咨询信息
  143. */
  144. export function selectInspecion(data) {
  145. return req.request({
  146. url: '/business/inspecion/selectInspecion',
  147. method: 'post',
  148. data: data
  149. })
  150. }
  151. /**
  152. * 查询咨询信息
  153. */
  154. export function selectOutsourcedInspecion(data) {
  155. return req.request({
  156. url: '/business/inspecion/selectOutsourcedInspecion',
  157. method: 'post',
  158. data: data
  159. })
  160. }
  161. /**
  162. * 查询箱号绑定批次
  163. */
  164. export function getCarrierInfo(data) {
  165. return req.request({
  166. url: '/business/inspecion/getCarrierInfo',
  167. method: 'post',
  168. data: data
  169. })
  170. }
  171. export function getFirstCarrierInfo(data) {
  172. return req.request({
  173. url: '/business/inspecion/getFirstCarrierInfo',
  174. method: 'post',
  175. data: data
  176. })
  177. }
  178. export function getProcessInspectionByDayworkId(data) {
  179. return req.request({
  180. url: '/business/inspecion/getProcessInspectionByDayworkId',
  181. method: 'post',
  182. data: data
  183. })
  184. }
  185. export function getCarrierInfoProcess(data) {
  186. return req.request({
  187. url: '/business/inspecion/getCarrierInfoProcess',
  188. method: 'post',
  189. data: data
  190. })
  191. }
  192. /**
  193. * 保存质检箱信息
  194. */
  195. export function saveInspectionCarrier(data) {
  196. return req.request({
  197. url: '/business/inspecion/saveInspectionCarrier',
  198. method: 'post',
  199. data: data
  200. })
  201. }
  202. /**
  203. * 根据箱号查询批
  204. */
  205. export function getLotOutsourcedInfo(data) {
  206. return req.request({
  207. url: '/business/inspecion/getLotOutsourcedInfo',
  208. method: 'post',
  209. data: data
  210. })
  211. }
  212. /**
  213. * 根据箱号查询批次信息
  214. */
  215. export function getLotInfo(data) {
  216. return req.request({
  217. url: '/business/inspecion/getLotInfo',
  218. method: 'post',
  219. data: data
  220. })
  221. }
  222. export function getDeliveryLotInfo(data) {
  223. return req.request({
  224. url: '/business/inspecion/getDeliveryLotInfo',
  225. method: 'post',
  226. data: data
  227. })
  228. }
  229. export function getPatrolLotInfo(data) {
  230. return req.request({
  231. url: '/business/inspecion/getPatrolLotInfo',
  232. method: 'post',
  233. data: data
  234. })
  235. }
  236. export function getFirstInspectionLotInfo(data) {
  237. return req.request({
  238. url: '/business/inspecion/getFirstInspectionLotInfo',
  239. method: 'post',
  240. data: data
  241. })
  242. }
  243. export function getLotInfoByFirstInspection(data) {
  244. return req.request({
  245. url: '/business/inspecion/getLotInfoByFirstInspection',
  246. method: 'post',
  247. data: data
  248. })
  249. }
  250. export function updateChamberId(data) {
  251. return req.request({
  252. url: '/business/inspecion/updateChamberId',
  253. method: 'post',
  254. data: data
  255. })
  256. }
  257. export function getLotInfoByFactoryInspection(data) {
  258. return req.request({
  259. url: '/business/inspecion/getLotInfoByFactoryInspection',
  260. method: 'post',
  261. data: data
  262. })
  263. }
  264. // 删除序检
  265. export function delProcessInspection(id) {
  266. return req.request({
  267. url: '/business/inspecion/' + id,
  268. method: 'delete'
  269. })
  270. }
  271. //仪器室类别
  272. export function getInspectionChamber(data) {
  273. return req.request({
  274. url: '/business/inspectionChamber/list',
  275. method: 'get',
  276. data:data
  277. })
  278. }