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

6066 regels
208 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.form.theGeom = this.cookiesInfo.mapZjdAData.theGeom;
  3218. this.enterMapZjddm = this.cookiesInfo.mapZjdAData.zjddm;
  3219. //返回地图值记录----end
  3220. this.active = this.cookiesInfo.active;
  3221. this.item = this.cookiesInfo.mapZjdAData;
  3222. if(this.item.houseDataConfirmStatus!="CONFIRMED"){
  3223. this.isFinished = true
  3224. }
  3225. this.form = this.cookiesInfo.mapZjdAData;
  3226. this.getnhdmlist();
  3227. /*this.getBaseUrl();*/
  3228. this.getZjd();
  3229. if(this.ztMap){
  3230. this.$cookies.set("search",this.backMap);
  3231. }
  3232. let zrz = this.cookiesInfo.mapZrzAData;
  3233. let fsss = this.cookiesInfo.mapFsssAData;
  3234. if(this.cookiesInfo.active=="3"){
  3235. this.showzrz = true
  3236. this.form3 = this.cookiesInfo.mapZrzAData
  3237. this.form3.theGeom = this.cookiesInfo.mapZrzAData.theGeom;
  3238. this.getZrzList()
  3239. setTimeout(() => {
  3240. this.showPopupzrz(zrz)
  3241. }, 500);
  3242. }else if(this.cookiesInfo.active=="4"){
  3243. this.showfsss= true
  3244. this.form4 = this.cookiesInfo.mapFsssAData
  3245. this.form4.theGeom = this.cookiesInfo.mapFsssAData.theGeom;
  3246. this.getFsssList()
  3247. setTimeout(() => {
  3248. this.showPopupfsss(fsss)
  3249. }, 500);
  3250. }
  3251. }else{
  3252. this.cookiesInfo = this.$cookies.get("search")
  3253. this.$cookies.set("search","")
  3254. this.item = this.cookiesInfo
  3255. this.$cookies.set("search",this.cookiesInfo);
  3256. if(this.item.houseDataConfirmStatus!="CONFIRMED"){
  3257. this.isFinished = true
  3258. }
  3259. /*this.getBaseUrl();*/
  3260. this.getnhdmlist();
  3261. this.getZjd();
  3262. }
  3263. }else{
  3264. this.$set(this.item,"deptId",this.$cookies.get("item").deptId)
  3265. if(this.item.houseDataConfirmStatus!="CONFIRMED"){
  3266. this.isFinished = true
  3267. }
  3268. /*this.getBaseUrl();*/
  3269. this.getnhdmlist();
  3270. this.getZjd();
  3271. }
  3272. this.getDicts("family_status").then(response => {
  3273. let arr = [];response.data.forEach(function (item) {
  3274. if (item.dictLabel !== '户主') {
  3275. arr.push(item)
  3276. }
  3277. });
  3278. this.yhzgxOptions = arr;
  3279. });
  3280. },
  3281. mounted(){
  3282. },
  3283. methods: {
  3284. showPic(){
  3285. if(this.form.dzqm!=null&&this.form.dzqm!=""){
  3286. this.resultImg = this.baseUrl+this.form.dzqm
  3287. }
  3288. if(this.$cookies.get("businessLevel")=='2'){
  3289. this.showsh = true
  3290. }else{
  3291. this.showsh = false
  3292. }
  3293. },
  3294. validatorIdcard(val){
  3295. if(this.form1.shyqrdbzjlx=='01'){
  3296. if(this.vcheckID(val)){
  3297. return true
  3298. }else {
  3299. return false
  3300. }
  3301. }else{
  3302. return true
  3303. }
  3304. },
  3305. validatorIdcard1(val){
  3306. if(this.nhform.hzzjlx=='01'){
  3307. if(this.vcheckID(val)){
  3308. return true
  3309. }else {
  3310. return false
  3311. }
  3312. }else{
  3313. return true
  3314. }
  3315. },
  3316. validatorIdcard2(val){
  3317. if(this.form5.zjlx=='01'){
  3318. if(this.vcheckID(val)){
  3319. return true
  3320. }else {
  3321. return false
  3322. }
  3323. }else{
  3324. return true
  3325. }
  3326. },
  3327. checkCode(val) {
  3328. 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]$/;
  3329. var factor = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2 ];
  3330. var parity = [ 1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2 ];
  3331. var code = val.substring(17);
  3332. if(p.test(val)) {
  3333. var sum = 0;
  3334. for(var i=0;i<17;i++) {
  3335. sum += val[i]*factor[i];
  3336. }
  3337. if(parity[sum % 11] == code.toUpperCase()) {
  3338. return true;
  3339. }
  3340. }
  3341. return false;
  3342. },
  3343. checkDate (val) {
  3344. var pattern = /^(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)$/;
  3345. if(pattern.test(val)) {
  3346. var year = val.substring(0, 4);
  3347. var month = val.substring(4, 6);
  3348. var date = val.substring(6, 8);
  3349. var date2 = new Date(year+"-"+month+"-"+date);
  3350. if(date2 && date2.getMonth() == (parseInt(month) - 1)) {
  3351. return true;
  3352. }
  3353. }
  3354. return false;
  3355. },
  3356. checkProv(val) {
  3357. var pattern = /^[1-9][0-9]/;
  3358. 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:"澳门"};
  3359. if(pattern.test(val)) {
  3360. if(provs[val]) {
  3361. return true;
  3362. }
  3363. }
  3364. return false;
  3365. },
  3366. vcheckID(val){
  3367. if(this.checkCode(val)) {
  3368. var date = val.substring(6,14);
  3369. if(this.checkDate(date)) {
  3370. if(this.checkProv(val.substring(0,2))) {
  3371. return true;
  3372. }
  3373. }
  3374. }
  3375. return false;
  3376. },
  3377. showdcshinfo(){
  3378. this.showdcsh = true
  3379. if(this.form.zjdAudit!=null&&this.form.zjdAudit!=""){
  3380. if(this.form.zjdAudit=='0'||this.form.zjdAudit=='1'){
  3381. this.zjdAudit = "1"
  3382. this.auditRemark = this.form.auditRemark
  3383. }else{
  3384. this.zjdAudit = this.form.zjdAudit
  3385. this.auditRemark = this.form.auditRemark
  3386. }
  3387. }else{
  3388. this.zjdAudit = "1"
  3389. this.auditRemark = ""
  3390. }
  3391. },
  3392. showycbjinfo(){
  3393. this.showycbj = true
  3394. if(this.form.isyc!=null&&this.form.isyc!=""){
  3395. this.isyc = this.form.isyc
  3396. this.ycms = this.form.ycms
  3397. this.fileListyc = []
  3398. if(this.form.yctp!=null&&this.form.yctp!=""&&this.form.yctp.length>0){
  3399. let li = this.form.yctp.split(",");
  3400. li.map(res => {
  3401. this.fileListyc.push({"url":this.baseUrl+res,"baseUrl":res})
  3402. })
  3403. }
  3404. }else{
  3405. this.isyc = "Y"
  3406. this.ycms = ""
  3407. }
  3408. },
  3409. savesh(){
  3410. this.form.zjdAudit = this.zjdAudit
  3411. this.form.auditRemark = this.auditRemark
  3412. if(this.form.zjdAudit=='2'){
  3413. this.form.houseDataConfirmStatus = 'UNCONFIRMED'
  3414. this.isFinished = true
  3415. let params = {
  3416. houseDataConfirmStatus : 'UNCONFIRMED',
  3417. zjddm : this.form.zjddm,
  3418. zjdAudit : "0"
  3419. }
  3420. updateZrzStatus(params).then(res => {
  3421. console.log(res)
  3422. })
  3423. updateFsssStatus(params).then(res => {
  3424. console.log(res)
  3425. })
  3426. updateZjdzd(this.form).then(response => {
  3427. let _this =this
  3428. this.$toast({
  3429. icon: 'success', // 找到自己需要的图标
  3430. message: '审核成功',
  3431. duration:"1000",
  3432. onClose:function(){
  3433. _this.showdcsh = false
  3434. _this.goBack()
  3435. }
  3436. })
  3437. });
  3438. }else{
  3439. let params = {
  3440. houseDataConfirmStatus : 'CONFIRMED',
  3441. zjddm : this.form.zjddm,
  3442. zjdAudit : "1"
  3443. }
  3444. updateZrzStatus(params).then(res => {
  3445. console.log(res)
  3446. })
  3447. updateFsssStatus(params).then(res => {
  3448. console.log(res)
  3449. })
  3450. updateZjdzd(this.form).then(response => {
  3451. let _this =this
  3452. this.$toast({
  3453. icon: 'success', // 找到自己需要的图标
  3454. message: '审核成功',
  3455. duration:"1000",
  3456. onClose:function(){
  3457. _this.showdcsh = false
  3458. _this.goBack()
  3459. }
  3460. })
  3461. });
  3462. }
  3463. },
  3464. saveyc(){
  3465. this.showycbj = false
  3466. this.form.isyc = this.isyc
  3467. this.form.ycms = this.ycms
  3468. let params = {
  3469. zjddm : this.form.zjddm,
  3470. isyc : this.form.isyc
  3471. }
  3472. updateZrzStatus(params).then(res => {})
  3473. updateFsssStatus(params).then(res => {})
  3474. updateZjdzd(this.form).then(response => {
  3475. let _this =this
  3476. this.$toast({
  3477. icon: 'success', // 找到自己需要的图标
  3478. message: '保存成功',
  3479. duration:"1000",
  3480. onClose:function(){
  3481. _this.showycbj = false
  3482. }
  3483. })
  3484. });
  3485. },
  3486. // 图片上传前
  3487. beforeReadyc(file){
  3488. // 创建Canvas对象(画布)
  3489. let canvas = document.createElement('canvas')
  3490. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3491. let context = canvas.getContext('2d')
  3492. // 创建新的图片对象
  3493. let img = new Image()
  3494. // 指定图片的DataURL(图片的base64编码数据)
  3495. img.src = file.content
  3496. // 监听浏览器加载图片完成,然后进行进行绘制
  3497. const height = 166
  3498. const width = 316
  3499. img.onload = () => {
  3500. const h = img.height
  3501. const w = img.width
  3502. let ch = img.height/6
  3503. let cw = img.width/6
  3504. let canvas = document.createElement('canvas')
  3505. let ctx = canvas.getContext('2d')
  3506. canvas.height = ch
  3507. canvas.width = cw
  3508. ctx.clearRect(0,0,cw,ch)
  3509. ctx.drawImage(img,0,0,cw,ch)
  3510. let base_img = canvas.toDataURL('image/jpeg')
  3511. const blobBin = atob(base_img.split(',')[1])
  3512. let d = []
  3513. for (let i=0;i<blobBin.length;i++){
  3514. d.push(blobBin.charCodeAt(i))
  3515. }
  3516. const data2 = new FormData();
  3517. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3518. uploadFile(data2).then(res => {
  3519. if(this.form.yctp!=null&&this.form.yctp!=""){
  3520. this.form.yctp = this.form.yctp + "," + res.fileName
  3521. }else{
  3522. this.form.yctp = res.fileName
  3523. }
  3524. })
  3525. }
  3526. },
  3527. // 图片删除
  3528. deleteFileyc(file){
  3529. let url = ","+file.baseUrl
  3530. let url1 = file.baseUrl+","
  3531. let url2 = file.baseUrl
  3532. this.form.yctp = this.form.yctp.replaceAll(url,"")
  3533. this.form.yctp = this.form.yctp.replaceAll(url1,"")
  3534. this.form.yctp = this.form.yctp.replaceAll(url2,"")
  3535. },
  3536. shownmfwlist(item){
  3537. this.zrzh = item.zrzh
  3538. this.shownmfw = true
  3539. this.fwlist=[]
  3540. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  3541. let params = {
  3542. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  3543. deptId:this.item.deptId,
  3544. zrzh:this.zrzh
  3545. }
  3546. listNmfw(params).then(r => {
  3547. this.fwlist = r.rows
  3548. })
  3549. }
  3550. },
  3551. /*getBaseUrl(){
  3552. let params={
  3553. configKey: "system.attachment.url"}
  3554. sysConfig(params).then(response => {
  3555. this.baseUrl = response.rows[0].configValue
  3556. })
  3557. },*/
  3558. // 验证
  3559. validator(val){
  3560. if(val>1||val<0||val.length>4){
  3561. return false
  3562. }else{
  3563. return true
  3564. }
  3565. },
  3566. validator1(val){
  3567. if(val>=1000||val<0||val.length>6){
  3568. return false
  3569. }else{
  3570. return true
  3571. }
  3572. },
  3573. // 所有权人农户代码列表
  3574. getnhdmlist(){
  3575. let params = {
  3576. "deptId" : this.item.deptId,
  3577. "nhValue":this.nhdmValue
  3578. }
  3579. listNh(params).then((response) => {
  3580. this.syqrnhdmlist = response.rows
  3581. });
  3582. },
  3583. //删除户内成员
  3584. deletehncy(id,index){
  3585. Dialog.confirm({
  3586. title: '警告',
  3587. message: '删除后无法恢复,确认删除此成员么?',
  3588. })
  3589. .then(() => {
  3590. // on confirm
  3591. delNhhncy(id).then(res => {
  3592. if(res.code=="200"){
  3593. this.hncylist.splice(index,1);
  3594. }
  3595. })
  3596. })
  3597. .catch(() => {
  3598. // on cancel
  3599. });
  3600. },
  3601. // 删除附属设施
  3602. deletefsss(id,index){
  3603. Dialog.confirm({
  3604. title: '警告',
  3605. message: '确认删除此附属物么?',
  3606. })
  3607. .then(() => {
  3608. // on confirm
  3609. delFsss(id).then(res => {
  3610. if(res.code=="200"){
  3611. this.fssslist.splice(index,1);
  3612. }
  3613. })
  3614. })
  3615. .catch(() => {
  3616. // on cancel
  3617. });
  3618. },// 删除自然幢
  3619. deletezrz(item,index){
  3620. this.zrzh = item.zrzh
  3621. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  3622. let params = {
  3623. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  3624. deptId:this.item.deptId,
  3625. zrzh:this.zrzh
  3626. }
  3627. listNmfw(params).then(r => {
  3628. if(r.rows.length>0){
  3629. this.$toast({
  3630. icon: 'erroe', // 找到自己需要的图标
  3631. message: '无法删除,此自然幢下有房屋信息!',
  3632. duration:"1000",
  3633. onClose:function(){
  3634. }
  3635. })
  3636. }else{
  3637. Dialog.confirm({
  3638. title: '警告',
  3639. message: '删除后无法恢复,确认删除此自然幢么?',
  3640. })
  3641. .then(() => {
  3642. // on confirm
  3643. delZrz(item.id).then(res => {
  3644. if(res.code=="200"){
  3645. this.zrzlist.splice(index,1);
  3646. }
  3647. })
  3648. })
  3649. .catch(() => {
  3650. // on cancel
  3651. });
  3652. }
  3653. })
  3654. }
  3655. },
  3656. // 删除使用权人
  3657. deletesyqr(id,index){
  3658. Dialog.confirm({
  3659. title: '警告',
  3660. message: '确认删除使用权人么?',
  3661. })
  3662. .then(() => {
  3663. // on confirm
  3664. delShyqr(id).then(res => {
  3665. if(res.code=="200"){
  3666. this.syqrlist.splice(index,1);
  3667. }
  3668. })
  3669. })
  3670. .catch(() => {
  3671. // on cancel
  3672. });
  3673. },
  3674. // 与户主关系翻译
  3675. yhzgxfy(value){
  3676. let label
  3677. this.yhzgxOptions.map(res => {
  3678. if(res.dictValue ==value){
  3679. label = res.dictLabel
  3680. }
  3681. })
  3682. return label
  3683. },
  3684. // 附属设施类型翻译
  3685. fssslxfy(value){
  3686. let label
  3687. this.fssslxOptions.map(res => {
  3688. if(res.dictValue ==value){
  3689. label = res.dictLabel
  3690. }
  3691. })
  3692. return label
  3693. },
  3694. // 建筑物情况翻译
  3695. jzwqkfy(value){
  3696. let label
  3697. this.jzwqkOptions.map(res => {
  3698. if(res.dictValue ==value){
  3699. label = res.dictLabel
  3700. }
  3701. })
  3702. return label
  3703. },
  3704. // 图片上传前
  3705. beforeReadzjd(file){
  3706. // 创建Canvas对象(画布)
  3707. let canvas = document.createElement('canvas')
  3708. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3709. let context = canvas.getContext('2d')
  3710. // 创建新的图片对象
  3711. let img = new Image()
  3712. // 指定图片的DataURL(图片的base64编码数据)
  3713. img.src = file.content
  3714. // 监听浏览器加载图片完成,然后进行进行绘制
  3715. const height = 166
  3716. const width = 316
  3717. img.onload = () => {
  3718. const h = img.height
  3719. const w = img.width
  3720. let ch = img.height/1
  3721. let cw = img.width/1
  3722. let canvas = document.createElement('canvas')
  3723. let ctx = canvas.getContext('2d')
  3724. canvas.height = ch
  3725. canvas.width = cw
  3726. ctx.clearRect(0,0,cw,ch)
  3727. ctx.drawImage(img,0,0,cw,ch)
  3728. let base_img = canvas.toDataURL('image/jpeg')
  3729. const blobBin = atob(base_img.split(',')[1])
  3730. let d = []
  3731. for (let i=0;i<blobBin.length;i++){
  3732. d.push(blobBin.charCodeAt(i))
  3733. }
  3734. const data2 = new FormData();
  3735. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3736. if(this.$cookies.get("upload")==null||this.$cookies.get("upload")==0){
  3737. uploadFile(data2).then(res => {
  3738. if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){
  3739. this.form.zjdxctp = this.form.zjdxctp + "," + res.fileName
  3740. }else{
  3741. this.form.zjdxctp = res.fileName
  3742. }
  3743. })
  3744. }else{
  3745. this.saveBlobAsFile(new Blob([new Uint8Array(d)],{type:'image/jpeg'}),this.form.zjddm)
  3746. }
  3747. }
  3748. },
  3749. blobToBase64(blob) {
  3750. return new Promise((resolve, reject) => {
  3751. const fileReader = new FileReader();
  3752. fileReader.onload = (e) => {
  3753. resolve(e.target.result);
  3754. };
  3755. // readAsDataURL
  3756. fileReader.readAsDataURL(blob);
  3757. fileReader.onerror = () => {
  3758. reject(new Error('blobToBase64 error'));
  3759. };
  3760. });
  3761. },
  3762. saveBlobAsFile(blob, fileName) {
  3763. var reader = new FileReader(blob);
  3764. reader.onloadend = function () {
  3765. var base64 = reader.result ;
  3766. var link = document.createElement("a");
  3767. link.setAttribute("href", base64);
  3768. link.setAttribute("download", fileName);
  3769. link.click();
  3770. };
  3771. reader.readAsDataURL(blob);
  3772. let link = document.createElement("a");
  3773. link.href = window.URL.createObjectURL(blob);
  3774. link.download = fileName;
  3775. link.click();
  3776. window.URL.revokeObjectURL(link.href)
  3777. link.remove()
  3778. },
  3779. // 图片删除
  3780. deleteFilezjd(file){
  3781. let url = ","+file.baseUrl
  3782. let url1 = file.baseUrl+","
  3783. let url2 = file.baseUrl
  3784. this.form.zjdxctp = this.form.zjdxctp.replaceAll(url,"")
  3785. this.form.zjdxctp = this.form.zjdxctp.replaceAll(url1,"")
  3786. this.form.zjdxctp = this.form.zjdxctp.replaceAll(url2,"")
  3787. },
  3788. // 图片上传前
  3789. beforeReadfw(file){
  3790. // 创建Canvas对象(画布)
  3791. let canvas = document.createElement('canvas')
  3792. // 获取对应的CanvasRenderingContext2D对象(画笔)
  3793. let context = canvas.getContext('2d')
  3794. // 创建新的图片对象
  3795. let img = new Image()
  3796. // 指定图片的DataURL(图片的base64编码数据)
  3797. img.src = file.content
  3798. // 监听浏览器加载图片完成,然后进行进行绘制
  3799. const height = 166
  3800. const width = 316
  3801. img.onload = () => {
  3802. const h = img.height
  3803. const w = img.width
  3804. let ch = img.height/5
  3805. let cw = img.width/5
  3806. let canvas = document.createElement('canvas')
  3807. let ctx = canvas.getContext('2d')
  3808. canvas.height = ch
  3809. canvas.width = cw
  3810. ctx.clearRect(0,0,cw,ch)
  3811. ctx.drawImage(img,0,0,cw,ch)
  3812. let base_img = canvas.toDataURL('image/jpeg')
  3813. const blobBin = atob(base_img.split(',')[1])
  3814. let d = []
  3815. for (let i=0;i<blobBin.length;i++){
  3816. d.push(blobBin.charCodeAt(i))
  3817. }
  3818. const data2 = new FormData();
  3819. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  3820. uploadFile(data2).then(res => {
  3821. if(this.nmfwform.zjdxctp!=null&&this.nmfwform.zjdxctp!=""){
  3822. this.nmfwform.zjdxctp = this.nmfwform.zjdxctp + "," + res.fileName
  3823. }else{
  3824. this.nmfwform.zjdxctp = res.fileName
  3825. }
  3826. })
  3827. }
  3828. },
  3829. // 图片删除
  3830. deleteFilefw(file){
  3831. let url = ","+file.baseUrl
  3832. let url1 = file.baseUrl+","
  3833. let url2 = file.baseUrl
  3834. this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url,"")
  3835. this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url1,"")
  3836. this.nmfwform.zjdxctp = this.nmfwform.zjdxctp.replaceAll(url2,"")
  3837. },
  3838. onConfirmhzsjly(value){
  3839. this.nhform.sjlyName = value.dictLabel
  3840. this.nhform.sjly = value.dictValue
  3841. this.showhzsjly= false
  3842. },
  3843. onConfirmhzjzqk(value){
  3844. this.nhform.jzqkName = value.dictLabel
  3845. this.nhform.jzqk = value.dictValue
  3846. this.showhzjzqk = false
  3847. },
  3848. onConfirmhzoccupation(value){
  3849. this.nhform.occupationName = value.dictLabel
  3850. this.nhform.occupation = value.dictValue
  3851. this.showhzoccupation = false
  3852. },
  3853. onConfirmhzzjlx(value){
  3854. this.nhform.hzzjlxName = value.dictLabel
  3855. this.nhform.hzzjlx = value.dictValue
  3856. this.showhzzjlx = false
  3857. },
  3858. onConfirmhzjzhcssfyzf(value){
  3859. this.nhform.jzhcssfyzfName = value.dictLabel
  3860. this.nhform.jzhcssfyzf = value.dictValue
  3861. this.showhzjzhcssfyzf= false
  3862. },
  3863. // 使用权人农民房屋代码弹出框
  3864. onConfirmsyqrnmfwdm(value){
  3865. this.form1.nmfwdm = value.nmfwdm
  3866. this.showsyqrnmfwdm = false
  3867. },
  3868. // 使用权人农户代码弹出框
  3869. onConfirmsyqrnhdmlist(value){
  3870. this.nhdmValue = null
  3871. this.form1.nhdm = value.nhdm
  3872. this.form1.shyqrdbxm = value.hzxm
  3873. this.form1.shyqrdbzjhm = value.hzzjhm
  3874. this.form1.shyqrdbzjlx = value.hzzjlx
  3875. this.form1.dh = value.phone
  3876. this.form1.dz = value.txdz
  3877. this.zjlxOptions.map(res => {
  3878. if(res.dictValue == this.form1.shyqrdbzjlx){
  3879. this.form1.shyqrdbzjlxName = res.dictLabel
  3880. }
  3881. })
  3882. this.showsyqrnhdmlist = false
  3883. },
  3884. // 农名房屋农户代码弹出框
  3885. onConfirmnmfwnhdm(value){
  3886. this.nhdmValue = null
  3887. this.nmfwform.nhdm = value.nhdm
  3888. this.shownmfwnhdm = false
  3889. },
  3890. // 使用权人所属行业弹出框
  3891. onConfirmsyqrsshy(value){
  3892. this.form1.sshyName = value.dictLabel
  3893. this.form1.sshy = value.dictValue
  3894. this.showsyqrsshy= false
  3895. },
  3896. // 户内成员数据来源弹出框
  3897. onConfirmhncysjly(value){
  3898. this.form5.sjlyName = value.dictLabel
  3899. this.form5.sjly = value.dictValue
  3900. this.showhncysjly= false
  3901. },
  3902. // 宅基地等级弹出框
  3903. onConfirmdj(value){
  3904. this.form.djName = value.dictLabel
  3905. this.form.dj = value.dictValue
  3906. this.showdj= false
  3907. },
  3908. // 户内成员职业弹出框
  3909. onConfirmhncyoccupation(value){
  3910. this.form5.occupationName = value.dictLabel
  3911. this.form5.occupation = value.dictValue
  3912. this.showhncyoccupation = false
  3913. },
  3914. // 户内成员成员备注弹出框
  3915. onConfirmhncycybz(value){
  3916. this.form5.cybzName = value.dictLabel
  3917. this.form5.cybz = value.dictValue
  3918. this.showhncycybz= false
  3919. },
  3920. // 户内成员居住情况弹出框
  3921. onConfirmhncyjzqk(value){
  3922. this.form5.jzqkName = value.dictLabel
  3923. this.form5.jzqk = value.dictValue
  3924. this.showhncyjzqk = false
  3925. },
  3926. // 自然幢房屋结构弹出框
  3927. onConfirmzrzfwjg(value){
  3928. this.form3.fwjgName = value.dictLabel
  3929. this.form3.fwjg = value.dictValue
  3930. this.showzrzfwjg = false
  3931. },
  3932. // 户内成员自然幢号弹出框
  3933. onConfirmzrzh(value){
  3934. this.nmfwform.zrzh = value.zrzh
  3935. this.showzrzh = false
  3936. },
  3937. // 户内成员证件类型弹出框
  3938. onConfirmhncyzjlx(value){
  3939. this.form5.zjlxName = value.dictLabel
  3940. this.form5.zjlx = value.dictValue
  3941. this.showhncyzjlx = false
  3942. },
  3943. // 宅基地用途弹出框
  3944. onConfirmyt(value){
  3945. this.form.ytmc = value.dictLabel
  3946. this.form.yt = value.dictValue
  3947. this.showyt = false
  3948. },
  3949. // 宅基地权利类型弹出框
  3950. onConfirmqllx(value){
  3951. this.form.qllxName = value.dictLabel
  3952. this.form.qllx = value.dictValue
  3953. this.showqllx = false
  3954. },
  3955. // 宅基地权利性质弹出框
  3956. onConfirmqlxz(value){
  3957. this.form.qlxzName = value.dictLabel
  3958. this.form.qlxz = value.dictValue
  3959. this.showqlxz = false
  3960. },
  3961. // 宅基地权利设定方式弹出框
  3962. onConfirmqlsdfs(value){
  3963. this.form.qlsdfsName = value.dictLabel
  3964. this.form.qlsdfs = value.dictValue
  3965. this.showqlsdfs = false
  3966. },
  3967. // 户内成员与户主关系弹出框
  3968. onConfirmyhzgx(value){
  3969. this.form5.yhzgxName = value.dictLabel
  3970. this.form5.yhzgx = value.dictValue
  3971. this.showyhzgx = false
  3972. },
  3973. // 使用权人权利人类型弹出框
  3974. onConfirmqlrlx(value){
  3975. this.form1.qlrlxName = value.dictLabel
  3976. this.form1.qlrlx = value.dictValue
  3977. this.showqlrlx = false
  3978. },
  3979. // 使用权人证件类型弹出框
  3980. onConfirmshyqrdbzjlx(value){
  3981. this.form1.shyqrdbzjlxName = value.dictLabel
  3982. this.form1.shyqrdbzjlx = value.dictValue
  3983. this.showshyqrdbzjlx = false
  3984. },
  3985. // 使用权人共有方式弹出框
  3986. onConfirmgyfs(value){
  3987. this.form1.gyfsName = value.dictLabel
  3988. this.form1.gyfs = value.dictValue
  3989. this.showgyfs = false
  3990. },
  3991. // 使用权人户籍所在省市弹出框
  3992. onConfirmhjszss(value){
  3993. this.form1.hjszssName = value.dictLabel
  3994. this.form1.hjszss = value.dictValue
  3995. this.showhjszss = false
  3996. },
  3997. // 农民房屋户型弹出框
  3998. onConfirmhx(value){
  3999. this.nmfwform.hxName = value.dictLabel
  4000. this.nmfwform.hx = value.dictValue
  4001. this.showhx = false
  4002. },
  4003. // 农民房屋户型结构弹出框
  4004. onConfirmhxjg(value){
  4005. this.nmfwform.hxjgName = value.dictLabel
  4006. this.nmfwform.hxjg = value.dictValue
  4007. this.showhxjg = false
  4008. },
  4009. // 农民房屋房屋结构弹出框
  4010. onConfirmfwjg(value){
  4011. this.nmfwform.fwjgName = value.dictLabel
  4012. this.nmfwform.fwjg = value.dictValue
  4013. this.showfwjg = false
  4014. },
  4015. // 农民房屋房屋用途弹出框
  4016. onConfirmfwyt(value){
  4017. this.nmfwform.fwytName = value.dictLabel
  4018. this.nmfwform.fwyt = value.dictValue
  4019. this.showfwyt = false
  4020. },
  4021. // 农民房屋房屋类型弹出框
  4022. onConfirmfwlx(value){
  4023. this.nmfwform.fwlxName = value.dictLabel
  4024. this.nmfwform.fwlx = value.dictValue
  4025. this.showfwlx = false
  4026. },
  4027. // 农民房屋房屋性质弹出框
  4028. onConfirmfwxz(value){
  4029. this.nmfwform.fwxzName = value.dictLabel
  4030. this.nmfwform.fwxz = value.dictValue
  4031. this.showfwxz = false
  4032. },
  4033. // 农民房屋数据来源弹出框
  4034. onConfirmnmfwsjly(value){
  4035. this.nmfwform.sjlyName = value.dictLabel
  4036. this.nmfwform.sjly = value.dictValue
  4037. this.shownmfwsjly = false
  4038. },
  4039. // 农民房屋房屋状态弹出框
  4040. onConfirmnmfwfwzt(value){
  4041. this.nmfwform.fwztName = value.dictLabel
  4042. this.nmfwform.fwzt = value.dictValue
  4043. this.shownmfwfwzt = false
  4044. },
  4045. // 农民房屋利用状况弹出框
  4046. onConfirmnmfwlyzk(value){
  4047. this.nmfwform.lyzkName = value.dictLabel
  4048. this.nmfwform.lyzk = value.dictValue
  4049. this.shownmfwlyzk = false
  4050. },
  4051. // 农民房屋盘活利用模式弹出框
  4052. onConfirmphlyms(value){
  4053. this.nmfwform.phlymsName = value.dictLabel
  4054. this.nmfwform.phlyms = value.dictValue
  4055. this.showphlyms = false
  4056. },
  4057. // 农民房屋权属来源弹出框
  4058. onConfirmnmfwqsly(value){
  4059. this.nmfwform.qslyName = value.dictLabel
  4060. this.nmfwform.qsly = value.dictValue
  4061. this.shownmfwqsly = false
  4062. },
  4063. // 农民房屋审批或建设前土地状况弹出框
  4064. onConfirmnmfwtdzk(value){
  4065. this.nmfwform.tdzkName = value.dictLabel
  4066. this.nmfwform.tdzk = value.dictValue
  4067. this.shownmfwtdzk = false
  4068. },
  4069. // 农民房屋登记时间弹出框
  4070. onConfirmdjsj(val){
  4071. let year = val.getFullYear()
  4072. let month = val.getMonth() + 1
  4073. let day = val.getDate()
  4074. if (month >= 1 && month <= 9) { month = `0${month}` }
  4075. if (day >= 1 && day <= 9) { day = `0${day}` }
  4076. this.nmfwform.djsj = year+"-"+month+"-"+day
  4077. this.showPickerdjsj= false
  4078. },
  4079. // 农民房屋查封起始时间弹出框
  4080. onConfirmcfqssj(val){
  4081. let year = val.getFullYear()
  4082. let month = val.getMonth() + 1
  4083. let day = val.getDate()
  4084. if (month >= 1 && month <= 9) { month = `0${month}` }
  4085. if (day >= 1 && day <= 9) { day = `0${day}` }
  4086. this.nmfwform.cfqssj = year+"-"+month+"-"+day
  4087. this.showPickercfqssj= false
  4088. },
  4089. // 农民房屋查封结束时间弹出框
  4090. onConfirmcfjssj(val){
  4091. let year = val.getFullYear()
  4092. let month = val.getMonth() + 1
  4093. let day = val.getDate()
  4094. if (month >= 1 && month <= 9) { month = `0${month}` }
  4095. if (day >= 1 && day <= 9) { day = `0${day}` }
  4096. this.nmfwform.cfjssj = year+"-"+month+"-"+day
  4097. this.showPickercfjssj= false
  4098. },
  4099. // 农民房屋债务履行开始时间弹出框
  4100. onConfirmzwlxsj1(val){
  4101. let year = val.getFullYear()
  4102. let month = val.getMonth() + 1
  4103. let day = val.getDate()
  4104. if (month >= 1 && month <= 9) { month = `0${month}` }
  4105. if (day >= 1 && day <= 9) { day = `0${day}` }
  4106. this.nmfwform.zwlxsj1 = year+"-"+month+"-"+day
  4107. this.showPickerzwlxsj1= false
  4108. },
  4109. // 自然幢竣工日期弹出框
  4110. onConfirmzrzjgrq(val){
  4111. let year = val.getFullYear()
  4112. let month = val.getMonth() + 1
  4113. let day = val.getDate()
  4114. if (month >= 1 && month <= 9) { month = `0${month}` }
  4115. if (day >= 1 && day <= 9) { day = `0${day}` }
  4116. this.form3.jgrq = year+"-"+month+"-"+day
  4117. this.showPickerjgrq= false
  4118. },
  4119. // 农民房屋债务履行结束时间弹出框
  4120. onConfirmzwlxsj2(val){
  4121. let year = val.getFullYear()
  4122. let month = val.getMonth() + 1
  4123. let day = val.getDate()
  4124. if (month >= 1 && month <= 9) { month = `0${month}` }
  4125. if (day >= 1 && day <= 9) { day = `0${day}` }
  4126. this.nmfwform.zwlxsj2 = year+"-"+month+"-"+day
  4127. this.showPickerzwlxsj2= false
  4128. },
  4129. // 农民房屋批准时间弹出框
  4130. onConfirmpzsj(value){
  4131. this.nmfwform.pzsjName = value.dictLabel
  4132. this.nmfwform.pzsj = value.dictValue
  4133. this.showPickerpzsj= false
  4134. },
  4135. // 附属设施类型弹出框
  4136. onConfirmfssslx(value){
  4137. this.form4.fssslxName = value.dictLabel
  4138. this.form4.fssslx = value.dictValue
  4139. this.showfssslx = false
  4140. },
  4141. // 权属来源弹出框
  4142. onConfirmqsly(value){
  4143. this.form4.qslyName = value.dictLabel
  4144. this.form4.qsly = value.dictValue
  4145. this.showqsly = false
  4146. },
  4147. // 房屋状态弹出框
  4148. onConfirmfwzt(value){
  4149. this.form4.fwztName = value.dictLabel
  4150. this.form4.fwzt = value.dictValue
  4151. this.showfwzt = false
  4152. },
  4153. // 结构类型弹出框
  4154. onConfirmjglx(value){
  4155. this.form4.jglxName = value.dictLabel
  4156. this.form4.jglx = value.dictValue
  4157. this.showjglx = false
  4158. },
  4159. // 建筑物情况弹出框
  4160. onConfirmjzwqk(value){
  4161. this.form4.jzwqkName = value.dictLabel
  4162. this.form4.jzwqk = value.dictValue
  4163. this.showjzwqk = false
  4164. },
  4165. // 土地状况弹出框
  4166. onConfirmtdzk(value){
  4167. this.form4.tdzkName = value.dictLabel
  4168. this.form4.tdzk = value.dictValue
  4169. this.showtdzk = false
  4170. },
  4171. // 当前利用状况弹出框
  4172. onConfirmlyzk(value){
  4173. this.form.lyzkName = value.dictLabel
  4174. this.form.lyzk = value.dictValue
  4175. this.showlyzk = false
  4176. },
  4177. // 数据来源弹出框
  4178. onConfirmsjly(value){
  4179. this.form.sjlyName = value.dictLabel
  4180. this.form.sjly = value.dictValue
  4181. this.showsjly = false
  4182. },
  4183. // 自然幢数据里来源弹出框
  4184. onConfirmzrzsjly(value){
  4185. this.form3.sjlyName = value.dictLabel
  4186. this.form3.sjly = value.dictValue
  4187. this.showzrzsjly = false
  4188. },
  4189. // 闲置开始时间弹出框
  4190. onConfirmxzkssj(val){
  4191. let year = val.getFullYear()
  4192. let month = val.getMonth() + 1
  4193. let day = val.getDate()
  4194. if (month >= 1 && month <= 9) { month = `0${month}` }
  4195. if (day >= 1 && day <= 9) { day = `0${day}` }
  4196. this.form.xzkssj = year+"-"+month+"-"+day
  4197. this.showPickerxzkssj= false
  4198. },
  4199. goBack(){
  4200. // if(this.enterMap ==1){
  4201. // this.$cookies.set("item",this.backMap);
  4202. // this.$router.push({name:'homesteadList'});
  4203. // } else {
  4204. //this.enterMap="";
  4205. //this.$cookies.set("item","");
  4206. if(this.ztMap && this.enterMap ==1){
  4207. this.$cookies.set("search",this.backMap);
  4208. } else {
  4209. this.$cookies.set("search","");
  4210. }
  4211. this.$router.push({name:'homesteadList'});
  4212. // }
  4213. },
  4214. // 设为户主
  4215. setNh(item,index){
  4216. Dialog.confirm({
  4217. title: '警告',
  4218. message: '此操作将删除原户主,并将此成员设为新户主,是否确认操作?',
  4219. })
  4220. .then(() => {
  4221. // on confirm
  4222. delNhhncy(item.id).then(res => {
  4223. if(res.code=="200"){
  4224. this.hncylist.splice(index,1);
  4225. }
  4226. })
  4227. // 更新户主信息
  4228. let pnh = {
  4229. deptId : item.deptId,
  4230. nhdm : item.nhdm,
  4231. hzxm : item.xm,
  4232. hzzjlx : item.zjlx,
  4233. hzzjhm : item.zjhm,
  4234. phone : item.lxdh,
  4235. jzqk: item.jzqk,
  4236. occupation :item.occupation,
  4237. hyzk: item.hyzk,
  4238. sfwbh:item.sfwbh,
  4239. sfpkh:item.sfpkh
  4240. }
  4241. setNhInfo(pnh).then(res => {
  4242. })
  4243. // 更新使用权人
  4244. let psyqr = {
  4245. deptId : item.deptId,
  4246. nhdm : item.nhdm,
  4247. shyqrdbxm : item.xm,
  4248. shyqrdbzjlx : item.zjlx,
  4249. shyqrdbzjhm : item.zjhm,
  4250. xb : item.xb,
  4251. dh : item.lxdh
  4252. }
  4253. setSyqrInfo(psyqr).then(res => {
  4254. })
  4255. })
  4256. .catch(() => {
  4257. // on cancel
  4258. });
  4259. },
  4260. // 删除房屋
  4261. deletefw(id,index){
  4262. Dialog.confirm({
  4263. title: '警告',
  4264. message: '确认删除此房屋么?',
  4265. })
  4266. .then(() => {
  4267. // on confirm
  4268. delNmfw(id).then(response => {
  4269. if(response.code=='200'){
  4270. this.fwlist.splice(index,1)
  4271. }
  4272. })
  4273. })
  4274. .catch(() => {
  4275. // on cancel
  4276. });
  4277. },
  4278. showPopupnh(item){
  4279. this.shownh = true;
  4280. if(item==""){
  4281. let params = {
  4282. "deptId" : this.item.deptId
  4283. }
  4284. this.nhform={
  4285. "suyqrdm":null,
  4286. "deptId":this.item.deptId,
  4287. "hzzjlx":'01',
  4288. "hzzjlxName":"身份证",
  4289. "hyzk":'02',
  4290. "occupation":'1',
  4291. "occupationName":'务农',
  4292. "jzqk":'3',
  4293. "jzqkName":'常年居住',
  4294. "jzhcssfyzf":'1',
  4295. "jzhcssfyzfName":'无住房',
  4296. "zqtczsfyzf":'Y',
  4297. "sfbccm":'Y',
  4298. "sfpkh":'N',
  4299. "sfwbh":'N',
  4300. "sjly":'07',
  4301. "sjlyName":'农村集体产权制度改革',
  4302. }
  4303. listSuyqr(params).then((response) => {
  4304. if(response.rows.length>0){
  4305. this.nhform.suyqrdm = response.rows[0].suyqrdm
  4306. this.nhform.txdz = response.rows[0].suyqrmc
  4307. }else{
  4308. this.nhform.suyqrdm = this.form.suyqrdm
  4309. this.nhform.txdz = this.form.zl
  4310. }
  4311. });
  4312. }else{
  4313. let params = {
  4314. "deptId" : this.item.deptId,
  4315. nhdm:item.nhdm
  4316. }
  4317. listNh(params).then((response) => {
  4318. this.nhform = response.rows[0]
  4319. if(this.nhform.hzzjlx==null||this.nhform.hzzjlx==''){
  4320. this.nhform.hzzjlx = '01'
  4321. this.nhform.hzzjlxName = '身份证'
  4322. }
  4323. if(this.nhform.hyzk==null||this.nhform.hyzk==''){
  4324. this.nhform.hyzk = '02'
  4325. }
  4326. if(this.nhform.occupation==null||this.nhform.occupation==''){
  4327. this.nhform.occupation = '1'
  4328. this.nhform.occupationName = '务农'
  4329. }
  4330. if(this.nhform.jzqk==null||this.nhform.jzqk==''){
  4331. this.nhform.jzqk = '3'
  4332. this.nhform.jzqkName = '常年居住'
  4333. }
  4334. if(this.nhform.jzhcssfyzf==null||this.nhform.jzhcssfyzf==''){
  4335. this.nhform.jzhcssfyzf = '1'
  4336. this.nhform.jzhcssfyzfName = '无住房'
  4337. }
  4338. if(this.nhform.zqtczsfyzf==null||this.nhform.zqtczsfyzf==''){
  4339. this.nhform.zqtczsfyzf = 'Y'
  4340. }
  4341. if(this.nhform.sfbccm==null||this.nhform.sfbccm==''){
  4342. this.nhform.sfbccm = 'Y'
  4343. }
  4344. if(this.nhform.sfpkh==null||this.nhform.sfpkh==''){
  4345. this.nhform.sfpkh = 'N'
  4346. }
  4347. if(this.nhform.sfwbh==null||this.nhform.sfwbh==''){
  4348. this.nhform.sfwbh = 'N'
  4349. }
  4350. if(this.nhform.sjly==null||this.nhform.sjly==''){
  4351. this.nhform.sjly = '07'
  4352. this.nhform.sjlyName = '农村集体产权制度改革'
  4353. }
  4354. this.jzhcssfyzfOptions.map(res => {
  4355. if(res.dictValue == this.nhform.jzhcssfyzf){
  4356. this.nhform.jzhcssfyzfName = res.dictLabel
  4357. }
  4358. })
  4359. this.zjlxOptions.map(res => {
  4360. if(res.dictValue == this.nhform.hzzjlx){
  4361. this.nhform.hzzjlxName = res.dictLabel
  4362. }
  4363. })
  4364. this.occupationOptions.map(res => {
  4365. if(res.dictValue == this.nhform.occupation){
  4366. this.nhform.occupationName = res.dictLabel
  4367. }
  4368. })
  4369. this.jzqkOptions.map(res => {
  4370. if(res.dictValue == this.nhform.jzqk){
  4371. this.nhform.jzqkName = res.dictLabel
  4372. }
  4373. })
  4374. this.sjlyOptions.map(res => {
  4375. if(res.dictValue == this.nhform.sjly){
  4376. this.nhform.sjlyName = res.dictLabel
  4377. }
  4378. })
  4379. });
  4380. }
  4381. },
  4382. getZjd() {
  4383. let _this = this
  4384. if(this.item.zjddm){
  4385. let params = {
  4386. "zjddm":this.item.zjddm,
  4387. deptId:this.item.deptId
  4388. }
  4389. listZjdzd(params).then(response => {
  4390. this.form = response.rows[0];
  4391. if(this.form.sffz==null||this.form.sffz==""){
  4392. this.form.sffz = "Y"
  4393. }
  4394. if(this.form.yt==null||this.form.yt==""){
  4395. this.form.yt = "072"
  4396. this.form.ytmc="农村宅基地"
  4397. }
  4398. if(this.form.lyzk==null||this.form.lyzk==""){
  4399. this.form.lyzk = "1"
  4400. this.form.lyzkName="正常使用"
  4401. }
  4402. if(this.form.lzyx==null||this.form.lzyx==""){
  4403. this.form.lzyx = "0"
  4404. }
  4405. if(this.form.yctcyx==null||this.form.yctcyx==""){
  4406. this.form.yctcyx = "0"
  4407. }
  4408. if(this.form.bccjl==null||this.form.bccjl==""){
  4409. this.form.bccjl = "0"
  4410. }
  4411. if(this.form.zjdqdfs==null||this.form.zjdqdfs==""){
  4412. this.form.zjdqdfs = "01"
  4413. }
  4414. if(this.form.dj==null||this.form.dj==""){
  4415. this.form.dj = "1"
  4416. this.form.djName = "一类"
  4417. }
  4418. if(this.form.qllx==null||this.form.qllx==""){
  4419. this.form.qllx = "1"
  4420. this.form.qllxName = "集体土地所有权"
  4421. }
  4422. if(this.form.qlxz==null||this.form.qlxz==""){
  4423. this.form.qlxz = "200"
  4424. this.form.qlxzName = "集体土地"
  4425. }
  4426. if(this.form.qlsdfs==null||this.form.qlsdfs==""){
  4427. this.form.qlsdfs = "1"
  4428. this.form.qlsdfsName = "地上"
  4429. }
  4430. if(this.form.sjly==null||this.form.sjly==""){
  4431. this.form.sjly = "04"
  4432. this.form.sjlyName = "农村宅基地使用权确权登记发证"
  4433. }else{
  4434. this.sjlyOptions.map(res => {
  4435. if(res.dictValue == this.form.sjly){
  4436. this.form.sjlyName = res.dictLabel
  4437. }
  4438. })
  4439. }
  4440. this.fileListzjd = []
  4441. if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""&&this.form.zjdxctp.length>0){
  4442. let li = this.form.zjdxctp.split(",");
  4443. li.map(res => {
  4444. this.fileListzjd.push({"url":this.baseUrl+res,"baseUrl":res})
  4445. })
  4446. }
  4447. this.lyzkOptions.map(res => {
  4448. if(res.dictValue == this.form.lyzk){
  4449. this.form.lyzkName = res.dictLabel
  4450. }
  4451. })
  4452. this.qllxOptions.map(res => {
  4453. if(res.dictValue == this.form.qllx){
  4454. this.form.qllxName = res.dictLabel
  4455. }
  4456. })
  4457. this.qlxzOptions.map(res => {
  4458. if(res.dictValue == this.form.qlxz){
  4459. this.form.qlxzName = res.dictLabel
  4460. }
  4461. })
  4462. this.qlsdfsOptions.map(res => {
  4463. if(res.dictValue == this.form.qlsdfs){
  4464. this.form.qlsdfsName = res.dictLabel
  4465. }
  4466. })
  4467. this.ytOptions.map(res => {
  4468. if(res.dictValue == this.form.yt){
  4469. this.form.ytmc = res.dictLabel
  4470. }
  4471. })
  4472. this.tddjOptions.map(res => {
  4473. if(res.dictValue == this.form.dj){
  4474. this.form.djName = res.dictLabel
  4475. }
  4476. })
  4477. this.zjdProduct();
  4478. });
  4479. }else{
  4480. let params = {
  4481. "deptId" : this.item.deptId
  4482. }
  4483. listSuyqr(params).then((response) => {
  4484. this.form = {
  4485. deptId :this.item.deptId,
  4486. sffz:"Y",
  4487. yt:"072",
  4488. ytmc:"农村宅基地",
  4489. lyzk:"1",
  4490. lyzkName:"正常使用",
  4491. lzyx:'0',
  4492. yctcyx:'0',
  4493. bccjl:'0',
  4494. zjdqdfs:'01',
  4495. dj:'1',
  4496. djName:'一类',
  4497. qllx:'1',
  4498. qllxName:'集体土地所有权',
  4499. qlxz:'200',
  4500. qlxzName:'集体土地',
  4501. qlsdfs:'1',
  4502. qlsdfsName:'地上',
  4503. sjly:'04',
  4504. sjlyName:'农村宅基地使用权确权登记发证',
  4505. zl:'',
  4506. theGeom:this.form.theGeom,
  4507. }
  4508. if(response.rows.length>0){
  4509. this.form.suyqrdm = response.rows[0].suyqrdm
  4510. this.form.zl = response.rows[0].suyqrmc
  4511. }
  4512. this.zjdProduct();
  4513. });
  4514. }
  4515. },
  4516. getSyqrList() {
  4517. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  4518. let params = {
  4519. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4520. deptId:this.item.deptId
  4521. }
  4522. listShyqr(params).then(response => {
  4523. this.syqrlist = response.rows;
  4524. });
  4525. }
  4526. },
  4527. getZrzList() {
  4528. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  4529. let params = {
  4530. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4531. deptId:this.item.deptId
  4532. }
  4533. listZrz(params).then(response => {
  4534. this.zrzlist = response.rows;
  4535. if(this.active ==3 && this.enterMap ==1 && this.ztMap){
  4536. this.form3.zjddm = this.backMap.zjddm;
  4537. }
  4538. });
  4539. /*listNmfw(params).then(r => {
  4540. this.fwlist = r.rows
  4541. })*/
  4542. }
  4543. },
  4544. getFsssList() {
  4545. if(this.item.zjddm!=null||this.form.zjddm!=null) {
  4546. let params = {
  4547. "zjddm":this.item.zjddm?this.item.zjddm:this.form.zjddm,
  4548. deptId:this.item.deptId
  4549. }
  4550. listFsss(params).then(response => {
  4551. this.fssslist = response.rows;
  4552. if(this.active ==4 && this.enterMap ==1 && this.ztMap){
  4553. this.form4.zjddm = this.backMap.zjddm;
  4554. }
  4555. });
  4556. }
  4557. },
  4558. onSubmithncy(){
  4559. if (this.form5.id != null) {
  4560. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  4561. if(this.form5.xb!='1'){
  4562. Dialog.confirm({
  4563. title: '警告',
  4564. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  4565. })
  4566. .then(() => {
  4567. // on confirm
  4568. updateNhhncy(this.form5).then(response => {
  4569. let _this =this
  4570. this.$toast({
  4571. icon: 'success', // 找到自己需要的图标
  4572. message: '修改成功',
  4573. duration:"1000",
  4574. onClose:function(){
  4575. _this.showhncy = false
  4576. let params = {
  4577. "nhdm":_this.form5.nhdm,
  4578. deptId:_this.form5.deptId
  4579. }
  4580. listNhhncy(params).then((response) => {
  4581. _this.hncylist = response.rows
  4582. })
  4583. }
  4584. })
  4585. });
  4586. })
  4587. .catch(() => {
  4588. // on cancel
  4589. });
  4590. }else{
  4591. updateNhhncy(this.form5).then(response => {
  4592. let _this =this
  4593. this.$toast({
  4594. icon: 'success', // 找到自己需要的图标
  4595. message: '修改成功',
  4596. duration:"1000",
  4597. onClose:function(){
  4598. _this.showhncy = false
  4599. let params = {
  4600. "nhdm":_this.form5.nhdm,
  4601. deptId:_this.form5.deptId
  4602. }
  4603. listNhhncy(params).then((response) => {
  4604. _this.hncylist = response.rows
  4605. })
  4606. }
  4607. })
  4608. });
  4609. }
  4610. } else if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 0){
  4611. if(this.form5.xb!='0'){
  4612. Dialog.confirm({
  4613. title: '警告',
  4614. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  4615. })
  4616. .then(() => {
  4617. // on confirm
  4618. updateNhhncy(this.form5).then(response => {
  4619. let _this =this
  4620. this.$toast({
  4621. icon: 'success', // 找到自己需要的图标
  4622. message: '修改成功',
  4623. duration:"1000",
  4624. onClose:function(){
  4625. _this.showhncy = false
  4626. let params = {
  4627. "nhdm":_this.form5.nhdm,
  4628. deptId:_this.form5.deptId
  4629. }
  4630. listNhhncy(params).then((response) => {
  4631. _this.hncylist = response.rows
  4632. })
  4633. }
  4634. })
  4635. });
  4636. })
  4637. .catch(() => {
  4638. // on cancel
  4639. });
  4640. }else{
  4641. updateNhhncy(this.form5).then(response => {
  4642. let _this =this
  4643. this.$toast({
  4644. icon: 'success', // 找到自己需要的图标
  4645. message: '修改成功',
  4646. duration:"1000",
  4647. onClose:function(){
  4648. _this.showhncy = false
  4649. let params = {
  4650. "nhdm":_this.form5.nhdm,
  4651. deptId:_this.form5.deptId
  4652. }
  4653. listNhhncy(params).then((response) => {
  4654. _this.hncylist = response.rows
  4655. })
  4656. }
  4657. })
  4658. });
  4659. }
  4660. }else{
  4661. updateNhhncy(this.form5).then(response => {
  4662. let _this =this
  4663. this.$toast({
  4664. icon: 'success', // 找到自己需要的图标
  4665. message: '修改成功',
  4666. duration:"1000",
  4667. onClose:function(){
  4668. _this.showhncy = false
  4669. let params = {
  4670. "nhdm":_this.form5.nhdm,
  4671. deptId:_this.form5.deptId
  4672. }
  4673. listNhhncy(params).then((response) => {
  4674. _this.hncylist = response.rows
  4675. })
  4676. }
  4677. })
  4678. });
  4679. }
  4680. } else {
  4681. if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 1) {
  4682. if(this.form5.xb!='1'){
  4683. Dialog.confirm({
  4684. title: '警告',
  4685. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  4686. })
  4687. .then(() => {
  4688. // on confirm
  4689. addNhhncy(this.form5).then(response => {
  4690. let _this =this
  4691. this.$toast({
  4692. icon: 'success', // 找到自己需要的图标
  4693. message: '保存成功',
  4694. duration:"1000",
  4695. onClose:function(){
  4696. _this.showhncy = false
  4697. let params = {
  4698. "nhdm":_this.form5.nhdm,
  4699. deptId:_this.form5.deptId
  4700. }
  4701. listNhhncy(params).then((response) => {
  4702. _this.hncylist = response.rows
  4703. })
  4704. }
  4705. })
  4706. });
  4707. })
  4708. .catch(() => {
  4709. // on cancel
  4710. });
  4711. }else{
  4712. addNhhncy(this.form5).then(response => {
  4713. let _this =this
  4714. this.$toast({
  4715. icon: 'success', // 找到自己需要的图标
  4716. message: '保存成功',
  4717. duration:"1000",
  4718. onClose:function(){
  4719. _this.showhncy = false
  4720. let params = {
  4721. "nhdm":_this.form5.nhdm,
  4722. deptId:_this.form5.deptId
  4723. }
  4724. listNhhncy(params).then((response) => {
  4725. _this.hncylist = response.rows
  4726. })
  4727. }
  4728. })
  4729. });
  4730. }
  4731. } else if (this.form5.zjlx=='01'&&parseInt(this.form5.zjhm.substr(16, 1)) % 2 == 0){
  4732. if(this.form5.xb!='0'){
  4733. Dialog.confirm({
  4734. title: '警告',
  4735. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  4736. })
  4737. .then(() => {
  4738. // on confirm
  4739. addNhhncy(this.form5).then(response => {
  4740. let _this =this
  4741. this.$toast({
  4742. icon: 'success', // 找到自己需要的图标
  4743. message: '保存成功',
  4744. duration:"1000",
  4745. onClose:function(){
  4746. _this.showhncy = false
  4747. let params = {
  4748. "nhdm":_this.form5.nhdm,
  4749. deptId:_this.form5.deptId
  4750. }
  4751. listNhhncy(params).then((response) => {
  4752. _this.hncylist = response.rows
  4753. })
  4754. }
  4755. })
  4756. });
  4757. })
  4758. .catch(() => {
  4759. // on cancel
  4760. });
  4761. }else{
  4762. addNhhncy(this.form5).then(response => {
  4763. let _this =this
  4764. this.$toast({
  4765. icon: 'success', // 找到自己需要的图标
  4766. message: '保存成功',
  4767. duration:"1000",
  4768. onClose:function(){
  4769. _this.showhncy = false
  4770. let params = {
  4771. "nhdm":_this.form5.nhdm,
  4772. deptId:_this.form5.deptId
  4773. }
  4774. listNhhncy(params).then((response) => {
  4775. _this.hncylist = response.rows
  4776. })
  4777. }
  4778. })
  4779. });
  4780. }
  4781. }else{
  4782. addNhhncy(this.form5).then(response => {
  4783. let _this =this
  4784. this.$toast({
  4785. icon: 'success', // 找到自己需要的图标
  4786. message: '保存成功',
  4787. duration:"1000",
  4788. onClose:function(){
  4789. _this.showhncy = false
  4790. let params = {
  4791. "nhdm":_this.form5.nhdm,
  4792. deptId:_this.form5.deptId
  4793. }
  4794. listNhhncy(params).then((response) => {
  4795. _this.hncylist = response.rows
  4796. })
  4797. }
  4798. })
  4799. });
  4800. }
  4801. }
  4802. },
  4803. onSubmitsyqr(){
  4804. if(this.form.id==null||this.form.id==""){
  4805. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  4806. }else{
  4807. if (this.form1.id != null) {
  4808. if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 1) {
  4809. if(this.form1.xb!='1'){
  4810. Dialog.confirm({
  4811. title: '警告',
  4812. message: '使用权人性别与身份证号中性别信息不符,是否继续保存?',
  4813. })
  4814. .then(() => {
  4815. // on confirm
  4816. updateShyqr(this.form1).then(response => {
  4817. let _this =this
  4818. this.$toast({
  4819. icon: 'success', // 找到自己需要的图标
  4820. message: '修改成功',
  4821. duration:"1000",
  4822. onClose:function(){
  4823. _this.showsyqr = false
  4824. _this.active = 2
  4825. _this.getSyqrList()
  4826. }
  4827. })
  4828. });
  4829. })
  4830. .catch(() => {
  4831. // on cancel
  4832. });
  4833. }else{
  4834. updateShyqr(this.form1).then(response => {
  4835. let _this =this
  4836. this.$toast({
  4837. icon: 'success', // 找到自己需要的图标
  4838. message: '修改成功',
  4839. duration:"1000",
  4840. onClose:function(){
  4841. _this.showsyqr = false
  4842. _this.active = 2
  4843. _this.getSyqrList()
  4844. }
  4845. })
  4846. });
  4847. }
  4848. } else if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 0) {
  4849. if(this.form1.xb!='0'){
  4850. Dialog.confirm({
  4851. title: '警告',
  4852. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  4853. })
  4854. .then(() => {
  4855. // on confirm
  4856. updateShyqr(this.form1).then(response => {
  4857. let _this =this
  4858. this.$toast({
  4859. icon: 'success', // 找到自己需要的图标
  4860. message: '修改成功',
  4861. duration:"1000",
  4862. onClose:function(){
  4863. _this.showsyqr = false
  4864. _this.active = 2
  4865. _this.getSyqrList()
  4866. }
  4867. })
  4868. });
  4869. })
  4870. .catch(() => {
  4871. // on cancel
  4872. });
  4873. }else{
  4874. updateShyqr(this.form1).then(response => {
  4875. let _this =this
  4876. this.$toast({
  4877. icon: 'success', // 找到自己需要的图标
  4878. message: '修改成功',
  4879. duration:"1000",
  4880. onClose:function(){
  4881. _this.showsyqr = false
  4882. _this.active = 2
  4883. _this.getSyqrList()
  4884. }
  4885. })
  4886. });
  4887. }
  4888. }else{
  4889. updateShyqr(this.form1).then(response => {
  4890. let _this =this
  4891. this.$toast({
  4892. icon: 'success', // 找到自己需要的图标
  4893. message: '修改成功',
  4894. duration:"1000",
  4895. onClose:function(){
  4896. _this.showsyqr = false
  4897. _this.active = 2
  4898. _this.getSyqrList()
  4899. }
  4900. })
  4901. });
  4902. }
  4903. } else {
  4904. if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 1) {
  4905. if(this.form1.xb!='1'){
  4906. Dialog.confirm({
  4907. title: '警告',
  4908. message: '使用权人性别与身份证号中性别信息不符,是否继续保存?',
  4909. })
  4910. .then(() => {
  4911. // on confirm
  4912. addShyqr(this.form1).then(response => {
  4913. let _this =this
  4914. this.$toast({
  4915. icon: 'success', // 找到自己需要的图标
  4916. message: '保存成功',
  4917. duration:"1000",
  4918. onClose:function(){
  4919. _this.showsyqr = false
  4920. _this.active = 2
  4921. _this.getSyqrList()
  4922. }
  4923. })
  4924. });
  4925. })
  4926. .catch(() => {
  4927. // on cancel
  4928. });
  4929. }else{
  4930. addShyqr(this.form1).then(response => {
  4931. let _this =this
  4932. this.$toast({
  4933. icon: 'success', // 找到自己需要的图标
  4934. message: '保存成功',
  4935. duration:"1000",
  4936. onClose:function(){
  4937. _this.showsyqr = false
  4938. _this.active = 2
  4939. _this.getSyqrList()
  4940. }
  4941. })
  4942. });
  4943. }
  4944. } else if (this.form1.shyqrdbzjlx=='01'&&parseInt(this.form1.shyqrdbzjhm.substr(16, 1)) % 2 == 0) {
  4945. if(this.form1.xb!='0'){
  4946. Dialog.confirm({
  4947. title: '警告',
  4948. message: '成员性别与身份证号中性别信息不符,是否继续保存?',
  4949. })
  4950. .then(() => {
  4951. // on confirm
  4952. addShyqr(this.form1).then(response => {
  4953. let _this =this
  4954. this.$toast({
  4955. icon: 'success', // 找到自己需要的图标
  4956. message: '保存成功',
  4957. duration:"1000",
  4958. onClose:function(){
  4959. _this.showsyqr = false
  4960. _this.active = 2
  4961. _this.getSyqrList()
  4962. }
  4963. })
  4964. });
  4965. })
  4966. .catch(() => {
  4967. // on cancel
  4968. });
  4969. }else{
  4970. addShyqr(this.form1).then(response => {
  4971. let _this =this
  4972. this.$toast({
  4973. icon: 'success', // 找到自己需要的图标
  4974. message: '保存成功',
  4975. duration:"1000",
  4976. onClose:function(){
  4977. _this.showsyqr = false
  4978. _this.active = 2
  4979. _this.getSyqrList()
  4980. }
  4981. })
  4982. });
  4983. }
  4984. }else{
  4985. addShyqr(this.form1).then(response => {
  4986. let _this =this
  4987. this.$toast({
  4988. icon: 'success', // 找到自己需要的图标
  4989. message: '保存成功',
  4990. duration:"1000",
  4991. onClose:function(){
  4992. _this.showsyqr = false
  4993. _this.active = 2
  4994. _this.getSyqrList()
  4995. }
  4996. })
  4997. });
  4998. }
  4999. }
  5000. }
  5001. },
  5002. onSubmitnmfw(){
  5003. if (this.nmfwform.id != null) {
  5004. updateNmfw(this.nmfwform).then(response => {
  5005. let _this =this
  5006. this.$toast({
  5007. icon: 'success', // 找到自己需要的图标
  5008. message: '修改成功',
  5009. duration:"1000",
  5010. onClose:function(){
  5011. _this.showfw = false
  5012. }
  5013. })
  5014. });
  5015. } else {
  5016. addNmfw(this.nmfwform).then(response => {
  5017. let _this =this
  5018. this.$toast({
  5019. icon: 'success', // 找到自己需要的图标
  5020. message: '保存成功',
  5021. duration:"1000",
  5022. onClose:function(){
  5023. _this.showfw = false
  5024. _this.shownmfwlist(_this.nmfwform);
  5025. }
  5026. })
  5027. });
  5028. }
  5029. },
  5030. // 户主保存
  5031. onSubmitnh(){
  5032. if(this.nhform.id!=null){
  5033. updateNh(this.nhform).then(
  5034. response => {
  5035. let _this = this
  5036. this.$toast({
  5037. icon: 'success', // 找到自己需要的图标
  5038. message: '修改成功',
  5039. duration:"1000",
  5040. onClose:function(){
  5041. let psyqr = {
  5042. deptId : _this.nhform.deptId,
  5043. nhdm : _this.nhform.nhdm,
  5044. shyqrdbxm : _this.nhform.hzxm,
  5045. shyqrdbzjlx : _this.nhform.hzzjlx,
  5046. shyqrdbzjhm : _this.nhform.hzzjhm,
  5047. dh : _this.nhform.phone,
  5048. dz : _this.nhform.txdz
  5049. }
  5050. setSyqrInfo(psyqr).then(res => {
  5051. _this.shownh = false
  5052. _this.getSyqrList()
  5053. })
  5054. }
  5055. })
  5056. }
  5057. );
  5058. }else{
  5059. this.nhform.deptId = this.item.deptId
  5060. addNh(this.nhform).then(
  5061. response => {
  5062. let _this =this
  5063. this.$toast({
  5064. icon: 'success', // 找到自己需要的图标
  5065. message: '保存成功',
  5066. duration:"1000",
  5067. onClose:function(){
  5068. _this.shownh = false
  5069. }
  5070. })
  5071. }
  5072. );
  5073. }
  5074. },
  5075. // 自然幢保存
  5076. onSubmitzrz(){
  5077. if (this.form3.id != null) {
  5078. updateZrz(this.form3).then(response => {
  5079. let _this =this
  5080. this.$toast({
  5081. icon: 'success', // 找到自己需要的图标
  5082. message: '修改成功',
  5083. duration:"1000",
  5084. onClose:function(){
  5085. _this.showzrz = false
  5086. _this.active = 3
  5087. _this.getZrzList()
  5088. }
  5089. })
  5090. });
  5091. } else {
  5092. addZrz(this.form3).then(response => {
  5093. this.form3 = response.data
  5094. let _this =this
  5095. this.$toast({
  5096. icon: 'success', // 找到自己需要的图标
  5097. message: '保存成功',
  5098. duration:"1000",
  5099. onClose:function(){
  5100. _this.showzrz = false
  5101. _this.active = 3
  5102. _this.getZrzList()
  5103. }
  5104. })
  5105. });
  5106. }
  5107. },
  5108. // 附属设施保存
  5109. onSubmitfsss(){
  5110. if (this.form4.id != null) {
  5111. updateFsss(this.form4).then(response => {
  5112. let _this =this
  5113. this.$toast({
  5114. icon: 'success', // 找到自己需要的图标
  5115. message: '修改成功',
  5116. duration:"1000",
  5117. onClose:function(){
  5118. _this.showfsss = false;
  5119. _this.getFsssList()
  5120. }
  5121. })
  5122. });
  5123. } else {
  5124. addFsss(this.form4).then(response => {
  5125. let _this =this
  5126. this.$toast({
  5127. icon: 'success', // 找到自己需要的图标
  5128. message: '保存成功',
  5129. duration:"1000",
  5130. onClose:function(){
  5131. _this.showfsss = false;
  5132. _this.getFsssList()
  5133. }
  5134. })
  5135. });
  5136. }
  5137. },
  5138. onSubmitzjd(){
  5139. if (this.form.id != null) {
  5140. updateZjdzd(this.form).then(response => {
  5141. this.$cookies.set("search",this.form);
  5142. let _this =this
  5143. this.$toast({
  5144. icon: 'success', // 找到自己需要的图标
  5145. message: '修改成功',
  5146. duration:"1000",
  5147. onClose:function(){
  5148. _this.active = 2
  5149. _this.getSyqrList()
  5150. }
  5151. })
  5152. });
  5153. } else {
  5154. addZjdzd(this.form).then(response => {
  5155. this.$cookies.set("search",this.form);
  5156. this.form = response.data
  5157. let _this =this
  5158. this.$toast({
  5159. icon: 'success', // 找到自己需要的图标
  5160. message: '保存成功',
  5161. duration:"1000",
  5162. onClose:function(){
  5163. _this.active = 2
  5164. _this.getSyqrList()
  5165. }
  5166. })
  5167. });
  5168. }
  5169. },
  5170. showPopupsyqr(item) {
  5171. if(this.form.id==null||this.form.id==""){
  5172. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  5173. }else{
  5174. if(item==""){
  5175. this.form1={
  5176. zjddm:this.form.zjddm,
  5177. suyqrdm:this.form.suyqrdm,
  5178. deptId:this.item.deptId,
  5179. gj:'1',
  5180. hklx:'1',
  5181. xb:'1',
  5182. sfbncjtjjzzcy:'Y',
  5183. sfsyqrzjgy:'N',
  5184. qlrlx:'10',
  5185. qlrlxName:'个人',
  5186. gyfs:'1',
  5187. gyfsName:'单独所有',
  5188. qlbl:'1',
  5189. hjszss:"150000",
  5190. hjszssName:"内蒙古自治区",
  5191. }
  5192. }else{
  5193. this.form1 = item
  5194. if(this.form1.gj==null||this.form1.gj==""){
  5195. this.form1.gj = '1'
  5196. }
  5197. if(this.form1.hklx==null||this.form1.hklx==""){
  5198. this.form1.hklx = '1'
  5199. }
  5200. if(this.form1.xb==null||this.form1.xb==""){
  5201. this.form1.xb = '1'
  5202. }
  5203. if(this.form1.sfbncjtjjzzcy==null||this.form1.sfbncjtjjzzcy==""){
  5204. this.form1.sfbncjtjjzzcy = 'Y'
  5205. }
  5206. if(this.form1.sfsyqrzjgy==null||this.form1.sfsyqrzjgy==""){
  5207. this.form1.sfsyqrzjgy = 'N'
  5208. }
  5209. if(this.form1.qlrlx==null||this.form1.qlrlx==""){
  5210. this.form1.qlrlx = 'Y'
  5211. this.form1.qlrlxName = '个人'
  5212. }
  5213. if(this.form1.gyfs==null||this.form1.gyfs==""){
  5214. this.form1.gyfs = '1'
  5215. this.form1.gyfsName = '单独所有'
  5216. }
  5217. if(this.form1.qlbl==null||this.form1.qlbl==""){
  5218. this.form1.qlbl = '1'
  5219. }
  5220. if(this.form1.hjszss==null||this.form1.hjszss==""){
  5221. this.form1.hjszss = '150000'
  5222. this.form1.hjszssName = '内蒙古自治区'
  5223. }
  5224. this.industryOptions.map(res => {
  5225. if(res.dictValue == this.form1.sshy){
  5226. this.form1.sshyName = res.dictLabel
  5227. }
  5228. })
  5229. this.sjlyOptions.map(res => {
  5230. if(res.dictValue == this.form1.sjly){
  5231. this.form1.sjlyName = res.dictLabel
  5232. }
  5233. })
  5234. this.zjlxOptions.map(res => {
  5235. if(res.dictValue == this.form1.shyqrdbzjlx){
  5236. this.form1.shyqrdbzjlxName = res.dictLabel
  5237. }
  5238. })
  5239. this.qlrlxOptions.map(res => {
  5240. if(res.dictValue == this.form1.qlrlx){
  5241. this.form1.qlrlxName = res.dictLabel
  5242. }
  5243. })
  5244. this.gyfsOptions.map(res => {
  5245. if(res.dictValue == this.form1.gyfs){
  5246. this.form1.gyfsName = res.dictLabel
  5247. }
  5248. })
  5249. this.hjszssOptions.map(res => {
  5250. if(res.dictValue == this.form1.hjszss){
  5251. this.form1.hjszssName = res.dictLabel
  5252. }
  5253. })
  5254. }
  5255. this.showsyqr = true;
  5256. }
  5257. },
  5258. showPopuphncy(item){
  5259. if(item==""){
  5260. this.form5 = {
  5261. "nhdm":this.nhdm,
  5262. "deptId":this.item.deptId,
  5263. "zjlx":'01',
  5264. "zjlxName":"身份证",
  5265. "yhzgx":"12",
  5266. "yhzgxName":"妻",
  5267. "hyzk":'02',
  5268. "hklx":'1',
  5269. "occupation":'1',
  5270. "occupationName":'务农',
  5271. "jzqk":'3',
  5272. "jzqkName":'常年居住',
  5273. "sfbjtjjzzcy":'Y',
  5274. "xb":'0',
  5275. "sfbccm":'Y',
  5276. "sfpkh":'N',
  5277. "sfwbh":'N',
  5278. "sjly":'07',
  5279. "sjlyName":'农村集体产权制度改革',
  5280. "cybz":'9',
  5281. "cybzName":'其他备注'
  5282. }
  5283. }else{
  5284. this.form5 = item
  5285. if(this.form5.nhdm==null||this.form5.nhdm==""){
  5286. this.form5.nhdm = this.nhform.nhdm
  5287. }
  5288. if(this.form5.deptId==null||this.form5.deptId==""){
  5289. this.form5.deptId = this.nhform.deptId
  5290. }
  5291. if(this.form5.zjlx==null||this.form5.zjlx==""){
  5292. this.form5.zjlx = "01"
  5293. this.form5.zjlxName = "身份证"
  5294. }
  5295. if(this.form5.yhzgx==null||this.form5.yhzgx==""){
  5296. this.form5.yhzgx = "12"
  5297. this.form5.yhzgxName = "妻"
  5298. }
  5299. if(this.form5.hyzk==null||this.form5.hyzk==""){
  5300. this.form5.hyzk = "02"
  5301. }
  5302. if(this.form5.hklx==null||this.form5.hklx==""){
  5303. this.form5.hklx = "1"
  5304. }
  5305. if(this.form5.occupation==null||this.form5.occupation==""){
  5306. this.form5.occupation = "1"
  5307. this.form5.occupationName = "务农"
  5308. }
  5309. if(this.form5.jzqk==null||this.form5.jzqk==""){
  5310. this.form5.jzqk = "3"
  5311. this.form5.jzqkName = "常年居住"
  5312. }
  5313. if(this.form5.sfbjtjjzzcy==null||this.form5.sfbjtjjzzcy==""){
  5314. this.form5.sfbjtjjzzcy = "Y"
  5315. }
  5316. if(this.form5.xb==null||this.form5.xb==""){
  5317. this.form5.xb = "0"
  5318. }
  5319. if(this.form5.sfbccm==null||this.form5.sfbccm==""){
  5320. this.form5.sfbccm = "Y"
  5321. }
  5322. if(this.form5.sfpkh==null||this.form5.sfpkh==""){
  5323. this.form5.sfpkh = "N"
  5324. }
  5325. if(this.form5.sfwbh==null||this.form5.sfwbh==""){
  5326. this.form5.sfwbh = "N"
  5327. }
  5328. if(this.form5.sjly==null||this.form5.sjly==""){
  5329. this.form5.sjly = "07"
  5330. this.form5.sjlyName = "农村集体产权制度改革"
  5331. }
  5332. if(this.form5.cybz==null||this.form5.cybz==""){
  5333. this.form5.cybz = "9"
  5334. this.form5.cybzName = "其他备注"
  5335. }
  5336. this.jzhcssfyzfOptions.map(res => {
  5337. if(res.dictValue == item.jzhcssfyzf){
  5338. this.form5.jzhcssfyzfName = res.dictLabel
  5339. }
  5340. })
  5341. this.zjlxOptions.map(res => {
  5342. if(res.dictValue == item.zjlx){
  5343. this.form5.zjlxName = res.dictLabel
  5344. }
  5345. })
  5346. this.occupationOptions.map(res => {
  5347. if(res.dictValue == item.occupation){
  5348. this.form5.occupationName = res.dictLabel
  5349. }
  5350. })
  5351. this.jzqkOptions.map(res => {
  5352. if(res.dictValue == item.jzqk){
  5353. this.form5.jzqkName = res.dictLabel
  5354. }
  5355. })
  5356. this.yhzgxOptions.map(res => {
  5357. if(res.dictValue == item.yhzgx){
  5358. this.form5.yhzgxName = res.dictLabel
  5359. }
  5360. })
  5361. this.cybzOptions.map(res => {
  5362. if(res.dictValue == item.cybz){
  5363. this.form5.cybzName = res.dictLabel
  5364. }
  5365. })
  5366. this.sjlyOptions.map(res => {
  5367. if(res.dictValue == item.sjly){
  5368. this.form5.sjlyName = res.dictLabel
  5369. }
  5370. })
  5371. }
  5372. this.showhncy = true
  5373. },
  5374. showPopupzrz(item) {
  5375. console.log(item);
  5376. if(this.form.id==null||this.form.id==""){
  5377. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  5378. }else{
  5379. if(item==""){
  5380. this.form3={
  5381. zjddm:this.item.zjddm?this.item.zjddm:this.form.zjddm,
  5382. deptId:this.item.deptId?this.item.deptId:this.form.deptId,
  5383. zcs:"1",
  5384. dscs:"1",
  5385. dxcs:"0",
  5386. fwjg:'02',
  5387. fwjgName:'钢和钢筋混凝土结构',
  5388. sjly:'04',
  5389. sjlyName:'农村宅基地使用权确权登记发证',
  5390. theGeom:this.form.theGeom,
  5391. }
  5392. this.zrzProduct();
  5393. }else{
  5394. this.form3 = item
  5395. this.form3.theGeom = item.theGeom;
  5396. if(this.form3.zcs==null||this.form3.zcs==""){
  5397. this.form3.zcs = "1"
  5398. }
  5399. if(this.form3.dscs==null||this.form3.dscs==""){
  5400. this.form3.dscs = "1"
  5401. }
  5402. if(this.form3.dscs==null||this.form3.dscs==""){
  5403. this.form3.dscs = "0"
  5404. }
  5405. if(this.form3.fwjg==null||this.form3.fwjg==""){
  5406. this.form3.fwjg = "02"
  5407. this.form3.fwjgName = "钢和钢筋混凝土结构"
  5408. }
  5409. if(this.form3.sjly==null||this.form3.sjly==""){
  5410. this.form3.sjly = "04"
  5411. this.form3.sjlyName = "农村宅基地使用权确权登记发证"
  5412. }
  5413. if(this.form3.sjly!=null){
  5414. this.sjlyOptions.map(res => {
  5415. if(res.dictValue == this.form3.sjly){
  5416. this.form3.sjlyName = res.dictLabel
  5417. }
  5418. })
  5419. }
  5420. if(this.form3.fwjg!=null){
  5421. this.fwjgOptions.map(res => {
  5422. if(res.dictValue == this.form3.fwjg){
  5423. this.form3.fwjgName = res.dictLabel
  5424. }
  5425. })
  5426. }
  5427. if(this.form3.theGeom == null){
  5428. this.form3.theGeom = this.form.theGeom;
  5429. }
  5430. }
  5431. this.showzrz = true;
  5432. this.zrzProduct();
  5433. this.active = 3;
  5434. // if(){
  5435. //
  5436. // }
  5437. }
  5438. },
  5439. showPopupfw(item) {
  5440. this.fileListfw = []
  5441. if(this.form.id==null||this.form.id==""){
  5442. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  5443. }else{
  5444. this.showfw = true;
  5445. if(item==""){
  5446. this.nmfwform={
  5447. zrzh: this.zrzh,
  5448. deptId : this.item.deptId?this.item.deptId:this.form.deptId,
  5449. zjddm : this.item.zjddm?this.item.zjddm:this.form.zjddm,
  5450. nmfwzh : null,
  5451. ch:"1",
  5452. sjc:"1",
  5453. myc:"1",
  5454. sjcs:"1",
  5455. hx:'03',
  5456. hxName:'三居室',
  5457. hxjg:'01',
  5458. hxjgName:'平层',
  5459. fwjg:'02',
  5460. fwjgName:'钢和钢筋混凝土结构',
  5461. fwyt:'10',
  5462. fwytName:'住宅',
  5463. sfjf:'N',
  5464. sfcf:'N',
  5465. sffz:'Y',
  5466. isCommon:'N',
  5467. fwzt:'01',
  5468. fwztName:'正常',
  5469. isMortgage:'N',
  5470. sjly:'04',
  5471. sjlyName:'农村宅基地使用权确权登记发证',
  5472. fwlx:'01',
  5473. fwlxName:'住宅',
  5474. lyzk:'1',
  5475. lyzkName:'正常使用',
  5476. lzyx:'0',
  5477. yctcyx:'0',
  5478. qsly:'01',
  5479. qslyName:'申请',
  5480. sfkjgj:'N',
  5481. pzdw:'1',
  5482. }
  5483. }else{
  5484. this.nmfwform = item
  5485. if(this.nmfwform.zjdxctp!=null&&this.nmfwform.zjdxctp!=""&&this.nmfwform.zjdxctp.length>0){
  5486. let li = this.nmfwform.zjdxctp.split(",");
  5487. li.map(res => {
  5488. this.fileListfw.push({"url":this.baseUrl+res,"baseUrl":res})
  5489. })
  5490. }
  5491. if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){
  5492. this.nmfwform.sfkjgj = "N"
  5493. }
  5494. if(this.nmfwform.qsly==null||this.nmfwform.qsly==""){
  5495. this.nmfwform.qsly = "01"
  5496. this.nmfwform.qslyName = "申请"
  5497. }
  5498. if(this.nmfwform.yctcyx==null||this.nmfwform.yctcyx==""){
  5499. this.nmfwform.yctcyx = "0"
  5500. }
  5501. if(this.nmfwform.lzyx==null||this.nmfwform.lzyx==""){
  5502. this.nmfwform.lzyx = "0"
  5503. }
  5504. if(this.nmfwform.lyzk==null||this.nmfwform.lyzk==""){
  5505. this.nmfwform.lyzk = "1"
  5506. this.nmfwform.lyzkName = "正常使用"
  5507. }
  5508. if(this.nmfwform.fwlx==null||this.nmfwform.fwlx==""){
  5509. this.nmfwform.fwlx = "01"
  5510. this.nmfwform.fwlxName = "住宅"
  5511. }
  5512. if(this.nmfwform.sjly==null||this.nmfwform.sjly==""){
  5513. this.nmfwform.sjly = "04"
  5514. this.nmfwform.sjlyName = "农村宅基地使用权确权登记发证"
  5515. }
  5516. if(this.nmfwform.isMortgage==null||this.nmfwform.isMortgage==""){
  5517. this.nmfwform.isMortgage = "N"
  5518. }
  5519. if(this.nmfwform.fwzt==null||this.nmfwform.fwzt==""){
  5520. this.nmfwform.fwzt = "01"
  5521. this.nmfwform.fwztName = "正常"
  5522. }
  5523. if(this.nmfwform.pzdw==null||this.nmfwform.pzdw==""){
  5524. this.nmfwform.pzdw = "1"
  5525. }
  5526. if(this.nmfwform.sfkjgj==null||this.nmfwform.sfkjgj==""){
  5527. this.nmfwform.sfkjgj = "N"
  5528. }
  5529. if(this.nmfwform.zrzh==null||this.nmfwform.zrzh==""){
  5530. this.nmfwform.zrzh = this.item.zrzh
  5531. }
  5532. if(this.nmfwform.deptId==null||this.nmfwform.deptId==""){
  5533. this.nmfwform.deptId = this.item.deptId
  5534. }
  5535. if(this.nmfwform.zjddm==null||this.nmfwform.zjddm==""){
  5536. this.nmfwform.zjddm = this.item.zjddm
  5537. }
  5538. if(this.nmfwform.nmfwzh==null||this.nmfwform.nmfwzh==""){
  5539. this.nmfwform.nmfwzh = this.item.nmfwzh
  5540. }
  5541. if(this.nmfwform.ch==null||this.nmfwform.ch==""){
  5542. this.nmfwform.ch = "1"
  5543. }
  5544. if(this.nmfwform.sjc==null||this.nmfwform.sjc==""){
  5545. this.nmfwform.sjc = "1"
  5546. }
  5547. if(this.nmfwform.myc==null||this.nmfwform.myc==""){
  5548. this.nmfwform.myc = "1"
  5549. }
  5550. if(this.nmfwform.sjcs==null||this.nmfwform.sjcs==""){
  5551. this.nmfwform.sjcs = "1"
  5552. }
  5553. if(this.nmfwform.hx==null||this.nmfwform.hx==""){
  5554. this.nmfwform.hx = "03"
  5555. this.nmfwform.hxName = "三居室"
  5556. }
  5557. if(this.nmfwform.hxjg==null||this.nmfwform.hxjg==""){
  5558. this.nmfwform.hxjg = "01"
  5559. this.nmfwform.hxjgName = "平层"
  5560. }
  5561. if(this.nmfwform.fwjg==null||this.nmfwform.fwjg==""){
  5562. this.nmfwform.fwjg = "02"
  5563. this.nmfwform.fwjgName = "钢和钢筋混凝土结构"
  5564. }
  5565. if(this.nmfwform.fwyt==null||this.nmfwform.fwyt==""){
  5566. this.nmfwform.fwyt = "10"
  5567. this.nmfwform.fwytName = "住宅"
  5568. }
  5569. if(this.nmfwform.sfjf==null||this.nmfwform.sfjf==""){
  5570. this.nmfwform.sfjf = "N"
  5571. }
  5572. if(this.nmfwform.sfcf==null||this.nmfwform.sfcf==""){
  5573. this.nmfwform.sfcf = "N"
  5574. }
  5575. if(this.nmfwform.sffz==null||this.nmfwform.sffz==""){
  5576. this.nmfwform.sffz = "Y"
  5577. }
  5578. if(this.nmfwform.isCommon==null||this.nmfwform.isCommon==""){
  5579. this.nmfwform.isCommon = "N"
  5580. }
  5581. this.sjlyOptions.map(res => {
  5582. if(res.dictValue == item.sjly){
  5583. this.nmfwform.sjlyName = res.dictLabel
  5584. }
  5585. })
  5586. this.hxjgOptions.map(res => {
  5587. if(res.dictValue == item.hxjg){
  5588. this.nmfwform.hxjgName = res.dictLabel
  5589. }
  5590. })
  5591. this.hxOptions.map(res => {
  5592. if(res.dictValue == item.hx){
  5593. this.nmfwform.hxName = res.dictLabel
  5594. }
  5595. })
  5596. this.fwjgOptions.map(res => {
  5597. if(res.dictValue == item.fwjg){
  5598. this.nmfwform.fwjgName = res.dictLabel
  5599. }
  5600. })
  5601. this.fwytOptions.map(res => {
  5602. if(res.dictValue == item.fwyt){
  5603. this.nmfwform.fwytName = res.dictLabel
  5604. }
  5605. })
  5606. this.tdzkOptions.map(res => {
  5607. if(res.dictValue == item.tdzk){
  5608. this.nmfwform.tdzkName = res.dictLabel
  5609. }
  5610. })
  5611. this.pzsjOptions.map(res => {
  5612. if(res.dictValue == item.pzsj){
  5613. this.nmfwform.pzsjName = res.dictLabel
  5614. }
  5615. })
  5616. this.phlymsOptions.map(res => {
  5617. if(res.dictValue == item.phlyms){
  5618. this.nmfwform.phlymsName = res.dictLabel
  5619. }
  5620. })
  5621. this.fwlxOptions.map(res => {
  5622. if(res.dictValue == item.fwlx){
  5623. this.nmfwform.fwlxName = res.dictLabel
  5624. }
  5625. })
  5626. this.lyzkOptions.map(res => {
  5627. if(res.dictValue == item.lyzk){
  5628. this.nmfwform.lyzkName = res.dictLabel
  5629. }
  5630. })
  5631. this.fwztOptions.map(res => {
  5632. if(res.dictValue == item.fwzt){
  5633. this.nmfwform.fwztName = res.dictLabel
  5634. }
  5635. })
  5636. this.qslyOptions.map(res => {
  5637. if(res.dictValue == item.qsly){
  5638. this.nmfwform.qslyName = res.dictLabel
  5639. }
  5640. })
  5641. }}
  5642. },
  5643. showPopuphncylist(item){
  5644. if(item.nhdm==null||item.nhdm==""){
  5645. Notify({ type: 'danger', message: '使用权人农户代码不能为空' });
  5646. }else{
  5647. this.showhncylist = true;
  5648. if(item==""){
  5649. this.hncylist=[]
  5650. }else{
  5651. this.nhdm = item.nhdm
  5652. this.hncylist=[]
  5653. let params = {
  5654. "nhdm":item.nhdm,
  5655. deptId:this.item.deptId
  5656. }
  5657. listNhhncy(params).then((response) => {
  5658. this.hncylist = response.rows
  5659. })
  5660. }
  5661. }
  5662. },
  5663. showPopupfsss(item) {if(this.form.id==null||this.form.id==""){
  5664. Notify({ type: 'danger', message: '请先保存宅基地信息' });
  5665. }else{
  5666. if(item==""){
  5667. this.form4={
  5668. deptId:this.item.deptId?this.item.deptId:this.form.deptId,
  5669. zjddm:this.item.zjddm?this.item.zjddm:this.form.zjddm,
  5670. fssslx:'11',
  5671. fssslxName:'畜厩',
  5672. qsly:'99',
  5673. qslyName:'其他',
  5674. fwzt:'01',
  5675. fwztName:'正常',
  5676. sfsp:'N',
  5677. sffz:'N',
  5678. jglx:'2',
  5679. jglxName:'砖混',
  5680. sfzzsy:'Y',
  5681. jzwqk:'01',
  5682. jzwqkName:'正常',
  5683. tdzk:'3',
  5684. tdzkName:'其他',
  5685. sfsgcf:'N',
  5686. theGeom:this.form.theGeom,
  5687. }
  5688. this.fsssProduct();
  5689. }else{
  5690. this.form4=item
  5691. console.log(this.form4);
  5692. if(this.form4.fssslx==null||this.form4.fssslx==""){
  5693. this.form4.fssslx = "11"
  5694. this.form4.fssslxName = "畜厩"
  5695. }
  5696. if(this.form4.qsly==null||this.form4.qsly==""){
  5697. this.form4.qsly = "99"
  5698. this.form4.qslyName = "其他"
  5699. }
  5700. if(this.form4.fwzt==null||this.form4.fwzt==""){
  5701. this.form4.fwzt = "01"
  5702. this.form4.fwztName = "正常"
  5703. }
  5704. if(this.form4.sfsp==null||this.form4.sfsp==""){
  5705. this.form4.sfsp = "N"
  5706. }
  5707. if(this.form4.sffz==null||this.form4.sffz==""){
  5708. this.form4.sffz = "N"
  5709. }
  5710. if(this.form4.jglx==null||this.form4.jglx==""){
  5711. this.form4.jglx = "2"
  5712. this.form4.jglxName = "砖混"
  5713. }
  5714. if(this.form4.sfzzsy==null||this.form4.sfzzsy==""){
  5715. this.form4.sfzzsy = "Y"
  5716. }
  5717. if(this.form4.jzwqk==null||this.form4.jzwqk==""){
  5718. this.form4.jzwqk = "01"
  5719. this.form4.jzwqkName = "正常"
  5720. }
  5721. if(this.form4.tdzk==null||this.form4.tdzk==""){
  5722. this.form4.tdzk = "3"
  5723. this.form4.tdzkName = "其他"
  5724. }
  5725. if(this.form4.sfsgcf==null||this.form4.sfsgcf==""){
  5726. this.form4.sfsgcf = "N"
  5727. }
  5728. if(this.form4.theGeom==null||this.form4.theGeom==""){
  5729. this.form4.theGeom = this.form.theGeom
  5730. }
  5731. this.fssslxOptions.map(res => {
  5732. if(res.dictValue == item.fssslx){
  5733. this.form4.fssslxName = res.dictLabel
  5734. }
  5735. })
  5736. this.qslyOptions.map(res => {
  5737. if(res.dictValue == item.qsly){
  5738. this.form4.qslyName = res.dictLabel
  5739. }
  5740. })
  5741. this.fwztOptions.map(res => {
  5742. if(res.dictValue == item.fwzt){
  5743. this.form4.fwztName = res.dictLabel
  5744. }
  5745. })
  5746. this.jglxOptions.map(res => {
  5747. if(res.dictValue == item.jglx){
  5748. this.form4.jglxName = res.dictLabel
  5749. }
  5750. })
  5751. this.jzwqkOptions.map(res => {
  5752. if(res.dictValue == item.jzwqk){
  5753. this.form4.jzwqkName = res.dictLabel
  5754. }
  5755. })
  5756. this.tdzkOptions.map(res => {
  5757. if(res.dictValue == item.tdzk){
  5758. this.form4.tdzkName = res.dictLabel
  5759. }
  5760. })
  5761. }
  5762. this.showfsss = true;
  5763. this.active = 4;
  5764. this.fsssProduct();
  5765. }
  5766. },
  5767. showPopup3() {
  5768. this.show3 = true;
  5769. this.mapClickLoading();
  5770. },
  5771. onSubmit(values) {
  5772. },
  5773. changeActive(){
  5774. if(this.active<4){
  5775. this.active+=1
  5776. }else{
  5777. this.active=1
  5778. }
  5779. },
  5780. changeActiveBack(){
  5781. if(this.active>1){
  5782. this.active-=1
  5783. if(this.active ==1){
  5784. this.mapClickLoading();
  5785. }
  5786. }else{
  5787. this.active=1
  5788. this.mapClickLoading();
  5789. }
  5790. },
  5791. // 清空画板
  5792. handleReset() {
  5793. this.resultImg = null
  5794. if(this.$refs.esign){
  5795. this.$refs.esign.reset();
  5796. }
  5797. },
  5798. // 图片上传前
  5799. beforeRead(file){
  5800. // 创建Canvas对象(画布)
  5801. let canvas = document.createElement('canvas')
  5802. // 获取对应的CanvasRenderingContext2D对象(画笔)
  5803. let context = canvas.getContext('2d')
  5804. // 创建新的图片对象
  5805. let img = new Image()
  5806. // 指定图片的DataURL(图片的base64编码数据)
  5807. img.src = file.content
  5808. // 监听浏览器加载图片完成,然后进行进行绘制
  5809. const height = 166
  5810. const width = 316
  5811. img.onload = () => {
  5812. const h = img.height
  5813. const w = img.width
  5814. let ch = img.height/2
  5815. let cw = img.width/2
  5816. let canvas = document.createElement('canvas')
  5817. let ctx = canvas.getContext('2d')
  5818. canvas.height = ch
  5819. canvas.width = cw
  5820. ctx.clearRect(0,0,cw,ch)
  5821. ctx.drawImage(img,0,0,cw,ch)
  5822. let base_img = canvas.toDataURL('image/jpeg')
  5823. const blobBin = atob(base_img.split(',')[1])
  5824. let d = []
  5825. for (let i=0;i<blobBin.length;i++){
  5826. d.push(blobBin.charCodeAt(i))
  5827. }
  5828. const data2 = new FormData();
  5829. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  5830. uploadFile(data2).then(res => {
  5831. if(this.form.zjdxctp!=null&&this.form.zjdxctp!=""){
  5832. this.form.zjdxctp = this.form.zjdxctp + "," + res.fileName
  5833. }else{
  5834. this.form.zjdxctp = res.fileName
  5835. }
  5836. })
  5837. }
  5838. },
  5839. // 生成签字图
  5840. handleGenerate() {
  5841. if(this.resultImg==null||this.resultImg==''){
  5842. this.$refs.esign
  5843. .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
  5844. .then((res) => {
  5845. this.resultImg = res;
  5846. })
  5847. .catch((err) => {
  5848. // 画布没有签字时会执行这里提示一下
  5849. this.$message({
  5850. type: "warning",
  5851. message: "请签名后再生成签字图片",
  5852. });
  5853. });
  5854. // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
  5855. // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
  5856. setTimeout(() => {
  5857. // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
  5858. // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
  5859. const blobBin = atob(this.resultImg.split(',')[1])
  5860. let d = []
  5861. for (let i=0;i<blobBin.length;i++){
  5862. d.push(blobBin.charCodeAt(i))
  5863. }
  5864. const data2 = new FormData();
  5865. data2.append("file", new Blob([new Uint8Array(d)],{type:'image/jpeg'}));
  5866. uploadFile(data2).then(res => {
  5867. this.form.dzqm = res.fileName
  5868. this.form.houseDataConfirmStatus = "CONFIRMED"
  5869. this.form.zjdAudit = '0'
  5870. let param ={
  5871. zjddm : this.item.zjddm,
  5872. houseDataConfirmStatus : "CONFIRMED"
  5873. }
  5874. updateZrzStatus(param).then(res => {})
  5875. updateFsssStatus(param).then(res => {})
  5876. if (this.form.id != null) {
  5877. updateZjdzd(this.form).then(response => {
  5878. let _this =this
  5879. this.$toast({
  5880. icon: 'success', // 找到自己需要的图标
  5881. message: '修改成功',
  5882. duration:"1000",
  5883. onClose:function(){
  5884. _this.goBack();
  5885. }
  5886. });
  5887. });
  5888. } else {
  5889. addZjdzd(this.form).then(response => {
  5890. let _this =this
  5891. this.$toast({
  5892. icon: 'success', // 找到自己需要的图标
  5893. message: '保存成功',
  5894. duration:"1000",
  5895. onClose:function(){
  5896. _this.goBack();
  5897. }
  5898. })
  5899. });
  5900. }
  5901. })
  5902. }, 200);
  5903. }else{
  5904. this.form.houseDataConfirmStatus = "CONFIRMED"
  5905. this.form.zjdAudit = '0'
  5906. let param ={
  5907. zjddm : this.item.zjddm,
  5908. houseDataConfirmStatus : "CONFIRMED"
  5909. }
  5910. updateZrzStatus(param).then(res => {})
  5911. updateFsssStatus(param).then(res => {})
  5912. updateZjdzd(this.form).then(response => {
  5913. let _this =this
  5914. this.$toast({
  5915. icon: 'success', // 找到自己需要的图标
  5916. message: '修改成功',
  5917. duration:"1000",
  5918. onClose:function(){
  5919. _this.goBack();
  5920. }
  5921. });
  5922. });
  5923. }
  5924. /*this.showesign = false;*/
  5925. },
  5926. searchCommit(){
  5927. this.showesign = true
  5928. },
  5929. searchCommit1(){
  5930. this.form.houseDataConfirmStatus = "CONFIRMED"
  5931. if (this.form.id != null) {
  5932. updateZjdzd(this.form).then(response => {
  5933. let _this =this
  5934. this.$toast({
  5935. icon: 'success', // 找到自己需要的图标
  5936. message: '修改成功',
  5937. duration:"1000",
  5938. onClose:function(){
  5939. _this.goBack();
  5940. }
  5941. })
  5942. });
  5943. } else {
  5944. addZjdzd(this.form).then(response => {
  5945. let _this =this
  5946. this.$toast({
  5947. icon: 'success', // 找到自己需要的图标
  5948. message: '保存成功',
  5949. duration:"1000",
  5950. onClose:function(){
  5951. _this.goBack();
  5952. }
  5953. })
  5954. });
  5955. }
  5956. },
  5957. //地图加载js------start
  5958. mapClickLoading(){
  5959. setTimeout(() => {
  5960. if(this.active =="1"){
  5961. this.$refs[this.zjdProductResh].drawingPaceCountryDarw();
  5962. }else if(this.active=="3"){
  5963. this.$refs[this.zrzProductResh].drawingPaceCountryDarw();
  5964. }else if(this.active=="4"){
  5965. this.$refs[this.fsssProductResh].drawingPaceCountryDarw();
  5966. } else {
  5967. }
  5968. }, 500);
  5969. },
  5970. /** 查找地图中定位点 */
  5971. MapTag: function (data) {
  5972. if(this.active =="1"){
  5973. this.form.theGeom = data;
  5974. }else if(this.active=="3"){
  5975. this.form3.theGeom = data;
  5976. }else if(this.active=="4"){
  5977. this.form4.theGeom = data;
  5978. } else {
  5979. }
  5980. },
  5981. zjdProduct(){
  5982. this.zjdProductResh = this.guidProduct();
  5983. this.mapClickLoading();
  5984. },
  5985. zrzProduct(){
  5986. this.zrzProductResh = this.guidProduct();
  5987. this.mapClickLoading();
  5988. },
  5989. fsssProduct(){
  5990. this.fsssProductResh = this.guidProduct();
  5991. this.mapClickLoading();
  5992. },
  5993. guidProduct(){
  5994. return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  5995. var r = Math.random() * 16 | 0,
  5996. v = c == 'x' ? r : (r & 0x3 | 0x8);
  5997. return v.toString(16);
  5998. });
  5999. },
  6000. //地图加载js------end
  6001. }
  6002. }
  6003. </script>
  6004. <style scoped>
  6005. >>> .bannerBg{
  6006. width: 100%;
  6007. color:#fff;
  6008. padding:10px;
  6009. background: linear-gradient(134deg,#7ac943 1%, #22b7f2);
  6010. }
  6011. >>> .van-hairline--bottom::after {
  6012. border-bottom-width: 0;
  6013. }
  6014. >>> .title:before
  6015. {
  6016. content:"";
  6017. width: 6px;
  6018. height: 32px;
  6019. background: #7ac943;
  6020. border-radius: 3px;
  6021. position:absolute;
  6022. left:0;
  6023. bottom:10px;
  6024. }
  6025. >>> .delete-button {
  6026. height: 100%;
  6027. }
  6028. >>> .van-swipe-cell__wrapper{
  6029. margin-right:-3px;
  6030. }
  6031. </style>