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

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