移动端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

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