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

paidExitAdd.vue 27 KiB

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