processInspection.js 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. export function checkHasInspection(data) {
  35. return req.request({
  36. url: '/business/inspecion/checkHasInspection',
  37. method: 'get',
  38. data: data
  39. })
  40. }
  41. /**
  42. * 查询用户序检信息
  43. * @param userId
  44. */
  45. export function getOutsourcedInspection(data) {
  46. return req.request({
  47. url: '/business/inspecion/outsourcedlist',
  48. method: 'get',
  49. data: data
  50. })
  51. }
  52. /**
  53. * 查询产品技术负责人
  54. */
  55. export function getProductConsult(data) {
  56. return req.request({
  57. url: '/business/inspecion/getProductConsult',
  58. method: 'post',
  59. data: data
  60. })
  61. }
  62. /**
  63. * 结束报工保存
  64. * @param {Object} data
  65. */
  66. export function saveProcessInspecion(data) {
  67. return req.request({
  68. url: '/business/inspecion/saveProcessInspecion',
  69. method: 'post',
  70. data: data
  71. })
  72. }
  73. export function saveOnSiteInspecion(data) {
  74. return req.request({
  75. url: '/business/inspecion/saveOnSiteInspection',
  76. method: 'post',
  77. data: data
  78. })
  79. }
  80. export function saveDeliveryInspecion(data) {
  81. return req.request({
  82. url: '/business/inspecion/saveDeliveryInspection',
  83. method: 'post',
  84. data: data
  85. })
  86. }
  87. export function saveFirstInspection(data) {
  88. return req.request({
  89. url: '/business/inspecion/saveFirstInspection',
  90. method: 'post',
  91. data: data
  92. })
  93. }
  94. export function saveFactoryInspecion(data) {
  95. return req.request({
  96. url: '/business/inspecion/saveFactoryInspection',
  97. method: 'post',
  98. data: data
  99. })
  100. }
  101. export function saveFirstFactoryInspection(data) {
  102. return req.request({
  103. url: '/business/inspecion/saveFirstFactoryInspection',
  104. method: 'post',
  105. data: data
  106. })
  107. }
  108. export function saveInstrumentRoomInspection(data) {
  109. return req.request({
  110. url: '/business/inspecion/saveInstrumentRoomInspection',
  111. method: 'post',
  112. data: data
  113. })
  114. }
  115. export function saveFirstInstrumentRoomInspection(data) {
  116. return req.request({
  117. url: '/business/inspecion/saveFirstInstrumentRoomInspection',
  118. method: 'post',
  119. data: data
  120. })
  121. }
  122. /**
  123. * 结束报工保存
  124. * @param {Object} data
  125. */
  126. export function saveOutsourcedInspecion(data) {
  127. return req.request({
  128. url: '/business/inspecion/saveOutsourcedInspecion',
  129. method: 'post',
  130. data: data
  131. })
  132. }
  133. export function getInspectionInfoByInspectionCarrierCode(data) {
  134. return req.request({
  135. url: '/business/inspecion/getInspectionInfoByInspectionCarrierCode',
  136. method: 'post',
  137. data: data
  138. })
  139. }
  140. //解绑外协载具
  141. export function unbindInspectionCarrier(data) {
  142. return req.request({
  143. url: '/business/inspecion/unbindInspectionCarrier',
  144. method: 'post',
  145. data: data
  146. })
  147. }
  148. export function checkCarrier(data) {
  149. return req.request({
  150. url: '/business/inspecion/checkCarrier',
  151. method: 'post',
  152. data: data
  153. })
  154. }
  155. /**
  156. * 查询咨询信息
  157. */
  158. export function selectInspecion(data) {
  159. return req.request({
  160. url: '/business/inspecion/selectInspecion',
  161. method: 'post',
  162. data: data
  163. })
  164. }
  165. /**
  166. * 查询咨询信息
  167. */
  168. export function selectOutsourcedInspecion(data) {
  169. return req.request({
  170. url: '/business/inspecion/selectOutsourcedInspecion',
  171. method: 'post',
  172. data: data
  173. })
  174. }
  175. /**
  176. * 查询箱号绑定批次
  177. */
  178. export function getCarrierInfo(data) {
  179. return req.request({
  180. url: '/business/inspecion/getCarrierInfo',
  181. method: 'post',
  182. data: data
  183. })
  184. }
  185. export function getFirstCarrierInfo(data) {
  186. return req.request({
  187. url: '/business/inspecion/getFirstCarrierInfo',
  188. method: 'post',
  189. data: data
  190. })
  191. }
  192. export function getProcessInspectionByDayworkId(data) {
  193. return req.request({
  194. url: '/business/inspecion/getProcessInspectionByDayworkId',
  195. method: 'post',
  196. data: data
  197. })
  198. }
  199. export function getCarrierInfoProcess(data) {
  200. return req.request({
  201. url: '/business/inspecion/getCarrierInfoProcess',
  202. method: 'post',
  203. data: data
  204. })
  205. }
  206. /**
  207. * 保存质检箱信息
  208. */
  209. export function saveInspectionCarrier(data) {
  210. return req.request({
  211. url: '/business/inspecion/saveInspectionCarrier',
  212. method: 'post',
  213. data: data
  214. })
  215. }
  216. /**
  217. * 根据箱号查询批
  218. */
  219. export function getLotOutsourcedInfo(data) {
  220. return req.request({
  221. url: '/business/inspecion/getLotOutsourcedInfo',
  222. method: 'post',
  223. data: data
  224. })
  225. }
  226. /**
  227. * 根据箱号查询批次信息
  228. */
  229. export function getLotInfo(data) {
  230. return req.request({
  231. url: '/business/inspecion/getLotInfo',
  232. method: 'post',
  233. data: data
  234. })
  235. }
  236. export function getDeliveryLotInfo(data) {
  237. return req.request({
  238. url: '/business/inspecion/getDeliveryLotInfo',
  239. method: 'post',
  240. data: data
  241. })
  242. }
  243. export function getPatrolLotInfo(data) {
  244. return req.request({
  245. url: '/business/inspecion/getPatrolLotInfo',
  246. method: 'post',
  247. data: data
  248. })
  249. }
  250. export function getFirstInspectionLotInfo(data) {
  251. return req.request({
  252. url: '/business/inspecion/getFirstInspectionLotInfo',
  253. method: 'post',
  254. data: data
  255. })
  256. }
  257. export function getLotInfoByFirstInspection(data) {
  258. return req.request({
  259. url: '/business/inspecion/getLotInfoByFirstInspection',
  260. method: 'post',
  261. data: data
  262. })
  263. }
  264. export function updateChamberId(data) {
  265. return req.request({
  266. url: '/business/inspecion/updateChamberId',
  267. method: 'post',
  268. data: data
  269. })
  270. }
  271. export function getLotInfoByFactoryInspection(data) {
  272. return req.request({
  273. url: '/business/inspecion/getLotInfoByFactoryInspection',
  274. method: 'post',
  275. data: data
  276. })
  277. }
  278. // 删除序检
  279. export function delProcessInspection(id) {
  280. return req.request({
  281. url: '/business/inspecion/' + id,
  282. method: 'delete'
  283. })
  284. }
  285. //仪器室类别
  286. export function getInspectionChamber(data) {
  287. return req.request({
  288. url: '/business/inspectionChamber/list',
  289. method: 'get',
  290. data: data
  291. })
  292. }
  293. // 关联批次扫码
  294. export function getRelateInspectionByCarrier(data) {
  295. return req.request({
  296. url: '/business/inspecion/getRelateInspectionByCarrier',
  297. method: 'post',
  298. data: data
  299. })
  300. }
  301. export function saveOutsourceInspectionWithRelate(data) {
  302. return req.request({
  303. url: '/business/inspecion/saveOutsourceInspectionWithRelate',
  304. method: 'post',
  305. data: data
  306. })
  307. }