processInspection.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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: 'get',
  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: 'get',
  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 saveFirstFactoryInspection(data) {
  95. return req.request({
  96. url: '/business/inspecion/saveFirstFactoryInspection',
  97. method: 'post',
  98. data: data
  99. })
  100. }
  101. export function saveInstrumentRoomInspection(data) {
  102. return req.request({
  103. url: '/business/inspecion/saveInstrumentRoomInspection',
  104. method: 'post',
  105. data: data
  106. })
  107. }
  108. export function saveFirstInstrumentRoomInspection(data) {
  109. return req.request({
  110. url: '/business/inspecion/saveFirstInstrumentRoomInspection',
  111. method: 'post',
  112. data: data
  113. })
  114. }
  115. /**
  116. * 结束报工保存
  117. * @param {Object} data
  118. */
  119. export function saveOutsourcedInspecion(data) {
  120. return req.request({
  121. url: '/business/inspecion/saveOutsourcedInspecion',
  122. method: 'post',
  123. data: data
  124. })
  125. }
  126. export function getInspectionInfoByInspectionCarrierCode(data) {
  127. return req.request({
  128. url: '/business/inspecion/getInspectionInfoByInspectionCarrierCode',
  129. method: 'post',
  130. data: data
  131. })
  132. }
  133. //解绑外协载具
  134. export function unbindInspectionCarrier(data) {
  135. return req.request({
  136. url: '/business/inspecion/unbindInspectionCarrier',
  137. method: 'post',
  138. data: data
  139. })
  140. }
  141. export function checkCarrier(data) {
  142. return req.request({
  143. url: '/business/inspecion/checkCarrier',
  144. method: 'post',
  145. data: data
  146. })
  147. }
  148. /**
  149. * 查询咨询信息
  150. */
  151. export function selectInspecion(data) {
  152. return req.request({
  153. url: '/business/inspecion/selectInspecion',
  154. method: 'post',
  155. data: data
  156. })
  157. }
  158. /**
  159. * 查询咨询信息
  160. */
  161. export function selectOutsourcedInspecion(data) {
  162. return req.request({
  163. url: '/business/inspecion/selectOutsourcedInspecion',
  164. method: 'post',
  165. data: data
  166. })
  167. }
  168. /**
  169. * 查询箱号绑定批次
  170. */
  171. export function getCarrierInfo(data) {
  172. return req.request({
  173. url: '/business/inspecion/getCarrierInfo',
  174. method: 'post',
  175. data: data
  176. })
  177. }
  178. export function getFirstCarrierInfo(data) {
  179. return req.request({
  180. url: '/business/inspecion/getFirstCarrierInfo',
  181. method: 'post',
  182. data: data
  183. })
  184. }
  185. export function getProcessInspectionByDayworkId(data) {
  186. return req.request({
  187. url: '/business/inspecion/getProcessInspectionByDayworkId',
  188. method: 'post',
  189. data: data
  190. })
  191. }
  192. export function getCarrierInfoProcess(data) {
  193. return req.request({
  194. url: '/business/inspecion/getCarrierInfoProcess',
  195. method: 'post',
  196. data: data
  197. })
  198. }
  199. /**
  200. * 保存质检箱信息
  201. */
  202. export function saveInspectionCarrier(data) {
  203. return req.request({
  204. url: '/business/inspecion/saveInspectionCarrier',
  205. method: 'post',
  206. data: data
  207. })
  208. }
  209. /**
  210. * 根据箱号查询批
  211. */
  212. export function getLotOutsourcedInfo(data) {
  213. return req.request({
  214. url: '/business/inspecion/getLotOutsourcedInfo',
  215. method: 'post',
  216. data: data
  217. })
  218. }
  219. /**
  220. * 根据箱号查询批次信息
  221. */
  222. export function getLotInfo(data) {
  223. return req.request({
  224. url: '/business/inspecion/getLotInfo',
  225. method: 'post',
  226. data: data
  227. })
  228. }
  229. export function getDeliveryLotInfo(data) {
  230. return req.request({
  231. url: '/business/inspecion/getDeliveryLotInfo',
  232. method: 'post',
  233. data: data
  234. })
  235. }
  236. export function getPatrolLotInfo(data) {
  237. return req.request({
  238. url: '/business/inspecion/getPatrolLotInfo',
  239. method: 'post',
  240. data: data
  241. })
  242. }
  243. export function getFirstInspectionLotInfo(data) {
  244. return req.request({
  245. url: '/business/inspecion/getFirstInspectionLotInfo',
  246. method: 'post',
  247. data: data
  248. })
  249. }
  250. export function getLotInfoByFirstInspection(data) {
  251. return req.request({
  252. url: '/business/inspecion/getLotInfoByFirstInspection',
  253. method: 'post',
  254. data: data
  255. })
  256. }
  257. export function updateChamberId(data) {
  258. return req.request({
  259. url: '/business/inspecion/updateChamberId',
  260. method: 'post',
  261. data: data
  262. })
  263. }
  264. export function getLotInfoByFactoryInspection(data) {
  265. return req.request({
  266. url: '/business/inspecion/getLotInfoByFactoryInspection',
  267. method: 'post',
  268. data: data
  269. })
  270. }
  271. // 删除序检
  272. export function delProcessInspection(id) {
  273. return req.request({
  274. url: '/business/inspecion/' + id,
  275. method: 'delete'
  276. })
  277. }
  278. //仪器室类别
  279. export function getInspectionChamber(data) {
  280. return req.request({
  281. url: '/business/inspectionChamber/list',
  282. method: 'get',
  283. data: data
  284. })
  285. }
  286. // 关联批次扫码
  287. export function getRelateInspectionByCarrier(data) {
  288. return req.request({
  289. url: '/business/inspecion/getRelateInspectionByCarrier',
  290. method: 'post',
  291. data: data
  292. })
  293. }
  294. export function saveOutsourceInspectionWithRelate(data) {
  295. return req.request({
  296. url: '/business/inspecion/saveOutsourceInspectionWithRelate',
  297. method: 'post',
  298. data: data
  299. })
  300. }