ProjectInfoService.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. import request from '@/utils/httpRequest'
  2. import { BUSINESS_PATH as prefix } from "../AppPath";
  3. export default class ProjectInfoService {
  4. list (param) {
  5. return request({
  6. url: prefix + '/jyProject/list',
  7. method: 'get',
  8. params: param
  9. })
  10. }
  11. getHaveProjectIds () {
  12. return request({
  13. url: prefix + '/jyProject/getHaveProjectIds',
  14. method: 'get'
  15. })
  16. }
  17. findContractPageList (params) {
  18. return request({
  19. url: prefix + '/jyProject/findContractPageList',
  20. method: 'get',
  21. params: params
  22. })
  23. }
  24. saveForm (inputForm) {
  25. return request({
  26. url: prefix + `/jyProject/saveForm`,
  27. method: 'post',
  28. data: inputForm
  29. })
  30. }
  31. findById (id) {
  32. return request({
  33. url: prefix + '/jyProject/findById',
  34. method: 'get',
  35. params: {id: id}
  36. })
  37. }
  38. updateStatusById (data) {
  39. return request({
  40. url: prefix + '/jyProject/updateStatusById',
  41. method: 'post',
  42. data: data
  43. })
  44. }
  45. delete (ids) {
  46. return request({
  47. url: prefix + '/jyProject/deleteById',
  48. method: 'get',
  49. params: {id: ids}
  50. })
  51. }
  52. deleteAll (ids) {
  53. return request({
  54. url: prefix + '/jyProject/delete',
  55. method: 'delete',
  56. params: {ids: ids}
  57. })
  58. }
  59. listByCreateId(param){
  60. return request({
  61. url: prefix + '/jyProject/getByCreate',
  62. method: 'get',
  63. params: param
  64. })
  65. }
  66. listByCreateOffice(param){
  67. return request({
  68. url: prefix + '/jyProject/getByCreateOffice',
  69. method: 'get',
  70. params: param
  71. })
  72. }
  73. getByCreateOut(param){
  74. return request({
  75. url: prefix + '/jyProject/getByCreateOut',
  76. method: 'get',
  77. params: param
  78. })
  79. }
  80. findByIdAudit(id){
  81. return request({
  82. url: prefix + '/jyProject/findByIdAudit',
  83. method: 'get',
  84. params: {id:id}
  85. })
  86. }
  87. saveFormThree (inputForm) {
  88. return request({
  89. url: prefix + `/jyProject/saveFormThree`,
  90. method: 'post',
  91. data: inputForm
  92. })
  93. }
  94. updateStatusByAuditId (data) {
  95. return request({
  96. url: prefix + '/jyProject/updateStatusByAuditId',
  97. method: 'post',
  98. data: data
  99. })
  100. }
  101. saveFormOut (inputForm) {
  102. return request({
  103. url: prefix + `/jyProject/saveFormOut`,
  104. method: 'post',
  105. data: inputForm
  106. })
  107. }
  108. updateStatusByOutId (data) {
  109. return request({
  110. url: prefix + '/jyProject/updateStatusByOutId',
  111. method: 'post',
  112. data: data
  113. })
  114. }
  115. /* 一级校审文档下载 */
  116. downloadFirstAuditTpl (id, projectId) {
  117. return request({
  118. url: prefix + '/jyProject/downloadFirstAuditTpl',
  119. method: 'get',
  120. params: {id: id, projectId: projectId},
  121. })
  122. }
  123. /* 二级校审文档下载 */
  124. downloadSecondAuditTpl (id, projectId) {
  125. return request({
  126. url: prefix + '/jyProject/downloadSecondAuditTpl',
  127. method: 'get',
  128. params: {id: id, projectId: projectId},
  129. })
  130. }
  131. /* 三级校审文档下载 */
  132. downloadThirdlyAuditTpl (id, projectId) {
  133. return request({
  134. url: prefix + '/jyProject/downloadThirdlyAuditTpl',
  135. method: 'get',
  136. params: {id: id, projectId: projectId},
  137. })
  138. }
  139. /*
  140. 根据id查找外审信息
  141. */
  142. findByIdOut(id){
  143. return request({
  144. url: prefix + '/jyProject/findByIdOut',
  145. method: 'get',
  146. params: {id:id}
  147. })
  148. }
  149. /*
  150. 根据id查找外审信息
  151. */
  152. getAttachmentList(projectId,id){
  153. return request({
  154. url: prefix + '/jyProject/getAttachmentList',
  155. method: 'get',
  156. params: {projectId:projectId, id: id}
  157. })
  158. }
  159. /**
  160. * 根据id查找报批签发信息
  161. * @param id
  162. */
  163. queryReportsById (id) {
  164. return request({
  165. url: prefix + '/jyProject/queryReportsById',
  166. method: 'get',
  167. params: {id: id}
  168. })
  169. }
  170. saveReportsSubmit (inputForm) {
  171. return request({
  172. url: prefix + "/jyProject/saveReportsSubmit",
  173. method: 'post',
  174. data: inputForm
  175. })
  176. }
  177. updateReportsSubmitById (params) {
  178. return request({
  179. url: prefix + '/jyProject/updateReportsSubmitById',
  180. method: 'post',
  181. params: params
  182. })
  183. }
  184. saveFormArchive (inputForm) {
  185. return request({
  186. url: prefix + `/jyProject/saveFormArchive`,
  187. method: 'post',
  188. data: inputForm
  189. })
  190. }
  191. updateStatusByArchiveId (data) {
  192. return request({
  193. url: prefix + '/jyProject/updateStatusByArchiveId',
  194. method: 'post',
  195. data: data
  196. })
  197. }
  198. /*
  199. 根据id查找归档信息
  200. */
  201. findByIdArchive(id){
  202. return request({
  203. url: prefix + '/jyProject/findByIdArchive',
  204. method: 'get',
  205. params: {id:id}
  206. })
  207. }
  208. saveFormEia (inputForm) {
  209. return request({
  210. url: prefix + `/jyProject/saveFormEia`,
  211. method: 'post',
  212. data: inputForm
  213. })
  214. }
  215. updateStatusByEiaId (data) {
  216. return request({
  217. url: prefix + '/jyProject/updateStatusByEiaId',
  218. method: 'post',
  219. data: data
  220. })
  221. }
  222. /*
  223. 根据id查找归档信息
  224. */
  225. findByIdEia(id){
  226. return request({
  227. url: prefix + '/jyProject/findByIdEia',
  228. method: 'get',
  229. params: {id:id}
  230. })
  231. }
  232. }