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

732 строки
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. <div class="header_main">
  14. 添加有偿退出
  15. <div class="return_btn" @click="onClickLeft"></div>
  16. <!-- <div class="add_btn" @click="goAdd"></div>-->
  17. </div>
  18. <p class="main_title">申请人基本信息</p>
  19. <van-form ref="_Form">
  20. <div class="main_box">
  21. <!-- <van-field v-model="circulation.sqrxm" label="申请人姓名" placeholder="申请人姓名" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>-->
  22. <van-field v-model="circulation.sqrxm" label="申请人姓名" placeholder="申请人姓名" input-align="right" label-width="auto" :rules="[{ required: true }]" required @input="remoteTransfereeMethod" />
  23. <div id="dropList" v-show="showDropList" style="width: 92vw; position: absolute; z-index: 99; left: 50%; margin-left: -46vw; border: 1px solid #E2E0E0;" >
  24. <van-cell id="vanCell" v-for="(item, index) in getObligeeOptions" :key="index" @click="shyqrdmxmChange(item)" style="position: relative; z-index: 999;">
  25. {{item.sqrxm}}
  26. </van-cell>
  27. </div>
  28. <!-- <van-field-->
  29. <!-- readonly-->
  30. <!-- clickable-->
  31. <!-- v-model="circulation.zjddm"-->
  32. <!-- label="宅基地代码"-->
  33. <!-- placeholder="请选择"-->
  34. <!-- @click="remoteProposerMethod"-->
  35. <!-- input-align="right"-->
  36. <!-- right-icon="arrow-down" :rules="[{ required: true }]" required-->
  37. <!-- />-->
  38. <!-- <van-popup v-model="showzjddm" position="bottom">-->
  39. <!-- <van-picker-->
  40. <!-- show-toolbar-->
  41. <!-- :columns="zjdDictionaries"-->
  42. <!-- value-key="zjddm"-->
  43. <!-- @confirm="onConfirmZjddm"-->
  44. <!-- @cancel="showzjddm = false"-->
  45. <!-- />-->
  46. <!-- </van-popup>-->
  47. <van-field
  48. v-model="circulation.zjddm"
  49. label="宅基地代码"
  50. input-align="right"
  51. >
  52. <template #button>
  53. <van-icon name="../../../static/images/22.png" color="#539FFD" size="20" @click="mapLook"/>
  54. </template>
  55. </van-field>
  56. <van-field
  57. readonly
  58. clickable
  59. v-model="xb"
  60. label="性别"
  61. placeholder="请选择"
  62. @click="showxb = true"
  63. input-align="right"
  64. right-icon="arrow-down"
  65. label-width="auto" :rules="[{ required: true }]" required
  66. />
  67. <van-popup v-model="showxb" position="bottom">
  68. <van-picker
  69. show-toolbar
  70. :columns="xbDictionaries"
  71. @confirm="onConfirmXb"
  72. @cancel="showxb = false"
  73. />
  74. </van-popup>
  75. <van-field v-model="circulation.sqrzjhm" label="申请人证件号码" placeholder="申请人证件号码" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  76. <van-field v-model="circulation.lxdh" label="联系电话" placeholder="联系电话" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  77. <field-select
  78. v-model="circulation.gyqk"
  79. label="共有情况"
  80. value-key="dictLabel"
  81. data-key="dictValue"
  82. placeholder="选择共有情况"
  83. :rules="[{ required: true }]"
  84. required
  85. remote-url="/open/zdzh/list/house_yes_no"
  86. :on-remote-response="'data'"
  87. />
  88. <van-field v-model="circulation.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  89. </div>
  90. <p class="main_title">拟申请退出宅基地</p>
  91. <van-field v-model="circulation.tcmj" label="面积(㎡)" placeholder="请输入面积㎡" input-align="right" label-width="auto" :rules="[{ required: true }]" required type="number"/>
  92. <field-select
  93. v-model="circulation.xz"
  94. label="现状"
  95. value-key="dictLabel"
  96. data-key="dictValue"
  97. placeholder="选择现状"
  98. :rules="[{ required: true }]"
  99. required
  100. remote-url="/open/zdzh/list/dsxz"
  101. :on-remote-response="'data'"
  102. />
  103. <van-field v-model="circulation.zjdszd" label="东至" placeholder="东至" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  104. <van-field v-model="circulation.zjdszn" label="南至" placeholder="南至" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  105. <van-field v-model="circulation.zjdszx" label="西至" placeholder="西至" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  106. <van-field v-model="circulation.zjdszb" label="北至" placeholder="北至" input-align="right" label-width="auto" :rules="[{ required: true }]" required/>
  107. <field-select
  108. v-model="circulation.dldm"
  109. label="地类"
  110. value-key="dictLabel"
  111. data-key="dictValue"
  112. placeholder="选择现状"
  113. :rules="[{ required: true }]"
  114. required
  115. remote-url="/open/zdzh/list/geographic_type"
  116. :on-remote-response="'data'"
  117. />
  118. <p class="main_title">退出宅基地情况</p>
  119. <van-field v-model="circulation.tcmj" label="退出面积(㎡)" placeholder="请输入退出面积㎡" input-align="right" label-width="auto" :rules="[{ required: true }]" required type="number"/>
  120. <van-field v-model="circulation.jzmj" label="建筑面积(㎡)" placeholder="请输入建筑面积㎡" input-align="right" label-width="auto" :rules="[{ required: true }]" required type="number"/>
  121. <div class="main_box">
  122. <van-field
  123. readonly
  124. clickable
  125. v-model="tcqllx"
  126. label="退出权利类型"
  127. placeholder="请选择退出权利类型"
  128. @click="showtcqllx = true"
  129. input-align="right"
  130. right-icon="arrow-down"
  131. label-width="auto" :rules="[{ required: true }]" required
  132. />
  133. <van-popup v-model="showtcqllx" position="bottom">
  134. <van-picker
  135. show-toolbar
  136. :columns="tcqllxDictionaries"
  137. @confirm="onConfirmTcqllx"
  138. @cancel="showtcqllx = false"
  139. />
  140. </van-popup>
  141. <!--<van-field
  142. readonly
  143. clickable
  144. v-model="tclx"
  145. label="退出类型"
  146. placeholder="请选择退出类型"
  147. @click="showtclx = true"
  148. input-align="right"
  149. right-icon="arrow-down"
  150. label-width="auto" :rules="[{ required: true }]" required
  151. />
  152. <van-popup v-model="showtclx" position="bottom">
  153. <van-picker
  154. show-toolbar
  155. :columns="tclxDictionaries"
  156. @confirm="onConfirmTclx"
  157. @cancel="showtclx = false"
  158. />
  159. </van-popup>-->
  160. <van-field
  161. readonly
  162. clickable
  163. v-model="tcfs"
  164. label="退出方式"
  165. placeholder="请选择退出方式"
  166. @click="showtcfs = true"
  167. input-align="right"
  168. right-icon="arrow-down"
  169. label-width="auto" :rules="[{ required: true }]" required
  170. />
  171. <van-popup v-model="showtcfs" position="bottom">
  172. <van-picker
  173. show-toolbar
  174. :columns="tcfsDictionaries"
  175. @confirm="onConfirmTcfs"
  176. @cancel="showtcfs = false"
  177. />
  178. </van-popup>
  179. <van-field v-model="circulation.tcqszsh" label="权属证书号" placeholder="请输入权属证书号" input-align="right" label-width="auto" />
  180. </div>
  181. <p class="main_title">现居住情况</p>
  182. <van-field v-model="circulation.xjzmj" label="建筑面积(㎡)" placeholder="请输入建筑面积㎡" input-align="right" label-width="auto" :rules="[{ required: true }]" required type="number"/>
  183. <van-field v-model="circulation.xqszsh" label="权属证书号" placeholder="请输入权属证书号" input-align="right" label-width="auto" />
  184. <van-field v-model="circulation.xjzdd" label="居住地点" placeholder="请输入居住地点" input-align="right" label-width="auto" />
  185. <p class="main_title">补偿信息</p>
  186. <van-field v-model="circulation.bcje" label="宅基地补偿" placeholder="宅基地补偿" input-align="right" label-width="auto" type="number"/>
  187. <van-field v-model="circulation.dmfzwbc" label="地面附着物补偿" placeholder="地面附着物补偿" input-align="right" label-width="auto" type="number"/>
  188. <field-select
  189. v-model="circulation.yctcfs"
  190. label="退出类型"
  191. value-key="dictLabel"
  192. data-key="dictValue"
  193. placeholder="选择退出类型"
  194. remote-url="/open/zdzh/list/yctcfs"
  195. :on-remote-response="'data'"
  196. />
  197. <field-select
  198. v-model="circulation.bcfs"
  199. label="补偿方式"
  200. value-key="dictLabel"
  201. data-key="dictValue"
  202. placeholder="选择退出类型"
  203. remote-url="/open/zdzh/list/bcfs"
  204. :on-remote-response="'data'"
  205. />
  206. <field-date-picker
  207. v-model="circulation.bcsj"
  208. label="补偿时间"
  209. placeholder="选择日期"
  210. formatter="yyyy-MM-dd"
  211. />
  212. <p class="main_title">其他</p>
  213. <van-field v-model="circulation.sqly" label="申请理由" placeholder="请输入申请理由" input-align="right" label-width="auto"/>
  214. <field-date-picker
  215. v-model="circulation.sqrq"
  216. label="申请日期"
  217. placeholder="选择日期"
  218. :rules="[{ required: true }]"
  219. formatter="yyyy-MM-dd"
  220. required
  221. />
  222. <van-field v-model="circulation.jbrxm" label="经办人姓名" placeholder="请输入经办人姓名" input-align="right" label-width="auto"/>
  223. <field-date-picker
  224. v-model="circulation.pzrq"
  225. label="批准日期"
  226. placeholder="选择日期"
  227. :rules="[{ required: true }]"
  228. formatter="yyyy-MM-dd"
  229. required
  230. />
  231. <field-date-picker
  232. v-model="circulation.barq"
  233. label="备案日期"
  234. placeholder="选择日期"
  235. :rules="[{ required: true }]"
  236. formatter="yyyy-MM-dd"
  237. required
  238. />
  239. <van-dialog v-model="mapShow" show-cancel-button>
  240. <MapGisObtainTc ref="zjdProductResh" :shqrxm="circulation.sqrxm" :landStatus="landStatus" :deptId="sysFarmer.deptId" @closeMoule="closeMoule"></MapGisObtainTc>
  241. </van-dialog>
  242. <!-- 3组附件 -->
  243. <van-popup
  244. v-model="attachmentVisible"
  245. closeable
  246. position="top"
  247. :style="{ height: '61.8%' }"
  248. :close-on-click-overlay="proposerStatus == 1"
  249. :lazy-render="false"
  250. >
  251. <van-tabs type="card" style="padding-top: 1.35rem;" color="#1D6FE9" :lazy-render="false" v-model="attachmentActive" ref="attachmentDialog">
  252. <van-tab title="退出附件" key="0">
  253. <home-apply-upload-comp
  254. :business-type="houseApplyUploadComp.businessType"
  255. :house-apply-status="houseApplyUploadComp.homeApplyStatus"
  256. :process-key="houseApplyUploadComp.processKey"
  257. :proposer-id="houseApplyUploadComp.proposerId"
  258. :table-name="houseApplyUploadComp.tableName"
  259. :readonly="houseApplyUploadComp.readonly"
  260. :userName="sysFarmer.memberName"
  261. :full="houseApplyUploadComp.full"
  262. @uploadFinished="onUploadFinished"
  263. >
  264. </home-apply-upload-comp>
  265. </van-tab>
  266. </van-tabs>
  267. </van-popup>
  268. </van-form>
  269. <van-goods-action style="z-index: 999;">
  270. <van-goods-action-icon icon="label-o" text="附件" @click="openAttachment" color="#1D6FE9" />
  271. <van-goods-action-button type="info" text="保存" @click="goSubmit(false)" />
  272. <van-goods-action-button type="info" text="提交" @click="goSubmit(true)"/>
  273. </van-goods-action>
  274. </div>
  275. </template>
  276. <script>
  277. import { getShyqrs,dyAdd,zyyctcApply,getByLyZjddm,listHomesteadnmfw} from "@/api/sunVillage_info/homestead/paidExit";
  278. import HomeApplyUploadComp from "@/components/home/HomeApplyUploadComp";
  279. import FieldSelect from "@/components/form/FieldSelect";
  280. import FieldDatePicker from "@/components/form/FieldDatePicker";
  281. import {formatDate} from "element-ui/src/utils/date-util.js";
  282. import { } from "@/api/onlineHome/homestead/paidExit";
  283. import {Notify} from "vant";
  284. import MapGisObtainTc from "@/components/Map/MapGisObtainTc";
  285. import Cookies from "js-cookie";
  286. const PROPOSER_VIEW = 1;
  287. // 工作流名称
  288. const PROPOSER_STAGE_BASE_APPLY_ACTIVITY = 'home_usetc';
  289. // 附件表名
  290. const PROPOSER_STAGE_BASE_APPLY_TABLE = 't_homeuse_zyyctc';
  291. // 其他
  292. const PROPOSER_MODULE = 'home';
  293. export default {
  294. name: "paidExitAdd",
  295. components: { MapGisObtainTc,FieldSelect,FieldDatePicker,HomeApplyUploadComp },
  296. data() {
  297. return {
  298. tcqllxDictionaries:[],//退出权利类型
  299. tclxDictionaries:[],//退出类型
  300. tcfsDictionaries:[],//退出方式
  301. yctcfsDictionaries:[],//有偿退出方式
  302. xbDictionaries:[],//申请人证件类型
  303. bcfsDictionaries:[],//补偿方式
  304. zjdDictionaries:[],//宅基地代码
  305. getObligeeOptions:[],//下拉框列表
  306. sysFarmer:JSON.parse(Cookies.get('user')),
  307. tcqllx:'整体退出',
  308. tclx:'有偿退出',
  309. tcfs:'使用权',
  310. yctcfs:'暂时退出',
  311. xb:'男',
  312. bcfs:'',
  313. zjddm:'',
  314. landStatus:"1",
  315. showtcqllx: false,
  316. showtclx: false,
  317. showtcfs: false,
  318. showyctcfs: false,
  319. showxb: false,
  320. showbcfs: false,
  321. showzjddm: false,
  322. showDropList: false,//是否显示下拉框
  323. attachmentVisible:false,
  324. active: 0,
  325. // 表单意图
  326. proposerStatus: PROPOSER_VIEW,
  327. // 家庭成员tab
  328. familyMembersActive: 0,
  329. circulation:{
  330. // 申请类型 1-宅基地退出
  331. sqlx: '1',
  332. xb:"1",
  333. gyqk:"1",
  334. xz:"1",
  335. tcfs:"01",
  336. jzmj:0.00,
  337. tcqllx:"01",
  338. xjzmj:0.00,
  339. dldm:"10",
  340. // 退出类型 01-有偿退出 02-无偿退出
  341. tclx: '01',
  342. },
  343. // 当前附件tab
  344. attachmentActive: 0,
  345. // 申请附件树
  346. houseApplyUploadComp: {
  347. businessType: PROPOSER_MODULE,
  348. proposerId: -1,
  349. homeApplyStatus: "11",
  350. processKey: PROPOSER_STAGE_BASE_APPLY_ACTIVITY,
  351. tableName: PROPOSER_STAGE_BASE_APPLY_TABLE,
  352. attachmentList: [],
  353. readonly: false,
  354. full: false,
  355. },
  356. mapShow: false,
  357. };
  358. },
  359. created() {
  360. this.getDictionaries();
  361. getShyqrs({shyqrdbzjhm:this.sysFarmer.idcard,status:1}).then((response) => {
  362. if (response.code == 200) {
  363. this.shyqrdmxmChange(response.rows[0]);
  364. this.closeMoule(response.rows[0].zjddm);
  365. }
  366. });
  367. },
  368. methods: {
  369. getDictionaries(){
  370. //退出权利类型
  371. this.houseGetDicts("tcqllx").then((res) => {
  372. for(var i = 0 ; i < res.data.length ; i++){
  373. this.tcqllxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  374. }
  375. });
  376. //退出类型
  377. /*this.houseGetDicts("tclx").then((res) => {
  378. for(var i = 0 ; i < res.data.length ; i++){
  379. this.tclxDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  380. }
  381. });*/
  382. //退出方式
  383. this.houseGetDicts("tcfs").then((res) => {
  384. for(var i = 0 ; i < res.data.length ; i++){
  385. this.tcfsDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  386. }
  387. });
  388. //申请人证件类型
  389. this.houseGetDicts("sys_user_sex").then((res) => {
  390. for(var i = 0 ; i < res.data.length ; i++){
  391. this.xbDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  392. }
  393. });
  394. //补偿方式
  395. this.houseGetDicts("bcfs").then((res) => {
  396. for(var i = 0 ; i < res.data.length ; i++){
  397. this.bcfsDictionaries.push({text:res.data[i].dictLabel,value:res.data[i].dictValue});
  398. }
  399. });
  400. this.$set(this.circulation, 'yctcfs', "1");
  401. this.$set(this.circulation, 'bcfs', "01");
  402. this.$set(this.circulation, 'bcje', 0.00);
  403. this.$set(this.circulation, 'dmfzwbc', 0.00);
  404. //宅基地代码
  405. /*zjdzd().then(zjdRes => {
  406. for( let i = 0 ; i < zjdRes.rows.length ; i++){
  407. this.zjdDictionaries.push(zjdRes.rows[i].zjddm);
  408. }
  409. if(this.zjdDictionaries.length > 0)
  410. this.onConfirmZjddm(this.zjdDictionaries[0]);
  411. });*/
  412. // getExitProposerDetail().then(res => {
  413. // if (res.data) {
  414. // let data = res.data;
  415. // this.$set(this.circulation, 'sqrxm', data.shyqrdbxm);
  416. // this.$set(this.circulation, 'sqrzjhm', data.shyqrdbzjhm);
  417. // this.$set(this.circulation, 'sqrzjlx', data.shyqrdbzjlx);
  418. // if(data.shyqrdbzjlx) {
  419. // let val = this.zjlxDictionaries.find((x) => x.value == data.shyqrdbzjlx);
  420. // if(val)
  421. // this.zjlx = val.text;
  422. // }
  423. // }
  424. // });
  425. },
  426. /*onConfirmZjddm(data){
  427. console.log(data)
  428. this.circulation.zjddm = data;
  429. this.showzjddm = false;
  430. getByZjddm({zjddm: data,}).then(qlrRes => {
  431. let data = qlrRes.data;
  432. console.log(data)
  433. this.$set(this.circulation, 'sqrxm', data.shyqrdbxm);
  434. this.$set(this.circulation, 'sqrzjhm', data.shyqrdbzjhm);
  435. this.$set(this.circulation, 'sqrzjlx', data.shyqrdbzjlx);
  436. if(data.shyqrdbzjlx)
  437. {
  438. let val = this.zjlxDictionaries.find((x) => x.value == data.shyqrdbzjlx);
  439. if(val)
  440. this.zjlx = val.text;
  441. }
  442. this.$forceUpdate();
  443. });
  444. },*/
  445. // 初次申请草稿的附件上传
  446. onUploadFinished(fileIdList) {
  447. this.$set(this.circulation, "fileList", fileIdList);
  448. },
  449. onConfirmZjddm(data){
  450. console.log(data);
  451. this.showzjddm = false;
  452. if (data) {
  453. this.$set(this.circulation, 'zjddm', data.zjddm);
  454. this.$set(this.circulation, 'sqrzjhm', data.shyqrdbzjhm);
  455. this.$set(this.circulation, 'sqrzjlx', data.shyqrdbzjlx);
  456. if(data.shyqrdbzjlx)
  457. {
  458. let val = this.zjlxDictionaries.find((x) => x.value == data.shyqrdbzjlx);
  459. if(val)
  460. this.zjlx = val.text;
  461. }
  462. }
  463. // this.$forceUpdate();
  464. },
  465. onConfirmXb(data){
  466. this.xb = data.text;
  467. this.circulation.xb = data.value;
  468. this.showxb = false;
  469. },
  470. onConfirmTcqllx(data){
  471. this.tcqllx = data.text;
  472. this.circulation.tcqllx = data.value;
  473. this.showtcqllx = false;
  474. },
  475. /*onConfirmTclx(data){
  476. this.tclx = data.text;
  477. this.circulation.tclx = data.value;
  478. this.showtclx = false;
  479. },*/
  480. onConfirmTcfs(data){
  481. this.tcfs = data.text;
  482. this.circulation.tcfs = data.value;
  483. this.showtcfs = false;
  484. },
  485. onConfirmYctcfs(data){
  486. this.yctcfs = data.text;
  487. this.circulation.yctcfs = data.value;
  488. this.showyctcfs = false;
  489. },
  490. onConfirmBcfs(data){
  491. this.bcfs = data.text;
  492. this.circulation.bcfs = data.value;
  493. this.showbcfs = false;
  494. },
  495. goSubmit(submit){
  496. console.log(this.circulation);
  497. this.$refs._Form.validate().then(() => {
  498. // 设置初始状态为草稿,0 代表草稿
  499. this.$set(this.circulation, "auditStatus", '0');
  500. dyAdd(this.circulation).then(response => {
  501. if(response.code = 200){
  502. if(submit)
  503. {
  504. zyyctcApply(response.data).then((resp) => {
  505. this.$toast.success('提交成功');
  506. this.back();
  507. });
  508. }
  509. else {
  510. this.$toast.success('保存成功');
  511. this.back();
  512. }
  513. }
  514. })
  515. }).catch((e) => {
  516. Notify({ type: 'danger', message: '请填写完整的表单项' });
  517. });
  518. },
  519. back() {
  520. setTimeout(() => this.$router.back(-1), 1000)
  521. },
  522. remoteProposerMethod() {
  523. this.showzjddm = true;
  524. this.zjdDictionaries = [];
  525. if (this.circulation.sqrxm) {
  526. getShyqrs({shyqrdbxm:this.circulation.sqrxm}).then(response => {
  527. this.zjdDictionaries = response.data.map(item => {
  528. return {
  529. zjddm: item.zjddm,
  530. shyqrdbxm: item.shyqrdbxm,
  531. shyqrdbzjlx: item.shyqrdbzjlx,
  532. shyqrdbzjhm: item.shyqrdbzjhm
  533. }
  534. });
  535. });
  536. } else {
  537. this.zjdDictionaries = [];
  538. }
  539. },
  540. /** 模糊查询人员信息 */
  541. remoteTransfereeMethod(query) {
  542. if (query !== "") {
  543. getShyqrs({shyqrdbxm:query,status:1}).then((response) => {
  544. if (response.code == 200) {
  545. this.getObligeeOptions = response.rows.map(function (item) {
  546. return {
  547. sqrxm:item.shyqrdbxm,
  548. sqrxb:item.xb,
  549. sqrzjhm:item.shyqrdbzjhm,
  550. sqrnhdm:item.nhdm,
  551. sqrzjlx:item.shyqrdbzjlx,
  552. sqrdh:item.dh,
  553. gyfs:item.gyfs,
  554. dz:item.dz,
  555. deptId:item.deptId,
  556. deptName:item.deptName,
  557. }
  558. })
  559. //设置模糊查询的下拉框和滚动条
  560. if (this.getObligeeOptions.length > 0) {
  561. this.showDropList = true; // div显示会阻挡下边的选择框和输入框,showDropList控制下拉框是否显示
  562. //设置模糊查询的和滚动条
  563. this.$nextTick(() => {
  564. if (this.getObligeeOptions.length > 4) {
  565. let height = document.getElementById("vanCell").offsetHeight * 4;
  566. document.getElementById("dropList").style.height = height + "px";
  567. document.getElementById("dropList").style.overflow = "scroll";
  568. } else {
  569. document.getElementById("dropList").style.height = "";
  570. document.getElementById("dropList").style.overflow = "visible";
  571. }
  572. });
  573. } else {
  574. this.showDropList = false;
  575. }
  576. }
  577. });
  578. } else {
  579. this.getObligeeOptions = [];
  580. this.showDropList = false;
  581. }
  582. },
  583. // 打开附件树
  584. openAttachment() {
  585. this.attachmentVisible = true;
  586. if(this.attachmentActive == this.active)
  587. this.$nextTick(() => {
  588. this.$refs.attachmentDialog.scrollTo(this.active);
  589. });
  590. },
  591. shyqrdmxmChange(val){
  592. this.$set(this.circulation, "sqrxm", val.shyqrdbxm);
  593. this.$set(this.circulation, "deptId", val.deptId);
  594. this.$set(this.circulation, "deptName", val.deptName);
  595. this.$set(this.circulation, "sqrzjhm", val.shyqrdbzjhm);
  596. this.$set(this.circulation, "sqrzjlx", val.shyqrdbzjlx);
  597. this.$set(this.circulation, "sqrnhdm", val.nhdm);
  598. this.$set(this.circulation, "gyqk", val.gyfs);
  599. this.$set(this.circulation, "xb", val.xb);
  600. this.$set(this.circulation, "lxdh", val.dh);
  601. this.$set(this.circulation, "hkszd", val.dz);
  602. this.$set(this.circulation, "zjddm", val.zjddm);
  603. this.getObligeeOptions=[];
  604. this.showDropList = false;
  605. },
  606. mapLook(){
  607. this.mapShow = true;
  608. setTimeout(() => {
  609. this.$refs.zjdProductResh.drawingLyPaceCountryDarw();
  610. },1000);
  611. },
  612. // 获取日期, yyyy-MM-dd
  613. getDate(d) {
  614. return formatDate(d ? d : new Date(), 'yyyy-MM-dd');
  615. },
  616. /** 查找地图中宅基地 */
  617. closeMoule: function (data) {
  618. this.circulation.zjddm = data;
  619. let _this = this;
  620. let handlerTime = this.getDate();
  621. this.$set(this.circulation, "sqrq", handlerTime);
  622. this.$set(this.circulation, "pzrq", handlerTime);
  623. this.$set(this.circulation, "barq", handlerTime);
  624. getByLyZjddm(data).then((response) => {
  625. this.$set(this.circulation, "ntcmj", response.data.zdmj);
  626. this.$set(this.circulation, "tcmj", response.data.zdmj);
  627. this.$set(this.circulation, "zjdszd", response.data.zdszd);
  628. this.$set(this.circulation, "zjdszn", response.data.zdszn);
  629. this.$set(this.circulation, "zjdszx", response.data.zdszx);
  630. this.$set(this.circulation, "zjdszb", response.data.zdszb);
  631. this.$set(this.circulation, "theGeomJson", response.data.theGeomJson);
  632. this.$set(this.circulation, "tcqszsh", response.data.zsh);
  633. listHomesteadnmfw({zjddm: data}).then((res) => {
  634. res.rows.map(function(item){
  635. _this.$set(_this.circulation, "jzmj", Number(_this.circulation.jzmj) + Number(item.jzmj));
  636. _this.$set(_this.circulation, "xjzmj", Number(_this.circulation.xjzmj) + Number(item.jzmj));
  637. });
  638. });
  639. // const baseImgUrl = this.$store.getters.baseRoutingUrl;
  640. if(response.data.zdt != null && response.data.zdt !== ""){
  641. this.$set(this.form, "xzzp", response.rows[0].zdt);
  642. }
  643. });
  644. },
  645. },
  646. }
  647. </script>
  648. <style scoped lang="scss">
  649. .app-container {
  650. padding-bottom: 2%;
  651. .header_main{
  652. height: 116px;
  653. background: url('../../../assets/images/sunVillage_info/list_head_green.png') no-repeat;
  654. background-size: 100% 100%;
  655. position: fixed;
  656. top: 0;
  657. left: 0;
  658. width: 100%;
  659. font-size: 36px;
  660. line-height: 116px;
  661. text-align: center;
  662. color: #fff;
  663. position: relative;
  664. margin-bottom: 2%;
  665. .return_btn{
  666. width: 24px;
  667. height: 43.2px;
  668. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  669. background-size: 20px 36px;
  670. position: absolute;
  671. left: 38px;
  672. top: 36px;
  673. }
  674. .add_btn{
  675. width: 56.4px;
  676. height: 40.8px;
  677. background: url('../../../assets/images/sunVillage_info/list_icon_9.png') center center no-repeat;
  678. background-size: 47px 34px;
  679. position: absolute;
  680. right: 38px;
  681. top: 36px;
  682. }
  683. }
  684. }
  685. .main_title{
  686. font-size: 0.4rem;
  687. color: #1D6FE9;
  688. margin: 0.2rem 6%;
  689. position: relative;
  690. }
  691. .main_box{
  692. width: 96%;
  693. margin: 0 auto;
  694. border-radius: 6px;
  695. box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16);
  696. overflow: hidden;
  697. background-color: #FFF;
  698. }
  699. .submitButton{
  700. width: 80%;
  701. margin: 0 auto;
  702. background-color: #1D6FE9;
  703. }
  704. /*#dropList::-webkit-scrollbar {*/
  705. /* !*滚动条整体样式*!*/
  706. /* width: 5px; !*高宽分别对应横竖滚动条的尺寸*!*/
  707. /* height: 1px;*/
  708. /*}*/
  709. /*#dropList::-webkit-scrollbar-thumb {*/
  710. /* !*滚动条里面小方块*!*/
  711. /* border-radius: 10px;*/
  712. /* background: #fff;*/
  713. /* box-shadow: inset 0 0 5px rgb(0, 122, 204);*/
  714. /*}*/
  715. /*#dropList::-webkit-scrollbar-track {*/
  716. /* border-radius: 10px;*/
  717. /* background: #fff;*/
  718. /* !*滚动条里面轨道*!*/
  719. /* box-shadow: inset 0 0 5px rgba( 0, 0, 0, .1);*/
  720. /*}*/
  721. </style>