移动端
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.

nhcyList.vue 8.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <div class="app-container">
  3. <van-sticky style="position:relative;">
  4. <div class="bannerBg">
  5. <van-nav-bar
  6. style="background:transparent;border-bottom-width:0;height:2rem;margin-bottom:.5rem;"
  7. @click-left="goBack()"
  8. >
  9. <template #left>
  10. <van-icon name="arrow-left" size="18" color="#fff" />
  11. </template>
  12. <!-- <template #right>
  13. <van-icon name="map-marked" size="18" color="#fff" />
  14. </template>-->
  15. <template #title>
  16. <p style="color:#fff">入户调查</p>
  17. </template>
  18. </van-nav-bar>
  19. </div>
  20. <div style="width:95%;left:2.5%;position:absolute;background:#fff;border-radius:15px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16);padding: .3rem;top:1.2rem">
  21. <van-row>
  22. <van-col span="4" :offset="1" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add'})">
  23. <van-icon :name="require('../../assets/images/housesteadSurvey/zjd'+(active==1?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  24. <p :style="{color:(active==1?'rgb(34, 183, 242)':'#000')}">宅基地</p>
  25. </van-col>
  26. <van-col span="2">
  27. <div style="border-top: 2px dashed #b5b4b4;margin-top: 20px;"></div>
  28. </van-col>
  29. <van-col span="4" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add2'})" >
  30. <van-icon :name="require('../../assets/images/housesteadSurvey/nhxx'+(active==2?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  31. <p :style="{color:(active==2?'rgb(34, 183, 242)':'#000')}">农户</p>
  32. </van-col>
  33. <van-col span="2">
  34. <div style="border-top: 2px dashed #b5b4b4;margin-top: 20px;"></div>
  35. </van-col>
  36. <van-col span="4" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add3'})" >
  37. <van-icon :name="require('../../assets/images/housesteadSurvey/fwxx'+(active==3?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  38. <p :style="{color:(active==3?'rgb(34, 183, 242)':'#000')}">房屋</p>
  39. </van-col>
  40. <van-col span="2">
  41. <div style="border-top: 2px dashed #b5b4b4;margin-top: 20px;"></div>
  42. </van-col>
  43. <van-col span="4" style="text-align:center;" @click="$router.push({path:'/homesteadSurvey/add4'})">
  44. <van-icon :name="require('../../assets/images/housesteadSurvey/fsss'+(active==4?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  45. <p :style="{color:(active==4?'rgb(34, 183, 242)':'#000')}">附属物</p>
  46. </van-col>
  47. </van-row>
  48. </div>
  49. </van-sticky>
  50. <div style="margin:30px auto 0;width: 95%;">
  51. <p class="title" style="position:relative;padding-left:10px;line-height:20px;font-size: 16px;margin-bottom: 5px;">户内成员</p>
  52. </div>
  53. <van-swipe-cell v-for="(item,index) in hnnylist" :key="'syqr'+index" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:95%;margin:15px auto 0;background:#fff;">
  54. <div style="padding:15px;">
  55. <p style="display: flex;align-items: center;">
  56. <img src="../../assets/images/housesteadSurvey/list03.png" alt="" style="margin-right: 5px;">
  57. <span style="line-height: 1;font-size: 16px;">{{item.xm}}</span>
  58. </p>
  59. <div style="display:flex;line-height:20px;margin-top: 15px;font-size: 14px;color: #999999;">
  60. <p style="flex:1;text-align:left;">证件号码:</p>
  61. <p style="flex:1;text-align:right;">{{item.zjhm}}</p>
  62. </div>
  63. <div style="display:flex;line-height:20px;margin-top: 5px;font-size: 14px;color: #999999;">
  64. <p style="flex:1;text-align:left;">农户代码:</p>
  65. <p style="flex:1;text-align:right;">{{item.nhdm}}</p>
  66. </div>
  67. <div style="text-align:center;overflow:auto;display: flex;justify-content: space-between;margin-top: 10px;">
  68. <p style="width:32%;display: flex;align-items: center;justify-content:center;border: 1px solid #22B7F2;padding: 3px 0;border-radius: 50px;" @click="showPopuphncy(item)">
  69. <img src="../../assets/images/housesteadSurvey/add02.png" alt="">
  70. <span style="font-size: 14px;color: #22B7F2;margin-left: 5px;">详情</span>
  71. </p>
  72. </div>
  73. </div>
  74. <template #right>
  75. <van-button v-if="permission == 'true'" square text="删除" type="danger" class="delete-button" @click="deletehncy(item.id,index)"/>
  76. </template>
  77. </van-swipe-cell>
  78. <div v-if="permission == 'true'" style=" width:95%;margin:20px auto;display: flex;justify-content: space-between;">
  79. <div style="width:49%;text-align:center;overflow:auto;border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16);padding: 15px 0px;background: #ffffff;color: #22B7F2;">
  80. <p style="font-size: 16px;" @click="showPopupcy()">+ 添加农户信息</p>
  81. </div>
  82. </div>
  83. </div>
  84. </template>
  85. <script>
  86. import {listZjdzd,getZjdzd,updateZjdzd,addZjdzd,uploadFile,getQueryLand,submitOnly} from "@/api/homesteadSurvey/zjdzd";
  87. import MapGisDrawing from "@/components/Map/MapGisDrawing";
  88. import {listZrz,addZrz,updateZrz,getZrzZjdDmList,delZrz,updateZrzStatus} from "@/api/homesteadSurvey/zrz";
  89. import {listNmfw,addNmfw,updateNmfw,delNmfw} from "@/api/homesteadSurvey/nmfw";
  90. import {listSuyqr,addSuyqr,updateSuyqr} from "@/api/homesteadSurvey/suyqr";
  91. import {listNhhncy,addNhhncy,updateNhhncy,delNhhncy} from "@/api/homesteadSurvey/nhhncy";
  92. import {addNh, delNh, exportNh, getNh, listNh, updateNh,setNhInfo} from "@/api/homesteadSurvey/nh";
  93. import {listFsss,addFsss,updateFsss,delFsss,getFsssZjdDmList,updateFsssStatus} from "@/api/homesteadSurvey/fsss";
  94. import { listTown, getTown } from "@/api/homesteadSurvey/town";
  95. import { listVillage} from "@/api/homesteadSurvey/village";
  96. import { sysConfig} from "@/api/homesteadSurvey/index";
  97. import { Notify, Dialog, Toast } from 'vant';
  98. import axios from "axios";
  99. export default {
  100. name: "nhcyList",
  101. components: { MapGisDrawing,},
  102. data() {
  103. return {
  104. active:2,
  105. permission:false,
  106. // 使用权人列表
  107. shyqrData:{},
  108. hnnylist:[],
  109. };
  110. },
  111. created(){
  112. this.shyqrData = this.$route.query;
  113. this.permission = localStorage.getItem("executePermission");
  114. this.getList();
  115. },
  116. mounted(){
  117. },
  118. methods: {
  119. getList(){
  120. listNhhncy({nhdm:this.shyqrData.nhdm }).then(response => {
  121. this.hnnylist = response.rows;
  122. });
  123. },
  124. goBack(){
  125. if(this.ztMap && this.enterMap ==1){
  126. if(this.form.id == null){
  127. this.backMap.backMapZjdAData.theGeom= "";
  128. }else{
  129. this.backMap.backMapZjdAData = this.form;
  130. }
  131. this.$cookies.set("search",this.backMap);
  132. } else {
  133. this.$cookies.set("search","");
  134. }
  135. this.$router.push({name: this.$router.back(-1)});
  136. // }
  137. },
  138. showPopupsyqr(val){
  139. this.$router.push({name:'shyqrAdd',query:val});
  140. },
  141. showPopupcy(){
  142. this.$router.push({name:'nhcyAdd',query:{nhdm:this.hnnylist[0].nhdm,suyqrdm:this.hnnylist[0].suyqrdm}});
  143. },
  144. showPopuphncy(val){
  145. this.$router.push({name:'nhcyAdd',query:val});
  146. },
  147. // 删除户内成员
  148. deletehncy(id,index){
  149. Dialog.confirm({
  150. title: '警告',
  151. message: '确认删除户内成员么?',
  152. })
  153. .then(() => {
  154. // on confirm
  155. delNhhncy(id).then(res => {
  156. if(res.code=="200"){
  157. this.hnnylist.splice(index,1);
  158. }
  159. })
  160. })
  161. .catch(() => {
  162. // on cancel
  163. });
  164. },
  165. }
  166. }
  167. </script>
  168. <style scoped>
  169. >>> .bannerBg{
  170. width: 100%;
  171. color:#fff;
  172. padding:10px;
  173. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  174. }
  175. >>> .van-hairline--bottom::after {
  176. border-bottom-width: 0;
  177. }
  178. >>> .title:before
  179. {
  180. content:"";
  181. width: 6px;
  182. height: 20PX;
  183. background: #7ac943;
  184. border-radius: 3px;
  185. position:absolute;
  186. left:0;
  187. bottom:0;
  188. }
  189. >>> .delete-button {
  190. height: 100%;
  191. }
  192. >>> .van-swipe-cell__wrapper{
  193. margin-right:-3px;
  194. }
  195. >>> .label-class .van-collapse-item__title--expanded{
  196. font-weight: bold;
  197. }
  198. </style>