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

5184 line
176 KiB

  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">{{item.zjddm?"":"新增"}}入户调查</p>
  17. </template>
  18. </van-nav-bar>
  19. </div>
  20. <div style=" width:90%; left:5%;position:absolute;background:#fff;border-radius:15px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16);padding: .3rem;
  21. top:1.2rem">
  22. <van-row>
  23. <van-col span="4" :offset="1" style="text-align:center;" >
  24. <div @click="active=1">
  25. <van-icon :name="require('../../assets/images/housesteadSurvey/zjd'+(active==1?'A':'D')+'.png')" size="1rem" :message="form.message" @click="mapClickLoading" style="margin-top:0px;"/>
  26. <p :style="{color:(active==1?'rgb(34, 183, 242)':'#000')}">宅基地</p>
  27. </div>
  28. </van-col>
  29. <van-col span="2">
  30. <div style="height: 2px; border: 2px dashed #b5b4b4;margin-top: 40px;"></div>
  31. </van-col>
  32. <div @click="active=2,getSyqrList()">
  33. <van-col span="4" style="text-align:center;" >
  34. <van-icon :name="require('../../assets/images/housesteadSurvey/nhxx'+(active==2?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  35. <p :style="{color:(active==2?'rgb(34, 183, 242)':'#000')}">农户</p>
  36. </van-col>
  37. </div>
  38. <van-col span="2">
  39. <div style=" height: 2px; border: 2px dashed #b5b4b4;margin-top: 40px;"></div>
  40. </van-col>
  41. <div @click="active=3,getZrzList()">
  42. <van-col span="4" style="text-align:center;" >
  43. <van-icon :name="require('../../assets/images/housesteadSurvey/fwxx'+(active==3?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  44. <p :style="{color:(active==3?'rgb(34, 183, 242)':'#000')}">房屋</p>
  45. </van-col>
  46. </div>
  47. <van-col span="2">
  48. <div style=" height: 2px; border: 2px dashed #b5b4b4;margin-top: 40px;"></div>
  49. </van-col>
  50. <van-col span="4" style="text-align:center;" @click="active=4,getFsssList()">
  51. <van-icon :name="require('../../assets/images/housesteadSurvey/fsss'+(active==4?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
  52. <p :style="{color:(active==4?'rgb(34, 183, 242)':'#000')}">附属物</p>
  53. </van-col>
  54. </van-row>
  55. </div>
  56. </van-sticky>
  57. <div v-if="active==1">
  58. <div style="margin:20px;">
  59. <van-form @submit="onSubmitzjd">
  60. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">宅基地信息</p>
  61. <!--<van-field
  62. v-model="form.deptId"
  63. name="行政区划名称"
  64. label="行政区划名称"
  65. placeholder="行政区划名称"
  66. :rules="[{ required: true, message: '' }]"
  67. />-->
  68. <van-field
  69. autocomplete="off"
  70. v-model="form.suyqrdm"
  71. name="所有权人代码"
  72. label="所有权人代码"
  73. placeholder="自动生成"
  74. input-align="right"
  75. disabled
  76. />
  77. <van-field
  78. autocomplete="off"
  79. v-model="form.zjddm"
  80. name="宅基地代码"
  81. label="宅基地代码"
  82. placeholder="自动生成"
  83. input-align="right"
  84. disabled
  85. />
  86. <van-field
  87. autocomplete="off"
  88. input-align="right"
  89. v-model="form.zddm"
  90. name="宗地代码"
  91. label="宗地代码"
  92. placeholder="自动生成"
  93. disabled
  94. />
  95. <van-field name="radio" label="是否发证" input-align="right" autocomplete="off">
  96. <template #input>
  97. <van-radio-group v-model="form.sffz" direction="horizontal">
  98. <van-radio name="Y">是</van-radio>
  99. <van-radio name="N">否</van-radio>
  100. </van-radio-group>
  101. </template>
  102. </van-field>
  103. <van-field
  104. autocomplete="off"
  105. input-align="right"
  106. v-model="form.ytmc"
  107. name="用途"
  108. label="用途"
  109. placeholder="用途"
  110. readonly
  111. @click="showyt = true"
  112. required
  113. :rules="[{ required: true, message: '用途不能为空' }]"
  114. />
  115. <van-field
  116. v-model="form.yt"
  117. style="display:none"
  118. autocomplete="off"
  119. />
  120. <van-field
  121. input-align="right"
  122. v-model="form.zjdzsh"
  123. name="宅基地证书号"
  124. label="宅基地证书号"
  125. placeholder="宅基地证书号"
  126. maxlength="50"
  127. autocomplete="off"
  128. />
  129. <van-field
  130. autocomplete="off"
  131. input-align="right"
  132. v-model="form.zjdpzmj"
  133. name="宅基地批准面积(㎡)"
  134. label="宅基地批准面积(㎡)"
  135. placeholder="单位:平方米"
  136. type="number"
  137. maxlength="15"
  138. />
  139. <van-field
  140. autocomplete="off"
  141. input-align="right"
  142. v-model="form.zdmj"
  143. type="number"
  144. name="宗地面积(㎡)"
  145. label="宗地面积(㎡)"
  146. placeholder="宗地面积(㎡)"
  147. maxlength="15"
  148. />
  149. <van-field
  150. autocomplete="off"
  151. input-align="right"
  152. v-model="form.zl"
  153. name="坐落"
  154. label="坐落"
  155. placeholder="坐落"
  156. required
  157. :rules="[{ required: true, message: '坐落不能为空' }]"
  158. />
  159. <van-field
  160. autocomplete="off"
  161. v-model="form.zldwdm"
  162. name="坐落单位代码"
  163. label="坐落单位代码"
  164. placeholder="自动生成"
  165. input-align="right"
  166. disabled
  167. />
  168. <van-field
  169. autocomplete="off"
  170. input-align="right"
  171. v-model="form.zdszd"
  172. name="宗地四至-东"
  173. label="宗地四至-东"
  174. placeholder="宗地四至-东"
  175. maxlength="150"
  176. required
  177. :rules="[{ required: true, message: '宗地四至-东不能为空' }]"
  178. />
  179. <van-field
  180. autocomplete="off"
  181. input-align="right"
  182. v-model="form.zdszn"
  183. name="宗地四至-南"
  184. label="宗地四至-南"
  185. placeholder="宗地四至-南"
  186. maxlength="150"
  187. required
  188. :rules="[{ required: true, message: '宗地四至-南不能为空' }]"
  189. />
  190. <van-field
  191. input-align="right"
  192. v-model="form.zdszx"
  193. name="宗地四至-西"
  194. label="宗地四至-西"
  195. placeholder="宗地四至-西"
  196. maxlength="150"
  197. required
  198. :rules="[{ required: true, message: '宗地四至-西不能为空' }]"
  199. />
  200. <van-field
  201. autocomplete="off"
  202. input-align="right"
  203. v-model="form.zdszb"
  204. name="宗地四至-北"
  205. label="宗地四至-北"
  206. placeholder="宗地四至-北"
  207. maxlength="150"
  208. required
  209. :rules="[{ required: true, message: '宗地四至-北不能为空' }]"
  210. />
  211. <van-field
  212. autocomplete="off"
  213. input-align="right"
  214. v-model="form.lyzkName"
  215. name="当前利用状况"
  216. label="当前利用状况"
  217. placeholder="当前利用状况"
  218. readonly
  219. @click="showlyzk = true"
  220. />
  221. <van-field
  222. v-model="form.lyzk"
  223. style="display:none"
  224. />
  225. <van-field
  226. autocomplete="off"
  227. input-align="right"
  228. v-model="form.zjdxzyy"
  229. name="宅基地闲置原因"
  230. label="宅基地闲置原因"
  231. placeholder="宅基地闲置原因"
  232. maxlength="200"
  233. />
  234. <van-field
  235. autocomplete="off"
  236. input-align="right"
  237. v-model="form.xzkssj"
  238. name="闲置开始时间"
  239. label="闲置开始时间"
  240. placeholder="闲置开始时间"
  241. readonly
  242. @click="showPickerxzkssj = true"
  243. />
  244. <van-popup v-model:show="showPickerxzkssj" position="bottom">
  245. <van-datetime-picker
  246. type="date"
  247. @confirm="onConfirmxzkssj"
  248. @cancel="showPickerxzkssj = false"
  249. />
  250. </van-popup>
  251. <van-field name="radio" label="流转意向" input-align="right" autocomplete="off">
  252. <template #input>
  253. <van-radio-group v-model="form.lzyx" direction="horizontal">
  254. <van-radio name="1">有</van-radio>
  255. <van-radio name="0">无</van-radio>
  256. </van-radio-group>
  257. </template>
  258. </van-field>
  259. <van-field name="radio" label="有偿退出意向" input-align="right" autocomplete="off">
  260. <template #input>
  261. <van-radio-group v-model="form.yctcyx" direction="horizontal">
  262. <van-radio name="1">有</van-radio>
  263. <van-radio name="0">无</van-radio>
  264. </van-radio-group>
  265. </template>
  266. </van-field>
  267. <van-field name="radio" label="被惩处经历" input-align="right" autocomplete="off">
  268. <template #input>
  269. <van-radio-group v-model="form.bccjl" direction="horizontal">
  270. <van-radio name="1">有</van-radio>
  271. <van-radio name="0">无</van-radio>
  272. </van-radio-group>
  273. </template>
  274. </van-field>
  275. <van-field
  276. autocomplete="off"
  277. v-if="form.bccjl==1"
  278. input-align="right"
  279. v-model="form.bccbz"
  280. name="被惩处备注"
  281. label="被惩处备注"
  282. placeholder="被惩处备注"
  283. maxlength="200"
  284. />
  285. <van-field name="radio" label="宅基地取得方式" input-align="right" autocomplete="off">
  286. <template #input>
  287. <van-radio-group v-model="form.zjdqdfs" direction="horizontal">
  288. <van-radio v-for="dict in zjdqdfsOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  289. </van-radio-group>
  290. </template>
  291. </van-field>
  292. <van-field name="uploader" label="宅基地现场照片" autocomplete="off">
  293. <template #input>
  294. <van-uploader v-model="fileListzjd" :after-read="beforeReadzjd" multiple @delete="deleteFilezjd" :max-count="8"></van-uploader>
  295. </template>
  296. </van-field>
  297. <van-field
  298. autocomplete="off"
  299. input-align="right"
  300. v-model="form.djName"
  301. name="等级"
  302. label="等级"
  303. placeholder="等级"
  304. @click="showdj = true"
  305. />
  306. <van-field
  307. autocomplete="off"
  308. v-model="form.dj"
  309. style="display:none"
  310. />
  311. <van-field
  312. autocomplete="off"
  313. input-align="right"
  314. v-model="form.jg"
  315. name="价格(万元)"
  316. label="价格(万元)"
  317. placeholder="价格(万元)"
  318. maxlength="15"
  319. type="number"
  320. />
  321. <van-field
  322. autocomplete="off"
  323. input-align="right"
  324. v-model="form.qllxName"
  325. name="权利类型"
  326. label="权利类型"
  327. placeholder="权利类型"
  328. readonly
  329. @click="showqllx = true"
  330. />
  331. <van-field
  332. autocomplete="off"
  333. v-model="form.qllx"
  334. style="display:none"
  335. />
  336. <van-field
  337. autocomplete="off"
  338. input-align="right"
  339. v-model="form.qlxzName"
  340. name="权利性质"
  341. label="权利性质"
  342. placeholder="权利性质"
  343. readonly
  344. @click="showqlxz = true"
  345. />
  346. <van-field
  347. autocomplete="off"
  348. v-model="form.qlxz"
  349. style="display:none"
  350. />
  351. <van-field
  352. autocomplete="off"
  353. input-align="right"
  354. v-model="form.qlsdfsName"
  355. name="权利设定方式"
  356. label="权利设定方式"
  357. placeholder="权利设定方式"
  358. readonly
  359. @click="showqlsdfs = true"
  360. />
  361. <van-field
  362. autocomplete="off"
  363. v-model="form.qlsdfs"
  364. style="display:none"
  365. />
  366. <van-field
  367. autocomplete="off"
  368. input-align="right"
  369. v-model="form.rjl"
  370. name="容积率"
  371. label="容积率"
  372. placeholder="容积率"
  373. />
  374. <van-field
  375. input-align="right"
  376. v-model="form.jzmd"
  377. name="validator"
  378. label="建筑密度"
  379. placeholder="填写0~1小数"
  380. :rules="[{ validator, message: '请填写0~1小数,保留两位小数' }]"
  381. type="number"
  382. />
  383. <van-field
  384. autocomplete="off"
  385. input-align="right"
  386. v-model="form.jzxg"
  387. name="建筑限高(m)"
  388. label="建筑限高(m)"
  389. placeholder="填写000.00~999.99小数"
  390. :rules="[{ validator:validator1, message: '请填写000.00~999.99小数,保留两位小数' }]"
  391. type="number"
  392. />
  393. <van-field
  394. autocomplete="off"
  395. input-align="right"
  396. v-model="form.zdt"
  397. name="宗地图"
  398. label="宗地图"
  399. placeholder="宗地图"
  400. maxlength="200"
  401. />
  402. <van-field
  403. autocomplete="off"
  404. input-align="right"
  405. v-model="form.tfh"
  406. name="图幅号"
  407. label="图幅号"
  408. placeholder="图幅号"
  409. maxlength="50"
  410. />
  411. <van-field
  412. autocomplete="off"
  413. input-align="right"
  414. v-model="form.djh"
  415. name="地籍号"
  416. label="地籍号"
  417. placeholder="自动生成"
  418. disabled
  419. />
  420. <van-field
  421. autocomplete="off"
  422. v-model="form.sjlyName"
  423. name="数据来源"
  424. label="数据来源"
  425. placeholder="数据来源"
  426. input-align="right"
  427. readonly
  428. @click="showsjly = true"
  429. />
  430. <van-field
  431. autocomplete="off"
  432. v-model="form.sjly"
  433. style="display:none"
  434. />
  435. <van-field
  436. autocomplete="off"
  437. input-align="right"
  438. v-model="form.bz"
  439. name="备注"
  440. label="备注"
  441. placeholder="备注"
  442. maxlength="200"
  443. />
  444. <MapGisDrawing ref="drewingClickLoading" :message="form.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
  445. <div style="margin: 16px;">
  446. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  447. </div>
  448. </van-form>
  449. </div>
  450. </div>
  451. <div v-if="active==2">
  452. <div style="margin:20px;">
  453. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">使用权人</p>
  454. </div>
  455. <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:calc( 100% - 40px);margin:20px auto;background:#fff;">
  456. <div style="padding:20px;">
  457. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="manager" color="#22b7f2" size="20" style="margin-right:10px;"/>
  458. {{item.shyqrdbxm}}</p>
  459. <div style="display:flex;line-height:20px">
  460. <p style="flex:1;text-align:left;">证件号码</p>
  461. <p style="flex:1;text-align:right;">{{item.shyqrdbzjhm}}</p>
  462. </div>
  463. <div style="display:flex;line-height:20px">
  464. <p style="flex:1;text-align:left;">农户代码</p>
  465. <p style="flex:1;text-align:right;">{{item.nhdm}}</p>
  466. </div>
  467. <div style="text-align:center;overflow:auto;">
  468. <van-button plain round color="#7AC943" size="mini" style="margin:0 5px;" @click="showPopupsyqr(item)">查看使用权人</van-button>
  469. <van-button plain round color="#7AC943" size="mini" style="margin:0 5px;" @click="showPopupnh(item)">查看户主</van-button>
  470. <van-button plain round color="#7AC943" size="mini" style="margin:0 5px;" @click="showPopuphncylist(item)">查看成员</van-button>
  471. </div>
  472. </div>
  473. <template #right>
  474. <van-button square text="删除" type="danger" class="delete-button" @click="deletesyqr(item.id,index)"/>
  475. </template>
  476. </van-swipe-cell>
  477. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:10px;">
  478. <div style="text-align:center;overflow:auto;">
  479. <van-button plain round color="#22B7F2" size="mini" style="margin:0 auto;padding:20px;" @click="showPopupsyqr('')">+添加使用权人</van-button>
  480. <van-button plain round color="#22B7F2" size="mini" style="margin:0 auto;padding:20px;" @click="showPopupnh('')">+添加农户信息</van-button>
  481. </div>
  482. </div>
  483. <!-- <div style="position:fixed;bottom:50px;left:25%;width:50%;text-align:center;">
  484. <van-button round size="small" color="#7AC943" style="width:40%" @click="changeActiveBack">上一项</van-button>
  485. <van-button round size="small" color="#7AC943" style="width:40%" @click="changeActive">下一项</van-button>
  486. </div>-->
  487. </div>
  488. <div v-if="active==3">
  489. <div style="margin:20px;">
  490. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">自然幢</p>
  491. </div>
  492. <van-swipe-cell v-for="(item,index) in zrzlist" :key="'zrz'+index" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  493. <div style="padding:20px;">
  494. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>
  495. 第{{index+1}}号</p>
  496. <div style="display:flex;line-height:20px">
  497. <p style="flex:1;text-align:left;">自然幢号</p>
  498. <p style="flex:1;text-align:right;">{{item.zrzh}}</p>
  499. </div>
  500. <div style="display:flex;line-height:20px">
  501. <p style="flex:1;text-align:left;">总层数</p>
  502. <p style="flex:1;text-align:right;">{{item.zcs}}</p>
  503. </div>
  504. <div style="text-align:center;overflow:auto;">
  505. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" @click="showPopupzrz(item)">查看自然幢信息</van-button>
  506. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" @click="shownmfwlist(item)">查看房屋列表</van-button>
  507. </div>
  508. </div>
  509. <template #right>
  510. <van-button square text="删除" type="danger" class="delete-button" @click="deletezrz(item.id,index)"/>
  511. </template>
  512. </van-swipe-cell>
  513. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
  514. <div style="text-align:center;" >
  515. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupzrz('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加自然幢信息</p>
  516. </div>
  517. </div>
  518. <!--<div style="margin:20px;">
  519. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">房屋信息</p>
  520. </div>
  521. <van-swipe-cell v-for="(item,index) in fwlist" :key="index" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  522. <div style="padding:20px;">
  523. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>第{{index+1}}号</p>
  524. <div style="display:flex;line-height:20px">
  525. <p style="flex:1;text-align:left;">农民房屋幢号</p>
  526. <p style="flex:1;text-align:right;">{{item.nmfwzh}}</p>
  527. </div>
  528. <div style="display:flex;line-height:20px">
  529. <p style="flex:1;text-align:left;">农民房屋面积(㎡)</p>
  530. <p style="flex:1;text-align:right;">{{item.nmfwmj}}</p>
  531. </div>
  532. <div style="text-align:center;overflow:auto;">
  533. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" @click="showPopupfw(item)">查看房屋信息</van-button>
  534. </div>
  535. </div>
  536. <template #right>
  537. <van-button square text="删除" type="danger" class="delete-button" @click="deletefw(item.id,index)"/>
  538. </template>
  539. </van-swipe-cell>
  540. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;margin-bottom:50px">
  541. <div style="text-align:center;" >
  542. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfw('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加房屋信息</p>
  543. </div>
  544. </div>-->
  545. <!--<div style="position:fixed;bottom:50px;left:25%;width:50%;text-align:center;">
  546. <van-button round size="small" color="#7AC943" style="width:40%" @click="changeActiveBack">上一项</van-button>
  547. <van-button round size="small" color="#7AC943" style="width:40%" @click="changeActive">下一项</van-button>
  548. </div>-->
  549. </div>
  550. <div v-if="active==4">
  551. <div style="margin:20px;">
  552. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">附属设施</p>
  553. </div>
  554. <van-swipe-cell v-for="(item,index) in fssslist" :key="'fsss'+index" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  555. <div style="padding:20px;">
  556. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>{{fssslxfy(item.fssslx)}}</p>
  557. <div style="display:flex;line-height:20px">
  558. <p style="flex:1;text-align:left;">建筑面积(㎡)</p>
  559. <p style="flex:1;text-align:right;">{{item.jzmj}}</p>
  560. </div>
  561. <div style="display:flex;line-height:20px">
  562. <p style="flex:1;text-align:left;">建筑物情况</p>
  563. <p style="flex:1;text-align:right;">{{jzwqkfy(item.jzwqk)}}</p>
  564. </div>
  565. <div style="text-align:center;overflow:auto;">
  566. <van-button plain round color="#7AC943" size="mini" @click="showPopupfsss(item)" style="margin:0 auto;">查看附属设施信息</van-button>
  567. </div>
  568. </div>
  569. <template #right>
  570. <van-button square text="删除" type="danger" class="delete-button" @click="deletefsss(item.id,index)"/>
  571. </template>
  572. </van-swipe-cell>
  573. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
  574. <div style="text-align:center;" >
  575. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfsss('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加附属设施信息</p>
  576. </div>
  577. </div>
  578. <div style="position:fixed;bottom:0;left:5%;width:90%;text-align:center;">
  579. <!-- <van-button round size="small" color="#7AC943" style="width:40%" @click="changeActiveBack">上一项</van-button>-->
  580. <van-button round color="#7AC943" style="width:100%" @click="searchCommit">签名确认</van-button>
  581. </div>
  582. </div>
  583. <van-popup v-model="showsyqr" style="height:100%;width:100%;">
  584. <div class="bannerBg">
  585. <van-nav-bar
  586. style="background:transparent;border-bottom-width:0;"
  587. @click-left="showsyqr=false"
  588. >
  589. <template #left>
  590. <van-icon name="arrow-left" size="18" color="#fff" />
  591. </template>
  592. <template #title>
  593. <p style="color:#fff">使用权利人</p>
  594. </template>
  595. </van-nav-bar>
  596. </div>
  597. <div style="margin:20px;">
  598. <van-form @submit="onSubmitsyqr">
  599. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">使用权人</p>
  600. <van-field
  601. autocomplete="off"
  602. input-align="right"
  603. v-model="form1.nhdm"
  604. name="农户代码"
  605. label="农户代码"
  606. placeholder="农户代码"
  607. required
  608. :rules="[{ required: true, message: '农户代码不能为空' }]"
  609. @click="showsyqrnhdmlist = true"
  610. readonly
  611. />
  612. <van-field
  613. autocomplete="off"
  614. input-align="right"
  615. v-model="form1.zjddm"
  616. name="宅基地代码"
  617. label="宅基地代码"
  618. placeholder="宅基地代码"
  619. required
  620. :rules="[{ required: true, message: '宅基地代码不能为空' }]"
  621. />
  622. <!--<van-field
  623. autocomplete="off"
  624. input-align="right"
  625. v-model="form1.nmfwdm"
  626. name="农民房屋代码"
  627. label="农民房屋代码"
  628. placeholder="宅基地上有农民房屋时填写"
  629. readonly
  630. @click="showsyqrnmfwdm = true"
  631. />-->
  632. <van-field
  633. autocomplete="off"
  634. input-align="right"
  635. v-model="form1.shyqrdbxm"
  636. name="使用权人代表姓名"
  637. label="使用权人代表姓名"
  638. placeholder="使用权人代表姓名"
  639. maxlength="50"
  640. required
  641. :rules="[{ required: true, message: '使用权人代表姓名不能为空' }]"
  642. />
  643. <van-field
  644. autocomplete="off"
  645. input-align="right"
  646. v-model="form1.shyqrdbzjlxName"
  647. name="使用权人代表证件类型"
  648. label="使用权人代表证件类型"
  649. placeholder="使用权人代表证件类型"
  650. @click="showshyqrdbzjlx = true"
  651. required
  652. :rules="[{ required: true, message: '使用权人代表证件类型不能为空' }]"
  653. />
  654. <van-field
  655. v-model="form1.shyqrdbzjlx"
  656. style="display:none"
  657. />
  658. <van-field
  659. autocomplete="off"
  660. input-align="right"
  661. v-model="form1.shyqrdbzjhm"
  662. name="使用权人代表证件号码"
  663. label="使用权人代表证件号码"
  664. placeholder="使用权人代表证件号码"
  665. maxlength="30"
  666. required
  667. :rules="[{ required: true, message: '使用权人代表证件号码不能为空' }]"
  668. />
  669. <van-field
  670. autocomplete="off"
  671. input-align="right"
  672. v-model="form1.bdcdyh"
  673. name="不动产单元号"
  674. label="不动产单元号"
  675. placeholder="分配了不动产单元号时填写"
  676. maxlength="28"
  677. />
  678. <van-field
  679. autocomplete="off"
  680. input-align="right"
  681. v-model="form1.bdcqzh"
  682. name="不动产权证号"
  683. label="不动产权证号"
  684. placeholder="不动产权证号"
  685. maxlength="50"
  686. v-show="form1.bdcdyh!=null&&form1.bdcdyh!=''"
  687. />
  688. <van-field
  689. autocomplete="off"
  690. input-align="right"
  691. v-model="form1.qzysxlh"
  692. name="权证印刷序列号"
  693. label="权证印刷序列号"
  694. placeholder="权证印刷序列号"
  695. maxlength="100"
  696. />
  697. <van-field
  698. autocomplete="off"
  699. input-align="right"
  700. v-model="form1.fzjg"
  701. name="发证机关"
  702. label="发证机关"
  703. placeholder="发证机关"
  704. maxlength="100"
  705. />
  706. <van-field
  707. autocomplete="off"
  708. input-align="right"
  709. v-model="form1.sshyName"
  710. name="所属行业"
  711. label="所属行业"
  712. placeholder="所属行业"
  713. readonly
  714. @click="showsyqrsshy = true"
  715. />
  716. <van-field
  717. autocomplete="off"
  718. v-model="form1.sshy"
  719. style="display:none"
  720. />
  721. <van-field name="radio" label="国家/地区" input-align="right" autocomplete="off">
  722. <template #input>
  723. <van-radio-group v-model="form1.gj" direction="horizontal">
  724. <van-radio name="1">中国</van-radio>
  725. <van-radio name="2">其他</van-radio>
  726. </van-radio-group>
  727. </template>
  728. </van-field>
  729. <van-field
  730. autocomplete="off"
  731. input-align="right"
  732. v-model="form1.qlbl"
  733. name="权利比例"
  734. label="权利比例"
  735. placeholder="单独为1,共有时2位小数"
  736. type="number"
  737. maxlength="20"
  738. />
  739. <van-field
  740. autocomplete="off"
  741. input-align="right"
  742. v-model="form1.hjszssName"
  743. name="户籍所在省市"
  744. label="户籍所在省市"
  745. placeholder="户籍所在省市"
  746. readonly
  747. @click="showhjszss = true"
  748. />
  749. <van-field
  750. style="display:none"
  751. v-model="form1.hjszss"
  752. />
  753. <van-field name="radio" label="性别" input-align="right" autocomplete="off">
  754. <template #input>
  755. <van-radio-group v-model="form1.xb" direction="horizontal">
  756. <van-radio name="1">男</van-radio>
  757. <van-radio name="2">女</van-radio>
  758. </van-radio-group>
  759. </template>
  760. </van-field>
  761. <van-field
  762. autocomplete="off"
  763. input-align="right"
  764. v-model="form1.dh"
  765. name="电话"
  766. label="电话"
  767. placeholder="电话"
  768. type="number"
  769. />
  770. <van-field
  771. autocomplete="off"
  772. input-align="right"
  773. v-model="form1.dz"
  774. name="地址"
  775. label="地址"
  776. placeholder="地址"
  777. />
  778. <van-field autocomplete="off" name="radio" label="是否使用权人之间共有" input-align="right" required
  779. :rules="[{ required: true, message: '使用权人代表证件号码不能为空' }]">
  780. <template #input>
  781. <van-radio-group v-model="form1.sfsyqrzjgy" direction="horizontal">
  782. <van-radio name="Y">是</van-radio>
  783. <van-radio name="N">否</van-radio>
  784. </van-radio-group>
  785. </template>
  786. </van-field>
  787. <van-field
  788. autocomplete="off"
  789. v-if="form1.sfsyqrzjgy=='Y'"
  790. input-align="right"
  791. v-model="form1.ftzdmj"
  792. name="分摊宗地面积(㎡)"
  793. label="分摊宗地面积(㎡)"
  794. placeholder="单位:平方米"
  795. type="number"
  796. />
  797. <van-field
  798. autocomplete="off"
  799. input-align="right"
  800. v-model="form1.qlrlxName"
  801. name="权利人类型"
  802. label="权利人类型"
  803. placeholder="权利人类型"
  804. @click="showqlrlx = true"
  805. required
  806. :rules="[{ required: true, message: '权利人类型不能为空' }]"
  807. />
  808. <van-field
  809. autocomplete="off"
  810. v-model="form1.qlrlx"
  811. style="display:none"
  812. />
  813. <van-field
  814. autocomplete="off"
  815. input-align="right"
  816. v-model="form1.gyfsName"
  817. name="共有方式"
  818. label="共有方式"
  819. placeholder="共有方式"
  820. @click="showgyfs = true"
  821. />
  822. <van-field
  823. autocomplete="off"
  824. v-model="form1.gyfs"
  825. style="display:none"
  826. />
  827. <van-field autocomplete="off" name="radio" label="是否本农村集体经济组织成员" input-align="right" required
  828. :rules="[{ required: true, message: '是否本农村集体经济组织成员不能为空' }]">
  829. <template #input>
  830. <van-radio-group v-model="form1.sfbncjtjjzzcy" direction="horizontal">
  831. <van-radio name="Y">是</van-radio>
  832. <van-radio name="N">否</van-radio>
  833. </van-radio-group>
  834. </template>
  835. </van-field>
  836. <van-field
  837. autocomplete="off"
  838. input-align="right"
  839. v-model="form1.suyqrdm"
  840. name="所有权人代码"
  841. label="所有权人代码"
  842. placeholder="当使用权人是本村集体经济组织成员时必填"
  843. readonly
  844. />
  845. <van-field name="radio" label="户口类型" input-align="right" autocomplete="off">
  846. <template #input>
  847. <van-radio-group v-model="form1.hklx" direction="horizontal">
  848. <van-radio name="1">农业</van-radio>
  849. <van-radio name="2">非农业</van-radio>
  850. </van-radio-group>
  851. </template>
  852. </van-field>
  853. <van-field
  854. autocomplete="off"
  855. input-align="right"
  856. v-model="form1.bz"
  857. name="备注"
  858. label="备注"
  859. placeholder="备注"
  860. />
  861. <!-- <div style="text-align:center;overflow:auto;">
  862. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" native-type="button" @click="showPopuphncylist(form1)">查看户内成员列表</van-button>
  863. </div>-->
  864. <div style="margin: 16px;">
  865. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  866. </div>
  867. </van-form>
  868. </div>
  869. </van-popup>
  870. <van-popup v-model="showzrz" style="height:100%;width:100%;">
  871. <div class="bannerBg">
  872. <van-nav-bar
  873. style="background:transparent;border-bottom-width:0;"
  874. @click-left="showzrz=false"
  875. >
  876. <template #left>
  877. <van-icon name="arrow-left" size="18" color="#fff" />
  878. </template>
  879. <template #title>
  880. <p style="color:#fff">自然幢信息</p>
  881. </template>
  882. </van-nav-bar>
  883. </div>
  884. <div style="margin:20px;">
  885. <van-form @submit="onSubmitzrz">
  886. <van-field
  887. autocomplete="off"
  888. input-align="right"
  889. v-model="form3.zjddm"
  890. name="宅基地代码"
  891. label="宅基地代码"
  892. placeholder="宅基地代码"
  893. readonly
  894. required
  895. :rules="[{ required: true, message: '宅基地代码不能为空' }]"
  896. />
  897. <!--<van-field
  898. autocomplete="off"
  899. input-align="right"
  900. v-model="form3.nmfwzh"
  901. name="农民房屋幢号"
  902. label="农民房屋幢号"
  903. placeholder="自动生成"
  904. disabled
  905. />-->
  906. <van-field
  907. autocomplete="off"
  908. input-align="right"
  909. v-model="form3.zrzh"
  910. name="自然幢号"
  911. label="自然幢号"
  912. placeholder="自动生成"
  913. disabled
  914. />
  915. <van-field
  916. autocomplete="off"
  917. input-align="right"
  918. v-model="form3.jgrq"
  919. name="竣工日期"
  920. label="竣工日期"
  921. placeholder="竣工日期"
  922. @click="showPickerjgrq=true"
  923. readonly
  924. />
  925. <van-field
  926. autocomplete="off"
  927. input-align="right"
  928. v-model="form3.jzwgd"
  929. name="建筑物高度"
  930. label="建筑物高度"
  931. placeholder="建筑物高度"
  932. type="number"
  933. />
  934. <van-field
  935. autocomplete="off"
  936. input-align="right"
  937. v-model="form3.zzdmj"
  938. name="幢占地面积(㎡)"
  939. label="幢占地面积(㎡)"
  940. placeholder="幢占地面积(㎡)"
  941. type="number"
  942. required
  943. :rules="[{ required: true, message: '幢占地面积(㎡)不能为空' }]"
  944. />
  945. <van-field
  946. autocomplete="off"
  947. input-align="right"
  948. v-model="form3.zydmj"
  949. name="幢用地面积(㎡)"
  950. label="幢用地面积(㎡)"
  951. placeholder="幢用地面积(㎡)"
  952. type="number"
  953. required
  954. :rules="[{ required: true, message: '幢用地面积(㎡)不能为空' }]"
  955. />
  956. <van-field
  957. autocomplete="off"
  958. input-align="right"
  959. v-model="form3.scjzmj"
  960. name="实测建筑面积(㎡)"
  961. label="实测建筑面积(㎡)"
  962. placeholder="实测建筑面积(㎡)"
  963. type="number"
  964. />
  965. <van-field
  966. autocomplete="off"
  967. input-align="right"
  968. v-model="form3.zcs"
  969. name="总层数"
  970. label="总层数"
  971. placeholder="总层数"
  972. type="number"
  973. required
  974. :rules="[{ required: true, message: '总层数不能为空' }]"
  975. />
  976. <van-field
  977. autocomplete="off"
  978. input-align="right"
  979. v-model="form3.dscs"
  980. name="地上层数"
  981. label="地上层数"
  982. placeholder="地上层数"
  983. type="number"
  984. />
  985. <van-field
  986. autocomplete="off"
  987. input-align="right"
  988. v-model="form3.dxcs"
  989. name="地下层数"
  990. label="地下层数"
  991. placeholder="地下层数"
  992. type="number"
  993. />
  994. <van-field
  995. autocomplete="off"
  996. input-align="right"
  997. v-model="form3.fwjgName"
  998. name="房屋结构"
  999. label="房屋结构"
  1000. placeholder="房屋结构"
  1001. @click="showzrzfwjg = true"
  1002. readonly
  1003. required
  1004. :rules="[{ required: true, message: '房屋结构不能为空' }]"
  1005. />
  1006. <van-field
  1007. autocomplete="off"
  1008. v-model="form3.fwjg"
  1009. style="display:none"
  1010. />
  1011. <van-field
  1012. autocomplete="off"
  1013. input-align="right"
  1014. v-model="form3.sjlyName"
  1015. name="数据来源"
  1016. label="数据来源"
  1017. placeholder="数据来源"
  1018. readonly
  1019. required
  1020. :rules="[{ required: true, message: '数据来源不能为空' }]"
  1021. @click="showzrzsjly=true"
  1022. />
  1023. <van-field
  1024. autocomplete="off"
  1025. v-model="form3.sjly"
  1026. style="display:none"
  1027. />
  1028. <van-field
  1029. autocomplete="off"
  1030. input-align="right"
  1031. v-model="form3.bz"
  1032. name="备注"
  1033. label="备注"
  1034. placeholder="备注"
  1035. />
  1036. <MapGisDrawing ref="drewingClickLoading" :message="form3.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
  1037. <div style="margin: 16px;">
  1038. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  1039. </div>
  1040. </van-form>
  1041. </div>
  1042. </van-popup>
  1043. <van-popup v-model="shownh" style="height:100%;width:100%;">
  1044. <div class="bannerBg">
  1045. <van-nav-bar
  1046. style="background:transparent;border-bottom-width:0;"
  1047. @click-left="shownh=false"
  1048. >
  1049. <template #left>
  1050. <van-icon name="arrow-left" size="18" color="#fff" />
  1051. </template>
  1052. <template #title>
  1053. <p style="color:#fff">{{nhform.id?"":"新增"}}户主信息</p>
  1054. </template>
  1055. </van-nav-bar>
  1056. </div>
  1057. <div style="margin:20px;">
  1058. <van-form @submit="onSubmitnh">
  1059. <van-field
  1060. autocomplete="off"
  1061. input-align="right"
  1062. v-model="nhform.suyqrdm"
  1063. name="所有权人代码"
  1064. label="所有权人代码"
  1065. placeholder="所有权人代码"
  1066. required
  1067. disabled
  1068. :rules="[{ required: true, message: '所有权人代码不能为空' }]"
  1069. />
  1070. <van-field
  1071. autocomplete="off"
  1072. input-align="right"
  1073. v-model="nhform.nhdm"
  1074. name="农户代码"
  1075. label="农户代码"
  1076. placeholder="自动生成"
  1077. disabled
  1078. />
  1079. <van-field
  1080. autocomplete="off"
  1081. input-align="right"
  1082. v-model="nhform.hzxm"
  1083. name="户主姓名"
  1084. label="户主姓名"
  1085. placeholder="户主姓名"
  1086. required
  1087. :rules="[{ required: true, message: '户主姓名不能为空' }]"
  1088. />
  1089. <van-field
  1090. autocomplete="off"
  1091. input-align="right"
  1092. v-model="nhform.hzzjlxName"
  1093. name="户主证件类型"
  1094. label="户主证件类型"
  1095. placeholder="户主证件类型"
  1096. required
  1097. readonly
  1098. :rules="[{ required: true, message: '户主证件类型不能为空' }]"
  1099. @click="showhzzjlx = true"
  1100. />
  1101. <van-field
  1102. autocomplete="off"
  1103. v-model="nhform.hzzjlx"
  1104. style="display:none"
  1105. />
  1106. <van-field
  1107. autocomplete="off"
  1108. v-model="nhform.hzzjhm"
  1109. input-align="right"
  1110. name="户主证件号码"
  1111. label="户主证件号码"
  1112. placeholder="户主证件号码"
  1113. required
  1114. :rules="[{ required: true, message: '户主证件号码不能为空' }]"
  1115. />
  1116. <van-field
  1117. autocomplete="off"
  1118. input-align="right"
  1119. v-model="nhform.txdz"
  1120. name="通讯地址"
  1121. label="通讯地址"
  1122. placeholder="通讯地址"
  1123. required
  1124. :rules="[{ required: true, message: '通讯地址不能为空' }]"
  1125. />
  1126. <van-field
  1127. autocomplete="off"
  1128. input-align="right"
  1129. v-model="nhform.hncysl"
  1130. name="户内成员数量"
  1131. label="户内成员数量"
  1132. placeholder="户内成员数量"
  1133. required
  1134. :rules="[{ required: true, message: '户内成员数量不能为空' }]"
  1135. />
  1136. <van-field name="radio" label="婚姻状况" input-align="right" autocomplete="off">
  1137. <template #input>
  1138. <van-radio-group v-model="nhform.hyzk" direction="horizontal">
  1139. <van-radio v-for="dict in hyzkOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  1140. </van-radio-group>
  1141. </template>
  1142. </van-field>
  1143. <van-field
  1144. autocomplete="off"
  1145. input-align="right"
  1146. v-model="nhform.phone"
  1147. name="电话号码"
  1148. label="电话号码"
  1149. placeholder="电话号码"
  1150. />
  1151. <van-field
  1152. autocomplete="off"
  1153. input-align="right"
  1154. v-model="nhform.occupationName"
  1155. name="职业"
  1156. label="职业"
  1157. placeholder="职业"
  1158. required
  1159. readonly
  1160. :rules="[{ required: true, message: '职业不能为空' }]"
  1161. @click="showhzoccupation = true"
  1162. />
  1163. <van-field
  1164. autocomplete="off"
  1165. v-model="nhform.occupation"
  1166. style="display:none"
  1167. />
  1168. <van-field
  1169. autocomplete="off"
  1170. input-align="right"
  1171. v-model="nhform.jzqkName"
  1172. name="居住情况"
  1173. label="居住情况"
  1174. placeholder="居住情况"
  1175. required
  1176. readonly
  1177. :rules="[{ required: true, message: '居住情况不能为空' }]"
  1178. @click="showhzjzqk = true"
  1179. />
  1180. <van-field
  1181. autocomplete="off"
  1182. v-model="nhform.jzqk"
  1183. style="display:none"
  1184. />
  1185. <van-field
  1186. autocomplete="off"
  1187. input-align="right"
  1188. v-model="nhform.jzhcssfyzfName"
  1189. name="在集镇或城市是否有住房"
  1190. label="在集镇或城市是否有住房"
  1191. placeholder="在集镇或城市是否有住房"
  1192. required
  1193. readonly
  1194. :rules="[{ required: true, message: '在集镇或城市是否有住房不能为空' }]"
  1195. @click="showhzjzhcssfyzf = true"
  1196. />
  1197. <van-field
  1198. autocomplete="off"
  1199. v-model="nhform.jzhcssfyzf"
  1200. style="display:none"
  1201. />
  1202. <van-field name="radio" label="在其他村庄是否有住房" input-align="right" autocomplete="off">
  1203. <template #input>
  1204. <van-radio-group v-model="nhform.zqtczsfyzf" direction="horizontal">
  1205. <van-radio name="Y">是</van-radio>
  1206. <van-radio name="N">否</van-radio>
  1207. </van-radio-group>
  1208. </template>
  1209. </van-field>
  1210. <van-field name="radio" label="是否本村村民" input-align="right" autocomplete="off">
  1211. <template #input>
  1212. <van-radio-group v-model="nhform.sfbccm" direction="horizontal">
  1213. <van-radio name="Y">是</van-radio>
  1214. <van-radio name="N">否</van-radio>
  1215. </van-radio-group>
  1216. </template>
  1217. </van-field>
  1218. <van-field name="radio" label="是否贫困户" input-align="right" autocomplete="off">
  1219. <template #input>
  1220. <van-radio-group v-model="nhform.sfpkh" direction="horizontal">
  1221. <van-radio name="Y">是</van-radio>
  1222. <van-radio name="N">否</van-radio>
  1223. </van-radio-group>
  1224. </template>
  1225. </van-field>
  1226. <van-field name="radio" label="是否五保户" input-align="right" autocomplete="off">
  1227. <template #input>
  1228. <van-radio-group v-model="nhform.sfwbh" direction="horizontal">
  1229. <van-radio name="Y">是</van-radio>
  1230. <van-radio name="N">否</van-radio>
  1231. </van-radio-group>
  1232. </template>
  1233. </van-field>
  1234. <van-field
  1235. autocomplete="off"
  1236. input-align="right"
  1237. v-model="nhform.sjlyName"
  1238. name="数据来源"
  1239. label="数据来源"
  1240. placeholder="数据来源"
  1241. required
  1242. readonly
  1243. :rules="[{ required: true, message: '能为空' }]"
  1244. @click="showhzsjly = true"
  1245. />
  1246. <van-field
  1247. autocomplete="off"
  1248. v-model="nhform.sjly"
  1249. style="display:none"
  1250. />
  1251. <van-field
  1252. autocomplete="off"
  1253. input-align="right"
  1254. v-model="nhform.bz"
  1255. name="备注"
  1256. label="备注"
  1257. placeholder="备注"
  1258. />
  1259. <div style="margin: 16px;">
  1260. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  1261. </div>
  1262. </van-form>
  1263. </div>
  1264. </van-popup>
  1265. <van-popup v-model="showfw" style="height:100%;width:100%;">
  1266. <div class="bannerBg">
  1267. <van-nav-bar
  1268. style="background:transparent;border-bottom-width:0;"
  1269. @click-left="showfw=false"
  1270. >
  1271. <template #left>
  1272. <van-icon name="arrow-left" size="18" color="#fff" />
  1273. </template>
  1274. <template #title>
  1275. <p style="color:#fff">房屋信息</p>
  1276. </template>
  1277. </van-nav-bar>
  1278. </div>
  1279. <div style="margin:20px;">
  1280. <van-form @submit="onSubmitnmfw">
  1281. <!--<van-field
  1282. v-model="nmfwform.ysdm"
  1283. name="要素代码"
  1284. label="要素代码"
  1285. placeholder="要素代码"
  1286. :rules="[{ required: true, message: '' }]"
  1287. />-->
  1288. <van-field
  1289. autocomplete="off"
  1290. v-model="nmfwform.deptId"
  1291. name="组织机构代码"
  1292. label="组织机构代码"
  1293. placeholder="组织机构代码"
  1294. :rules="[{ required: true, message: '' }]"
  1295. style="display:none"
  1296. />
  1297. <van-field
  1298. autocomplete="off"
  1299. input-align="right"
  1300. v-model="nmfwform.zjddm"
  1301. name="宅基地代码"
  1302. label="宅基地代码"
  1303. placeholder="宅基地代码"
  1304. disabled
  1305. required
  1306. :rules="[{ required: true, message: '宅基地代码不能为空' }]"
  1307. />
  1308. <van-field
  1309. autocomplete="off"
  1310. input-align="right"
  1311. v-model="nmfwform.nmfwdm"
  1312. name="农民房屋代码"
  1313. label="农民房屋代码"
  1314. placeholder="自动生成"
  1315. disabled
  1316. />
  1317. <van-field
  1318. autocomplete="off"
  1319. input-align="right"
  1320. v-model="nmfwform.nhdm"
  1321. name="农户代码"
  1322. label="农户代码"
  1323. placeholder="选择农户代码"
  1324. @click="shownmfwnhdm = true"
  1325. readonly
  1326. required
  1327. :rules="[{ required: true, message: '农户代码不能为空' }]"
  1328. />
  1329. <van-field
  1330. autocomplete="off"
  1331. input-align="right"
  1332. v-model="nmfwform.bdcdyh"
  1333. name="不动产单元号"
  1334. label="不动产单元号"
  1335. placeholder="不动产单元号"
  1336. />
  1337. <van-field
  1338. autocomplete="off"
  1339. input-align="right"
  1340. v-model="nmfwform.nmfwmj"
  1341. name="农民房屋面积(㎡)"
  1342. label="农民房屋面积(㎡)"
  1343. placeholder="农民房屋面积(㎡)"
  1344. type="number"
  1345. required
  1346. :rules="[{ required: true, message: '农民房屋面积(㎡)不能为空' }]"
  1347. />
  1348. <van-field
  1349. autocomplete="off"
  1350. input-align="right"
  1351. v-model="nmfwform.fwbm"
  1352. name="房屋编码"
  1353. label="房屋编码"
  1354. placeholder="房屋编码"
  1355. />
  1356. <van-field
  1357. autocomplete="off"
  1358. input-align="right"
  1359. v-model="nmfwform.zrzh"
  1360. name="自然幢号"
  1361. label="自然幢号"
  1362. placeholder="自然幢号"
  1363. readonly
  1364. @click="showzrzh = true"
  1365. />
  1366. <van-field
  1367. autocomplete="off"
  1368. input-align="right"
  1369. v-model="nmfwform.nmfwzh"
  1370. name="农民房屋幢号"
  1371. label="农民房屋幢号"
  1372. placeholder="自动生成"
  1373. disabled
  1374. />
  1375. <van-field
  1376. autocomplete="off"
  1377. input-align="right"
  1378. v-model="nmfwform.ch"
  1379. name="层号"
  1380. label="层号"
  1381. placeholder="层号"
  1382. />
  1383. <van-field
  1384. autocomplete="off"
  1385. input-align="right"
  1386. v-model="nmfwform.sjc"
  1387. name="实际层"
  1388. label="实际层"
  1389. placeholder="实际层"
  1390. />
  1391. <van-field
  1392. autocomplete="off"
  1393. input-align="right"
  1394. v-model="nmfwform.myc"
  1395. name="名义层"
  1396. label="名义层"
  1397. placeholder="名义层"
  1398. />
  1399. <van-field
  1400. autocomplete="off"
  1401. input-align="right"
  1402. v-model="nmfwform.zl"
  1403. name="坐落"
  1404. label="坐落"
  1405. placeholder="坐落"required
  1406. :rules="[{ required: true, message: '坐落不能为空' }]"
  1407. />
  1408. <van-field
  1409. autocomplete="off"
  1410. input-align="right"
  1411. v-model="nmfwform.sjcs"
  1412. name="实际层数"
  1413. label="实际层数"
  1414. placeholder="实际层数"
  1415. />
  1416. <van-field
  1417. autocomplete="off"
  1418. input-align="right"
  1419. v-model="nmfwform.hh"
  1420. name="户号"
  1421. label="户号"
  1422. placeholder="户号"
  1423. />
  1424. <van-field
  1425. autocomplete="off"
  1426. input-align="right"
  1427. v-model="nmfwform.hxName"
  1428. name="户型"
  1429. label="户型"
  1430. placeholder="户型"
  1431. @click="showhx=true"
  1432. readonly
  1433. />
  1434. <van-field
  1435. autocomplete="off"
  1436. v-model="nmfwform.hx"
  1437. style="display:none"
  1438. />
  1439. <van-field
  1440. autocomplete="off"
  1441. input-align="right"
  1442. v-model="nmfwform.hxjgName"
  1443. name="户型结构"
  1444. label="户型结构"
  1445. placeholder="户型结构"
  1446. @click="showhxjg=true"
  1447. readonly
  1448. />
  1449. <van-field
  1450. autocomplete="off"
  1451. v-model="nmfwform.hxjg"
  1452. style="display:none"
  1453. />
  1454. <van-field
  1455. autocomplete="off"
  1456. input-align="right"
  1457. v-model="nmfwform.fwjgName"
  1458. name="房屋结构"
  1459. label="房屋结构"
  1460. placeholder="房屋结构"
  1461. @click="showfwjg=true"
  1462. readonly
  1463. />
  1464. <van-field
  1465. autocomplete="off"
  1466. v-model="nmfwform.fwjg"
  1467. style="display:none"
  1468. />
  1469. <van-field
  1470. input-align="right"
  1471. v-model="nmfwform.fwytName"
  1472. name="房屋用途"
  1473. label="房屋用途"
  1474. placeholder="房屋用途"
  1475. @click="showfwyt=true"
  1476. readonly
  1477. />
  1478. <van-field
  1479. autocomplete="off"
  1480. v-model="nmfwform.fwyt"
  1481. style="display:none"
  1482. />
  1483. <van-field
  1484. autocomplete="off"
  1485. input-align="right"
  1486. v-model="nmfwform.fjzdmj"
  1487. name="房屋占地面积(㎡)"
  1488. label="房屋占地面积(㎡)"
  1489. placeholder="房屋占地面积(㎡)"
  1490. />
  1491. <van-field
  1492. autocomplete="off"
  1493. input-align="right"
  1494. v-model="nmfwform.jzmj"
  1495. name="建筑面积(㎡)"
  1496. label="建筑面积(㎡)"
  1497. placeholder="建筑面积(㎡)"
  1498. type="number"
  1499. />
  1500. <van-field
  1501. autocomplete="off"
  1502. input-align="right"
  1503. v-model="nmfwform.zsh"
  1504. name="证书号"
  1505. label="证书号"
  1506. placeholder="证书号"
  1507. />
  1508. <van-field
  1509. autocomplete="off"
  1510. input-align="right"
  1511. v-model="nmfwform.djjg"
  1512. name="登记机构"
  1513. label="登记机构"
  1514. placeholder="登记机构"
  1515. />
  1516. <van-field
  1517. autocomplete="off"
  1518. input-align="right"
  1519. v-model="nmfwform.djsj"
  1520. name="登记时间"
  1521. label="登记时间"
  1522. placeholder="登记时间"
  1523. @click="showPickerdjsj=true"
  1524. readonly
  1525. />
  1526. <van-field name="radio" label="是否纠纷" input-align="right" autocomplete="off">
  1527. <template #input>
  1528. <van-radio-group v-model="nmfwform.sfjf" direction="horizontal">
  1529. <van-radio name="Y">是</van-radio>
  1530. <van-radio name="N">否</van-radio>
  1531. </van-radio-group>
  1532. </template>
  1533. </van-field>
  1534. <van-field name="radio" label="是否查封" input-align="right" autocomplete="off">
  1535. <template #input>
  1536. <van-radio-group v-model="nmfwform.sfcf" direction="horizontal">
  1537. <van-radio name="Y">是</van-radio>
  1538. <van-radio name="N">否</van-radio>
  1539. </van-radio-group>
  1540. </template>
  1541. </van-field>
  1542. <van-field
  1543. autocomplete="off"
  1544. input-align="right"
  1545. v-model="nmfwform.cfqssj"
  1546. name="查封起始时间"
  1547. label="查封起始时间"
  1548. placeholder="查封起始时间"
  1549. readonly
  1550. @click="showPickercfqssj=true"
  1551. />
  1552. <van-field
  1553. autocomplete="off"
  1554. input-align="right"
  1555. v-model="nmfwform.cfjssj"
  1556. name="查封结束时间"
  1557. label="查封结束时间"
  1558. placeholder="查封结束时间"
  1559. readonly
  1560. @click="showPickercfjssj=true"
  1561. />
  1562. <van-field
  1563. autocomplete="off"
  1564. input-align="right"
  1565. v-model="nmfwform.fwlxName"
  1566. name="房屋类型"
  1567. label="房屋类型"
  1568. placeholder="房屋类型"
  1569. readonly
  1570. @click="showfwlx=true"
  1571. />
  1572. <van-field
  1573. autocomplete="off"
  1574. v-model="nmfwform.fwlx"
  1575. style="display:none"
  1576. />
  1577. <van-field
  1578. autocomplete="off"
  1579. input-align="right"
  1580. v-model="nmfwform.sjlyName"
  1581. name="数据来源"
  1582. label="数据来源"
  1583. placeholder="数据来源"
  1584. readonly
  1585. @click="shownmfwsjly=true"
  1586. />
  1587. <van-field
  1588. autocomplete="off"
  1589. v-model="nmfwform.sjly"
  1590. style="display:none"
  1591. />
  1592. <van-field
  1593. autocomplete="off"
  1594. input-align="right"
  1595. v-model="nmfwform.qxdm"
  1596. name="区县代码"
  1597. label="区县代码"
  1598. placeholder="区县代码"
  1599. />
  1600. <van-field
  1601. autocomplete="off"
  1602. input-align="right"
  1603. v-model="nmfwform.lyzkName"
  1604. name="利用状况"
  1605. label="利用状况"
  1606. placeholder="利用状况"
  1607. readonly
  1608. @click="shownmfwlyzk=true"
  1609. />
  1610. <van-field
  1611. autocomplete="off"
  1612. v-model="nmfwform.lyzk"
  1613. style="display:none"
  1614. />
  1615. <van-field
  1616. autocomplete="off"
  1617. input-align="right"
  1618. v-model="nmfwform.xzyy"
  1619. name="闲置原因"
  1620. label="闲置原因"
  1621. placeholder="闲置原因"
  1622. />
  1623. <van-field
  1624. autocomplete="off"
  1625. input-align="right"
  1626. v-model="nmfwform.phlymsName"
  1627. name="盘活利用模式"
  1628. label="盘活利用模式"
  1629. placeholder="盘活利用模式"
  1630. readonly
  1631. @click="showphlyms=true"
  1632. />
  1633. <van-field
  1634. autocomplete="off"
  1635. v-model="nmfwform.phlyms"
  1636. style="display:none"
  1637. />
  1638. <van-field
  1639. autocomplete="off"
  1640. input-align="right"
  1641. v-model="nmfwform.jznd"
  1642. name="建筑年代"
  1643. label="建筑年代"
  1644. placeholder="建筑年代"
  1645. />
  1646. <van-field name="radio" label="是否发证" input-align="right" autocomplete="off">
  1647. <template #input>
  1648. <van-radio-group v-model="nmfwform.sffz" direction="horizontal">
  1649. <van-radio name="Y">是</van-radio>
  1650. <van-radio name="N">否</van-radio>
  1651. </van-radio-group>
  1652. </template>
  1653. </van-field>
  1654. <van-field name="radio" label="是否与其他人共有" input-align="right" autocomplete="off">
  1655. <template #input>
  1656. <van-radio-group v-model="nmfwform.isCommon" direction="horizontal">
  1657. <van-radio name="Y">是</van-radio>
  1658. <van-radio name="N">否</van-radio>
  1659. </van-radio-group>
  1660. </template>
  1661. </van-field>
  1662. <van-field
  1663. autocomplete="off"
  1664. input-align="right"
  1665. v-model="nmfwform.fwztName"
  1666. name="房屋状态"
  1667. label="房屋状态"
  1668. placeholder="房屋状态"
  1669. @click="shownmfwfwzt = true"
  1670. />
  1671. <van-field
  1672. autocomplete="off"
  1673. v-model="nmfwform.fwzt"
  1674. style="display:none"
  1675. />
  1676. <van-field name="radio" label="是否抵押" input-align="right" autocomplete="off">
  1677. <template #input>
  1678. <van-radio-group v-model="nmfwform.isMortgage" direction="horizontal">
  1679. <van-radio name="Y">是</van-radio>
  1680. <van-radio name="N">否</van-radio>
  1681. </van-radio-group>
  1682. </template>
  1683. </van-field>
  1684. <van-field
  1685. autocomplete="off"
  1686. v-if="nmfwform.isMortgage=='Y'"
  1687. input-align="right"
  1688. v-model="nmfwform.mortgageMan"
  1689. name="抵押权利人"
  1690. label="抵押权利人"
  1691. placeholder="抵押权利人"
  1692. />
  1693. <van-field
  1694. autocomplete="off"
  1695. v-if="nmfwform.isMortgage=='Y'"
  1696. input-align="right"
  1697. v-model="nmfwform.mortgageMoney"
  1698. name="抵押金额"
  1699. label="抵押金额( 元)"
  1700. placeholder="抵押金额"
  1701. type="number"
  1702. />
  1703. <van-field
  1704. autocomplete="off"
  1705. input-align="right"
  1706. v-model="nmfwform.zwlxsj1"
  1707. name="债务履行开始时间"
  1708. label="债务履行开始时间"
  1709. placeholder="债务履行开始时间"
  1710. @click="showPickerzwlxsj1=true"
  1711. />
  1712. <van-field
  1713. autocomplete="off"
  1714. input-align="right"
  1715. v-model="nmfwform.zwlxsj2"
  1716. name="债务履行结束时间"
  1717. label="债务履行结束时间"
  1718. placeholder="债务履行结束时间"
  1719. @click="showPickerzwlxsj2=true"
  1720. />
  1721. <van-field
  1722. autocomplete="off"
  1723. input-align="right"
  1724. v-model="nmfwform.eay"
  1725. name="年收益"
  1726. label="年收益"
  1727. placeholder="年收益"
  1728. />
  1729. <van-field name="radio" label="流转意向" input-align="right" autocomplete="off">
  1730. <template #input>
  1731. <van-radio-group v-model="nmfwform.lzyx" direction="horizontal">
  1732. <van-radio name="1">有</van-radio>
  1733. <van-radio name="0">无</van-radio>
  1734. </van-radio-group>
  1735. </template>
  1736. </van-field>
  1737. <van-field name="radio" label="有偿退出意向" input-align="right" autocomplete="off">
  1738. <template #input>
  1739. <van-radio-group v-model="nmfwform.yctcyx" direction="horizontal">
  1740. <van-radio name="1">有</van-radio>
  1741. <van-radio name="0">无</van-radio>
  1742. </van-radio-group>
  1743. </template>
  1744. </van-field>
  1745. <van-field
  1746. autocomplete="off"
  1747. input-align="right"
  1748. v-model="nmfwform.bccjl"
  1749. name="被惩处经历"
  1750. label="被惩处经历"
  1751. placeholder="被惩处经历"
  1752. />
  1753. <van-field
  1754. autocomplete="off"
  1755. input-align="right"
  1756. v-model="nmfwform.bccbz"
  1757. name="被惩处备注"
  1758. label="被惩处备注"
  1759. placeholder="被惩处备注"
  1760. />
  1761. <van-field
  1762. autocomplete="off"
  1763. input-align="right"
  1764. v-model="nmfwform.qslyName"
  1765. name="权属来源"
  1766. label="权属来源"
  1767. placeholder="权属来源"
  1768. @click="shownmfwqsly=true"
  1769. />
  1770. <van-field
  1771. autocomplete="off"
  1772. v-model="nmfwform.qsly"
  1773. style="display:none"
  1774. />
  1775. <van-field name="radio" label="是否扩建改建" input-align="right" autocomplete="off">
  1776. <template #input>
  1777. <van-radio-group v-model="nmfwform.sfkjgj" direction="horizontal">
  1778. <van-radio name="Y">是</van-radio>
  1779. <van-radio name="N">否</van-radio>
  1780. </van-radio-group>
  1781. </template>
  1782. </van-field>
  1783. <van-field
  1784. autocomplete="off"
  1785. input-align="right"
  1786. v-model="nmfwform.pzsjName"
  1787. name="批准时间"
  1788. label="批准时间"
  1789. placeholder="批准时间"
  1790. @click="showPickerpzsj=true"
  1791. />
  1792. <van-field
  1793. autocomplete="off"
  1794. v-model="nmfwform.pzsj"
  1795. style="display:none"
  1796. />
  1797. <van-field name="radio" label="批准单位" input-align="right" autocomplete="off">
  1798. <template #input>
  1799. <van-radio-group v-model="nmfwform.pzdw" direction="horizontal">
  1800. <van-radio :name="'1'">县政府</van-radio>
  1801. <van-radio :name="'2'">乡政府</van-radio>
  1802. </van-radio-group>
  1803. </template>
  1804. </van-field>
  1805. <van-field
  1806. autocomplete="off"
  1807. input-align="right"
  1808. v-model="nmfwform.tdzkName"
  1809. name="审批或建设前土地状况"
  1810. label="审批或建设前土地状况"
  1811. placeholder="审批或建设前土地状况"
  1812. @click="shownmfwtdzk=true"
  1813. />
  1814. <van-field
  1815. autocomplete="off"
  1816. v-model="nmfwform.tdzk"
  1817. style="display:none"
  1818. />
  1819. <van-field
  1820. autocomplete="off"
  1821. input-align="right"
  1822. v-model="nmfwform.bz"
  1823. name="备注"
  1824. label="备注"
  1825. placeholder="备注"
  1826. />
  1827. <van-field
  1828. autocomplete="off"
  1829. input-align="right"
  1830. v-model="nmfwform.zjdxctp"
  1831. name="宅基地现场照片"
  1832. label="宅基地现场照片"
  1833. placeholder="宅基地现场照片"
  1834. style="display:none"
  1835. />
  1836. <van-field name="uploader" label="房屋现场照片" autocomplete="off">
  1837. <template #input>
  1838. <van-uploader v-model="fileListfw" :after-read="beforeReadfw" multiple @delete="deleteFilefw" :max-count="4"></van-uploader>
  1839. </template>
  1840. </van-field>
  1841. <div style="margin: 16px;">
  1842. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  1843. </div>
  1844. </van-form>
  1845. </div>
  1846. </van-popup>
  1847. <van-popup v-model="showhjszss" position="bottom">
  1848. <van-picker
  1849. show-toolbar
  1850. :columns="hjszssOptions"
  1851. value-key="dictLabel"
  1852. @confirm="onConfirmhjszss"
  1853. @cancel="showhjszss = false"
  1854. />
  1855. </van-popup>
  1856. <van-popup v-model="showsjly" position="bottom">
  1857. <van-picker
  1858. show-toolbar
  1859. :columns="sjlyOptions"
  1860. value-key="dictLabel"
  1861. @confirm="onConfirmsjly"
  1862. @cancel="showsjly = false"
  1863. />
  1864. </van-popup>
  1865. <van-popup v-model="showzrzh" position="bottom">
  1866. <van-picker
  1867. show-toolbar
  1868. :columns="zrzlist"
  1869. value-key="zrzh"
  1870. @confirm="onConfirmzrzh"
  1871. @cancel="showzrzh = false"
  1872. />
  1873. </van-popup>
  1874. <van-popup v-model="showyt" position="bottom">
  1875. <van-picker
  1876. show-toolbar
  1877. :columns="ytOptions"
  1878. value-key="dictLabel"
  1879. @confirm="onConfirmyt"
  1880. @cancel="showyt = false"
  1881. />
  1882. </van-popup>
  1883. <van-popup v-model="showdj" position="bottom">
  1884. <van-picker
  1885. show-toolbar
  1886. :columns="tddjOptions"
  1887. value-key="dictLabel"
  1888. @confirm="onConfirmdj"
  1889. @cancel="showdj = false"
  1890. />
  1891. </van-popup>
  1892. <van-popup v-model="showlyzk" position="bottom">
  1893. <van-picker
  1894. show-toolbar
  1895. :columns="lyzkOptions"
  1896. value-key="dictLabel"
  1897. @confirm="onConfirmlyzk"
  1898. @cancel="showlyzk = false"
  1899. />
  1900. </van-popup>
  1901. <van-popup v-model="showqllx" position="bottom">
  1902. <van-picker
  1903. show-toolbar
  1904. :columns="qllxOptions"
  1905. value-key="dictLabel"
  1906. @confirm="onConfirmqllx"
  1907. @cancel="showqllx = false"
  1908. />
  1909. </van-popup>
  1910. <van-popup v-model="showqlxz" position="bottom">
  1911. <van-picker
  1912. show-toolbar
  1913. :columns="qlxzOptions"
  1914. value-key="dictLabel"
  1915. @confirm="onConfirmqlxz"
  1916. @cancel="showqlxz = false"
  1917. />
  1918. </van-popup>
  1919. <van-popup v-model="showqlsdfs" position="bottom">
  1920. <van-picker
  1921. show-toolbar
  1922. :columns="qlsdfsOptions"
  1923. value-key="dictLabel"
  1924. @confirm="onConfirmqlsdfs"
  1925. @cancel="showqlsdfs = false"
  1926. />
  1927. </van-popup>
  1928. <van-popup v-model="showshyqrdbzjlx" position="bottom">
  1929. <van-picker
  1930. show-toolbar
  1931. :columns="zjlxOptions"
  1932. value-key="dictLabel"
  1933. @confirm="onConfirmshyqrdbzjlx"
  1934. @cancel="showshyqrdbzjlx = false"
  1935. />
  1936. </van-popup>
  1937. <van-popup v-model="showgyfs" position="bottom">
  1938. <van-picker
  1939. show-toolbar
  1940. :columns="gyfsOptions"
  1941. value-key="dictLabel"
  1942. @confirm="onConfirmgyfs"
  1943. @cancel="showgyfs = false"
  1944. />
  1945. </van-popup>
  1946. <van-popup v-model="showhncyzjlx" position="bottom">
  1947. <van-picker
  1948. show-toolbar
  1949. :columns="zjlxOptions"
  1950. value-key="dictLabel"
  1951. @confirm="onConfirmhncyzjlx"
  1952. @cancel="showhncyzjlx = false"
  1953. />
  1954. </van-popup>
  1955. <van-popup v-model="showyhzgx" position="bottom">
  1956. <van-picker
  1957. show-toolbar
  1958. :columns="yhzgxOptions"
  1959. value-key="dictLabel"
  1960. @confirm="onConfirmyhzgx"
  1961. @cancel="showyhzgx = false"
  1962. />
  1963. </van-popup>
  1964. <van-popup v-model="showqlrlx" position="bottom">
  1965. <van-picker
  1966. show-toolbar
  1967. :columns="qlrlxOptions"
  1968. value-key="dictLabel"
  1969. @confirm="onConfirmqlrlx"
  1970. @cancel="showqlrlx = false"
  1971. />
  1972. </van-popup>
  1973. <div class="nmfw">
  1974. <van-popup v-model:show="showPickerdjsj" position="bottom">
  1975. <van-datetime-picker
  1976. type="date"
  1977. @confirm="onConfirmdjsj"
  1978. @cancel="showPickerdjsj = false"
  1979. />
  1980. </van-popup>
  1981. <van-popup v-model:show="showPickerdjsj" position="bottom">
  1982. <van-datetime-picker
  1983. type="date"
  1984. @confirm="onConfirmdjsj"
  1985. @cancel="showPickerdjsj = false"
  1986. />
  1987. </van-popup>
  1988. <van-popup v-model:show="showPickercfqssj" position="bottom">
  1989. <van-datetime-picker
  1990. type="date"
  1991. @confirm="onConfirmcfqssj"
  1992. @cancel="showPickercfqssj = false"
  1993. />
  1994. </van-popup>
  1995. <van-popup v-model:show="showPickercfjssj" position="bottom">
  1996. <van-datetime-picker
  1997. type="date"
  1998. @confirm="onConfirmcfjssj"
  1999. @cancel="showPickercfjssj = false"
  2000. />
  2001. </van-popup>
  2002. <van-popup v-model:show="showPickerzwlxsj1" position="bottom">
  2003. <van-datetime-picker
  2004. type="date"
  2005. @confirm="onConfirmzwlxsj1"
  2006. @cancel="showPickerzwlxsj1 = false"
  2007. />
  2008. </van-popup>
  2009. <van-popup v-model:show="showPickerzwlxsj2" position="bottom">
  2010. <van-datetime-picker
  2011. type="date"
  2012. @confirm="onConfirmzwlxsj2"
  2013. @cancel="showPickerzwlxsj2 = false"
  2014. />
  2015. </van-popup>
  2016. <van-popup v-model="showhx" position="bottom">
  2017. <van-picker
  2018. show-toolbar
  2019. :columns="hxOptions"
  2020. value-key="dictLabel"
  2021. @confirm="onConfirmhx"
  2022. @cancel="showhx = false"
  2023. />
  2024. </van-popup>
  2025. <van-popup v-model="showhxjg" position="bottom">
  2026. <van-picker
  2027. show-toolbar
  2028. :columns="hxjgOptions"
  2029. value-key="dictLabel"
  2030. @confirm="onConfirmhxjg"
  2031. @cancel="showhxjg = false"
  2032. />
  2033. </van-popup>
  2034. <van-popup v-model="showzrzfwjg" position="bottom">
  2035. <van-picker
  2036. show-toolbar
  2037. :columns="fwjgOptions"
  2038. value-key="dictLabel"
  2039. @confirm="onConfirmzrzfwjg"
  2040. @cancel="showzrzfwjg = false"
  2041. />
  2042. </van-popup>
  2043. <van-popup v-model="showfwjg" position="bottom">
  2044. <van-picker
  2045. show-toolbar
  2046. :columns="fwjgOptions"
  2047. value-key="dictLabel"
  2048. @confirm="onConfirmfwjg"
  2049. @cancel="showfwjg = false"
  2050. />
  2051. </van-popup>
  2052. <van-popup v-model="showfwyt" position="bottom">
  2053. <van-picker
  2054. show-toolbar
  2055. :columns="fwytOptions"
  2056. value-key="dictLabel"
  2057. @confirm="onConfirmfwyt"
  2058. @cancel="showfwyt = false"
  2059. />
  2060. </van-popup>
  2061. <van-popup v-model="showfwlx" position="bottom">
  2062. <van-picker
  2063. show-toolbar
  2064. :columns="fwlxOptions"
  2065. value-key="dictLabel"
  2066. @confirm="onConfirmfwlx"
  2067. @cancel="showfwlx = false"
  2068. />
  2069. </van-popup>
  2070. <van-popup v-model="showfwxz" position="bottom">
  2071. <van-picker
  2072. show-toolbar
  2073. :columns="fwxzOptions"
  2074. value-key="dictLabel"
  2075. @confirm="onConfirmfwxz"
  2076. @cancel="showfwxz = false"
  2077. />
  2078. </van-popup>
  2079. <van-popup v-model="shownmfwsjly" position="bottom">
  2080. <van-picker
  2081. show-toolbar
  2082. :columns="sjlyOptions"
  2083. value-key="dictLabel"
  2084. @confirm="onConfirmnmfwsjly"
  2085. @cancel="shownmfwsjly = false"
  2086. />
  2087. </van-popup>
  2088. <van-popup v-model="shownmfwlyzk" position="bottom">
  2089. <van-picker
  2090. show-toolbar
  2091. :columns="lyzkOptions"
  2092. value-key="dictLabel"
  2093. @confirm="onConfirmnmfwlyzk"
  2094. @cancel="shownmfwlyzk = false"
  2095. />
  2096. </van-popup>
  2097. <van-popup v-model="showphlyms" position="bottom">
  2098. <van-picker
  2099. show-toolbar
  2100. :columns="phlymsOptions"
  2101. value-key="dictLabel"
  2102. @confirm="onConfirmphlyms"
  2103. @cancel="showphlyms = false"
  2104. />
  2105. </van-popup>
  2106. <van-popup v-model="shownmfwfwzt" position="bottom">
  2107. <van-picker
  2108. show-toolbar
  2109. :columns="fwztOptions"
  2110. value-key="dictLabel"
  2111. @confirm="onConfirmnmfwfwzt"
  2112. @cancel="shownmfwfwzt = false"
  2113. />
  2114. </van-popup>
  2115. <van-popup v-model="shownmfwqsly" position="bottom">
  2116. <van-picker
  2117. show-toolbar
  2118. :columns="qslyOptions"
  2119. value-key="dictLabel"
  2120. @confirm="onConfirmnmfwqsly"
  2121. @cancel="shownmfwqsly = false"
  2122. />
  2123. </van-popup>
  2124. <van-popup v-model="showPickerjgrq" position="bottom">
  2125. <van-datetime-picker
  2126. type="date"
  2127. @confirm="onConfirmzrzjgrq"
  2128. @cancel="showPickerjgrq = false"
  2129. :min-date="minDate"
  2130. :max-date="maxDate"
  2131. />
  2132. </van-popup>
  2133. <van-popup v-model="showPickerpzsj" position="bottom">
  2134. <van-picker
  2135. show-toolbar
  2136. :columns="pzsjOptions"
  2137. value-key="dictLabel"
  2138. @confirm="onConfirmpzsj"
  2139. @cancel="showPickerpzsj = false"
  2140. />
  2141. </van-popup>
  2142. <van-popup v-model="shownmfwtdzk" position="bottom">
  2143. <van-picker
  2144. show-toolbar
  2145. :columns="tdzkOptions"
  2146. value-key="dictLabel"
  2147. @confirm="onConfirmnmfwtdzk"
  2148. @cancel="shownmfwtdzk = false"
  2149. />
  2150. </van-popup>
  2151. </div>
  2152. <van-popup v-model="showfssslx" position="bottom">
  2153. <van-picker
  2154. show-toolbar
  2155. :columns="fssslxOptions"
  2156. value-key="dictLabel"
  2157. @confirm="onConfirmfssslx"
  2158. @cancel="showfssslx = false"
  2159. />
  2160. </van-popup>
  2161. <van-popup v-model="showzrzsjly" position="bottom">
  2162. <van-picker
  2163. show-toolbar
  2164. :columns="sjlyOptions"
  2165. value-key="dictLabel"
  2166. @confirm="onConfirmzrzsjly"
  2167. @cancel="showzrzsjly = false"
  2168. />
  2169. </van-popup>
  2170. <van-popup v-model="showqsly" position="bottom">
  2171. <van-picker
  2172. show-toolbar
  2173. :columns="qslyOptions"
  2174. value-key="dictLabel"
  2175. @confirm="onConfirmqsly"
  2176. @cancel="showqsly = false"
  2177. />
  2178. </van-popup>
  2179. <van-popup v-model="showfwzt" position="bottom">
  2180. <van-picker
  2181. show-toolbar
  2182. :columns="fwztOptions"
  2183. value-key="dictLabel"
  2184. @confirm="onConfirmfwzt"
  2185. @cancel="showfwzt = false"
  2186. />
  2187. </van-popup>
  2188. <van-popup v-model="showsyqrnhdmlist" position="bottom">
  2189. <van-search v-model="nhdmValue" placeholder="请输入搜索关键词" @input="getnhdmlist"/>
  2190. <van-picker
  2191. show-toolbar
  2192. :columns="syqrnhdmlist"
  2193. value-key="hzxm"
  2194. @confirm="onConfirmsyqrnhdmlist"
  2195. @cancel="showsyqrnhdmlist = false"
  2196. />
  2197. </van-popup>
  2198. <van-popup v-model="showjzwqk" position="bottom">
  2199. <van-picker
  2200. show-toolbar
  2201. :columns="jzwqkOptions"
  2202. value-key="dictLabel"
  2203. @confirm="onConfirmjzwqk"
  2204. @cancel="showjzwqk = false"
  2205. />
  2206. </van-popup>
  2207. <van-popup v-model="showjglx" position="bottom">
  2208. <van-picker
  2209. show-toolbar
  2210. :columns="jglxOptions"
  2211. value-key="dictLabel"
  2212. @confirm="onConfirmjglx"
  2213. @cancel="showjglx = false"
  2214. />
  2215. </van-popup>
  2216. <van-popup v-model="showtdzk" position="bottom">
  2217. <van-picker
  2218. show-toolbar
  2219. :columns="tdzkOptions"
  2220. value-key="dictLabel"
  2221. @confirm="onConfirmtdzk"
  2222. @cancel="showtdzk = false"
  2223. />
  2224. </van-popup>
  2225. <van-popup v-model="showfsss" style="height:100%;width:100%;">
  2226. <div class="bannerBg">
  2227. <van-nav-bar
  2228. style="background:transparent;border-bottom-width:0;"
  2229. @click-left="showfsss=false"
  2230. >
  2231. <template #left>
  2232. <van-icon name="arrow-left" size="18" color="#fff" />
  2233. </template>
  2234. <template #title>
  2235. <p style="color:#fff">附属设施</p>
  2236. </template>
  2237. </van-nav-bar>
  2238. </div>
  2239. <div style="margin:20px;">
  2240. <van-form @submit="onSubmitfsss">
  2241. <van-field
  2242. autocomplete="off"
  2243. v-model="form4.deptId"
  2244. style="display:none"
  2245. />
  2246. <van-field
  2247. autocomplete="off"
  2248. input-align="right"
  2249. v-model="form4.zjddm"
  2250. name="宅基地代码"
  2251. label="宅基地代码"
  2252. placeholder="宅基地代码"
  2253. required
  2254. :rules="[{ required: true, message: '宅基地代码不能为空' }]"
  2255. />
  2256. <van-field
  2257. autocomplete="off"
  2258. input-align="right"
  2259. v-model="form4.fssslxName"
  2260. name="附属设施类型"
  2261. label="附属设施类型"
  2262. placeholder="附属设施类型"
  2263. required
  2264. :rules="[{ required: true, message: '附属设施类型不能为空' }]"
  2265. @click="showfssslx = true"
  2266. />
  2267. <van-field
  2268. autocomplete="off"
  2269. v-model="form4.fssslx"
  2270. style="display:none"
  2271. />
  2272. <van-field
  2273. autocomplete="off"
  2274. input-align="right"
  2275. v-model="form4.jzmj"
  2276. name="建筑面积(㎡)"
  2277. label="建筑面积(㎡)"
  2278. placeholder="建筑面积(㎡)"
  2279. type="number"
  2280. required
  2281. :rules="[{ required: true, message: '建筑面积(㎡)不能为空' }]"
  2282. />
  2283. <van-field
  2284. autocomplete="off"
  2285. input-align="right"
  2286. v-model="form4.qslyName"
  2287. name="权属来源"
  2288. label="权属来源"
  2289. placeholder="权属来源"
  2290. required
  2291. :rules="[{ required: true, message: '权属来源不能为空' }]"
  2292. @click="showqsly = true"
  2293. />
  2294. <van-field
  2295. autocomplete="off"
  2296. v-model="form4.qsly"
  2297. style="display:none"
  2298. />
  2299. <van-field
  2300. autocomplete="off"
  2301. input-align="right"
  2302. v-model="form4.fwztName"
  2303. name="房屋状态"
  2304. label="房屋状态"
  2305. placeholder="房屋状态"
  2306. required
  2307. :rules="[{ required: true, message: '房屋状态不能为空' }]"
  2308. @click="showfwzt = true"
  2309. />
  2310. <van-field
  2311. autocomplete="off"
  2312. v-model="form4.fwzt"
  2313. style="display:none"
  2314. />
  2315. <van-field name="radio" label="是否审批" input-align="right" autocomplete="off">
  2316. <template #input>
  2317. <van-radio-group v-model="form4.sfsp" direction="horizontal">
  2318. <van-radio name="Y">是</van-radio>
  2319. <van-radio name="N">否</van-radio>
  2320. </van-radio-group>
  2321. </template>
  2322. </van-field>
  2323. <van-field name="radio" label="是否发证" input-align="right" autocomplete="off">
  2324. <template #input>
  2325. <van-radio-group v-model="form4.sffz" direction="horizontal">
  2326. <van-radio name="Y">是</van-radio>
  2327. <van-radio name="N">否</van-radio>
  2328. </van-radio-group>
  2329. </template>
  2330. </van-field>
  2331. <van-field
  2332. autocomplete="off"
  2333. input-align="right"
  2334. v-model="form4.jglxName"
  2335. name="结构类型"
  2336. label="结构类型"
  2337. placeholder="结构类型"
  2338. required
  2339. :rules="[{ required: true, message: '结构类型不能为空' }]"
  2340. @click="showjglx = true"
  2341. />
  2342. <van-field
  2343. autocomplete="off"
  2344. v-model="form4.jglx"
  2345. style="display:none"
  2346. />
  2347. <van-field name="radio" label="是否正在使用" input-align="right" autocomplete="off">
  2348. <template #input>
  2349. <van-radio-group v-model="form4.sfzzsy" direction="horizontal">
  2350. <van-radio name="Y">是</van-radio>
  2351. <van-radio name="N">否</van-radio>
  2352. </van-radio-group>
  2353. </template>
  2354. </van-field>
  2355. <van-field
  2356. autocomplete="off"
  2357. input-align="right"
  2358. v-model="form4.jzwqkName"
  2359. name="建筑物情况"
  2360. label="建筑物情况"
  2361. placeholder="建筑物情况"
  2362. required
  2363. :rules="[{ required: true, message: '建筑物情况不能为空' }]"
  2364. @click="showjzwqk = true"
  2365. />
  2366. <van-field
  2367. autocomplete="off"
  2368. v-model="form4.jzwqk"
  2369. style="display:none"
  2370. />
  2371. <van-field
  2372. autocomplete="off"
  2373. input-align="right"
  2374. v-model="form4.tdzkName"
  2375. name="审批或建设前土地状况"
  2376. label="审批或建设前土地状况"
  2377. placeholder="审批或建设前土地状况"
  2378. required
  2379. :rules="[{ required: true, message: '审批或建设前土地状况不能为空' }]"
  2380. @click="showtdzk = true"
  2381. />
  2382. <van-field
  2383. autocomplete="off"
  2384. v-model="form4.tdzk"
  2385. style="display:none"
  2386. />
  2387. <van-field name="radio" label="是否受过处罚" input-align="right" autocomplete="off">
  2388. <template #input>
  2389. <van-radio-group v-model="form4.sfsgcf" direction="horizontal">
  2390. <van-radio name="Y">是</van-radio>
  2391. <van-radio name="N">否</van-radio>
  2392. </van-radio-group>
  2393. </template>
  2394. </van-field>
  2395. <van-field
  2396. autocomplete="off"
  2397. input-align="right"
  2398. v-model="form4.remark"
  2399. name="备注"
  2400. label="备注"
  2401. placeholder="备注"
  2402. />
  2403. <MapGisDrawing ref="drewingClickLoading" :message="form4.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
  2404. <div style="margin: 16px;">
  2405. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  2406. </div>
  2407. </van-form>
  2408. </div>
  2409. </van-popup>
  2410. <van-popup v-model="showhncy" style="height:100%;width:100%;">
  2411. <div class="bannerBg">
  2412. <van-nav-bar
  2413. style="background:transparent;border-bottom-width:0;"
  2414. @click-left="showhncy=false"
  2415. >
  2416. <template #left>
  2417. <van-icon name="arrow-left" size="18" color="#fff" />
  2418. </template>
  2419. <template #title>
  2420. <p style="color:#fff">户内成员</p>
  2421. </template>
  2422. </van-nav-bar>
  2423. </div>
  2424. <div style="margin:20px;">
  2425. <van-form @submit="onSubmithncy">
  2426. <van-field
  2427. autocomplete="off"
  2428. input-align="right"
  2429. v-model="form5.nhdm"
  2430. name="农户代码"
  2431. label="农户代码"
  2432. placeholder="农户代码"
  2433. disabled
  2434. required
  2435. :rules="[{ required: true, message: '农户代码不能为空' }]"
  2436. />
  2437. <van-field
  2438. autocomplete="off"
  2439. input-align="right"
  2440. v-model="form5.xm"
  2441. name="姓名"
  2442. label="姓名"
  2443. placeholder="姓名"
  2444. required
  2445. :rules="[{ required: true, message: '姓名不能为空' }]"
  2446. />
  2447. <van-field
  2448. autocomplete="off"
  2449. input-align="right"
  2450. v-model="form5.zjlxName"
  2451. name="证件类型"
  2452. label="证件类型"
  2453. placeholder="证件类型"
  2454. required
  2455. :rules="[{ required: true, message: '证件类型不能为空' }]"
  2456. readonly
  2457. @click="showhncyzjlx = true"
  2458. />
  2459. <van-field
  2460. autocomplete="off"
  2461. v-model="form5.zjlx"
  2462. style="display:none"
  2463. />
  2464. <van-field
  2465. autocomplete="off"
  2466. input-align="right"
  2467. v-model="form5.yhzgxName"
  2468. name="与户主关系"
  2469. label="与户主关系"
  2470. placeholder="与户主关系"
  2471. required
  2472. readonly
  2473. :rules="[{ required: true, message: '与户主关系不能为空' }]"
  2474. @click="showyhzgx = true"
  2475. />
  2476. <van-field
  2477. autocomplete="off"
  2478. v-model="form5.yhzgx"
  2479. style="display:none"
  2480. />
  2481. <van-field
  2482. autocomplete="off"
  2483. input-align="right"
  2484. v-model="form5.zjhm"
  2485. name="证件号码"
  2486. label="证件号码"
  2487. placeholder="证件号码"
  2488. required
  2489. :rules="[{ required: true, message: '证件号码不能为空' }]"
  2490. />
  2491. <van-field autocomplete="off" name="radio" label="性别" input-align="right" required
  2492. :rules="[{ required: true, message: '性别不能为空' }]">
  2493. <template #input>
  2494. <van-radio-group v-model="form5.xb" direction="horizontal">
  2495. <van-radio name="1">男</van-radio>
  2496. <van-radio name="0">女</van-radio>
  2497. <van-radio name="2">未知</van-radio>
  2498. </van-radio-group>
  2499. </template>
  2500. </van-field>
  2501. <van-field
  2502. autocomplete="off"
  2503. input-align="right"
  2504. v-model="form5.lxdh"
  2505. name="联系电话"
  2506. label="联系电话"
  2507. placeholder="联系电话"
  2508. />
  2509. <van-field name="radio" label="户口类型" input-align="right" autocomplete="off">
  2510. <template #input>
  2511. <van-radio-group v-model="form5.hklx" direction="horizontal">
  2512. <van-radio name="1">农业</van-radio>
  2513. <van-radio name="0">非农业</van-radio>
  2514. </van-radio-group>
  2515. </template>
  2516. </van-field>
  2517. <van-field name="radio" label="婚姻状况" input-align="right" autocomplete="off">
  2518. <template #input>
  2519. <van-radio-group v-model="form5.hyzk" direction="horizontal">
  2520. <van-radio v-for="dict in hyzkOptions" :key="dict.dictValue" :name="dict.dictValue">{{dict.dictLabel}}</van-radio>
  2521. </van-radio-group>
  2522. </template>
  2523. </van-field>
  2524. <van-field name="radio" label="是否本集体经济组织成员" input-align="right" autocomplete="off">
  2525. <template #input>
  2526. <van-radio-group v-model="form5.sfbjtjjzzcy" direction="horizontal">
  2527. <van-radio name="Y">是</van-radio>
  2528. <van-radio name="N">否</van-radio>
  2529. </van-radio-group>
  2530. </template>
  2531. </van-field>
  2532. <van-field
  2533. autocomplete="off"
  2534. input-align="right"
  2535. v-model="form5.cybzName"
  2536. name="成员备注"
  2537. label="成员备注"
  2538. placeholder="成员备注"
  2539. @click="showhncycybz = true"
  2540. />
  2541. <van-field
  2542. autocomplete="off"
  2543. v-model="form5.cybz"
  2544. style="display:none"
  2545. />
  2546. <van-field
  2547. autocomplete="off"
  2548. input-align="right"
  2549. v-model="form5.cybzsm"
  2550. name="成员备注说明"
  2551. label="成员备注说明"
  2552. placeholder="成员备注说明"
  2553. />
  2554. <van-field
  2555. autocomplete="off"
  2556. input-align="right"
  2557. v-model="form5.occupationName"
  2558. name="职业"
  2559. label="职业"
  2560. placeholder="职业"
  2561. required
  2562. :rules="[{ required: true, message: '' }]"
  2563. @click="showhncyoccupation = true"
  2564. />
  2565. <van-field
  2566. autocomplete="off"
  2567. v-model="form5.occupation"
  2568. style="display:none"
  2569. />
  2570. <van-field
  2571. autocomplete="off"
  2572. input-align="right"
  2573. v-model="form5.jzqkName"
  2574. name="居住情况"
  2575. label="居住情况"
  2576. placeholder="居住情况"
  2577. required
  2578. :rules="[{ required: true, message: '' }]"
  2579. @click="showhncyjzqk = true"
  2580. />
  2581. <van-field
  2582. autocomplete="off"
  2583. v-model="form5.jzqk"
  2584. style="display:none"
  2585. />
  2586. <van-field name="radio" label="是否贫困户" input-align="right" autocomplete="off">
  2587. <template #input>
  2588. <van-radio-group v-model="form5.sfpkh" direction="horizontal">
  2589. <van-radio name="Y">是</van-radio>
  2590. <van-radio name="N">否</van-radio>
  2591. </van-radio-group>
  2592. </template>
  2593. </van-field>
  2594. <van-field name="radio" label="是否五保户" input-align="right" autocomplete="off">
  2595. <template #input>
  2596. <van-radio-group v-model="form5.sfwbh" direction="horizontal">
  2597. <van-radio name="Y">是</van-radio>
  2598. <van-radio name="N">否</van-radio>
  2599. </van-radio-group>
  2600. </template>
  2601. </van-field>
  2602. <van-field
  2603. autocomplete="off"
  2604. input-align="right"
  2605. v-model="form5.sjlyName"
  2606. name="数据来源"
  2607. label="数据来源"
  2608. placeholder="数据来源"
  2609. required
  2610. :rules="[{ required: true, message: '' }]"
  2611. @click="showhncysjly = true"
  2612. />
  2613. <van-field
  2614. autocomplete="off"
  2615. v-model="form5.sjly"
  2616. style="display:none"
  2617. />
  2618. <div style="margin: 16px;">
  2619. <van-button round block color="#7AC943" native-type="submit">保存</van-button>
  2620. </div>
  2621. </van-form>
  2622. </div>
  2623. </van-popup>
  2624. <van-popup v-model="showhncylist" style="height:100%;width:100%;">
  2625. <div class="bannerBg">
  2626. <van-nav-bar
  2627. style="background:transparent;border-bottom-width:0;"
  2628. @click-left="showhncylist=false"
  2629. >
  2630. <template #left>
  2631. <van-icon name="arrow-left" size="18" color="#fff" />
  2632. </template>
  2633. <template #title>
  2634. <p style="color:#fff">户内成员信息</p>
  2635. </template>
  2636. </van-nav-bar>
  2637. </div>
  2638. <van-swipe-cell v-for="(item,index) in hncylist" :key="index" @click.native="showPopuphncy(item)" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  2639. <div style="padding:20px;">
  2640. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>
  2641. {{item.xm}}</p>
  2642. <div style="display:flex;line-height:20px">
  2643. <p style="flex:1;text-align:left;">证件号码</p>
  2644. <p style="flex:1;text-align:right;">{{item.zjhm}}</p>
  2645. </div>
  2646. <div style="display:flex;line-height:20px">
  2647. <p style="flex:1;text-align:left;">与户主关系</p>
  2648. <p style="flex:1;text-align:right;">{{yhzgxfy(item.yhzgx)}}</p>
  2649. </div>
  2650. </div>
  2651. <template #right>
  2652. <van-button square text="删除" type="danger" class="delete-button" @click="deletehncy(item.id,index)" />
  2653. </template>
  2654. </van-swipe-cell>
  2655. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;">
  2656. <div style="text-align:center;" >
  2657. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopuphncy('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加户内成员信息</p>
  2658. </div>
  2659. </div>
  2660. </van-popup>
  2661. <van-popup v-model="shownmfw" style="height:100%;width:100%;">
  2662. <div class="bannerBg">
  2663. <van-nav-bar
  2664. style="background:transparent;border-bottom-width:0;"
  2665. @click-left="shownmfw=false"
  2666. >
  2667. <template #left>
  2668. <van-icon name="arrow-left" size="18" color="#fff" />
  2669. </template>
  2670. <template #title>
  2671. <p style="color:#fff">房屋信息列表</p>
  2672. </template>
  2673. </van-nav-bar>
  2674. </div>
  2675. <div style="margin:20px;">
  2676. <p class="title" style="position:relative;padding-left:20px;line-height:32px;">房屋信息</p>
  2677. </div>
  2678. <van-swipe-cell v-for="(item,index) in fwlist" :key="index" style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px auto;background:#fff;">
  2679. <div style="padding:20px;">
  2680. <p style="color:#22B7F2;font-size:20px;line-height:30px;"><van-icon name="wap-home" color="#22b7f2" size="20" style="margin-right:10px;"/>第{{index+1}}号</p>
  2681. <div style="display:flex;line-height:20px">
  2682. <p style="flex:1;text-align:left;">农民房屋幢号</p>
  2683. <p style="flex:1;text-align:right;">{{item.nmfwzh}}</p>
  2684. </div>
  2685. <div style="display:flex;line-height:20px">
  2686. <p style="flex:1;text-align:left;">农民房屋面积(㎡)</p>
  2687. <p style="flex:1;text-align:right;">{{item.nmfwmj}}</p>
  2688. </div>
  2689. <div style="text-align:center;overflow:auto;">
  2690. <van-button plain round color="#7AC943" size="mini" style="margin:0 auto;" @click="showPopupfw(item)">查看房屋信息</van-button>
  2691. </div>
  2692. </div>
  2693. <template #right>
  2694. <van-button square text="删除" type="danger" class="delete-button" @click="deletefw(item.id,index)"/>
  2695. </template>
  2696. </van-swipe-cell>
  2697. <div style="border-radius: 16px;box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.16); width:calc( 100% - 40px);margin:20px;background:#fff;padding:20px;margin-bottom:50px">
  2698. <div style="text-align:center;" >
  2699. <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfw('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加房屋信息</p>
  2700. </div>
  2701. </div>
  2702. </van-popup>
  2703. <van-popup v-model="showesign" position="bottom" closeable
  2704. close-icon="close">
  2705. <van-row style="margin:0 10%">
  2706. <p class="title" style="margin:20px 0;position:relative;padding-left:20px;font-size:0.5rem">电子签名</p>
  2707. </van-row>
  2708. <van-row style="margin: 0 5% 5% 5%;border:1px solid #BFBFBF">
  2709. <vue-esign
  2710. ref="esign"
  2711. class="mySign"
  2712. :width="800"
  2713. :height="500"
  2714. :isCrop="isCrop"
  2715. :lineWidth="lineWidth"
  2716. :lineColor="lineColor"
  2717. :bgColor.sync="bgColor"
  2718. v-if="!resultImg"
  2719. />
  2720. <img :src="resultImg" alt="" width="100%" height="100%" v-if="resultImg"/>
  2721. </van-row>
  2722. <van-row type="flex" justify="center" style="margin-bottom:20px;">
  2723. <van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleReset">清空画板</van-button></van-col>
  2724. <van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleGenerate">保存签名</van-button></van-col>
  2725. </van-row>
  2726. </van-popup>
  2727. <!--户内成员职业-->
  2728. <van-popup v-model="showhncyoccupation" position="bottom">
  2729. <van-picker
  2730. show-toolbar
  2731. :columns="occupationOptions"
  2732. value-key="dictLabel"
  2733. @confirm="onConfirmhncyoccupation"
  2734. @cancel="showhncyoccupation = false"
  2735. />
  2736. </van-popup>
  2737. <!--户内成员成员备注-->
  2738. <van-popup v-model="showhncycybz" position="bottom">
  2739. <van-picker
  2740. show-toolbar
  2741. :columns="cybzOptions"
  2742. value-key="dictLabel"
  2743. @confirm="onConfirmhncycybz"
  2744. @cancel="showhncycybz = false"
  2745. />
  2746. </van-popup>
  2747. <!--户内成员居住情况-->
  2748. <van-popup v-model="showhncyjzqk" position="bottom">
  2749. <van-picker
  2750. show-toolbar
  2751. :columns="jzqkOptions"
  2752. value-key="dictLabel"
  2753. @confirm="onConfirmhncyjzqk"
  2754. @cancel="showhncyjzqk = false"
  2755. />
  2756. </van-popup>
  2757. <!--户主数据来源-->
  2758. <van-popup v-model="showhzsjly" position="bottom">
  2759. <van-picker
  2760. show-toolbar
  2761. :columns="sjlyOptions"
  2762. value-key="dictLabel"
  2763. @confirm="onConfirmhzsjly"
  2764. @cancel="showhzsjly = false"
  2765. />
  2766. </van-popup>
  2767. <!--户内成员数据来源-->
  2768. <van-popup v-model="showhncysjly" position="bottom">
  2769. <van-picker
  2770. show-toolbar
  2771. :columns="sjlyOptions"
  2772. value-key="dictLabel"
  2773. @confirm="onConfirmhncysjly"
  2774. @cancel="showhncysjly = false"
  2775. />
  2776. </van-popup>
  2777. <!--使用权人农民房屋代码列表-->
  2778. <van-popup v-model="showsyqrnmfwdm" position="bottom">
  2779. <van-picker
  2780. show-toolbar
  2781. :columns="fwlist"
  2782. value-key="nmfwdm"
  2783. @confirm="onConfirmsyqrnmfwdm"
  2784. @cancel="showsyqrnmfwdm = false"
  2785. />
  2786. </van-popup>
  2787. <!--农民房屋农户代码列表-->
  2788. <van-popup v-model="shownmfwnhdm" position="bottom">
  2789. <van-search v-model="nhdmValue" placeholder="请输入搜索关键词" @input="getnhdmlist"/>
  2790. <van-picker
  2791. show-toolbar
  2792. :columns="syqrnhdmlist"
  2793. value-key="hzxm"
  2794. @confirm="onConfirmnmfwnhdm"
  2795. @cancel="shownmfwnhdm = false"
  2796. />
  2797. </van-popup>
  2798. <!--使用权人所属行业列表-->
  2799. <van-popup v-model="showsyqrsshy" position="bottom">
  2800. <van-picker
  2801. show-toolbar
  2802. :columns="industryOptions"
  2803. value-key="dictLabel"
  2804. @confirm="onConfirmsyqrsshy"
  2805. @cancel="showsyqrsshy = false"
  2806. />
  2807. </van-popup>
  2808. <!--户主证件类型-->
  2809. <van-popup v-model="showhzzjlx" position="bottom">
  2810. <van-picker
  2811. show-toolbar
  2812. :columns="zjlxOptions"
  2813. value-key="dictLabel"
  2814. @confirm="onConfirmhzzjlx"
  2815. @cancel="showhzzjlx = false"
  2816. />
  2817. </van-popup>
  2818. <!--户主数据来源-->
  2819. <van-popup v-model="showhzsjly" position="bottom">
  2820. <van-picker
  2821. show-toolbar
  2822. :columns="sjlyOptions"
  2823. value-key="dictLabel"
  2824. @confirm="onConfirmhzsjly"
  2825. @cancel="showhzsjly = false"
  2826. />
  2827. </van-popup>
  2828. <!--户主职业-->
  2829. <van-popup v-model="showhzoccupation" position="bottom">
  2830. <van-picker
  2831. show-toolbar
  2832. :columns="occupationOptions"
  2833. value-key="dictLabel"
  2834. @confirm="onConfirmhzoccupation"
  2835. @cancel="showhzoccupation = false"
  2836. />
  2837. </van-popup>
  2838. <!--户主居住情况-->
  2839. <van-popup v-model="showhzjzqk" position="bottom">
  2840. <van-picker
  2841. show-toolbar
  2842. :columns="jzqkOptions"
  2843. value-key="dictLabel"
  2844. @confirm="onConfirmhzjzqk"
  2845. @cancel="showhzjzqk = false"
  2846. />
  2847. </van-popup>
  2848. <!--集市或城市是否有住房-->
  2849. <van-popup v-model="showhzjzhcssfyzf" position="bottom">
  2850. <van-picker
  2851. show-toolbar
  2852. :columns="jzhcssfyzfOptions"
  2853. value-key="dictLabel"
  2854. @confirm="onConfirmhzjzhcssfyzf"
  2855. @cancel="showhzjzhcssfyzf = false"
  2856. />
  2857. </van-popup>
  2858. </div>
  2859. </template>
  2860. <script>
  2861. import {listShyqr,addShyqr,updateShyqr,delShyqr} from "@/api/homesteadSurvey/shyqr";
  2862. import {listZjdzd,getZjdzd,updateZjdzd,addZjdzd,uploadFile,getQueryLand} from "@/api/homesteadSurvey/zjdzd";
  2863. import MapGisDrawing from "@/components/Map/MapGisDrawing";
  2864. import {listZrz,addZrz,updateZrz,getZrzZjdDmList,delZrz,updateZrzZt} from "@/api/homesteadSurvey/zrz";
  2865. import {listNmfw,addNmfw,updateNmfw,delNmfw} from "@/api/homesteadSurvey/nmfw";
  2866. import {listSuyqr,addSuyqr,updateSuyqr} from "@/api/homesteadSurvey/suyqr";
  2867. import {listNhhncy,addNhhncy,updateNhhncy,delNhhncy} from "@/api/homesteadSurvey/nhhncy";
  2868. import {addNh, delNh, exportNh, getNh, listNh, updateNh} from "@/api/homesteadSurvey/nh";
  2869. import {listFsss,addFsss,updateFsss,delFsss,getFsssZjdDmList,updateFsssZt} from "@/api/homesteadSurvey/fsss";
  2870. import { listTown, getTown } from "@/api/homesteadSurvey/town";
  2871. import { listVillage} from "@/api/homesteadSurvey/village";
  2872. import { sysConfig} from "@/api/homesteadSurvey/index";
  2873. import { Notify, Dialog, Toast } from 'vant';
  2874. export default {
  2875. name: "homesteadAdd",
  2876. components: { MapGisDrawing,},
  2877. data() {
  2878. return {
  2879. shownh:false,
  2880. showhzzjlx:false,
  2881. showhzoccupation:false,
  2882. showhzjzqk:false,
  2883. showhzjzhcssfyzf:false,
  2884. showhzsjly:false,
  2885. minDate:new Date(1950,1,1),
  2886. maxDate:new Date(2030,1,1),
  2887. nhdmValue:null,
  2888. active:1,
  2889. // 电子签名
  2890. lineWidth: 6, // 画笔的线条粗细
  2891. lineColor: "#000000", // 画笔的颜色
  2892. bgColor: "", // 画布的背景颜色
  2893. resultImg: "", // 最终画布生成的base64图片
  2894. isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分
  2895. showhjszss:false,
  2896. showdj:false,
  2897. shownmfw:false,
  2898. showsyqrsshy:false,
  2899. shownmfwnhdm:false,
  2900. showsyqrnmfwdm:false,
  2901. showhncysjly:false,
  2902. showhzsjly:false,
  2903. showesign:false,
  2904. showsyqrnhdmlist:false,
  2905. showzrzfwjg:false,
  2906. showzrzh:false,
  2907. showyt:false,
  2908. showqllx:false,
  2909. showqlxz:false,
  2910. showqlsdfs:false,
  2911. showhzjzhcssfyzf:false,
  2912. showhncycybz:false,
  2913. showhncyoccupation:false,
  2914. showhncyjzqk:false,
  2915. showhzoccupation:false,
  2916. showhzjzqk:false,
  2917. showhncyzjlx:false,
  2918. showyhzgx:false,
  2919. showqlrlx:false,
  2920. showshyqrdbzjlx:false,
  2921. showgyfs:false,
  2922. showPickerjgrq:false,
  2923. showPickerdjsj:false,
  2924. showPickerpzsj:false,
  2925. showPickercfqssj:false,
  2926. showPickercfjssj:false,
  2927. showPickerzwlxsj1:false,
  2928. showPickerzwlxsj2:false,
  2929. showhx:false,
  2930. showhxjg:false,
  2931. showfwjg:false,
  2932. showfwyt:false,
  2933. showfwlx:false,
  2934. showfwxz:false,
  2935. shownmfwsjly:false,
  2936. shownmfwlyzk:false,
  2937. shownmfwtdzk:false,
  2938. shownmfwqsly:false,
  2939. shownmfwfwzt:false,
  2940. showphlyms:false,
  2941. showfssslx:false,
  2942. showqsly:false,
  2943. showfwzt:false,
  2944. showjglx:false,
  2945. showjzwqk:false,
  2946. showtdzk:false,
  2947. showsjly:false,
  2948. showzrzsjly:false,
  2949. showPickerxzkssj:false,
  2950. showlyzk:false,
  2951. showsyqr: false,
  2952. showhncylist:false,
  2953. showhncy:false,
  2954. show1: false,
  2955. showzrz: false,
  2956. showfw:false,
  2957. showfsss:false,
  2958. show3: false,
  2959. username: '',
  2960. password: '',
  2961. // 路由数据
  2962. item:{},
  2963. //宅基地表单
  2964. form:{},
  2965. //使用权人表单
  2966. form1:{},
  2967. //自然幢表单
  2968. form3:{},
  2969. //农民房屋表单
  2970. nmfwform:{},
  2971. //附属设施表单
  2972. form4:{},
  2973. //成员信息表单
  2974. form5:{},
  2975. // 农户信息表单
  2976. nhform:{},
  2977. // 使用权人列表
  2978. syqrlist:[],
  2979. // 使用权人农户代码列表
  2980. syqrnhdmlist:[],
  2981. // 户内成员列表
  2982. hncylist:[],
  2983. // 自然幢列表
  2984. zrzlist:[],
  2985. // 房屋列表
  2986. fwlist:[],
  2987. // 附属设施列表
  2988. fssslist:[],
  2989. // 当前利用状况字典
  2990. lyzkOptions: [],
  2991. // 数据来源字典
  2992. sjlyOptions:[],
  2993. // 宅基地取得方式字典
  2994. zjdqdfsOptions:[],
  2995. // 附属设施类型字典
  2996. fssslxOptions:[],
  2997. // 权属来源字典
  2998. qslyOptions:[],
  2999. // 房屋状态字典
  3000. fwztOptions:[],
  3001. // 结构类型字典
  3002. jglxOptions:[],
  3003. // 建筑物情况字典
  3004. jzwqkOptions:[],
  3005. // 土地状况字典
  3006. tdzkOptions:[],
  3007. // 宅基地图片
  3008. fileListzjd:[],
  3009. // 房屋图片
  3010. fileListfw:[],
  3011. // 户型字典
  3012. hxOptions: [],
  3013. // 户型结构字典
  3014. hxjgOptions: [],
  3015. // 房屋结构字典
  3016. fwjgOptions: [],
  3017. // 房屋用途字典
  3018. fwytOptions: [],
  3019. // 房屋类型字典
  3020. fwlxOptions: [],
  3021. // 房屋性质字典
  3022. fwxzOptions: [],
  3023. // 盘活利用模式字典
  3024. phlymsOptions: [],
  3025. // 流转意向字典
  3026. lzyxOptions: [],
  3027. // 有偿退出意向字典
  3028. yctcyxOptions: [],
  3029. // 被惩处经历字典
  3030. bccjlOptions: [],
  3031. // 审批或建设前土地状况字典
  3032. tdzkOptions: [],
  3033. // 批准时间字典
  3034. pzsjOptions: [],
  3035. // 共有方式字典
  3036. gyfsOptions: [],
  3037. // 权利人类型字典
  3038. qlrlxOptions: [],
  3039. // 证件类型字典
  3040. zjlxOptions:[],
  3041. // 与户主关系字典
  3042. yhzgxOptions:[],
  3043. // 权利类型字典
  3044. qllxOptions:[],
  3045. // 权利性质字典
  3046. qlxzOptions:[],
  3047. // 权利设定方式字典
  3048. qlsdfsOptions:[],
  3049. // 用途字典
  3050. ytOptions:[],
  3051. // 职业字典
  3052. occupationOptions:[],
  3053. // 集镇或城市是否有住房
  3054. jzhcssfyzfOptions:[],
  3055. // 婚姻状况
  3056. hyzkOptions:[],
  3057. // 成员备注字典
  3058. cybzOptions:[],
  3059. // 居住情况字典
  3060. jzqkOptions:[],
  3061. // 土地等级字典
  3062. tddjOptions:[],
  3063. // 所属行业
  3064. industryOptions:[],
  3065. // 户籍所在省市
  3066. hjszssOptions:[],
  3067. // 图片上传路径
  3068. baseUrl:"",
  3069. // 自然幢号
  3070. zrzh:null,
  3071. //返回地图页
  3072. backMap:{
  3073. activeBtn:"",
  3074. backMapZjdAData:"",
  3075. deptId:"",
  3076. },
  3077. //记录是否从地图进入
  3078. enterMap: "",
  3079. //记录从地图进入宅基地代码
  3080. enterMapZjddm:"",
  3081. };
  3082. },
  3083. created(){
  3084. this.getDicts("zjdlyzk").then(response => {
  3085. this.lyzkOptions = response.data;
  3086. });
  3087. this.getDicts("acquisition_method").then(response => {
  3088. this.zjdqdfsOptions = response.data;
  3089. });
  3090. this.getDicts("sjly").then(response => {
  3091. this.sjlyOptions = response.data;
  3092. });
  3093. this.getDicts("fsss_type").then(response => {
  3094. this.fssslxOptions = response.data;
  3095. });
  3096. this.getDicts("acquisition_method").then(response => {
  3097. this.qslyOptions = response.data;
  3098. });
  3099. this.getDicts("fwzt").then(response => {
  3100. this.fwztOptions = response.data;
  3101. });
  3102. this.getDicts("house_jglx").then(response => {
  3103. this.jglxOptions = response.data;
  3104. });
  3105. this.getDicts("fwzt").then(response => {
  3106. this.jzwqkOptions = response.data;
  3107. });
  3108. this.getDicts("land_state").then(response => {
  3109. this.tdzkOptions = response.data;
  3110. });
  3111. this.getDicts("approve_time").then(response => {
  3112. this.pzsjOptions = response.data;
  3113. });
  3114. this.getDicts("phlyms").then(response => {
  3115. this.phlymsOptions = response.data;
  3116. });
  3117. this.getDicts("fwlx").then(response => {
  3118. this.fwlxOptions = response.data;
  3119. });
  3120. this.getDicts("fwxz").then(response => {
  3121. this.fwxzOptions = response.data;
  3122. });
  3123. this.getDicts("nmfwhx").then(response => {
  3124. this.hxOptions = response.data;
  3125. });
  3126. this.getDicts("nmfwhxjg").then(response => {
  3127. this.hxjgOptions = response.data;
  3128. });
  3129. this.getDicts("housing_structure").then(response => {
  3130. this.fwjgOptions = response.data;
  3131. });
  3132. this.getDicts("fwyt").then(response => {
  3133. this.fwytOptions = response.data;
  3134. });
  3135. this.getDicts("common_mode").then(response => {
  3136. this.gyfsOptions = response.data;
  3137. });
  3138. this.getDicts("obligee_type").then(response => {
  3139. this.qlrlxOptions = response.data;
  3140. });
  3141. this.getDicts("zjlx").then(response => {
  3142. this.zjlxOptions = response.data;
  3143. });
  3144. this.getDicts("hjszss").then(response => {
  3145. this.hjszssOptions = response.data;
  3146. });
  3147. this.getDicts("family_status").then(response => {
  3148. var arr = [];response.data.forEach(function (item) {
  3149. if (item.dictLabel !== '户主') {
  3150. arr.push(item)
  3151. }
  3152. });
  3153. this.yhzgxOptions = arr;
  3154. /*this.yhzgxOptions = response.data;*/
  3155. });
  3156. this.getDicts("rights_nature").then(response => {
  3157. this.qlxzOptions = response.data;
  3158. });
  3159. this.getDicts("rights_type").then(response => {
  3160. this.qllxOptions = response.data;
  3161. });
  3162. this.getDicts("right_setting_mode").then(response => {
  3163. this.qlsdfsOptions = response.data;
  3164. });
  3165. this.getDicts("land_use").then(response => {
  3166. this.ytOptions = response.data;
  3167. });
  3168. this.getDicts("jzhcssfyzf").then(response => {
  3169. this.jzhcssfyzfOptions = response.data;
  3170. });
  3171. this.getDicts("occupation").then(response => {
  3172. this.occupationOptions = response.data;
  3173. });
  3174. this.getDicts("hyzk").then(response => {
  3175. this.hyzkOptions = response.data;
  3176. });
  3177. this.getDicts("cybz").then(response => {
  3178. this.cybzOptions = response.data;
  3179. });
  3180. this.getDicts("living_condition").then(response => {
  3181. this.jzqkOptions = response.data;
  3182. });
  3183. this.getDicts("tddj").then(response => {
  3184. this.tddjOptions = response.data;
  3185. });
  3186. this.getDicts("Industry").then(response => {
  3187. this.industryOptions = response.data;
  3188. });
  3189. if(this.$cookies.get("search")){
  3190. if(this.$cookies.get("search").active!=null){
  3191. //返回地图值记录----start
  3192. this.backMap.activeBtn = 4;
  3193. this.enterMap =1;
  3194. this.backMap.backMapZjdAData =this.$cookies.get("search").mapZjdAData;
  3195. this.backMap.deptId = this.$cookies.get("search").mapZjdAData.deptId;
  3196. this.enterMapZjddm = this.$cookies.get("search").mapZjdAData.zjddm;
  3197. //返回地图值记录----end
  3198. this.active = this.$cookies.get("search").active;
  3199. this.item = this.$cookies.get("search").mapZjdAData;
  3200. this.form = this.$cookies.get("search").mapZjdAData;
  3201. let zrz = this.$cookies.get("search").mapZrzAData;
  3202. let fsss = this.$cookies.get("search").mapFsssAData;
  3203. this.getnhdmlist();
  3204. this.getBaseUrl();
  3205. this.getZjd();
  3206. if(this.$cookies.get("search").active=="3"){
  3207. this.showzrz= true
  3208. this.getZrzList()
  3209. setTimeout(() => {
  3210. this.showPopupzrz(zrz)
  3211. }, 500);
  3212. }else if(this.$cookies.get("search").active=="4"){
  3213. this.showfsss= true
  3214. this.getFsssList()
  3215. setTimeout(() => {
  3216. this.showPopupfsss(fsss)
  3217. }, 500);
  3218. }
  3219. }else{
  3220. this.item = this.$cookies.get("search")
  3221. this.getBaseUrl();
  3222. this.getnhdmlist();
  3223. this.getZjd();
  3224. }
  3225. }else{
  3226. this.$set(this.item,"deptId",this.$cookies.get("item").deptId)
  3227. this.getBaseUrl();
  3228. this.getnhdmlist();
  3229. this.getZjd();
  3230. }
  3231. },
  3232. mounted(){
  3233. if(this.active ==1){
  3234. this.form.theGeom = this.item.theGeom;
  3235. this.mapClickLoading();
  3236. }
  3237. },
  3238. methods: {
  3239. shownmfwlist(item){
  3240. this.zrzh = item.zrzh
  3241. this.shownmfw = true
  3242. this.fwlist=[]
  3243. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  3244. let params = {
  3245. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  3246. deptId:this.item.deptId,
  3247. zrzh:this.zrzh
  3248. }
  3249. listNmfw(params).then(r => {
  3250. this.fwlist = r.rows
  3251. })
  3252. }
  3253. },
  3254. getBaseUrl(){
  3255. let params={
  3256. configKey: "system.attachment.url"}
  3257. sysConfig(params).then(response => {
  3258. this.baseUrl = response.rows[0].configValue
  3259. })
  3260. },
  3261. // 验证
  3262. validator(val){
  3263. console.log(val.length)
  3264. if(val>1||val<0||val.length>4){
  3265. return false
  3266. }else{
  3267. return true
  3268. }
  3269. },
  3270. validator1(val){
  3271. console.log(val)
  3272. if(val>=1000||val<0||val.length>6){
  3273. return false
  3274. }else{
  3275. return true
  3276. }
  3277. },
  3278. // 所有权人农户代码列表
  3279. getnhdmlist(){
  3280. let params = {
  3281. "deptId" : this.item.deptId,
  3282. "nhValue":this.nhdmValue
  3283. }
  3284. listNh(params).then((response) => {
  3285. this.syqrnhdmlist = response.rows
  3286. });
  3287. },
  3288. //删除户内成员
  3289. deletehncy(id,index){
  3290. Dialog.confirm({
  3291. title: '警告',
  3292. message: '删除后无法恢复,确认删除么?',
  3293. })
  3294. .then(() => {
  3295. // on confirm
  3296. delNhhncy(id).then(res => {
  3297. if(res.code=="200"){
  3298. this.hncylist.splice(index,1);
  3299. }
  3300. })
  3301. })
  3302. .catch(() => {
  3303. // on cancel
  3304. });
  3305. },
  3306. // 删除附属设施
  3307. deletefsss(id,index){
  3308. Dialog.confirm({
  3309. title: '警告',
  3310. message: '删除后无法恢复,确认删除么?',
  3311. })
  3312. .then(() => {
  3313. // on confirm
  3314. delFsss(id).then(res => {
  3315. if(res.code=="200"){
  3316. this.fssslist.splice(index,1);
  3317. }
  3318. })
  3319. })
  3320. .catch(() => {
  3321. // on cancel
  3322. });
  3323. },// 删除自然幢
  3324. deletezrz(id,index){
  3325. Dialog.confirm({
  3326. title: '警告',
  3327. message: '删除后无法恢复,确认删除么?',
  3328. })
  3329. .then(() => {
  3330. // on confirm
  3331. delZrz(id).then(res => {
  3332. if(res.code=="200"){
  3333. this.zrzlist.splice(index,1);
  3334. }
  3335. })
  3336. })
  3337. .catch(() => {
  3338. // on cancel
  3339. });
  3340. },
  3341. // 删除使用权人
  3342. deletesyqr(id,index){
  3343. Dialog.confirm({
  3344. title: '警告',
  3345. message: '删除后无法恢复,确认删除么?',
  3346. })
  3347. .then(() => {
  3348. // on confirm
  3349. delShyqr(id).then(res => {
  3350. if(res.code=="200"){
  3351. this.syqrlist.splice(index,1);
  3352. }
  3353. })
  3354. })
  3355. .catch(() => {
  3356. // on cancel
  3357. });
  3358. },
  3359. // 与户主关系翻译
  3360. yhzgxfy(value){
  3361. let label
  3362. this.yhzgxOptions.map(res => {
  3363. if(res.dictValue ==value){
  3364. label = res.dictLabel
  3365. }
  3366. })
  3367. return label
  3368. },
  3369. // 附属设施类型翻译
  3370. fssslxfy(value){
  3371. let label
  3372. this.fssslxOptions.map(res => {
  3373. if(res.dictValue ==value){
  3374. label = res.dictLabel
  3375. }
  3376. })
  3377. return label
  3378. },
  3379. // 建筑物情况翻译
  3380. jzwqkfy(value){
  3381. let label
  3382. this.jzwqkOptions.map(res => {
  3383. if(res.dictValue ==value){
  3384. label = res.dictLabel
  3385. }
  3386. })
  3387. return label
  3388. },
  3389. // 图片上传前
  3390. beforeReadzjd(file){
  3391. // 创建Canvas对象(画布)
  3392. let canvas = document.createElement('canvas')
  3393. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3394. let context = canvas.getContext('2d')
  3395. // 创建新的图片对象
  3396. let img = new Image()
  3397. // 指定图片的DataURL(图片的base64编码数据)
  3398. img.src = file.content
  3399. // 监听浏览器加载图片完成,然后进行进行绘制
  3400. const height = 166
  3401. const width = 316
  3402. img.onload = () => {
  3403. const h = img.height
  3404. const w = img.width
  3405. let ch = img.height/2
  3406. let cw = img.width/2
  3407. let canvas = document.createElement('canvas')
  3408. let ctx = canvas.getContext('2d')
  3409. canvas.height = ch
  3410. canvas.width = cw
  3411. ctx.clearRect(0,0,cw,ch)
  3412. ctx.drawImage(img,0,0,cw,ch)
  3413. let base_img = canvas.toDataURL('image/jpeg')
  3414. const blobBin = atob(base_img.split(',')[1])
  3415. let d = []
  3416. for (let i=0;i<blobBin.length;i++){
  3417. d.push(blobBin.charCodeAt(i))
  3418. }
  3419. const data2 = new FormData();
  3420. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3421. uploadFile(data2).then(res => {
  3422. console.log(res)
  3423. if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){
  3424. this.form.zjdxctp = this.form.zjdxctp + "," + res.fileName
  3425. }else{
  3426. this.form.zjdxctp = res.fileName
  3427. }
  3428. })
  3429. }
  3430. },
  3431. // 图片删除
  3432. deleteFilezjd(file){
  3433. console.log(this.form.zjdxctp,file.baseUrl)
  3434. let url = ","+file.baseUrl
  3435. let url1 = file.baseUrl+","
  3436. this.form.zjdxctp = this.form.zjdxctp.replaceAll(url,"")
  3437. this.form.zjdxctp = this.form.zjdxctp.replaceAll(url1,"")
  3438. },
  3439. // 图片上传前
  3440. beforeReadfw(file){
  3441. // 创建Canvas对象(画布)
  3442. let canvas = document.createElement('canvas')
  3443. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3444. let context = canvas.getContext('2d')
  3445. // 创建新的图片对象
  3446. let img = new Image()
  3447. // 指定图片的DataURL(图片的base64编码数据)
  3448. img.src = file.content
  3449. // 监听浏览器加载图片完成,然后进行进行绘制
  3450. const height = 166
  3451. const width = 316
  3452. img.onload = () => {
  3453. const h = img.height
  3454. const w = img.width
  3455. let ch = img.height/2
  3456. let cw = img.width/2
  3457. let canvas = document.createElement('canvas')
  3458. let ctx = canvas.getContext('2d')
  3459. canvas.height = ch
  3460. canvas.width = cw
  3461. ctx.clearRect(0,0,cw,ch)
  3462. ctx.drawImage(img,0,0,cw,ch)
  3463. let base_img = canvas.toDataURL('image/jpeg')
  3464. const blobBin = atob(base_img.split(',')[1])
  3465. let d = []
  3466. for (let i=0;i<blobBin.length;i++){
  3467. d.push(blobBin.charCodeAt(i))
  3468. }
  3469. const data2 = new FormData();
  3470. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3471. uploadFile(data2).then(res => {
  3472. if(this.form5.zjdxctp!=null&&this.form5.zjdxctp!=""){
  3473. this.form5.zjdxctp = this.form5.zjdxctp + "," + res.fileName
  3474. }else{
  3475. this.form5.zjdxctp = res.fileName
  3476. }
  3477. })
  3478. }
  3479. },
  3480. // 图片删除
  3481. deleteFilefw(file){
  3482. let url = ","+file.baseUrl
  3483. let url1 = file.baseUrl+","
  3484. this.form5.zjdxctp = this.form5.zjdxctp.replaceAll(url,"")
  3485. this.form5.zjdxctp = this.form5.zjdxctp.replaceAll(url1,"")
  3486. },
  3487. onConfirmhzsjly(value){
  3488. this.nhform.sjlyName = value.dictLabel
  3489. this.nhform.sjly = value.dictValue
  3490. this.showhzsjly= false
  3491. },
  3492. onConfirmhzjzqk(value){
  3493. this.nhform.jzqkName = value.dictLabel
  3494. this.nhform.jzqk = value.dictValue
  3495. this.showhzjzqk = false
  3496. },
  3497. onConfirmhzoccupation(value){
  3498. this.nhform.occupationName = value.dictLabel
  3499. this.nhform.occupation = value.dictValue
  3500. this.showhzoccupation = false
  3501. },
  3502. onConfirmhzzjlx(value){
  3503. this.nhform.hzzjlxName = value.dictLabel
  3504. this.nhform.hzzjlx = value.dictValue
  3505. this.showhzzjlx = false
  3506. },
  3507. onConfirmhzjzhcssfyzf(value){
  3508. this.nhform.jzhcssfyzfName = value.dictLabel
  3509. this.nhform.jzhcssfyzf = value.dictValue
  3510. this.showhzjzhcssfyzf= false
  3511. },
  3512. // 使用权人农民房屋代码弹出框
  3513. onConfirmsyqrnmfwdm(value){
  3514. this.form1.nmfwdm = value.nmfwdm
  3515. this.showsyqrnmfwdm = false
  3516. },
  3517. // 使用权人农户代码弹出框
  3518. onConfirmsyqrnhdmlist(value){
  3519. this.nhdmValue = null
  3520. this.form1.nhdm = value.nhdm
  3521. this.form1.shyqrdbxm = value.hzxm
  3522. this.form1.shyqrdbzjhm = value.hzzjhm
  3523. this.form1.shyqrdbzjlx = value.hzzjlx
  3524. this.zjlxOptions.map(res => {
  3525. if(res.dictValue == this.form1.shyqrdbzjlx){
  3526. this.form1.shyqrdbzjlxName = res.dictLabel
  3527. }
  3528. })
  3529. this.showsyqrnhdmlist = false
  3530. },
  3531. // 农名房屋农户代码弹出框
  3532. onConfirmnmfwnhdm(value){
  3533. this.nhdmValue = null
  3534. this.nmfwform.nhdm = value.nhdm
  3535. this.shownmfwnhdm = false
  3536. },
  3537. // 使用权人所属行业弹出框
  3538. onConfirmsyqrsshy(value){
  3539. this.form1.sshyName = value.dictLabel
  3540. this.form1.sshy = value.dictValue
  3541. this.showsyqrsshy= false
  3542. },
  3543. // 户内成员数据来源弹出框
  3544. onConfirmhncysjly(value){
  3545. this.form5.sjlyName = value.dictLabel
  3546. this.form5.sjly = value.dictValue
  3547. this.showhncysjly= false
  3548. },
  3549. // 户主数据来源弹出框
  3550. onConfirmhzsjly(value){
  3551. this.nhform.sjlyName = value.dictLabel
  3552. this.nhform.sjly = value.dictValue
  3553. this.showhzsjly= false
  3554. },
  3555. // 宅基地等级弹出框
  3556. onConfirmdj(value){
  3557. this.form.djName = value.dictLabel
  3558. this.form.dj = value.dictValue
  3559. this.showdj= false
  3560. },
  3561. // 户内成员职业弹出框
  3562. onConfirmhncyoccupation(value){
  3563. this.form5.occupationName = value.dictLabel
  3564. this.form5.occupation = value.dictValue
  3565. this.showhncyoccupation = false
  3566. },
  3567. // 户内成员成员备注弹出框
  3568. onConfirmhncycybz(value){
  3569. this.form5.cybzName = value.dictLabel
  3570. this.form5.cybz = value.dictValue
  3571. this.showhncycybz= false
  3572. },
  3573. // 户内成员居住情况弹出框
  3574. onConfirmhncyjzqk(value){
  3575. this.form5.jzqkName = value.dictLabel
  3576. this.form5.jzqk = value.dictValue
  3577. this.showhncyjzqk = false
  3578. },
  3579. // 自然幢房屋结构弹出框
  3580. onConfirmzrzfwjg(value){
  3581. this.form3.fwjgName = value.dictLabel
  3582. this.form3.fwjg = value.dictValue
  3583. this.showzrzfwjg = false
  3584. },
  3585. // 户内成员自然幢号弹出框
  3586. onConfirmzrzh(value){
  3587. this.nmfwform.zrzh = value.zrzh
  3588. this.showzrzh = false
  3589. },
  3590. // 户内成员证件类型弹出框
  3591. onConfirmhncyzjlx(value){
  3592. this.form5.zjlxName = value.dictLabel
  3593. this.form5.zjlx = value.dictValue
  3594. this.showhncyzjlx = false
  3595. },
  3596. // 宅基地用途弹出框
  3597. onConfirmyt(value){
  3598. this.form.ytmc = value.dictLabel
  3599. this.form.yt = value.dictValue
  3600. this.showyt = false
  3601. },
  3602. // 宅基地权利类型弹出框
  3603. onConfirmqllx(value){
  3604. this.form.qllxName = value.dictLabel
  3605. this.form.qllx = value.dictValue
  3606. this.showqllx = false
  3607. },
  3608. // 宅基地权利性质弹出框
  3609. onConfirmqlxz(value){
  3610. this.form.qlxzName = value.dictLabel
  3611. this.form.qlxz = value.dictValue
  3612. this.showqlxz = false
  3613. },
  3614. // 宅基地权利设定方式弹出框
  3615. onConfirmqlsdfs(value){
  3616. this.form.qlsdfsName = value.dictLabel
  3617. this.form.qlsdfs = value.dictValue
  3618. this.showqlsdfs = false
  3619. },
  3620. // 户内成员与户主关系弹出框
  3621. onConfirmyhzgx(value){
  3622. console.log(value)
  3623. this.form5.yhzgxName = value.dictLabel
  3624. this.form5.yhzgx = value.dictValue
  3625. this.showyhzgx = false
  3626. },
  3627. // 使用权人权利人类型弹出框
  3628. onConfirmqlrlx(value){
  3629. this.form1.qlrlxName = value.dictLabel
  3630. this.form1.qlrlx = value.dictValue
  3631. this.showqlrlx = false
  3632. },
  3633. // 使用权人证件类型弹出框
  3634. onConfirmshyqrdbzjlx(value){
  3635. this.form1.shyqrdbzjlxName = value.dictLabel
  3636. this.form1.shyqrdbzjlx = value.dictValue
  3637. this.showshyqrdbzjlx = false
  3638. },
  3639. // 使用权人共有方式弹出框
  3640. onConfirmgyfs(value){
  3641. this.form1.gyfsName = value.dictLabel
  3642. this.form1.gyfs = value.dictValue
  3643. this.showgyfs = false
  3644. },
  3645. // 使用权人户籍所在省市弹出框
  3646. onConfirmhjszss(value){
  3647. this.form1.hjszssName = value.dictLabel
  3648. this.form1.hjszss = value.dictValue
  3649. this.showhjszss = false
  3650. },
  3651. // 农民房屋户型弹出框
  3652. onConfirmhx(value){
  3653. this.nmfwform.hxName = value.dictLabel
  3654. this.nmfwform.hx = value.dictValue
  3655. this.showhx = false
  3656. },
  3657. // 农民房屋户型结构弹出框
  3658. onConfirmhxjg(value){
  3659. this.nmfwform.hxjgName = value.dictLabel
  3660. this.nmfwform.hxjg = value.dictValue
  3661. this.showhxjg = false
  3662. },
  3663. // 农民房屋房屋结构弹出框
  3664. onConfirmfwjg(value){
  3665. this.nmfwform.fwjgName = value.dictLabel
  3666. this.nmfwform.fwjg = value.dictValue
  3667. this.showfwjg = false
  3668. },
  3669. // 农民房屋房屋用途弹出框
  3670. onConfirmfwyt(value){
  3671. this.nmfwform.fwytName = value.dictLabel
  3672. this.nmfwform.fwyt = value.dictValue
  3673. this.showfwyt = false
  3674. },
  3675. // 农民房屋房屋类型弹出框
  3676. onConfirmfwlx(value){
  3677. this.nmfwform.fwlxName = value.dictLabel
  3678. this.nmfwform.fwlx = value.dictValue
  3679. this.showfwlx = false
  3680. },
  3681. // 农民房屋房屋性质弹出框
  3682. onConfirmfwxz(value){
  3683. this.nmfwform.fwxzName = value.dictLabel
  3684. this.nmfwform.fwxz = value.dictValue
  3685. this.showfwxz = false
  3686. },
  3687. // 农民房屋数据来源弹出框
  3688. onConfirmnmfwsjly(value){
  3689. this.nmfwform.sjlyName = value.dictLabel
  3690. this.nmfwform.sjly = value.dictValue
  3691. this.shownmfwsjly = false
  3692. },
  3693. // 农民房屋房屋状态弹出框
  3694. onConfirmnmfwfwzt(value){
  3695. this.nmfwform.fwztName = value.dictLabel
  3696. this.nmfwform.fwzt = value.dictValue
  3697. this.shownmfwfwzt = false
  3698. },
  3699. // 农民房屋利用状况弹出框
  3700. onConfirmnmfwlyzk(value){
  3701. this.nmfwform.lyzkName = value.dictLabel
  3702. this.nmfwform.lyzk = value.dictValue
  3703. this.shownmfwlyzk = false
  3704. },
  3705. // 农民房屋盘活利用模式弹出框
  3706. onConfirmphlyms(value){
  3707. this.nmfwform.phlymsName = value.dictLabel
  3708. this.nmfwform.phlyms = value.dictValue
  3709. this.showphlyms = false
  3710. },
  3711. // 农民房屋权属来源弹出框
  3712. onConfirmnmfwqsly(value){
  3713. this.nmfwform.qslyName = value.dictLabel
  3714. this.nmfwform.qsly = value.dictValue
  3715. this.shownmfwqsly = false
  3716. },
  3717. // 农民房屋审批或建设前土地状况弹出框
  3718. onConfirmnmfwtdzk(value){
  3719. this.nmfwform.tdzkName = value.dictLabel
  3720. this.nmfwform.tdzk = value.dictValue
  3721. this.shownmfwtdzk = false
  3722. },
  3723. // 农民房屋登记时间弹出框
  3724. onConfirmdjsj(val){
  3725. let year = val.getFullYear()
  3726. let month = val.getMonth() + 1
  3727. let day = val.getDate()
  3728. if (month >= 1 && month <= 9) { month = `0${month}` }
  3729. if (day >= 1 && day <= 9) { day = `0${day}` }
  3730. this.nmfwform.djsj = year+"-"+month+"-"+day
  3731. this.showPickerdjsj= false
  3732. },
  3733. // 农民房屋查封起始时间弹出框
  3734. onConfirmcfqssj(val){
  3735. let year = val.getFullYear()
  3736. let month = val.getMonth() + 1
  3737. let day = val.getDate()
  3738. if (month >= 1 && month <= 9) { month = `0${month}` }
  3739. if (day >= 1 && day <= 9) { day = `0${day}` }
  3740. this.nmfwform.cfqssj = year+"-"+month+"-"+day
  3741. this.showPickercfqssj= false
  3742. },
  3743. // 农民房屋查封结束时间弹出框
  3744. onConfirmcfjssj(val){
  3745. let year = val.getFullYear()
  3746. let month = val.getMonth() + 1
  3747. let day = val.getDate()
  3748. if (month >= 1 && month <= 9) { month = `0${month}` }
  3749. if (day >= 1 && day <= 9) { day = `0${day}` }
  3750. this.nmfwform.cfjssj = year+"-"+month+"-"+day
  3751. this.showPickercfjssj= false
  3752. },
  3753. // 农民房屋债务履行开始时间弹出框
  3754. onConfirmzwlxsj1(val){
  3755. let year = val.getFullYear()
  3756. let month = val.getMonth() + 1
  3757. let day = val.getDate()
  3758. if (month >= 1 && month <= 9) { month = `0${month}` }
  3759. if (day >= 1 && day <= 9) { day = `0${day}` }
  3760. this.nmfwform.zwlxsj1 = year+"-"+month+"-"+day
  3761. this.showPickerzwlxsj1= false
  3762. },
  3763. // 自然幢竣工日期弹出框
  3764. onConfirmzrzjgrq(val){
  3765. let year = val.getFullYear()
  3766. let month = val.getMonth() + 1
  3767. let day = val.getDate()
  3768. if (month >= 1 && month <= 9) { month = `0${month}` }
  3769. if (day >= 1 && day <= 9) { day = `0${day}` }
  3770. this.form3.jgrq = year+"-"+month+"-"+day
  3771. this.showPickerjgrq= false
  3772. },
  3773. // 农民房屋债务履行结束时间弹出框
  3774. onConfirmzwlxsj2(val){
  3775. let year = val.getFullYear()
  3776. let month = val.getMonth() + 1
  3777. let day = val.getDate()
  3778. if (month >= 1 && month <= 9) { month = `0${month}` }
  3779. if (day >= 1 && day <= 9) { day = `0${day}` }
  3780. this.nmfwform.zwlxsj2 = year+"-"+month+"-"+day
  3781. this.showPickerzwlxsj2= false
  3782. },
  3783. // 农民房屋批准时间弹出框
  3784. onConfirmpzsj(value){
  3785. this.nmfwform.pzsjName = value.dictLabel
  3786. this.nmfwform.pzsj = value.dictValue
  3787. this.showPickerpzsj= false
  3788. },
  3789. // 附属设施类型弹出框
  3790. onConfirmfssslx(value){
  3791. this.form4.fssslxName = value.dictLabel
  3792. this.form4.fssslx = value.dictValue
  3793. this.showfssslx = false
  3794. },
  3795. // 权属来源弹出框
  3796. onConfirmqsly(value){
  3797. this.form4.qslyName = value.dictLabel
  3798. this.form4.qsly = value.dictValue
  3799. this.showqsly = false
  3800. },
  3801. // 房屋状态弹出框
  3802. onConfirmfwzt(value){
  3803. this.form4.fwztName = value.dictLabel
  3804. this.form4.fwzt = value.dictValue
  3805. this.showfwzt = false
  3806. },
  3807. // 结构类型弹出框
  3808. onConfirmjglx(value){
  3809. this.form4.jglxName = value.dictLabel
  3810. this.form4.jglx = value.dictValue
  3811. this.showjglx = false
  3812. },
  3813. // 建筑物情况弹出框
  3814. onConfirmjzwqk(value){
  3815. this.form4.jzwqkName = value.dictLabel
  3816. this.form4.jzwqk = value.dictValue
  3817. this.showjzwqk = false
  3818. },
  3819. // 土地状况弹出框
  3820. onConfirmtdzk(value){
  3821. this.form4.tdzkName = value.dictLabel
  3822. this.form4.tdzk = value.dictValue
  3823. this.showtdzk = false
  3824. },
  3825. // 当前利用状况弹出框
  3826. onConfirmlyzk(value){
  3827. this.form.lyzkName = value.dictLabel
  3828. this.form.lyzk = value.dictValue
  3829. this.showlyzk = false
  3830. },
  3831. // 数据来源弹出框
  3832. onConfirmsjly(value){
  3833. this.form.sjlyName = value.dictLabel
  3834. this.form.sjly = value.dictValue
  3835. this.showsjly = false
  3836. },
  3837. // 自然幢数据里来源弹出框
  3838. onConfirmzrzsjly(value){
  3839. this.form3.sjlyName = value.dictLabel
  3840. this.form3.sjly = value.dictValue
  3841. this.showzrzsjly = false
  3842. },
  3843. // 闲置开始时间弹出框
  3844. onConfirmxzkssj(val){
  3845. let year = val.getFullYear()
  3846. let month = val.getMonth() + 1
  3847. let day = val.getDate()
  3848. if (month >= 1 && month <= 9) { month = `0${month}` }
  3849. if (day >= 1 && day <= 9) { day = `0${day}` }
  3850. this.form.xzkssj = year+"-"+month+"-"+day
  3851. this.showPickerxzkssj= false
  3852. },
  3853. goBack(){
  3854. if(this.enterMap ==1){
  3855. this.$cookies.set("item",this.backMap);
  3856. this.$router.push({name:'homesteadList'});
  3857. } else {
  3858. this.$router.push({name:'homesteadList'});
  3859. }
  3860. },
  3861. showPopupnh(item){
  3862. this.shownh = true;
  3863. if(item==""){
  3864. let params = {
  3865. "deptId" : this.item.deptId
  3866. }
  3867. this.nhform={
  3868. "suyqrdm":null,
  3869. "deptId":this.item.deptId,
  3870. "hzzjlx":'01',
  3871. "hzzjlxName":"身份证",
  3872. "hyzk":'02',
  3873. "occupation":'1',
  3874. "occupationName":'务农',
  3875. "jzqk":'3',
  3876. "jzqkName":'常年居住',
  3877. "jzhcssfyzf":'1',
  3878. "jzhcssfyzfName":'无住房',
  3879. "zqtczsfyzf":'Y',
  3880. "sfbccm":'Y',
  3881. "sfpkh":'N',
  3882. "sfwbh":'N',
  3883. "sjly":'07',
  3884. "sjlyName":'农村集体产权制度改革',
  3885. }
  3886. listSuyqr(params).then((response) => {
  3887. if(response.rows.length>0){
  3888. this.nhform.suyqrdm = response.rows[0].suyqrdm
  3889. }else{
  3890. this.nhform.suyqrdm = this.form.suyqrdm
  3891. }
  3892. });
  3893. }else{
  3894. let params = {
  3895. "deptId" : this.item.deptId,
  3896. nhdm:item.nhdm
  3897. }
  3898. listNh(params).then((response) => {
  3899. this.nhform = response.rows[0]
  3900. if(this.nhform.hzzjlx==null||this.nhform.hzzjlx==''){
  3901. this.nhform.hzzjlx = '01'
  3902. this.nhform.hzzjlxName = '身份证'
  3903. }
  3904. if(this.nhform.hyzk==null||this.nhform.hyzk==''){
  3905. this.nhform.hyzk = '02'
  3906. }
  3907. if(this.nhform.occupation==null||this.nhform.occupation==''){
  3908. this.nhform.occupation = '1'
  3909. this.nhform.occupationName = '务农'
  3910. }
  3911. if(this.nhform.jzqk==null||this.nhform.jzqk==''){
  3912. this.nhform.jzqk = '3'
  3913. this.nhform.jzqkName = '常年居住'
  3914. }
  3915. if(this.nhform.jzhcssfyzf==null||this.nhform.jzhcssfyzf==''){
  3916. this.nhform.jzhcssfyzf = '1'
  3917. this.nhform.jzhcssfyzfName = '无住房'
  3918. }
  3919. if(this.nhform.zqtczsfyzf==null||this.nhform.zqtczsfyzf==''){
  3920. this.nhform.zqtczsfyzf = 'Y'
  3921. }
  3922. if(this.nhform.sfbccm==null||this.nhform.sfbccm==''){
  3923. this.nhform.sfbccm = 'Y'
  3924. }
  3925. if(this.nhform.sfpkh==null||this.nhform.sfpkh==''){
  3926. this.nhform.sfpkh = 'N'
  3927. }
  3928. if(this.nhform.sfwbh==null||this.nhform.sfwbh==''){
  3929. this.nhform.sfwbh = 'N'
  3930. }
  3931. if(this.nhform.sjly==null||this.nhform.sjly==''){
  3932. this.nhform.sjly = '07'
  3933. this.nhform.sjlyName = '农村集体产权制度改革'
  3934. }
  3935. this.jzhcssfyzfOptions.map(res => {
  3936. if(res.dictValue == this.nhform.jzhcssfyzf){
  3937. this.nhform.jzhcssfyzfName = res.dictLabel
  3938. }
  3939. })
  3940. this.zjlxOptions.map(res => {
  3941. if(res.dictValue == this.nhform.hzzjlx){
  3942. this.nhform.hzzjlxName = res.dictLabel
  3943. }
  3944. })
  3945. this.occupationOptions.map(res => {
  3946. if(res.dictValue == this.nhform.occupation){
  3947. this.nhform.occupationName = res.dictLabel
  3948. }
  3949. })
  3950. this.jzqkOptions.map(res => {
  3951. if(res.dictValue == this.nhform.jzqk){
  3952. this.nhform.jzqkName = res.dictLabel
  3953. }
  3954. })
  3955. this.sjlyOptions.map(res => {
  3956. if(res.dictValue == this.nhform.sjly){
  3957. this.nhform.sjlyName = res.dictLabel
  3958. }
  3959. })
  3960. });
  3961. }
  3962. },
  3963. getZjd() {
  3964. let _this = this
  3965. if(this.item.zjddm){
  3966. let params = {
  3967. "zjddm":this.item.zjddm,
  3968. deptId:this.item.deptId
  3969. }
  3970. listZjdzd(params).then(response => {
  3971. this.form = response.rows[0];
  3972. console.log(this.form)
  3973. if(this.form.sffz==null||this.form.sffz==""){
  3974. this.form.sffz = "Y"
  3975. }
  3976. if(this.form.yt==null||this.form.yt==""){
  3977. this.form.yt = "072"
  3978. this.form.ytmc="农村宅基地"
  3979. }
  3980. if(this.form.lyzk==null||this.form.lyzk==""){
  3981. this.form.lyzk = "1"
  3982. this.form.lyzkName="正常使用"
  3983. }
  3984. if(this.form.lzyx==null||this.form.lzyx==""){
  3985. this.form.lzyx = "0"
  3986. }
  3987. if(this.form.yctcyx==null||this.form.yctcyx==""){
  3988. this.form.yctcyx = "0"
  3989. }
  3990. if(this.form.bccjl==null||this.form.bccjl==""){
  3991. this.form.bccjl = "0"
  3992. }
  3993. if(this.form.zjdqdfs==null||this.form.zjdqdfs==""){
  3994. this.form.zjdqdfs = "01"
  3995. }
  3996. if(this.form.dj==null||this.form.dj==""){
  3997. this.form.dj = "1"
  3998. this.form.djName = "一类"
  3999. }
  4000. if(this.form.qllx==null||this.form.qllx==""){
  4001. this.form.qllx = "1"
  4002. this.form.qllxName = "集体土地所有权"
  4003. }
  4004. if(this.form.qlxz==null||this.form.qlxz==""){
  4005. this.form.qlxz = "200"
  4006. this.form.qlxzName = "集体土地"
  4007. }
  4008. if(this.form.qlsdfs==null||this.form.qlsdfs==""){
  4009. this.form.qlsdfs = "1"
  4010. this.form.qlsdfsName = "地上"
  4011. }
  4012. if(this.form.sjly==null||this.form.sjly==""){
  4013. this.form.sjly = "04"
  4014. this.form.sjlyName = "农村宅基地使用权确权登记发证"
  4015. }else{
  4016. console.log(this.form.sjly)
  4017. this.sjlyOptions.map(res => {
  4018. if(res.dictValue == this.form.sjly){
  4019. this.form.sjlyName = res.dictLabel
  4020. }
  4021. })
  4022. }
  4023. this.fileListzjd = []
  4024. if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){
  4025. let li = this.form.zjdxctp.split(",");
  4026. li.map(res => {
  4027. this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res})
  4028. })
  4029. }
  4030. this.lyzkOptions.map(res => {
  4031. if(res.dictValue == this.form.lyzk){
  4032. this.form.lyzkName = res.dictLabel
  4033. }
  4034. })
  4035. this.qllxOptions.map(res => {
  4036. if(res.dictValue == this.form.qllx){
  4037. this.form.qllxName = res.dictLabel
  4038. }
  4039. })
  4040. this.qlxzOptions.map(res => {
  4041. if(res.dictValue == this.form.qlxz){
  4042. this.form.qlxzName = res.dictLabel
  4043. }
  4044. })
  4045. this.qlsdfsOptions.map(res => {
  4046. if(res.dictValue == this.form.qlsdfs){
  4047. this.form.qlsdfsName = res.dictLabel
  4048. }
  4049. })
  4050. this.ytOptions.map(res => {
  4051. if(res.dictValue == this.form.yt){
  4052. this.form.ytmc = res.dictLabel
  4053. }
  4054. })
  4055. this.tddjOptions.map(res => {
  4056. if(res.dictValue == this.form.dj){
  4057. this.form.djName = res.dictLabel
  4058. }
  4059. })
  4060. });
  4061. }else{
  4062. let params = {
  4063. "deptId" : this.item.deptId
  4064. }
  4065. listSuyqr(params).then((response) => {
  4066. this.form = {
  4067. deptId :this.item.deptId,
  4068. sffz:"Y",
  4069. yt:"072",
  4070. ytName:"农村宅基地",
  4071. lyzk:"1",
  4072. lyzkName:"正常使用",
  4073. lzyx:'0',
  4074. yctcyx:'0',
  4075. bccjl:'0',
  4076. zjdqdfs:'01',
  4077. dj:'1',
  4078. djName:'一类',
  4079. qllx:'1',
  4080. qllxName:'集体土地所有权',
  4081. qlxz:'200',
  4082. qlxzName:'集体土地',
  4083. qlsdfs:'1',
  4084. qlsdfsName:'地上',
  4085. sjly:'04',
  4086. sjlyName:'农村宅基地使用权确权登记发证'
  4087. }
  4088. if(response.rows.length>0){
  4089. this.form.suyqrdm = response.rows[0].suyqrdm
  4090. }
  4091. });
  4092. }
  4093. },
  4094. getSyqrList() {
  4095. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  4096. let params = {
  4097. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4098. deptId:this.item.deptId
  4099. }
  4100. listShyqr(params).then(response => {
  4101. this.syqrlist = response.rows;
  4102. });
  4103. }
  4104. },
  4105. getZrzList() {
  4106. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  4107. let params = {
  4108. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4109. deptId:this.item.deptId
  4110. }
  4111. listZrz(params).then(response => {
  4112. this.zrzlist = response.rows;
  4113. });
  4114. /*listNmfw(params).then(r => {
  4115. this.fwlist = r.rows
  4116. })*/
  4117. }
  4118. },
  4119. getFsssList() {
  4120. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  4121. let params = {
  4122. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4123. deptId:this.item.deptId
  4124. }
  4125. listFsss(params).then(response => {
  4126. this.fssslist = response.rows;
  4127. });
  4128. }
  4129. },
  4130. onSubmithncy(){
  4131. if (this.form5.id != null) {
  4132. updateNhhncy(this.form5).then(response => {
  4133. let _this =this
  4134. this.$toast({
  4135. icon: 'success', // 找到自己需要的图标
  4136. message: '修改成功',
  4137. duration:"1000",
  4138. onClose:function(){
  4139. _this.showhncy = false
  4140. let params = {
  4141. "nhdm":_this.form5.nhdm,
  4142. deptId:this.item.deptId
  4143. }
  4144. listNhhncy(params).then((response) => {
  4145. _this.hncylist = response.rows
  4146. })
  4147. }
  4148. })
  4149. });
  4150. } else {
  4151. addNhhncy(this.form5).then(response => {
  4152. let _this =this
  4153. this.$toast({
  4154. icon: 'success', // 找到自己需要的图标
  4155. message: '保存成功',
  4156. duration:"1000",
  4157. onClose:function(){
  4158. _this.showhncy = false
  4159. let params = {
  4160. "nhdm":_this.form5.nhdm,
  4161. deptId:this.item.deptId
  4162. }
  4163. listNhhncy(params).then((response) => {
  4164. _this.hncylist = response.rows
  4165. })
  4166. }
  4167. })
  4168. });
  4169. }
  4170. },
  4171. onSubmitsyqr(){
  4172. if(this.form.id==null||this.form.id==""){
  4173. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  4174. }else{
  4175. if (this.form1.id != null) {
  4176. updateShyqr(this.form1).then(response => {
  4177. let _this =this
  4178. this.$toast({
  4179. icon: 'success', // 找到自己需要的图标
  4180. message: '修改成功',
  4181. duration:"1000",
  4182. onClose:function(){
  4183. _this.showsyqr = false
  4184. _this.active = 2
  4185. _this.getSyqrList()
  4186. }
  4187. })
  4188. });
  4189. } else {
  4190. addShyqr(this.form1).then(response => {
  4191. let _this =this
  4192. this.$toast({
  4193. icon: 'success', // 找到自己需要的图标
  4194. message: '保存成功',
  4195. duration:"1000",
  4196. onClose:function(){
  4197. _this.showsyqr = false
  4198. _this.active = 2
  4199. _this.getSyqrList()
  4200. }
  4201. })
  4202. });
  4203. }
  4204. }
  4205. },
  4206. onSubmitnmfw(){
  4207. if (this.nmfwform.id != null) {
  4208. updateNmfw(this.nmfwform).then(response => {
  4209. let _this =this
  4210. this.$toast({
  4211. icon: 'success', // 找到自己需要的图标
  4212. message: '修改成功',
  4213. duration:"1000",
  4214. onClose:function(){
  4215. _this.showfw = false
  4216. }
  4217. })
  4218. });
  4219. } else {
  4220. addNmfw(this.nmfwform).then(response => {
  4221. console.log(this.nmfwform)
  4222. let _this =this
  4223. this.$toast({
  4224. icon: 'success', // 找到自己需要的图标
  4225. message: '保存成功',
  4226. duration:"1000",
  4227. onClose:function(){
  4228. _this.showfw = false
  4229. _this.shownmfwlist(_this.nmfwform);
  4230. }
  4231. })
  4232. });
  4233. }
  4234. },
  4235. // 户主保存
  4236. onSubmitnh(){
  4237. if(this.nhform.id!=null){
  4238. updateNh(this.nhform).then(
  4239. response => {
  4240. let _this =this
  4241. this.$toast({
  4242. icon: 'success', // 找到自己需要的图标
  4243. message: '修改成功',
  4244. duration:"1000",
  4245. onClose:function(){
  4246. _this.shownh = false
  4247. _this.getNh()
  4248. }
  4249. })
  4250. }
  4251. );
  4252. }else{
  4253. this.nhform.deptId = this.item.deptId
  4254. addNh(this.nhform).then(
  4255. response => {
  4256. let _this =this
  4257. this.$toast({
  4258. icon: 'success', // 找到自己需要的图标
  4259. message: '保存成功',
  4260. duration:"1000",
  4261. onClose:function(){
  4262. _this.shownh = false
  4263. }
  4264. })
  4265. }
  4266. );
  4267. }
  4268. },
  4269. // 自然幢保存
  4270. onSubmitzrz(){
  4271. if (this.form3.id != null) {
  4272. updateZrz(this.form3).then(response => {
  4273. let _this =this
  4274. this.$toast({
  4275. icon: 'success', // 找到自己需要的图标
  4276. message: '修改成功',
  4277. duration:"1000",
  4278. onClose:function(){
  4279. _this.showzrz = false
  4280. _this.active = 3
  4281. _this.getZrzList()
  4282. }
  4283. })
  4284. });
  4285. } else {
  4286. addZrz(this.form3).then(response => {
  4287. let _this =this
  4288. this.$toast({
  4289. icon: 'success', // 找到自己需要的图标
  4290. message: '保存成功',
  4291. duration:"1000",
  4292. onClose:function(){
  4293. _this.showzrz = false
  4294. _this.active = 3
  4295. _this.getZrzList()
  4296. }
  4297. })
  4298. });
  4299. }
  4300. },
  4301. // 附属设施保存
  4302. onSubmitfsss(){
  4303. if (this.form4.id != null) {
  4304. updateFsss(this.form4).then(response => {
  4305. let _this =this
  4306. this.$toast({
  4307. icon: 'success', // 找到自己需要的图标
  4308. message: '修改成功',
  4309. duration:"1000",
  4310. onClose:function(){
  4311. _this.showfsss = false;
  4312. _this.getFsssList()
  4313. }
  4314. })
  4315. });
  4316. } else {
  4317. addFsss(this.form4).then(response => {
  4318. let _this =this
  4319. this.$toast({
  4320. icon: 'success', // 找到自己需要的图标
  4321. message: '保存成功',
  4322. duration:"1000",
  4323. onClose:function(){
  4324. _this.showfsss = false;
  4325. _this.getFsssList()
  4326. }
  4327. })
  4328. });
  4329. }
  4330. },
  4331. onSubmitzjd(){
  4332. if (this.form.id != null) {
  4333. updateZjdzd(this.form).then(response => {
  4334. this.$cookies.set("search",this.form);
  4335. let _this =this
  4336. this.$toast({
  4337. icon: 'success', // 找到自己需要的图标
  4338. message: '修改成功',
  4339. duration:"1000",
  4340. onClose:function(){
  4341. _this.active = 2
  4342. }
  4343. })
  4344. });
  4345. } else {
  4346. addZjdzd(this.form).then(response => {
  4347. this.$cookies.set("search",this.form);
  4348. this.form = response.data
  4349. let _this =this
  4350. this.$toast({
  4351. icon: 'success', // 找到自己需要的图标
  4352. message: '保存成功',
  4353. duration:"1000",
  4354. onClose:function(){
  4355. _this.active = 2
  4356. }
  4357. })
  4358. });
  4359. }
  4360. },
  4361. showPopupsyqr(item) {
  4362. if(this.form.id==null||this.form.id==""){
  4363. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  4364. }else{
  4365. if(item==""){
  4366. this.form1={
  4367. zjddm:this.form.zjddm,
  4368. suyqrdm:this.form.suyqrdm,
  4369. deptId:this.item.deptId,
  4370. gj:'1',
  4371. hklx:'1',
  4372. xb:'1',
  4373. sfbncjtjjzzcy:'Y',
  4374. sfsyqrzjgy:'Y',
  4375. qlrlx:'10',
  4376. qlrlxName:'个人',
  4377. gyfs:'1',
  4378. gyfsName:'单独所有',
  4379. qlbl:'1',
  4380. hjszss:"150000",
  4381. hjszssName:"内蒙古自治区",
  4382. }
  4383. }else{
  4384. this.form1 = item
  4385. if(this.form1.gj==null||this.form1.gj==""){
  4386. this.form1.gj = '1'
  4387. }
  4388. if(this.form1.hklx==null||this.form1.hklx==""){
  4389. this.form1.hklx = '1'
  4390. }
  4391. if(this.form1.xb==null||this.form1.xb==""){
  4392. this.form1.xb = '1'
  4393. }
  4394. if(this.form1.sfbncjtjjzzcy==null||this.form1.sfbncjtjjzzcy==""){
  4395. this.form1.sfbncjtjjzzcy = 'Y'
  4396. }
  4397. if(this.form1.sfsyqrzjgy==null||this.form1.sfsyqrzjgy==""){
  4398. this.form1.sfsyqrzjgy = 'Y'
  4399. }
  4400. if(this.form1.qlrlx==null||this.form1.qlrlx==""){
  4401. this.form1.qlrlx = 'Y'
  4402. this.form1.qlrlxName = '个人'
  4403. }
  4404. if(this.form1.gyfs==null||this.form1.gyfs==""){
  4405. this.form1.gyfs = '1'
  4406. this.form1.gyfsName = '单独所有'
  4407. }
  4408. if(this.form1.qlbl==null||this.form1.qlbl==""){
  4409. this.form1.qlbl = '1'
  4410. }
  4411. if(this.form1.hjszss==null||this.form1.hjszss==""){
  4412. this.form1.hjszss = '150000'
  4413. this.form1.hjszssName = '内蒙古自治区'
  4414. }
  4415. this.industryOptions.map(res => {
  4416. if(res.dictValue == this.form1.sshy){
  4417. this.form1.sshyName = res.dictLabel
  4418. }
  4419. })
  4420. this.sjlyOptions.map(res => {
  4421. if(res.dictValue == this.form1.sjly){
  4422. this.form1.sjlyName = res.dictLabel
  4423. }
  4424. })
  4425. this.zjlxOptions.map(res => {
  4426. if(res.dictValue == this.form1.shyqrdbzjlx){
  4427. this.form1.shyqrdbzjlxName = res.dictLabel
  4428. }
  4429. })
  4430. this.qlrlxOptions.map(res => {
  4431. if(res.dictValue == this.form1.qlrlx){
  4432. this.form1.qlrlxName = res.dictLabel
  4433. }
  4434. })
  4435. this.gyfsOptions.map(res => {
  4436. if(res.dictValue == this.form1.gyfs){
  4437. this.form1.gyfsName = res.dictLabel
  4438. }
  4439. })
  4440. }
  4441. this.showsyqr = true;
  4442. }
  4443. },
  4444. showPopuphncy(item){
  4445. if(item==""){
  4446. this.form5 = {
  4447. "nhdm":this.form1.nhdm,
  4448. "deptId":this.form1.deptId,
  4449. "zjlx":'01',
  4450. "zjlxName":"身份证",
  4451. "yhzgx":"14",
  4452. "yhzgxName":"妻",
  4453. "hyzk":'02',
  4454. "hklx":'1',
  4455. "occupation":'1',
  4456. "occupationName":'务农',
  4457. "jzqk":'3',
  4458. "jzqkName":'常年居住',
  4459. "sfbjtjjzzcy":'Y',
  4460. "xb":'0',
  4461. "sfbccm":'Y',
  4462. "sfpkh":'N',
  4463. "sfwbh":'N',
  4464. "sjly":'07',
  4465. "sjlyName":'农村集体产权制度改革',
  4466. }
  4467. }else{
  4468. this.form5 = item
  4469. if(this.form5.nhdm==null||this.form5.nhdm==""){
  4470. this.form5.nhdm = this.nhform.nhdm
  4471. }
  4472. if(this.form5.deptId==null||this.form5.deptId==""){
  4473. this.form5.deptId = this.nhform.deptId
  4474. }
  4475. if(this.form5.zjlx==null||this.form5.zjlx==""){
  4476. this.form5.zjlx = "01"
  4477. this.form5.zjlxName = "身份证"
  4478. }
  4479. if(this.form5.yhzgx==null||this.form5.yhzgx==""){
  4480. this.form5.yhzgx = "14"
  4481. this.form5.yhzgxName = "妻"
  4482. }
  4483. if(this.form5.hyzk==null||this.form5.hyzk==""){
  4484. this.form5.hyzk = "02"
  4485. }
  4486. if(this.form5.hklx==null||this.form5.hklx==""){
  4487. this.form5.hklx = "1"
  4488. }
  4489. if(this.form5.occupation==null||this.form5.occupation==""){
  4490. this.form5.occupation = "1"
  4491. this.form5.occupationName = "务农"
  4492. }
  4493. if(this.form5.jzqk==null||this.form5.jzqk==""){
  4494. this.form5.jzqk = "3"
  4495. this.form5.jzqkName = "常年居住"
  4496. }
  4497. if(this.form5.sfbjtjjzzcy==null||this.form5.sfbjtjjzzcy==""){
  4498. this.form5.sfbjtjjzzcy = "Y"
  4499. }
  4500. if(this.form5.xb==null||this.form5.xb==""){
  4501. this.form5.xb = "0"
  4502. }
  4503. if(this.form5.sfbccm==null||this.form5.sfbccm==""){
  4504. this.form5.sfbccm = "Y"
  4505. }
  4506. if(this.form5.sfpkh==null||this.form5.sfpkh==""){
  4507. this.form5.sfpkh = "N"
  4508. }
  4509. if(this.form5.sfwbh==null||this.form5.sfwbh==""){
  4510. this.form5.sfwbh = "N"
  4511. }
  4512. if(this.form5.sjly==null||this.form5.sjly==""){
  4513. this.form5.sjly = "07"
  4514. this.form5.sjlyName = "农村集体产权制度改革"
  4515. }
  4516. this.jzhcssfyzfOptions.map(res => {
  4517. if(res.dictValue == item.jzhcssfyzf){
  4518. this.form5.jzhcssfyzfName = res.dictLabel
  4519. }
  4520. })
  4521. this.zjlxOptions.map(res => {
  4522. if(res.dictValue == item.zjlx){
  4523. this.form5.zjlxName = res.dictLabel
  4524. }
  4525. })
  4526. this.occupationOptions.map(res => {
  4527. if(res.dictValue == item.occupation){
  4528. this.form5.occupationName = res.dictLabel
  4529. }
  4530. })
  4531. this.jzqkOptions.map(res => {
  4532. if(res.dictValue == item.jzqk){
  4533. this.form5.jzqkName = res.dictLabel
  4534. }
  4535. })
  4536. this.yhzgxOptions.map(res => {
  4537. if(res.dictValue == item.yhzgx){
  4538. this.form5.yhzgxName = res.dictLabel
  4539. }
  4540. })
  4541. this.cybzOptions.map(res => {
  4542. if(res.dictValue == item.cybz){
  4543. this.form5.cybzName = res.dictLabel
  4544. }
  4545. })
  4546. this.sjlyOptions.map(res => {
  4547. if(res.dictValue == item.sjly){
  4548. this.form5.sjlyName = res.dictLabel
  4549. }
  4550. })
  4551. }
  4552. this.showhncy = true
  4553. },
  4554. showPopupzrz(item) {
  4555. console.log(item)
  4556. if(this.form.id==null||this.form.id==""){
  4557. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  4558. }else{
  4559. if(item==""){
  4560. this.form3={
  4561. zjddm:this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4562. deptId:this.item.deptId?this.item.deptId:this.form.deptId,
  4563. zcs:"1",
  4564. dscs:"1",
  4565. dxcs:"0",
  4566. fwjg:'02',
  4567. fwjgName:'钢和钢筋混凝土结构',
  4568. sjly:'04',
  4569. sjlyName:'农村宅基地使用权确权登记发证',
  4570. theGeom:this.form3.theGeom,
  4571. }
  4572. }else{
  4573. this.form3 = item
  4574. if(this.form3.zcs==null||this.form3.zcs==""){
  4575. this.form3.zcs = "1"
  4576. }
  4577. if(this.form3.dscs==null||this.form3.dscs==""){
  4578. this.form3.dscs = "1"
  4579. }
  4580. if(this.form3.dscs==null||this.form3.dscs==""){
  4581. this.form3.dscs = "0"
  4582. }
  4583. if(this.form3.fwjg==null||this.form3.fwjg==""){
  4584. this.form3.fwjg = "02"
  4585. this.form3.fwjgName = "钢和钢筋混凝土结构"
  4586. }
  4587. if(this.form3.sjly==null||this.form3.sjly==""){
  4588. this.form3.sjly = "04"
  4589. this.form3.sjlyName = "农村宅基地使用权确权登记发证"
  4590. }
  4591. if(this.form3.sjly!=null){
  4592. this.sjlyOptions.map(res => {
  4593. if(res.dictValue == this.form3.sjly){
  4594. this.form3.sjlyName = res.dictLabel
  4595. }
  4596. })
  4597. }
  4598. if(this.form3.fwjg!=null){
  4599. this.fwjgOptions.map(res => {
  4600. if(res.dictValue == this.form3.fwjg){
  4601. this.form3.fwjgName = res.dictLabel
  4602. }
  4603. })
  4604. }
  4605. }
  4606. this.showzrz = true;
  4607. this.active = 3;
  4608. this.mapClickLoading();
  4609. }
  4610. },
  4611. showPopupfw(item) {
  4612. if(this.form.id==null||this.form.id==""){
  4613. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  4614. }else{
  4615. this.showfw = true;
  4616. if(item==""){
  4617. this.nmfwform={
  4618. zrzh: this.zrzh,
  4619. deptId : this.item.deptId?this.item.deptId:this.form.deptId,
  4620. zjddm : this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4621. nmfwzh : null,
  4622. ch:"1",
  4623. sjc:"1",
  4624. myc:"1",
  4625. sjcs:"1",
  4626. hx:'03',
  4627. hxName:'三居室',
  4628. hxjg:'01',
  4629. hxjgName:'平层',
  4630. fwjg:'02',
  4631. fwjgName:'钢和钢筋混凝土结构',
  4632. fwyt:'10',
  4633. fwytName:'住宅',
  4634. sfjf:'N',
  4635. sfcf:'N',
  4636. sffz:'Y',
  4637. isCommon:'N',
  4638. fwzt:'01',
  4639. fwztName:'正常',
  4640. isMortgage:'Y',
  4641. sjly:'04',
  4642. sjlyName:'农村宅基地使用权确权登记发证',
  4643. fwlx:'01',
  4644. fwlxName:'住宅',
  4645. lyzk:'1',
  4646. lyzkName:'正常使用',
  4647. lzyx:'0',
  4648. yctcyx:'0',
  4649. qsly:'01',
  4650. qslyName:'申请',
  4651. sfkjgj:'N',
  4652. pzdw:'1',
  4653. }
  4654. }else{
  4655. this.nmfwform = item
  4656. if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){
  4657. this.nmfwform.sfkjgj = "N"
  4658. }
  4659. if(this.nmfwform.qsly==null||this.nmfwform.qsly==""){
  4660. this.nmfwform.qsly = "01"
  4661. this.nmfwform.qslyName = "申请"
  4662. }
  4663. if(this.nmfwform.yctcyx==null||this.nmfwform.yctcyx==""){
  4664. this.nmfwform.yctcyx = "0"
  4665. }
  4666. if(this.nmfwform.lzyx==null||this.nmfwform.lzyx==""){
  4667. this.nmfwform.lzyx = "0"
  4668. }
  4669. if(this.nmfwform.lyzk==null||this.nmfwform.lyzk==""){
  4670. this.nmfwform.lyzk = "1"
  4671. this.nmfwform.lyzkName = "正常使用"
  4672. }
  4673. if(this.nmfwform.fwlx==null||this.nmfwform.fwlx==""){
  4674. this.nmfwform.fwlx = "01"
  4675. this.nmfwform.fwlxName = "住宅"
  4676. }
  4677. if(this.nmfwform.sjly==null||this.nmfwform.sjly==""){
  4678. this.nmfwform.sjly = "04"
  4679. this.nmfwform.sjlyName = "农村宅基地使用权确权登记发证"
  4680. }
  4681. if(this.nmfwform.isMortgage==null||this.nmfwform.isMortgage==""){
  4682. this.nmfwform.isMortgage = "Y"
  4683. }
  4684. if(this.nmfwform.fwzt==null||this.nmfwform.fwzt==""){
  4685. this.nmfwform.fwzt = "01"
  4686. this.nmfwform.fwztName = "正常"
  4687. }
  4688. if(this.nmfwform.pzdw==null||this.nmfwform.pzdw==""){
  4689. this.nmfwform.pzdw = "1"
  4690. }
  4691. if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){
  4692. this.nmfwform.sfkjgj = "N"
  4693. }
  4694. if(this.nmfwform.zrzh==null||this.nmfwform.zrzh==""){
  4695. this.nmfwform.zrzh = this.item.zrzh
  4696. }
  4697. if(this.nmfwform.deptId==null||this.nmfwform.deptId==""){
  4698. this.nmfwform.deptId = this.item.deptId
  4699. }
  4700. if(this.nmfwform.zjddm==null||this.nmfwform.zjddm==""){
  4701. this.nmfwform.zjddm = this.item.zjddm
  4702. }
  4703. if(this.nmfwform.nmfwzh==null||this.nmfwform.nmfwzh==""){
  4704. this.nmfwform.nmfwzh = this.item.nmfwzh
  4705. }
  4706. if(this.nmfwform.ch==null||this.nmfwform.ch==""){
  4707. this.nmfwform.ch = "1"
  4708. }
  4709. if(this.nmfwform.sjc==null||this.nmfwform.sjc==""){
  4710. this.nmfwform.sjc = "1"
  4711. }
  4712. if(this.nmfwform.myc==null||this.nmfwform.myc==""){
  4713. this.nmfwform.myc = "1"
  4714. }
  4715. if(this.nmfwform.sjcs==null||this.nmfwform.sjcs==""){
  4716. this.nmfwform.sjcs = "1"
  4717. }
  4718. if(this.nmfwform.hx==null||this.nmfwform.hx==""){
  4719. this.nmfwform.hx = "03"
  4720. this.nmfwform.hxName = "三居室"
  4721. }
  4722. if(this.nmfwform.hxjg==null||this.nmfwform.hxjg==""){
  4723. this.nmfwform.hxjg = "01"
  4724. this.nmfwform.hxjgName = "平层"
  4725. }
  4726. if(this.nmfwform.fwjg==null||this.nmfwform.fwjg==""){
  4727. this.nmfwform.fwjg = "02"
  4728. this.nmfwform.fwjgName = "钢和钢筋混凝土结构"
  4729. }
  4730. if(this.nmfwform.fwyt==null||this.nmfwform.fwyt==""){
  4731. this.nmfwform.fwyt = "10"
  4732. this.nmfwform.fwytName = "住宅"
  4733. }
  4734. if(this.nmfwform.sfjf==null||this.nmfwform.sfjf==""){
  4735. this.nmfwform.sfjf = "N"
  4736. }
  4737. if(this.nmfwform.sfcf==null||this.nmfwform.sfcf==""){
  4738. this.nmfwform.sfcf = "N"
  4739. }
  4740. if(this.nmfwform.sffz==null||this.nmfwform.sffz==""){
  4741. this.nmfwform.sffz = "Y"
  4742. }
  4743. if(this.nmfwform.isCommon==null||this.nmfwform.isCommon==""){
  4744. this.nmfwform.isCommon = "N"
  4745. }
  4746. this.sjlyOptions.map(res => {
  4747. if(res.dictValue == item.sjly){
  4748. this.nmfwform.sjlyName = res.dictLabel
  4749. }
  4750. })
  4751. this.hxjgOptions.map(res => {
  4752. if(res.dictValue == item.hxjg){
  4753. this.nmfwform.hxjgName = res.dictLabel
  4754. }
  4755. })
  4756. this.hxOptions.map(res => {
  4757. if(res.dictValue == item.hx){
  4758. this.nmfwform.hxName = res.dictLabel
  4759. }
  4760. })
  4761. this.fwjgOptions.map(res => {
  4762. if(res.dictValue == item.fwjg){
  4763. this.nmfwform.fwjgName = res.dictLabel
  4764. }
  4765. })
  4766. this.fwytOptions.map(res => {
  4767. if(res.dictValue == item.fwyt){
  4768. this.nmfwform.fwytName = res.dictLabel
  4769. }
  4770. })
  4771. this.tdzkOptions.map(res => {
  4772. if(res.dictValue == item.tdzk){
  4773. this.nmfwform.tdzkName = res.dictLabel
  4774. }
  4775. })
  4776. this.pzsjOptions.map(res => {
  4777. if(res.dictValue == item.pzsj){
  4778. this.nmfwform.pzsjName = res.dictLabel
  4779. }
  4780. })
  4781. this.phlymsOptions.map(res => {
  4782. if(res.dictValue == item.phlyms){
  4783. this.nmfwform.phlymsName = res.dictLabel
  4784. }
  4785. })
  4786. this.fwlxOptions.map(res => {
  4787. if(res.dictValue == item.fwlx){
  4788. this.nmfwform.fwlxName = res.dictLabel
  4789. }
  4790. })
  4791. this.lyzkOptions.map(res => {
  4792. if(res.dictValue == item.lyzk){
  4793. this.nmfwform.lyzkName = res.dictLabel
  4794. }
  4795. })
  4796. this.fwztOptions.map(res => {
  4797. if(res.dictValue == item.fwzt){
  4798. this.nmfwform.fwztName = res.dictLabel
  4799. }
  4800. })
  4801. this.qslyOptions.map(res => {
  4802. if(res.dictValue == item.qsly){
  4803. this.nmfwform.qslyName = res.dictLabel
  4804. }
  4805. })
  4806. }}
  4807. },
  4808. showPopuphncylist(item){
  4809. if(item.nhdm==null||item.nhdm==""){
  4810. Notify({ type: 'danger', message: '使用权人农户代码不能为空' });
  4811. }else{
  4812. this.showhncylist = true;
  4813. if(item==""){
  4814. this.hncylist=[]
  4815. }else{
  4816. this.hncylist=[]
  4817. let params = {
  4818. "nhdm":item.nhdm,
  4819. deptId:this.item.deptId
  4820. }
  4821. listNhhncy(params).then((response) => {
  4822. this.hncylist = response.rows
  4823. })
  4824. }
  4825. }
  4826. },
  4827. showPopupfsss(item) {if(this.form.id==null||this.form.id==""){
  4828. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  4829. }else{
  4830. if(item==""){
  4831. this.form4={
  4832. deptId:this.item.deptId?this.item.deptId:this.form.deptId,
  4833. zjddm:this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4834. fssslx:'11',
  4835. fssslxName:'畜厩',
  4836. qsly:'99',
  4837. qslyName:'其他',
  4838. fwzt:'01',
  4839. fwztName:'正常',
  4840. sfsp:'N',
  4841. sffz:'N',
  4842. jglx:'2',
  4843. jglxName:'砖混',
  4844. sfzzsy:'Y',
  4845. jzwqk:'01',
  4846. jzwqkName:'正常',
  4847. tdzk:'3',
  4848. tdzkName:'其他',
  4849. sfsgcf:'N',
  4850. theGeom:this.form4.theGeom,
  4851. }
  4852. }else{
  4853. this.form4=item
  4854. if(this.form4.fssslx==null||this.form4.fssslx==""){
  4855. this.form4.fssslx = "11"
  4856. this.form4.fssslxName = "畜厩"
  4857. }
  4858. if(this.form4.qsly==null||this.form4.qsly==""){
  4859. this.form4.qsly = "99"
  4860. this.form4.qslyName = "其他"
  4861. }
  4862. if(this.form4.fwzt==null||this.form4.fwzt==""){
  4863. this.form4.fwzt = "01"
  4864. this.form4.fwztName = "正常"
  4865. }
  4866. if(this.form4.sfsp==null||this.form4.sfsp==""){
  4867. this.form4.sfsp = "N"
  4868. }
  4869. if(this.form4.sffz==null||this.form4.sffz==""){
  4870. this.form4.sffz = "N"
  4871. }
  4872. if(this.form4.jglx==null||this.form4.jglx==""){
  4873. this.form4.jglx = "2"
  4874. this.form4.jglxName = "砖混"
  4875. }
  4876. if(this.form4.sfzzsy==null||this.form4.sfzzsy==""){
  4877. this.form4.sfzzsy = "Y"
  4878. }
  4879. if(this.form4.jzwqk==null||this.form4.jzwqk==""){
  4880. this.form4.jzwqk = "01"
  4881. this.form4.jzwqkName = "正常"
  4882. }
  4883. if(this.form4.tdzk==null||this.form4.tdzk==""){
  4884. this.form4.tdzk = "3"
  4885. this.form4.tdzkName = "其他"
  4886. }
  4887. if(this.form4.sfsgcf==null||this.form4.sfsgcf==""){
  4888. this.form4.sfsgcf = "N"
  4889. }
  4890. if(this.form4.theGeom==null||this.form4.theGeom==""){
  4891. this.form4.theGeom = this.form4.theGeom
  4892. }
  4893. this.fssslxOptions.map(res => {
  4894. if(res.dictValue == item.fssslx){
  4895. this.form4.fssslxName = res.dictLabel
  4896. }
  4897. })
  4898. this.qslyOptions.map(res => {
  4899. if(res.dictValue == item.qsly){
  4900. this.form4.qslyName = res.dictLabel
  4901. }
  4902. })
  4903. this.fwztOptions.map(res => {
  4904. if(res.dictValue == item.fwzt){
  4905. this.form4.fwztName = res.dictLabel
  4906. }
  4907. })
  4908. this.jglxOptions.map(res => {
  4909. if(res.dictValue == item.jglx){
  4910. this.form4.jglxName = res.dictLabel
  4911. }
  4912. })
  4913. this.jzwqkOptions.map(res => {
  4914. if(res.dictValue == item.jzwqk){
  4915. this.form4.jzwqkName = res.dictLabel
  4916. }
  4917. })
  4918. this.tdzkOptions.map(res => {
  4919. if(res.dictValue == item.tdzk){
  4920. this.form4.tdzkName = res.dictLabel
  4921. }
  4922. })
  4923. }
  4924. this.showfsss = true;
  4925. this.active = 4;
  4926. this.mapClickLoading();
  4927. }
  4928. },
  4929. showPopup3() {
  4930. this.show3 = true;
  4931. this.mapClickLoading();
  4932. },
  4933. onSubmit(values) {
  4934. console.log('submit', values);
  4935. },
  4936. changeActive(){
  4937. if(this.active<4){
  4938. this.active+=1
  4939. }else{
  4940. this.active=1
  4941. }
  4942. },
  4943. changeActiveBack(){
  4944. if(this.active>1){
  4945. this.active-=1
  4946. if(this.active ==1){
  4947. this.mapClickLoading();
  4948. }
  4949. }else{
  4950. this.active=1
  4951. this.mapClickLoading();
  4952. }
  4953. },
  4954. // 清空画板
  4955. handleReset() {
  4956. this.resultImg = null
  4957. if(this.$refs.esign){
  4958. this.$refs.esign.reset();
  4959. }
  4960. },
  4961. // 图片上传前
  4962. beforeRead(file){
  4963. // 创建Canvas对象(画布)
  4964. let canvas = document.createElement('canvas')
  4965. // 获取对应的CanvasRenderingContext2D对象(画笔)
  4966. let context = canvas.getContext('2d')
  4967. // 创建新的图片对象
  4968. let img = new Image()
  4969. // 指定图片的DataURL(图片的base64编码数据)
  4970. img.src = file.content
  4971. // 监听浏览器加载图片完成,然后进行进行绘制
  4972. const height = 166
  4973. const width = 316
  4974. img.onload = () => {
  4975. const h = img.height
  4976. const w = img.width
  4977. let ch = img.height/2
  4978. let cw = img.width/2
  4979. let canvas = document.createElement('canvas')
  4980. let ctx = canvas.getContext('2d')
  4981. canvas.height = ch
  4982. canvas.width = cw
  4983. ctx.clearRect(0,0,cw,ch)
  4984. ctx.drawImage(img,0,0,cw,ch)
  4985. let base_img = canvas.toDataURL('image/jpeg')
  4986. const blobBin = atob(base_img.split(',')[1])
  4987. let d = []
  4988. for (let i=0;i<blobBin.length;i++){
  4989. d.push(blobBin.charCodeAt(i))
  4990. }
  4991. const data2 = new FormData();
  4992. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  4993. uploadFile(data2).then(res => {
  4994. if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){
  4995. this.form.zjdxctp = this.form.zjdxctp + "," + res.fileName
  4996. }else{
  4997. this.form.zjdxctp = res.fileName
  4998. }
  4999. })
  5000. }
  5001. },
  5002. // 生成签字图
  5003. handleGenerate() {
  5004. this.$refs.esign
  5005. .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
  5006. .then((res) => {
  5007. this.resultImg = res;
  5008. if(this.enterMap ==1){
  5009. if(this.enterMapZjddm !="" && this.enterMapZjddm !=undefined && this.enterMapZjddm !=null){
  5010. updateZrzZt(this.enterMapZjddm).then(response => {});
  5011. updateFsssZt(this.enterMapZjddm).then(response => {});
  5012. }
  5013. }else {
  5014. if(this.$cookies.get("search").zjddm !="" && this.$cookies.get("search").zjddm !=undefined && this.$cookies.get("search").zjddm !=null){
  5015. updateZrzZt(this.$cookies.get("search").zjddm).then(response => {});
  5016. updateFsssZt(this.$cookies.get("search").zjddm).then(response => {});
  5017. }
  5018. }
  5019. })
  5020. .catch((err) => {
  5021. // 画布没有签字时会执行这里提示一下
  5022. this.$message({
  5023. type: "warning",
  5024. message: "请签名后再生成签字图片",
  5025. });
  5026. });
  5027. // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
  5028. // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
  5029. setTimeout(() => {
  5030. // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
  5031. // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
  5032. const blobBin = atob(this.resultImg.split(',')[1])
  5033. let d = []
  5034. for (let i=0;i<blobBin.length;i++){
  5035. d.push(blobBin.charCodeAt(i))
  5036. }
  5037. const data2 = new FormData();
  5038. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  5039. uploadFile(data2).then(res => {
  5040. this.form.dzqm = res.fileName
  5041. this.form.houseDataConfirmStatus = "CONFIRMED"
  5042. if (this.form.id != null) {
  5043. updateZjdzd(this.form).then(response => {
  5044. let _this =this
  5045. this.$toast({
  5046. icon: 'success', // 找到自己需要的图标
  5047. message: '修改成功',
  5048. duration:"1000",
  5049. onClose:function(){
  5050. _this.goBack();
  5051. }
  5052. })
  5053. });
  5054. } else {
  5055. addZjdzd(this.form).then(response => {
  5056. let _this =this
  5057. this.$toast({
  5058. icon: 'success', // 找到自己需要的图标
  5059. message: '保存成功',
  5060. duration:"1000",
  5061. onClose:function(){
  5062. _this.goBack();
  5063. }
  5064. })
  5065. });
  5066. }
  5067. })
  5068. }, 200);
  5069. /*this.showesign = false;*/
  5070. },
  5071. searchCommit(){
  5072. this.showesign = true
  5073. if(this.form.dzqm!=null&&this.form.dzqm!=""){
  5074. this.resultImg = this.baseUrl+this.form.dzqm
  5075. }
  5076. },
  5077. searchCommit1(){
  5078. this.form.houseDataConfirmStatus = "CONFIRMED"
  5079. if (this.form.id != null) {
  5080. updateZjdzd(this.form).then(response => {
  5081. let _this =this
  5082. this.$toast({
  5083. icon: 'success', // 找到自己需要的图标
  5084. message: '修改成功',
  5085. duration:"1000",
  5086. onClose:function(){
  5087. _this.goBack();
  5088. }
  5089. })
  5090. });
  5091. } else {
  5092. addZjdzd(this.form).then(response => {
  5093. let _this =this
  5094. this.$toast({
  5095. icon: 'success', // 找到自己需要的图标
  5096. message: '保存成功',
  5097. duration:"1000",
  5098. onClose:function(){
  5099. _this.goBack();
  5100. }
  5101. })
  5102. });
  5103. }
  5104. },
  5105. //地图加载js------start
  5106. mapClickLoading(){
  5107. console.log(1)
  5108. console.log(this.form);
  5109. setTimeout(() => {
  5110. this.$refs.drewingClickLoading.drawingPaceCountryDarw();
  5111. }, 500);
  5112. },
  5113. /** 查找地图中定位点 */
  5114. MapTag: function (data) {
  5115. if(this.active =="1"){
  5116. this.form.theGeom = data;
  5117. }else if(this.active=="3"){
  5118. this.form3.theGeom = data;
  5119. }else if(this.active=="4"){
  5120. this.form4.theGeom = data;
  5121. } else {
  5122. }
  5123. },
  5124. //地图加载js------end
  5125. }
  5126. }
  5127. </script>
  5128. <style scoped>
  5129. >>> .bannerBg{
  5130. width: 100%;
  5131. color:#fff;
  5132. padding:10px;
  5133. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  5134. }
  5135. >>> .van-hairline--bottom::after {
  5136. border-bottom-width: 0;
  5137. }
  5138. >>> .title:before
  5139. {
  5140. content:"";
  5141. width: 6px;
  5142. height: 32px;
  5143. background: #7ac943;
  5144. border-radius: 3px;
  5145. position:absolute;
  5146. left:0;
  5147. bottom:0;
  5148. }
  5149. >>> .delete-button {
  5150. height: 100%;
  5151. }
  5152. >>> .van-swipe-cell__wrapper{
  5153. margin-right:-1px;
  5154. }
  5155. </style>