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

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