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

add2.vue 8.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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 syqrlist" :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.shyqrdbxm}}</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.shyqrdbzjhm}}</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 transparent;background: #22B7F2;padding: 3px 0;border-radius: 50px;" @click="showPopupnh(item)">
  69. <img src="../../assets/images/housesteadSurvey/add01.png" alt="">
  70. <span style="font-size: 14px;color: #fff;margin-left: 5px;">户主</span>
  71. </p>
  72. <p style="width:32%;display: flex;align-items: center;justify-content:center;border: 1px solid transparent;background: rgba(34,183,242,0.14);padding: 3px 0;border-radius: 50px;" @click="showPopupsyqr(item)">
  73. <img src="../../assets/images/housesteadSurvey/add02.png" alt="">
  74. <span style="font-size: 14px;color: #22B7F2;margin-left: 5px;">使用权人</span>
  75. </p>
  76. <p style="width:32%;display: flex;align-items: center;justify-content:center;border: 1px solid #22B7F2;padding: 3px 0;border-radius: 50px;" @click="showPopuphncylist(item)">
  77. <img src="../../assets/images/housesteadSurvey/add02.png" alt="">
  78. <span style="font-size: 14px;color: #22B7F2;margin-left: 5px;">成员</span>
  79. </p>
  80. </div>
  81. </div>
  82. <template #right>
  83. <van-button square text="删除" type="danger" class="delete-button" @click="deletesyqr(item.id,index)"/>
  84. </template>
  85. </van-swipe-cell>
  86. <div style=" width:95%;margin:20px auto;display: flex;justify-content: space-between;">
  87. <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;">
  88. <p style="font-size: 16px;" @click="showPopupsyqr('')">+ 添加使用权人</p>
  89. </div>
  90. <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;">
  91. <p style="font-size: 16px;" @click="showPopupnhcy()">+ 添加农户信息</p>
  92. </div>
  93. </div>
  94. </div>
  95. </template>
  96. <script>
  97. import {getShyqrs,addShyqr,updateShyqr,delShyqr,setSyqrInfo} from "@/api/homesteadSurvey/shyqr";
  98. import {listZjdzd,getZjdzd,updateZjdzd,addZjdzd,uploadFile,getQueryLand,submitOnly} from "@/api/homesteadSurvey/zjdzd";
  99. import MapGisDrawing from "@/components/Map/MapGisDrawing";
  100. import {listZrz,addZrz,updateZrz,getZrzZjdDmList,delZrz,updateZrzStatus} from "@/api/homesteadSurvey/zrz";
  101. import {listNmfw,addNmfw,updateNmfw,delNmfw} from "@/api/homesteadSurvey/nmfw";
  102. import {listSuyqr,addSuyqr,updateSuyqr} from "@/api/homesteadSurvey/suyqr";
  103. import {listNhhncy,addNhhncy,updateNhhncy,delNhhncy} from "@/api/homesteadSurvey/nhhncy";
  104. import {addNh, delNh, exportNh, getNh, listNh, updateNh,setNhInfo} from "@/api/homesteadSurvey/nh";
  105. import {listFsss,addFsss,updateFsss,delFsss,getFsssZjdDmList,updateFsssStatus} from "@/api/homesteadSurvey/fsss";
  106. import { listTown, getTown } from "@/api/homesteadSurvey/town";
  107. import { listVillage} from "@/api/homesteadSurvey/village";
  108. import { sysConfig} from "@/api/homesteadSurvey/index";
  109. import { Notify, Dialog, Toast } from 'vant';
  110. import axios from "axios";
  111. export default {
  112. name: "homesteadAdd",
  113. components: { MapGisDrawing,},
  114. data() {
  115. return {
  116. active:2,
  117. // 使用权人列表
  118. zjdzdxx:{},
  119. syqrlist:[],
  120. };
  121. },
  122. created(){
  123. this.zjdzdxx = JSON.parse(localStorage.getItem("zjdzdxxItem"));
  124. this.getList();
  125. },
  126. mounted(){
  127. },
  128. methods: {
  129. getList(){
  130. getShyqrs({zjddm:this.zjdzdxx.zjddm}).then(response => {
  131. this.syqrlist = response.rows;
  132. });
  133. },
  134. goBack(){
  135. if(this.ztMap && this.enterMap ==1){
  136. if(this.form.id == null){
  137. this.backMap.backMapZjdAData.theGeom= "";
  138. }else{
  139. this.backMap.backMapZjdAData = this.form;
  140. }
  141. this.$cookies.set("search",this.backMap);
  142. } else {
  143. this.$cookies.set("search","");
  144. }
  145. this.$router.push({name: this.$router.back(-1)});
  146. // }
  147. },
  148. showPopupsyqr(val){
  149. this.$router.push({name:'shyqrAdd',query:val});
  150. },
  151. showPopupnh(val){
  152. this.$router.push({name:'nhAdd',query:val});
  153. },
  154. showPopupnhcy(){
  155. this.$router.push({name:'nhcyAdd',query:{}});
  156. },
  157. showPopuphncylist(val){
  158. this.$router.push({name:'nhcyList',query:val});
  159. },
  160. }
  161. }
  162. </script>
  163. <style scoped>
  164. >>> .bannerBg{
  165. width: 100%;
  166. color:#fff;
  167. padding:10px;
  168. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  169. }
  170. >>> .van-hairline--bottom::after {
  171. border-bottom-width: 0;
  172. }
  173. >>> .title:before
  174. {
  175. content:"";
  176. width: 6px;
  177. height: 20PX;
  178. background: #7ac943;
  179. border-radius: 3px;
  180. position:absolute;
  181. left:0;
  182. bottom:0;
  183. }
  184. >>> .delete-button {
  185. height: 100%;
  186. }
  187. >>> .van-swipe-cell__wrapper{
  188. margin-right:-3px;
  189. }
  190. >>> .label-class .van-collapse-item__title--expanded{
  191. font-weight: bold;
  192. }
  193. </style>