移动端
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

695 рядки
27 KiB

  1. <template>
  2. <div class="app-container">
  3. <van-nav-bar
  4. left-arrow
  5. fixed
  6. placeholder
  7. @click-left="$router.back(-1)"
  8. >
  9. <template #title>
  10. <p style="font-weight: bold;">添加宅基地使用权流转</p>
  11. </template>
  12. </van-nav-bar>
  13. <p class="main_title">转出方信息</p>
  14. <div class="main_box">
  15. <!-- <van-field v-model="circulation.sqrxm" label="申请人姓名" placeholder="申请人姓名" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>-->
  16. <field-select
  17. readonly
  18. v-if="houseOwnershipOpen"
  19. v-model="circulation.houseOwnership"
  20. label="转出方归属"
  21. value-key="dictLabel"
  22. data-key="dictValue"
  23. placeholder="请选择"
  24. :rules="[{ required: true }]"
  25. required
  26. @confirm="onConfirmGsf"
  27. remote-url="/system/dict/data/type/house_ownership "
  28. :on-remote-response="'data'"
  29. />
  30. <van-field readonly v-if = "shyqxmShow" v-model="circulation.shyqrxm" label="村集体代表姓名" input-align="right" label-width="auto" :rules="[{ required: true }]" required />
  31. <van-field readonly v-if = "!shyqxmShow" v-model="circulation.shyqrxm" label="申请人姓名" placeholder="申请人姓名" input-align="right" label-width="auto" :rules="[{ required: true }]" required @input="remoteTransfereeMethod" />
  32. <div id="dropList" v-show="showDropList" style="width: 92vw; position: absolute; z-index: 99; left: 50%; margin-left: -46vw; border: 1px solid #E2E0E0;" >
  33. <van-cell id="vanCell" v-for="(item, index) in getObligeeOptions" :key="index" @click="shyqrdmxmChange(item)" style="position: relative; z-index: 999;">
  34. {{item.sqrxm}}
  35. </van-cell>
  36. </div>
  37. <!-- <van-field-->
  38. <!-- readonly-->
  39. <!-- clickable-->
  40. <!-- v-model="circulation.zjddm"-->
  41. <!-- label="宅基地代码"-->
  42. <!-- placeholder="请选择"-->
  43. <!-- @click="remoteProposerMethod"-->
  44. <!-- input-align="right"-->
  45. <!-- right-icon="arrow-down" :rules="[{ required: true }]" required-->
  46. <!-- />-->
  47. <!-- <van-popup v-model="showzjddm" position="bottom">-->
  48. <!-- <van-picker-->
  49. <!-- show-toolbar-->
  50. <!-- :columns="zjdDictionaries"-->
  51. <!-- value-key="zjddm"-->
  52. <!-- @confirm="onConfirmZjddm"-->
  53. <!-- @cancel="showzjddm = false"-->
  54. <!-- />-->
  55. <!-- </van-popup>-->
  56. <van-field
  57. v-model="circulation.zjddm"
  58. readonly
  59. label="宅基地代码"
  60. input-align="right"
  61. >
  62. <template #button>
  63. <van-icon name="../../../../../static/images/22.png" color="#539FFD" size="20" @click="mapLook"/>
  64. </template>
  65. </van-field>
  66. <field-select
  67. v-model="circulation.phlyms"
  68. readonly
  69. label="盘活利用模式"
  70. value-key="dictLabel"
  71. data-key="dictValue"
  72. placeholder="请选择"
  73. :rules="[{ required: true }]"
  74. required
  75. remote-url="/system/dict/data/type/phlyms "
  76. :on-remote-response="'data'"
  77. />
  78. <van-field
  79. readonly
  80. clickable
  81. v-model="lzfs"
  82. label="流转方式"
  83. placeholder="请选择"
  84. @click="showLzfs = true"
  85. input-align="right"
  86. right-icon="arrow-down" :rules="[{ required: true }]" required
  87. />
  88. <van-popup v-model="showLzfs" position="bottom">
  89. <van-picker
  90. show-toolbar
  91. :columns="lzfsDictionaries"
  92. @confirm="onConfirmLzfs"
  93. @cancel="showLzfs = false"
  94. />
  95. </van-popup>
  96. <van-field v-if="!xjdShow" v-model="circulation.zcfxjd" label="现居地" placeholder="现居地" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  97. <van-field v-if="!zcfhkszdShow" v-model="circulation.zcfhkszd" label="户口所在地" placeholder="户口所在地" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  98. <van-cell v-if="!sfjtjjzzShow" title="是否本集体经济组织成员">
  99. <template #right-icon>
  100. <van-radio-group v-model="circulation.zcfsfbjtjjzzcy" direction="horizontal">
  101. <van-radio name="1">是</van-radio>
  102. <van-radio name="0">否</van-radio>
  103. </van-radio-group>
  104. </template>
  105. </van-cell>
  106. </div>
  107. <p class="main_title">转入方信息</p>
  108. <div class="main_box">
  109. <van-field
  110. v-model="circulation.zrfdbxm"
  111. label="转入方代表名称"
  112. placeholder="请输入转入方代表名称"
  113. label-width="auto"
  114. input-align="right"
  115. @input="remoteTransfereeMethodTwo"
  116. />
  117. <div id="zrfList" v-show="showZrfList" style="width: 92vw; position: absolute; z-index: 99; left: 50%; margin-left: -46vw; border: 1px solid #E2E0E0;" >
  118. <van-cell id="vanCellZrf" v-for="(item, index) in getZrfObligeeOptions" :key="index" @click="zrfdmxmChange(item)" style="position: relative; z-index: 999;">
  119. {{item.sqrxm}}
  120. </van-cell>
  121. </div>
  122. <!-- <van-popup v-model="showZrfdbmc" position="bottom">-->
  123. <!-- <van-picker-->
  124. <!-- show-toolbar-->
  125. <!-- :columns="zrfdbmcDictionaries"-->
  126. <!-- @confirm="onConfirmZrfdbmc"-->
  127. <!-- @cancel="showZrfdbmc = false"-->
  128. <!-- />-->
  129. <!-- </van-popup>-->
  130. <van-field
  131. v-model="circulation.zjddm"
  132. v-if="circulation.lzfs =='03'"
  133. readonly
  134. label="宅基地代码"
  135. input-align="right"
  136. >
  137. <template #button>
  138. <van-icon name="../../../../../static/images/22.png" color="#539FFD" size="20" @click="hhMapLook"/>
  139. </template>
  140. </van-field>
  141. <field-select
  142. readonly
  143. v-model="circulation.zrfdbzjlx"
  144. label="转入方代表证件类型"
  145. value-key="dictLabel"
  146. data-key="dictValue"
  147. placeholder="请选择"
  148. :rules="[{ required: true }]"
  149. required
  150. remote-url="/system/dict/data/type/zjlx"
  151. :on-remote-response="'data'"
  152. />
  153. <van-field label="转入方代表证件号码" v-model="circulation.zrfdbzjhm" placeholder="请输入证件号码" input-align="right" label-width="auto"/>
  154. <van-field v-model="circulation.zrfhkszd" label="户口所在地" placeholder="户口所在地" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  155. <van-cell title="是否本集体经济组织成员">
  156. <template #right-icon>
  157. <van-radio-group v-model="circulation.zrfsfbjtjjzzcy" direction="horizontal">
  158. <van-radio name="1">是</van-radio>
  159. <van-radio name="0">否</van-radio>
  160. </van-radio-group>
  161. </template>
  162. </van-cell>
  163. </div>
  164. <p class="main_title">流转信息</p>
  165. <div class="main_box">
  166. <van-field label="流转面积(㎡)" v-model="circulation.lzmj" placeholder="请输入流转面积(㎡)" input-align="right" :rules="[{ required: true }]" required label-width="auto"/>
  167. <van-field label="建筑面积(㎡)" v-model="circulation.jzmj" placeholder="请输入建筑面积(㎡)" input-align="right" :rules="[{ required: true }]" required label-width="auto"/>
  168. <van-field label="流转单价(元)" v-model="circulation.lzdj" placeholder="请输入流转单价(元)" input-align="right" label-width="auto"/>
  169. <van-field label="流转费用(元)" v-model="circulation.lzfy" placeholder="请输入流转费用(元)" input-align="right" label-width="auto"/>
  170. <van-field label="集合收益金额(元)" v-model="circulation.jtsyje" placeholder="请输入集体收益金额(元)" input-align="right" label-width="auto"/>
  171. <van-field
  172. readonly
  173. clickable
  174. v-model="circulation.htqdrq"
  175. label="合同签订日期"
  176. placeholder="请选择合同签订日期"
  177. @click="showhtqdrq = true"
  178. input-align="right"
  179. :rules="[{ required: true }]"
  180. required
  181. right-icon="arrow-down"
  182. />
  183. <van-popup v-model="showhtqdrq" position="bottom">
  184. <van-datetime-picker
  185. v-model="currentDate"
  186. type="date"
  187. title="选择年月日"
  188. :min-date="minDate"
  189. :max-date="maxDate"
  190. @confirm="onConfirmHtqdrq"
  191. />
  192. </van-popup>
  193. <van-field
  194. readonly
  195. clickable
  196. v-if="qsrqOpen"
  197. v-model="circulation.lzqsrq"
  198. label="流转起始时间"
  199. placeholder="请选择起始时间"
  200. @click="showlzqsrq = true"
  201. input-align="right"
  202. right-icon="arrow-down"
  203. />
  204. <van-popup v-model="showlzqsrq" position="bottom">
  205. <van-datetime-picker
  206. v-model="currentDate"
  207. type="date"
  208. title="选择年月日"
  209. :min-date="minDate"
  210. :max-date="maxDate"
  211. @confirm="onConfirmLzqsrq"
  212. />
  213. </van-popup>
  214. <van-field
  215. readonly
  216. clickable
  217. v-model="circulation.lzjsrq"
  218. v-if="jsrqOpen"
  219. label="流转结束时间"
  220. placeholder="请选择结束时间"
  221. @click="showlzjsrq = true"
  222. input-align="right"
  223. right-icon="arrow-down"
  224. />
  225. <van-popup v-model="showlzjsrq" position="bottom">
  226. <van-datetime-picker
  227. v-model="currentDate"
  228. type="date"
  229. title="选择年月日"
  230. :min-date="minDate"
  231. :max-date="maxDate"
  232. @confirm="onConfirmLzjsrq"
  233. />
  234. </van-popup>
  235. <van-field
  236. readonly
  237. clickable
  238. v-model="lzqfwyt"
  239. label="流转前房屋用途"
  240. placeholder="请选择流转前房屋用途"
  241. @click="showLzqfwyt = true"
  242. input-align="right"
  243. right-icon="arrow-down"
  244. label-width="auto"
  245. />
  246. <van-popup v-model="showLzqfwyt" position="bottom">
  247. <van-picker
  248. show-toolbar
  249. :columns="lzqfwytDictionaries"
  250. @confirm="onConfirmLzqfwyt"
  251. @cancel="showLzqfwyt = false"
  252. />
  253. </van-popup>
  254. <van-field
  255. readonly
  256. clickable
  257. v-model="lzhfwyt"
  258. label="流转后房屋用途"
  259. placeholder="请选择流转后房屋用途"
  260. @click="showLzhfwyt = true"
  261. input-align="right"
  262. right-icon="arrow-down"
  263. label-width="auto"
  264. />
  265. <van-popup v-model="showLzhfwyt" position="bottom">
  266. <van-picker
  267. show-toolbar
  268. :columns="lzhfwytDictionaries"
  269. @confirm="onConfirmLzhfwyt"
  270. @cancel="showLzhfwyt = false"
  271. />
  272. </van-popup>
  273. <van-field v-if="zrnxOpen" label="转入年限" v-model="circulation.zrnx" placeholder="请输入转入年限" input-align="right" label-width="auto"/>
  274. </div>
  275. <p class="main_title">其他</p>
  276. <div class="main_box">
  277. <van-field label="所有权人代表姓名" v-model="circulation.suyqrdbxm" placeholder="请输入姓名" input-align="right" label-width="auto"/>
  278. <van-field label="村集体意见" v-model="circulation.suyqryj" placeholder="请输入内容" input-align="right" label-width="auto"/>
  279. <van-field label="备注" v-model="circulation.bz" placeholder="请输入备注" input-align="right" label-width="auto"/>
  280. </div>
  281. <van-dialog v-if="circulation.lzfs == '01' || circulation.lzfs == '02'" v-model="mapShow" show-cancel-button>
  282. <MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
  283. </van-dialog>
  284. <van-dialog v-else v-model="mapShow" show-cancel-button>
  285. <MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.shyqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
  286. </van-dialog>
  287. <van-dialog v-show="circulation.lzfs == '03'" v-model="hhMapShow" show-cancel-button>
  288. <MapGisObtainTc ref="zjdZrfProductResh" :shqrxm="circulation.zrfdbxm" :landStatus="landStatus" :deptId="sysFarmer.deptId"></MapGisObtainTc>
  289. </van-dialog>
  290. <div style="padding: 16px 0;">
  291. <van-row>
  292. <van-col span="24" align="center">
  293. <van-button type="info" native-type="submit" class="submitButton" @click="goAdd">保<i style="margin-right: 1em;"></i>存</van-button>
  294. </van-col>
  295. </van-row>
  296. <div class="clear"></div>
  297. </div>
  298. </div>
  299. </template>
  300. <script>
  301. import { getLz , zjdzd , getByZjddm , edit , goApply,homeLzAdd } from "@/api/onlineHome/homestead/circulation";
  302. import { getShyqrs,getByLyZjddm,listHomesteadnmfw} from "@/api/sunVillage_info/homestead/paidExit";
  303. import FieldSelect from "@/components/form/FieldSelect";
  304. import MapGisObtainTc from "@/components/Map/MapGisObtainTc";
  305. export default {
  306. name: "circulationAdd",
  307. components: { MapGisObtainTc,FieldSelect },
  308. data() {
  309. return {
  310. lzfsDictionaries: [],//流转方式
  311. shyqrdmDictionaries: [],//转出方使用权人代码
  312. lzqfwytDictionaries: [],//流转前房屋类型
  313. lzhfwytDictionaries: [],//流转后房屋类型
  314. zrfdbmcDictionaries: [],//转入方代表名称
  315. zrfdbzjlxDictionaries: [],//转入方证件类型
  316. zjdDictionaries: [],//宅基地列表
  317. getObligeeOptions:[],
  318. getZrfObligeeOptions:[],
  319. xbDictionaries:[],//申请人证件类型
  320. xb:'男',
  321. lzfs: '转让',//流转方式
  322. shyqrdm: '',//转出方使用权人代码
  323. lzqfwyt: '',//流转前房屋类型
  324. lzhfwyt: '',//流转后房屋类型
  325. zrfdbmc: '',//转入方代表名称
  326. zrfdbzjlx: '',//转入方证件类型
  327. sysFarmer:{deptId:this.$store.state.user.loginDeptId,memberName:""},
  328. landStatus:"1",
  329. zjd: [],//宅基地列表
  330. sfjtjjzzShow:false,
  331. zcfhkszdShow:false,
  332. xjdShow:false,
  333. qsrqOpen:false,
  334. shyqxmShow:false,
  335. houseOwnershipOpen:false,
  336. jsrqOpen:false,
  337. zrnxOpen:false,
  338. showhtqdrq:false,
  339. showDropList:false,
  340. showZrfList:false,
  341. showxb: false,
  342. showLzfs: false,
  343. showShyqrdm: false,
  344. showLzqfwyt: false,
  345. showLzhfwyt: false,
  346. showZrfdbmc: false,
  347. showZrfdbzjlx: false,
  348. showZjd:false,
  349. showlzqsrq:false,
  350. showlzjsrq:false,
  351. minDate: new Date(),
  352. maxDate: new Date(2025, 10, 1),
  353. currentDate: new Date(),
  354. circulation: {jzmj:0.00,zcfsfbjtjjzzcy:"Y",zrfsfbjtjjzzcy:"Y",lzfs:"01",houseOwnership:"2",phlyms:"10"},
  355. mapShow: false,
  356. hhMapShow:false,
  357. };
  358. },
  359. created() {
  360. this.getDetail();
  361. },
  362. methods: {
  363. onConfirmGsf(val){
  364. if(val === "1"){
  365. this.$set(this.circulation, "shyqrxm", this.$store.state.user.deptName+"村集体");
  366. this.landStatus = "2";
  367. this.shyqxmShow = true;
  368. this.sfjtjjzzShow=true;
  369. this.zcfhkszdShow=true;
  370. this.xjdShow=true;
  371. this.zjddm = null;
  372. }else{
  373. this.shyqxmShow = false;
  374. this.sfjtjjzzShow=false;
  375. this.zcfhkszdShow=false;
  376. this.xjdShow=false;
  377. }
  378. },
  379. getDetail(){
  380. getLz(this.$route.query.id).then(response => {
  381. if(response.data.houseOwnership === "1"){
  382. this.shyqxmShow = true;
  383. this.sfjtjjzzShow=true;
  384. this.zcfhkszdShow=true;
  385. this.xjdShow=true;
  386. this.houseOwnershipOpen = true;
  387. this.qsrqOpen = true;
  388. this.jsrqOpen = true;
  389. this.zrnxOpen = true;
  390. }
  391. //流转方式
  392. this.houseGetDicts("lzfs").then((res) => {
  393. for( let i = 0 ; i < res.data.length ; i++){
  394. if(res.data[i].dictSort < 6){
  395. this.lzfsDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue})
  396. }
  397. }
  398. this.lzfs = this.selectDictLabel(res.data, response.data.lzfs);
  399. });
  400. //转入方证件类型
  401. this.houseGetDicts("zjlx").then((res) => {
  402. for( let i = 0 ; i < res.data.length ; i++){
  403. this.zrfdbzjlxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue})
  404. }
  405. this.zrfdbzjlx = this.selectDictLabel(res.data, response.data.zrfdbzjlx);
  406. });
  407. //流转前房屋用途
  408. this.houseGetDicts("fwyt").then((res) => {//流转前房屋用途
  409. console.log(res)
  410. for( let i = 0 ; i < res.data.length ; i++){
  411. this.lzqfwytDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue})
  412. }
  413. this.lzqfwyt = this.selectDictLabel(res.data, response.data.lzqfwyt);
  414. });
  415. //流转后房屋用途
  416. this.houseGetDicts("fwyt").then((res) => {//流转后房屋用途
  417. for( let i = 0 ; i < res.data.length ; i++){
  418. this.lzhfwytDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue})
  419. }
  420. this.lzhfwyt = this.selectDictLabel(res.data, response.data.lzhfwyt);
  421. });
  422. this.circulation = response.data;
  423. if(response.data.lzfs === "04" || response.data.lzfs === "05"){
  424. this.landStatus = "4";
  425. }else {
  426. this.landStatus = "1";
  427. }
  428. });
  429. },
  430. onConfirmLzfs(value) {
  431. if(value.value === "04" || value.value === "05"){
  432. this.houseOwnershipOpen = true;
  433. this.qsrqOpen = true;
  434. this.jsrqOpen = true;
  435. this.zrnxOpen = true;
  436. }else{
  437. this.houseOwnershipOpen = false;
  438. this.qsrqOpen = false;
  439. this.jsrqOpen = false;
  440. this.zrnxOpen = false;
  441. this.$set(this.circulation, "houseOwnership", "2");
  442. }
  443. this.lzfs = value.text;
  444. this.circulation.lzfs = value.value;
  445. this.showLzfs = false;
  446. }, //流转方式
  447. onConfirmZjd(value) {
  448. this.circulation.zjddm = value;
  449. var form = {};
  450. form.zjddm = value;
  451. getByZjddm(form).then(qlrRes => {
  452. console.log(qlrRes.data.shyqrdm)
  453. this.circulation.shyqrdm = qlrRes.data.shyqrdm;
  454. this.$forceUpdate();
  455. });
  456. this.showZjd = false;
  457. },
  458. mapLook(){
  459. this.mapShow = true;
  460. setTimeout(() => {
  461. this.$refs.zjdProductResh.drawingLyPaceCountryDarw();
  462. },1000);
  463. },
  464. hhMapLook(){
  465. this.hhMapShow = true;
  466. setTimeout(() => {
  467. this.$refs.zjdZrfProductResh.drawingLyPaceCountryDarw();
  468. },1000);
  469. },
  470. onConfirmXb(data){
  471. this.xb = data.text;
  472. this.circulation.xb = data.value;
  473. this.showxb = false;
  474. },
  475. /** 模糊查询人员信息 */
  476. remoteTransfereeMethod(query) {
  477. if (query !== "") {
  478. getShyqrs({shyqrdbxm:query,status:1,deptId:this.sysFarmer.deptId}).then((response) => {
  479. if (response.code == 200) {
  480. this.getObligeeOptions = response.rows.map(function (item) {
  481. return {
  482. sqrxm:item.shyqrdbxm,
  483. sqrxb:item.xb,
  484. sqrzjhm:item.shyqrdbzjhm,
  485. sqrnhdm:item.nhdm,
  486. sqrzjlx:item.shyqrdbzjlx,
  487. sqrdh:item.dh,
  488. gyfs:item.gyfs,
  489. dz:item.dz,
  490. deptId:item.deptId,
  491. deptName:item.deptName,
  492. zjddm:item.zjddm,
  493. sfbncjtjjzzcy:item.sfbncjtjjzzcy,
  494. shyqrdm:item.shyqrdm,
  495. }
  496. })
  497. //设置模糊查询的下拉框和滚动条
  498. if (this.getObligeeOptions.length > 0) {
  499. this.showDropList = true; // div显示会阻挡下边的选择框和输入框,showDropList控制下拉框是否显示
  500. //设置模糊查询的和滚动条
  501. this.$nextTick(() => {
  502. if (this.getObligeeOptions.length > 4) {
  503. let height = document.getElementById("vanCell").offsetHeight * 4;
  504. document.getElementById("dropList").style.height = height + "px";
  505. document.getElementById("dropList").style.overflow = "scroll";
  506. } else {
  507. document.getElementById("dropList").style.height = "";
  508. document.getElementById("dropList").style.overflow = "visible";
  509. }
  510. });
  511. } else {
  512. this.showDropList = false;
  513. }
  514. }
  515. });
  516. } else {
  517. this.getObligeeOptions = [];
  518. this.showDropList = false;
  519. }
  520. },
  521. /** 模糊查询人员信息 */
  522. remoteTransfereeMethodTwo(query) {
  523. if (query !== "") {
  524. getShyqrs({shyqrdbxm:query,status:1,deptId:this.sysFarmer.deptId}).then((response) => {
  525. if (response.code == 200) {
  526. this.getZrfObligeeOptions = response.rows.map(function (item) {
  527. return {
  528. sqrxm:item.shyqrdbxm,
  529. sqrxb:item.xb,
  530. sqrzjhm:item.shyqrdbzjhm,
  531. sqrnhdm:item.nhdm,
  532. sqrzjlx:item.shyqrdbzjlx,
  533. sqrdh:item.dh,
  534. gyfs:item.gyfs,
  535. dz:item.dz,
  536. deptId:item.deptId,
  537. deptName:item.deptName,
  538. zjddm:item.zjddm,
  539. sfbncjtjjzzcy:item.sfbncjtjjzzcy,
  540. }
  541. })
  542. //设置模糊查询的下拉框和滚动条
  543. if (this.getZrfObligeeOptions.length > 0) {
  544. this.showZrfList = true; // div显示会阻挡下边的选择框和输入框,showDropList控制下拉框是否显示
  545. //设置模糊查询的和滚动条
  546. this.$nextTick(() => {
  547. if (this.getZrfObligeeOptions.length > 4) {
  548. let height = document.getElementById("vanCellZrf").offsetHeight * 4;
  549. document.getElementById("zrfList").style.height = height + "px";
  550. document.getElementById("zrfList").style.overflow = "scroll";
  551. } else {
  552. document.getElementById("zrfList").style.height = "";
  553. document.getElementById("zrfList").style.overflow = "visible";
  554. }
  555. });
  556. } else {
  557. this.showZrfList = false;
  558. }
  559. }
  560. });
  561. } else {
  562. this.getZrfObligeeOptions = [];
  563. this.showZrfList = false;
  564. }
  565. },
  566. shyqrdmxmChange(val){
  567. this.$set(this.circulation, "shyqrxm", val.sqrxm);
  568. this.$set(this.circulation, "deptId", val.deptId);
  569. this.$set(this.circulation, "deptName", val.deptName);
  570. this.$set(this.circulation, "sqrzjhm", val.sqrzjhm);
  571. this.$set(this.circulation, "sqrzjlx", val.sqrzjlx);
  572. this.$set(this.circulation, "sqrnhdm", val.sqrnhdm);
  573. this.$set(this.circulation, "gyqk", val.gyfs);
  574. this.$set(this.circulation, "xb", val.sqrxb);
  575. this.$set(this.circulation, "lxdh", val.sqrdh);
  576. this.$set(this.circulation, "hkszd", val.dz);
  577. this.$set(this.circulation, "zjddm", val.zjddm);
  578. this.$set(this.circulation, "zcfsfbjtjjzzcy", val.sfbncjtjjzzcy);
  579. this.$set(this.circulation, "shyqrdm", val.shyqrdm);
  580. this.getObligeeOptions=[];
  581. this.showDropList = false;
  582. },
  583. zrfdmxmChange(val){
  584. this.$set(this.circulation, "zrfdbxm", val.sqrxm);
  585. this.$set(this.circulation, "zrfdbzjhm", val.sqrzjhm);
  586. this.$set(this.circulation, "zrfdbzjlx", val.sqrzjlx);
  587. this.$set(this.circulation, "zrfnhdm", val.sqrnhdm);
  588. this.$set(this.circulation, "zrfsfbjtjjzzcy", val.sfbncjtjjzzcy);
  589. this.$set(this.circulation, "hkszd", val.dz);
  590. this.getObligeeOptions=[];
  591. this.showZrfList = false;
  592. },
  593. /** 查找地图中宅基地 */
  594. closeMoule: function (data) {
  595. this.circulation.zjddm = data;
  596. let _this = this;
  597. getByLyZjddm(data).then((response) => {
  598. this.$set(this.circulation, "lzmj", response.data.zdmj);
  599. listHomesteadnmfw({zjddm: data}).then((res) => {
  600. res.rows.map(function(item){
  601. _this.$set(_this.circulation, "jzmj", Number(_this.circulation.jzmj) + Number(item.jzmj));
  602. });
  603. });
  604. // const baseImgUrl = this.$store.getters.baseRoutingUrl;
  605. if(response.data.zdt != null && response.data.zdt !== ""){
  606. this.$set(this.form, "xzzp", response.rows[0].zdt);
  607. }
  608. });
  609. },
  610. //宅基地列表
  611. onConfirmShyqrdm(value) {
  612. this.showShyqrdm = false;
  613. }, //转出方使用权人代码
  614. onConfirmLzqfwyt(value) {
  615. this.lzqfwyt = value.text;
  616. this.circulation.lzqfwyt = value.value;
  617. this.showLzqfwyt = false;
  618. }, //流转前房屋用途
  619. onConfirmLzhfwyt(value) {
  620. this.lzhfwyt = value.text;
  621. this.circulation.lzhfwyt = value.value;
  622. this.showLzhfwyt = false;
  623. }, //流转后房屋用途
  624. onConfirmZrfdbmc(value) {
  625. this.value = value;
  626. this.showZrfdbmc = false;
  627. }, //转入方代表名称
  628. onConfirmZrfdbzjlx(value) {
  629. this.zrfdbzjlx = value.text;
  630. this.circulation.zrfdbzjlx = value.value;
  631. this.showZrfdbzjlx = false;
  632. }, //转入方代表证件类型
  633. onConfirmLzqsrq(value) {
  634. this.circulation.lzqsrq = this.getNowFormatDate(value).substr(0,10);
  635. this.showlzqsrq = false;
  636. }, //流转起始时间onConfirmHtqdrq
  637. onConfirmHtqdrq(value) {
  638. this.circulation.htqdrq = this.getNowFormatDate(value).substr(0,10);
  639. this.showhtqdrq = false;
  640. },
  641. onConfirmLzjsrq(value) {
  642. this.circulation.lzjsrq = this.getNowFormatDate(value).substr(0,10);
  643. this.showlzjsrq = false;
  644. }, //流转结束时间
  645. goAdd(){
  646. homeLzAdd(this.circulation).then(response => {
  647. if(response.code = 200){
  648. this.$toast.success('保存成功');
  649. this.back();
  650. }
  651. });
  652. },
  653. back() {
  654. setTimeout(() => this.$router.back(-1), 1000)
  655. },
  656. },
  657. }
  658. </script>
  659. <style scoped lang="scss">
  660. .app-container {
  661. }
  662. .main_title{
  663. font-size: 0.4rem;
  664. color: #1D6FE9;
  665. margin: 0.2rem 6%;
  666. position: relative;
  667. }
  668. .main_box{
  669. width: 96%;
  670. margin: 0 auto;
  671. border-radius: 6px;
  672. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  673. overflow: hidden;
  674. background-color: #FFF;
  675. }
  676. .submitButton{
  677. width: 80%;
  678. margin: 0 auto;
  679. background-color: #1D6FE9;
  680. }
  681. </style>