移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

241 line
4.5 KiB

  1. import request from '@/utils/request'
  2. //查询列表
  3. export function getList(data){
  4. return request({
  5. url:'/house/mobile/proposer/list',
  6. method:'get',
  7. params:data
  8. })
  9. }
  10. //获取申请单明细
  11. export function allInformation(id){
  12. return request({
  13. url:'/house/allinformation/'+id,
  14. method:'get',
  15. })
  16. }
  17. //获取申请单明细
  18. export function allInformationAnnounce(id){
  19. return request({
  20. url:'/house/allinformation/'+id+'?type=announce',
  21. method:'get',
  22. })
  23. }
  24. //获取文件配置
  25. export function treeSingleProcessView(data){
  26. return request({
  27. url:'/system/attachmentConfig/treeSingleProcessView',
  28. method:'get',
  29. params:data
  30. })
  31. }
  32. //获取上传附件
  33. export function attachmentFind(data){
  34. return request({
  35. url:'/system/attachment/find',
  36. method:'get',
  37. params:data
  38. })
  39. }
  40. //保存申请
  41. export function saveHouseBaseInfo(data){
  42. return request({
  43. url:'/house/custom/saveHouseBaseInfo',
  44. method:'post',
  45. data:data
  46. })
  47. }
  48. //提交申请
  49. export function saveHouseBaseInfoThenSubmit(data){
  50. return request({
  51. url:'/house/custom/saveHouseBaseInfoThenSubmit',
  52. method:'post',
  53. data:data
  54. })
  55. }
  56. //同意审批
  57. export function agreeApply(data){
  58. return request({
  59. url:'/house/mobile/agreeApply',
  60. method:'post',
  61. data:data
  62. })
  63. }
  64. //驳回审批
  65. export function rejectApply(data){
  66. return request({
  67. url:'/house/mobile/rejectApply',
  68. method:'post',
  69. data:data
  70. })
  71. }
  72. //上传图片
  73. export function attach(data){
  74. console.log(data)
  75. return request({
  76. url:'/common/attach',
  77. method:'post',
  78. headers:{'Content-Type': 'application/x-www-form-urlencoded;boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'},
  79. data:data
  80. })
  81. }
  82. //户型
  83. export function houseList(){
  84. return request({
  85. url:'/house/type/list',
  86. method:'get'
  87. })
  88. }
  89. //删除列表项
  90. export function removeList(id){
  91. return request({
  92. url:'/house/mobile/proposer/remove/'+id,
  93. method:'get'
  94. })
  95. }
  96. //删除附件
  97. export function removeFile(id){
  98. return request({
  99. url:'/system/attachment/remove/'+id,
  100. method:'get'
  101. })
  102. }
  103. //获取户主信息
  104. export function getHouseMembers(data){
  105. return request({
  106. url:'/house/mobile/getHouseMembers',
  107. method:'get',
  108. params:data
  109. })
  110. }
  111. //获取申请单明细 WLHT
  112. export function allInformationWLHT(id){
  113. return request({
  114. url:'/house/allinformation/getAllInformation/'+id,
  115. method:'get',
  116. })
  117. }
  118. // 查询文件配置树
  119. export function getAttachmentConfigTree(query) {
  120. return request({
  121. url: '/system/attachmentConfig/getAttachmentConfigTree',
  122. method: 'get',
  123. params: query
  124. })
  125. }
  126. // 新增地房申请-申请人
  127. export function addProposer(data) {
  128. return request({
  129. url: '/house/custom/saveHouseBaseInfo',
  130. method: 'post',
  131. data: data
  132. })
  133. }
  134. //检查是否重复建房
  135. export function checkDuplicateBuilding(query) {
  136. return request({
  137. url: '/house/custom/checkDuplicateBuilding',
  138. method: 'get',
  139. params: query
  140. })
  141. }
  142. //查询宅地信息
  143. export function checkDuplicateBuildingQuery(query) {
  144. return request({
  145. url: '/house/custom/checkDuplicateBuildingQuery',
  146. method: 'get',
  147. params: query
  148. })
  149. }
  150. //乌兰浩特申请单人操作
  151. export function customSubmitWLHT(id) {
  152. return request({
  153. url: '/house/custom/submitWLHT/' + id,
  154. method: 'post'
  155. })
  156. }
  157. // 新增地房申请-开工申请
  158. export function submitStartWLHT(id) {
  159. return request({
  160. url: '/house/start/submitWLHT/'+id,
  161. method: 'post',
  162. })
  163. }
  164. // 修改地房申请-开工申请
  165. export function updateStart(data) {
  166. return request({
  167. url: '/house/start/edit',
  168. method: 'post',
  169. data: data
  170. })
  171. }
  172. // 修改地房申请-验收意见
  173. export function updateEnd(data) {
  174. return request({
  175. url: '/house/end/edit',
  176. method: 'post',
  177. data: data
  178. })
  179. }
  180. // 提交地房申请-验收意见(乌兰浩特 简化流程)
  181. export function submitEndWLHT(id) {
  182. return request({
  183. url: '/house/end/submitWLHT/'+id,
  184. method: 'post',
  185. })
  186. }
  187. //查询当前登录账号坐标
  188. export function getQueryLand() {
  189. return request({
  190. url: '/system/dept/get/current',
  191. method: 'get'
  192. })
  193. }
  194. //查询当前登录账号坐标
  195. export function getWorkflow() {
  196. return request({
  197. url: '/house/custom/workflow',
  198. method: 'get'
  199. })
  200. }
  201. // 查询农户信息
  202. export function selectProposerNh(data) {
  203. return request({
  204. url: '/house/lz/queryHouserBaseNh' ,
  205. method: 'get',
  206. params: data
  207. })
  208. }
  209. //驳回提交清空历史审批记录
  210. export function updateOpretion(id) {
  211. return request({
  212. url: '/house/custom/updateOpretion/' + id,
  213. method: 'post'
  214. })
  215. }