移动端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

6093 строки
209 KiB

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