checkRecord.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. import request from '@/utils/request'
  2. // 查询安全检查提交列表
  3. export function listCheckRecord(query) {
  4. return request({
  5. url: '/laboratory/checkRecord/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询安全检查草稿数量
  11. export function listCountCheckRecord(query) {
  12. return request({
  13. url: '/laboratory/checkRecord/listCount?isCg=1',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询安全检查草稿列表
  19. export function checkRecord(query) {
  20. return request({
  21. url: '/laboratory/checkRecord/list',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. //查询草稿详情
  27. export function recordDettailsList(query) {
  28. return request({
  29. url: '/laboratory/checkRecord/recordDettailsList',
  30. method: 'get',
  31. params: query
  32. })
  33. }
  34. // 查询安全检查详细
  35. export function getCheckRecord(id) {
  36. return request({
  37. url: '/laboratory/checkRecord/' + id,
  38. method: 'get'
  39. })
  40. }
  41. // 新增安全检查
  42. export function addCheckRecord(data) {
  43. return request({
  44. url: '/laboratory/checkRecord',
  45. method: 'post',
  46. data: data
  47. })
  48. }
  49. // 修改安全检查
  50. export function updateCheckRecord(data) {
  51. return request({
  52. url: '/laboratory/checkRecord',
  53. method: 'put',
  54. data: data
  55. })
  56. }
  57. // 删除安全检查
  58. export function delCheckRecord(id) {
  59. return request({
  60. url: '/laboratory/checkRecord/' + id,
  61. method: 'delete'
  62. })
  63. }
  64. //实验室懒加载
  65. export function selectInfoByRoom(query) {
  66. return request({
  67. url: '/laboratory/checkRecord/selectInfoByRoom',
  68. method: 'get',
  69. params: query
  70. })
  71. }
  72. //保存录入检查草稿
  73. export function checkRecordAddC(data) {
  74. return request({
  75. url: '/laboratory/checkRecord/addCg',
  76. method: 'post',
  77. data: data
  78. })
  79. }
  80. //提交录入检查
  81. export function checkRecordAdd(data) {
  82. return request({
  83. url: '/laboratory/checkRecord/addTj',
  84. method: 'post',
  85. data: data
  86. })
  87. }
  88. // 新增临时检查项
  89. export function addTempCheckOption(data) {
  90. return request({
  91. url: '/laboratory/checkOption/temp',
  92. method: 'post',
  93. data: data
  94. })
  95. }
  96. // 查询安全检查临时提交列表
  97. export function tempListCheckRecord(query) {
  98. return request({
  99. url: '/laboratory/checkOption/temp/list',
  100. method: 'get',
  101. params: query
  102. })
  103. }
  104. //将草稿继续保存为草稿
  105. export function checkRecordUpdate(data) {
  106. return request({
  107. url: '/laboratory/checkRecord/update',
  108. method: 'post',
  109. data: data
  110. })
  111. }
  112. //获取整改列表接口
  113. export function checkRecordList(query) {
  114. return request({
  115. url: '/laboratory/checkRecord/list',
  116. method: 'get',
  117. params: query
  118. })
  119. }
  120. //获取整改列表各状态数量接口
  121. export function selectStatusList(query) {
  122. return request({
  123. url: '/laboratory/checkRecordDetails/selectDetailsStatusList',
  124. method: 'get',
  125. params: query
  126. })
  127. }
  128. //整改提交接口
  129. export function checkRecordDetailsEditList(data) {
  130. return request({
  131. url: '/laboratory/checkRecordDetails/editList',
  132. method: 'post',
  133. data: data
  134. })
  135. }
  136. //获取检查单位
  137. export function treeselect(query) {
  138. return request({
  139. url: '/system/dept/treeselect',
  140. method: 'get',
  141. params: query
  142. })
  143. }
  144. //生成整改告知书-多个
  145. export function genNotifyIds(ids) {
  146. return request({
  147. url: '/laboratory/checkOption/genNotify/'+ids,
  148. method: 'post'
  149. })
  150. }
  151. //生成整改告知书-单个
  152. export function genNoticeId(id) {
  153. return request({
  154. url: '/laboratory/checkOption/genNotice/'+id,
  155. method: 'post'
  156. })
  157. }
  158. //生成整改报告-单个
  159. export function genReportId(id) {
  160. return request({
  161. url: '/laboratory/checkOption/genReport/'+id,
  162. method: 'post'
  163. })
  164. }
  165. //根据临时检查项id查询检查记录详情
  166. export function getCheckIdByoptionId(query) {
  167. return request({
  168. url: '/laboratory/checkRecord/getCheckIdByoptionId',
  169. method: 'get',
  170. params: query
  171. })
  172. }
  173. //检查记录-未提交草稿记录(新)
  174. export function listJcjl(query) {
  175. return request({
  176. url: '/laboratory/checkRecord/listJcjl',
  177. method: 'get',
  178. params: query
  179. })
  180. }
  181. //整改记录
  182. export function listWtzg(query) {
  183. return request({
  184. url: '/laboratory/checkRecordDetails/listWtzg',
  185. method: 'get',
  186. params: query
  187. })
  188. }
  189. //发布检查记录
  190. export function release(data) {
  191. return request({
  192. url: '/laboratory/release',
  193. method: 'post',
  194. data: data
  195. })
  196. }
  197. //检查是否已发布
  198. export function checkFabu(query) {
  199. return request({
  200. url: '/laboratory/checkRecord/checkFabu',
  201. method: 'get',
  202. params: query
  203. })
  204. }
  205. //获取当前用户检查单位列表
  206. export function selectDeptListUserDeptId(query) {
  207. return request({
  208. url: '/laboratory/checkRecord/selectDeptListUserDeptId',
  209. method: 'get',
  210. params: query
  211. })
  212. }
  213. //某个检查项出现的隐患次数
  214. export function hiddenDangerCount(query) {
  215. return request({
  216. url: '/laboratory/checkRecord/hiddenDangerCount',
  217. method: 'get',
  218. params: query
  219. })
  220. }
  221. //获取问题整改详情
  222. export function getDettailsListInfo(query) {
  223. return request({
  224. url: '/laboratory/checkRecordDetails/dettailsList',
  225. method: 'get',
  226. params: query
  227. })
  228. }
  229. //审核列表接口
  230. export function listDzgCheckRecord(query) {
  231. return request({
  232. url: '/laboratory/checkRecordDetails/listDzg',
  233. method: 'get',
  234. params: query
  235. })
  236. }
  237. //查询详情接口
  238. export function getDettailsList(query) {
  239. return request({
  240. url: '/laboratory/checkRecordDetails/dettailsList',
  241. method: 'get',
  242. params: query
  243. })
  244. }
  245. //审批驳回-审批通过
  246. export function editList(data) {
  247. return request({
  248. url: '/laboratory/checkRecordDetails/editList',
  249. method: 'post',
  250. data: data
  251. })
  252. }
  253. //完成整改-暂时无法整改
  254. export function rectification(data) {
  255. return request({
  256. url: '/laboratory/checkRecordDetails/rectification',
  257. method: 'post',
  258. data: data
  259. })
  260. }
  261. //查询当前用户是否上传签名
  262. export function getCheckSign(query) {
  263. return request({
  264. url: '/laboratory/checkRecord/checkSign',
  265. method: 'get',
  266. params: query
  267. })
  268. }
  269. //查询提交详情
  270. export function recordDetails(query) {
  271. return request({
  272. url: '/laboratory/checkRecord/recordDetails',
  273. method: 'get',
  274. params: query
  275. })
  276. }
  277. //检查电机签章接口
  278. export function queryDeptSignByUserId(query) {
  279. return request({
  280. url: '/system/dept/sign/queryDeptSignByUserId',
  281. method: 'get',
  282. params: query
  283. })
  284. }