f2dd2e08 by yangwei

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents 79d4a20c 84e7ab3c
1 /* 1 /*
2 * @Description: 企业银行接口 2 * @Description: 企业银行接口
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-13 17:08:10 4 * @LastEditTime: 2023-09-20 14:49:22
5 */ 5 */
6 import request from '@/utils/request' 6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) 7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
...@@ -108,4 +108,20 @@ export function editCompanyMaterialList (data, bsmCompany) { ...@@ -108,4 +108,20 @@ export function editCompanyMaterialList (data, bsmCompany) {
108 method: 'post', 108 method: 'post',
109 data 109 data
110 }) 110 })
111 }
112
113 /**
114 * @description: 是否覆盖才材料信息
115 * @author: renchao
116 */
117 export function replace (bsmCompany, bsmSldy, bsmSlsq) {
118 return request({
119 url: SERVER.SERVERAPI + '/rest/sys/company/replace',
120 method: 'get',
121 params: {
122 bsmCompany: bsmCompany,
123 bsmSldy: bsmSldy,
124 bsmSlsq: bsmSlsq
125 }
126 })
111 } 127 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -21,7 +21,6 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') { ...@@ -21,7 +21,6 @@ export function removeTreeListItem (treeList, dictId, idName = 'bsmDict') {
21 removeTreeListItem(treeList[i].children, dictId) 21 removeTreeListItem(treeList[i].children, dictId)
22 } 22 }
23 } 23 }
24 // 创造id
25 /** 24 /**
26 * @description: 创造id 25 * @description: 创造id
27 * @param {*} len 26 * @param {*} len
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-17 15:20:29 4 * @LastEditTime: 2023-09-19 15:52:44
5 --> 5 -->
6 <template> 6 <template>
7 <div class='ywdialog'> 7 <div class='ywdialog'>
...@@ -33,4 +33,7 @@ ...@@ -33,4 +33,7 @@
33 </script> 33 </script>
34 <style scoped lang='scss'> 34 <style scoped lang='scss'>
35 @import "~@/styles/public.scss"; 35 @import "~@/styles/public.scss";
36 .ywdialog {
37 min-width: 230px;
38 }
36 </style> 39 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: yangwei 2 * @Author: yangwei
3 * @Date: 2023-02-28 15:47:12 3 * @Date: 2023-02-28 15:47:12
4 * @LastEditors: yangwei 4 * @LastEditors: yangwei
5 * @LastEditTime: 2023-09-20 15:54:25 5 * @LastEditTime: 2023-09-20 17:14:39
6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue 6 * @FilePath: \bdcdj-web\src\views\lpb\lpbContent\ch.vue
7 * @Description: 7 * @Description:
8 * 8 *
...@@ -16,16 +16,14 @@ ...@@ -16,16 +16,14 @@
16 border="1" 16 border="1"
17 cellspacing="0" 17 cellspacing="0"
18 cellpadding="0" 18 cellpadding="0"
19 v-show="ch.length" 19 v-show="ch.length">
20 >
21 <tr v-for="(cs, csIndex) in ch" :key="csIndex"> 20 <tr v-for="(cs, csIndex) in ch" :key="csIndex">
22 <!-- 显示层数 --> 21 <!-- 显示层数 -->
23 <td 22 <td
24 class="floor" 23 class="floor"
25 ref="cBsm" 24 ref="cBsm"
26 @contextmenu.prevent="openMenu($event, cs, 'c')" 25 @contextmenu.prevent="openMenu($event, cs, 'c')"
27 @click="handleClickC($event, cs)" 26 @click="handleClickC($event, cs)">
28 >
29 {{ cs.sjc }} 27 {{ cs.sjc }}
30 </td> 28 </td>
31 <!-- 显示户 --> 29 <!-- 显示户 -->
...@@ -41,18 +39,11 @@ ...@@ -41,18 +39,11 @@
41 :class="hs.select ? 'tdSelect' : ''" 39 :class="hs.select ? 'tdSelect' : ''"
42 @click="handleClickH($event.target, hs.bsm, hs)" 40 @click="handleClickH($event.target, hs.bsm, hs)"
43 @dblclick="dbclick(hs.bsm)" 41 @dblclick="dbclick(hs.bsm)"
44 @contextmenu.prevent="openMenu($event, hs, 'h')" 42 @contextmenu.prevent="openMenu($event, hs, 'h')">
45 >
46 {{ hs.shbw }} 43 {{ hs.shbw }}
47 <span @click.stop="" class="hqszt lin" v-show="hs.qszt == '0'" 44 <span @click.stop="" class="hqszt lin" v-show="hs.qszt == '0'"></span>
48 ></span 45 <span @click.stop="" class="hqszt zheng" v-show="hs.qszt == '1'"></span>
49 > 46 <span @click.stop="" class="hqszt xian" v-show="hs.qszt == '2'"></span>
50 <span @click.stop="" class="hqszt zheng" v-show="hs.qszt == '1'"
51 ></span
52 >
53 <span @click.stop="" class="hqszt xian" v-show="hs.qszt == '2'"
54 ></span
55 >
56 <ul @click.stop="hDyztClick($event, hs.bsm, hs)" class="dyzt"> 47 <ul @click.stop="hDyztClick($event, hs.bsm, hs)" class="dyzt">
57 <li style="background-color: #6edee1" v-show="hs.qqzt == '1'"> 48 <li style="background-color: #6edee1" v-show="hs.qqzt == '1'">
58 49
...@@ -119,14 +110,14 @@ export default { ...@@ -119,14 +110,14 @@ export default {
119 }, 110 },
120 mounted() { 111 mounted() {
121 // 根据申请单元列表数据处理选中户 112 // 根据申请单元列表数据处理选中户
113 console.log("window.unitData",window.unitData);
122 if(window.unitData && window.unitData.length){ 114 if(window.unitData && window.unitData.length){
123 let unitIdList = []
124 window.unitData.forEach(e => { 115 window.unitData.forEach(e => {
125 unitIdList.push(e.bdcdyid) 116 this.unitIdList.push(e.bdcdyid)
126 }) 117 })
127 this.ch.forEach((c) => { 118 this.ch.forEach((c) => {
128 c.hs.forEach((h) => { 119 c.hs.forEach((h) => {
129 if (unitIdList.indexOf(h.dyhbsm) > -1) { 120 if (h.dyhbsm.indexOf(this.unitIdList) > -1) {
130 h.select = true; 121 h.select = true;
131 // 使用hbsmList时,需要去重 122 // 使用hbsmList时,需要去重
132 this.hbsmList.push(h.bsm) 123 this.hbsmList.push(h.bsm)
...@@ -318,92 +309,91 @@ export default { ...@@ -318,92 +309,91 @@ export default {
318 }, 309 },
319 }; 310 };
320 </script> 311 </script>
321
322 <style lang="scss" scoped> 312 <style lang="scss" scoped>
323 .ch-wrap { 313 .ch-wrap {
324 display: flex; 314 display: flex;
325 flex-direction: column-reverse; 315 flex-direction: column-reverse;
326 .chTable { 316 .chTable {
327 // margin-left: -1px; 317 // margin-left: -1px;
328 border-color: #e4ebf4 !important; 318 border-color: #e4ebf4 !important;
329 border-collapse: collapse; 319 border-collapse: collapse;
330 border-spacing: 0; 320 border-spacing: 0;
331 // position: relative; 321 // position: relative;
332 tr { 322 tr {
333 .floor {
334 min-width: 56px;
335 background: #e8f2ff;
336 border: 1px solid #acbae8;
337 }
338 &:first-child {
339 .floor { 323 .floor {
340 border-radius: 4px 0px 0px 1px; 324 min-width: 56px;
341 } 325 background: #e8f2ff;
342 } 326 border: 1px solid #acbae8;
343 td {
344 min-width: 138px;
345 height: 64px;
346 line-height: 64px;
347 text-align: center;
348 cursor: pointer;
349 position: relative;
350 .hqszt {
351 display: inline-block;
352 width: 16px;
353 height: 16px;
354 font-size: 12px;
355 line-height: 16px;
356 position: absolute;
357 left: 6px;
358 top: 6px;
359 border: 1px solid;
360 border-radius: 3px 0px 3px 0px;
361 } 327 }
362 .lin { 328 &:first-child {
363 color: #f7b500; 329 .floor {
364 border-color: #f7b500; 330 border-radius: 4px 0px 0px 1px;
365 } 331 }
366 .zheng {
367 color: #1ad6e1;
368 border-color: #1ad6e1;
369 }
370 .xian {
371 color: #45aefd;
372 border-color: #45aefd;
373 } 332 }
374 .dyzt { 333 td {
375 user-select: none; 334 min-width: 138px;
376 width: 138px; 335 height: 64px;
377 height: 18px; 336 line-height: 64px;
378 position: absolute; 337 text-align: center;
379 bottom: 28px; 338 cursor: pointer;
380 box-sizing: border-box; 339 position: relative;
381 padding: 0 6px; 340 .hqszt {
382 li {
383 display: inline-block; 341 display: inline-block;
384 width: 18px; 342 width: 16px;
385 height: 18px; 343 height: 16px;
386 font-size: 12px; 344 font-size: 12px;
387 line-height: 18px; 345 line-height: 16px;
388 color: #ffffff; 346 position: absolute;
347 left: 6px;
348 top: 6px;
389 border: 1px solid; 349 border: 1px solid;
390 border-radius: 9px; 350 border-radius: 3px 0px 3px 0px;
351 }
352 .lin {
353 color: #f7b500;
354 border-color: #f7b500;
355 }
356 .zheng {
357 color: #1ad6e1;
358 border-color: #1ad6e1;
359 }
360 .xian {
361 color: #45aefd;
362 border-color: #45aefd;
363 }
364 .dyzt {
365 user-select: none;
366 width: 138px;
367 height: 18px;
368 position: absolute;
369 bottom: 28px;
370 box-sizing: border-box;
371 padding: 0 6px;
372 li {
373 display: inline-block;
374 width: 18px;
375 height: 18px;
376 font-size: 12px;
377 line-height: 18px;
378 color: #ffffff;
379 border: 1px solid;
380 border-radius: 9px;
381 }
391 } 382 }
392 } 383 }
393 } 384 .tdSelect {
394 .tdSelect { 385 border: 1px solid;
395 border: 1px solid ; 386 border-color: #5a78de !important;
396 border-color: #5A78DE !important; 387 background-image: url("./images/tdSelect.png");
397 background-image: url("./images/tdSelect.png"); 388 background-repeat: no-repeat;
398 background-repeat: no-repeat; 389 background-position: right top;
399 background-position: right top; 390 background-size: 30px;
400 background-size: 30px; 391 }
401 } 392 .hasBorder {
402 .hasBorder { 393 border-width: 1px;
403 border-width: 1px; 394 border-style: solid;
404 border-style: solid; 395 }
405 } 396 }
406 } 397 }
407 } 398 }
408 }
409 </style> 399 </style>
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-12 08:55:14 4 * @LastEditTime: 2023-09-20 16:07:43
5 --> 5 -->
6 <template> 6 <template>
7 <dialogBox 7 <dialogBox
...@@ -286,13 +286,12 @@ ...@@ -286,13 +286,12 @@
286 </el-table-column> 286 </el-table-column>
287 <el-table-column label="操作" width="50"> 287 <el-table-column label="操作" width="50">
288 <template slot-scope="scope"> 288 <template slot-scope="scope">
289 <el-button type="text" @click="handlesQYSelect(scope.row)">使用</el-button> 289 <el-button type="text" @click="handleSelect(scope.row)">使用</el-button>
290 </template> 290 </template>
291 </el-table-column> 291 </el-table-column>
292 </el-table> 292 </el-table>
293 <el-pagination background layout="prev, pager, next,total" :total="tableDataQy.total" 293 <el-pagination background layout="prev, pager, next,total" :total="tableDataQy.total"
294 @current-change="handleQYCurrentChange"></el-pagination> 294 @current-change="handleQYCurrentChange"></el-pagination>
295
296 </div> 295 </div>
297 296
298 <div v-if="activeName==3" class="padding10"> 297 <div v-if="activeName==3" class="padding10">
...@@ -327,7 +326,7 @@ ...@@ -327,7 +326,7 @@
327 </el-table-column> 326 </el-table-column>
328 <el-table-column label="操作" width="50"> 327 <el-table-column label="操作" width="50">
329 <template slot-scope="scope"> 328 <template slot-scope="scope">
330 <el-button type="text" @click="handlesYHSelect(scope.row)">使用</el-button> 329 <el-button type="text" @click="handleSelect(scope.row)">使用</el-button>
331 </template> 330 </template>
332 </el-table-column> 331 </el-table-column>
333 </el-table> 332 </el-table>
...@@ -340,6 +339,8 @@ ...@@ -340,6 +339,8 @@
340 <script> 339 <script>
341 import { mapGetters } from "vuex"; 340 import { mapGetters } from "vuex";
342 import store from '@/store/index.js' 341 import store from '@/store/index.js'
342 import { getUuid } from "@/utils/operation.js"
343 import { replace } from "@/api/company.js"
343 import { getIdCardInfo } from '@/utils/operation.js' 344 import { getIdCardInfo } from '@/utils/operation.js'
344 import { queryQyByPage, queryYhByPage, addQy } from "@/api/xxba.js"; 345 import { queryQyByPage, queryYhByPage, addQy } from "@/api/xxba.js";
345 import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData"; 346 import { dataYh, dataQy, sendThis } from "../../javascript/addQlrData";
...@@ -500,7 +501,7 @@ ...@@ -500,7 +501,7 @@
500 } 501 }
501 }, 502 },
502 /** 503 /**
503 * @description: handleSearchQY 504 * @description: 企业信息搜索
504 * @author: renchao 505 * @author: renchao
505 */ 506 */
506 handleSearchQY () { 507 handleSearchQY () {
...@@ -515,6 +516,7 @@ ...@@ -515,6 +516,7 @@
515 item.zjzlMc = this.dicStatus(item.zjzl, 'A30') 516 item.zjzlMc = this.dicStatus(item.zjzl, 'A30')
516 item.sqrmc = item.qymc 517 item.sqrmc = item.qymc
517 item.txdz = item.dwdz 518 item.txdz = item.dwdz
519 item.id = getUuid(16)
518 }) 520 })
519 } 521 }
520 }) 522 })
...@@ -533,13 +535,34 @@ ...@@ -533,13 +535,34 @@
533 * @param {*} val 535 * @param {*} val
534 * @author: renchao 536 * @author: renchao
535 */ 537 */
536 handlesQYSelect (val) { 538 handleSelect (val) {
537 this.$emit("updateDetail", _.cloneDeep(val)); 539 let that = this
538 this.$emit("input", false); 540 let bsmSldy = window.currentSelect.bsmSldy ? window.currentSelect.bsmSldy : ''
541 this.$confirm('是否同步材料信息?', '提示', {
542 confirmButtonText: '确定',
543 cancelButtonText: '取消',
544 }).then(() => {
545 replace(val.bsmCompany, this.$route.query.bsmSlsq, bsmSldy).then(res => {
546 that.$emit("updateDetail", _.cloneDeep(val));
547 that.$emit("input", false);
548 if (res.code == 200) {
549 that.$message({
550 type: 'success',
551 message: '同步成功!'
552 })
553 } else {
554 this.$message.error(res.message);
555 }
556 })
557 }).catch(() => {
558 this.$message({
559 type: 'info',
560 message: '已取消'
561 })
562 })
539 }, 563 },
540 // 银行
541 /** 564 /**
542 * @description: 银行 565 * @description: 银行信息搜索
543 * @author: renchao 566 * @author: renchao
544 */ 567 */
545 handleSearchYH () { 568 handleSearchYH () {
...@@ -554,6 +577,7 @@ ...@@ -554,6 +577,7 @@
554 item.zjzlMc = this.dicStatus(item.zjzl, 'A30') 577 item.zjzlMc = this.dicStatus(item.zjzl, 'A30')
555 item.sqrmc = item.qymc 578 item.sqrmc = item.qymc
556 item.txdz = item.dwdz 579 item.txdz = item.dwdz
580 item.id = getUuid(16)
557 }) 581 })
558 } 582 }
559 }) 583 })
...@@ -568,15 +592,6 @@ ...@@ -568,15 +592,6 @@
568 this.handleSearchQY() 592 this.handleSearchQY()
569 }, 593 },
570 /** 594 /**
571 * @description: handlesYHSelect
572 * @param {*} val
573 * @author: renchao
574 */
575 handlesYHSelect (val) {
576 this.$emit("updateDetail", _.cloneDeep(val));
577 this.$emit("input", false);
578 },
579 /**
580 * @description: 身份证打卡器 595 * @description: 身份证打卡器
581 * @author: renchao 596 * @author: renchao
582 */ 597 */
...@@ -608,7 +623,9 @@ ...@@ -608,7 +623,9 @@
608 */ 623 */
609 closeDialog () { 624 closeDialog () {
610 this.$emit("input", false); 625 this.$emit("input", false);
611 this.$refs["ruleForm"].resetFields(); 626 this.$nextTick(() => {
627 this.$refs["ruleForm"].resetFields();
628 })
612 }, 629 },
613 /** 630 /**
614 * @description: submitForm 631 * @description: submitForm
...@@ -618,6 +635,7 @@ ...@@ -618,6 +635,7 @@
618 this.$refs.ruleForm.validate((valid) => { 635 this.$refs.ruleForm.validate((valid) => {
619 if (valid) { 636 if (valid) {
620 this.$emit("input", false); 637 this.$emit("input", false);
638 this.ruleForm.id = getUuid(16)
621 this.$emit("updateDetail", _.cloneDeep(this.ruleForm)); 639 this.$emit("updateDetail", _.cloneDeep(this.ruleForm));
622 this.$refs["ruleForm"].resetFields(); 640 this.$refs["ruleForm"].resetFields();
623 } else { 641 } else {
......
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-18 11:00:38 4 * @LastEditTime: 2023-09-20 15:46:25
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
75 isRefresh: { 75 isRefresh: {
76 handler (newVal, oldVal) { 76 handler (newVal, oldVal) {
77 if (newVal) { 77 if (newVal) {
78 this.loadBdcdylist() 78 this.loadBdcdylist(true)
79 } 79 }
80 }, 80 },
81 immediate: true 81 immediate: true
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
86 * @description: 读取申请单元信息 86 * @description: 读取申请单元信息
87 * @author: renchao 87 * @author: renchao
88 */ 88 */
89 loadBdcdylist () { 89 loadBdcdylist (status = false) {
90 let that = this 90 let that = this
91 var formdata = new FormData(); 91 var formdata = new FormData();
92 formdata.append("bsmSlsq", this.bsmSlsq); 92 formdata.append("bsmSlsq", this.bsmSlsq);
...@@ -104,13 +104,15 @@ ...@@ -104,13 +104,15 @@
104 that.currentSelectProps = res.result[0]; 104 that.currentSelectProps = res.result[0];
105 that.$emit('getCurrentSelectProps', this.currentSelectProps); 105 that.$emit('getCurrentSelectProps', this.currentSelectProps);
106 that.judgeBatchShow(); 106 that.judgeBatchShow();
107 if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) { 107 if (!status) {
108 that.unitClick(sessionStorage.getItem('keyPath') - 0) 108 if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) {
109 } else { 109 that.unitClick(sessionStorage.getItem('keyPath') - 0)
110 that.unitClick(0) 110 } else {
111 if (that.showBatch) { 111 that.unitClick(0)
112 //满足批量查封/批量抵押按钮出现 即先展示批量表单 112 if (that.showBatch) {
113 that.batchUnitClick(); 113 //满足批量查封/批量抵押按钮出现 即先展示批量表单
114 that.batchUnitClick();
115 }
114 } 116 }
115 } 117 }
116 } 118 }
...@@ -123,13 +125,15 @@ ...@@ -123,13 +125,15 @@
123 this.currentSelectProps = res.result[0]; 125 this.currentSelectProps = res.result[0];
124 this.$emit('getCurrentSelectProps', this.currentSelectProps); 126 this.$emit('getCurrentSelectProps', this.currentSelectProps);
125 this.judgeBatchShow(); 127 this.judgeBatchShow();
126 if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) { 128 if (!status) {
127 that.unitClick(sessionStorage.getItem('keyPath') - 0) 129 if (sessionStorage.getItem('keyPath') && sessionStorage.getItem('keyPath') >= 0) {
128 } else { 130 that.unitClick(sessionStorage.getItem('keyPath') - 0)
129 that.unitClick(0) 131 } else {
130 if (that.showBatch) { 132 that.unitClick(0)
131 //满足批量查封/批量抵押按钮出现 即先展示批量表单 133 if (that.showBatch) {
132 that.batchUnitClick(); 134 //满足批量查封/批量抵押按钮出现 即先展示批量表单
135 that.batchUnitClick();
136 }
133 } 137 }
134 } 138 }
135 } 139 }
...@@ -205,6 +209,7 @@ ...@@ -205,6 +209,7 @@
205 * @author: renchao 209 * @author: renchao
206 */ 210 */
207 batchUnitClick () { 211 batchUnitClick () {
212 window.currentSelect = {}
208 this.currentSelectProps.batchOperation = true; 213 this.currentSelectProps.batchOperation = true;
209 this.activeIndex = "-1"; 214 this.activeIndex = "-1";
210 this.$parent.stepForm(0); 215 this.$parent.stepForm(0);
...@@ -226,6 +231,7 @@ ...@@ -226,6 +231,7 @@
226 * @author: renchao 231 * @author: renchao
227 */ 232 */
228 unitClick (index) { 233 unitClick (index) {
234 window.currentSelect = this.unitData[index]
229 if (this.unitData.length == 0) return 235 if (this.unitData.length == 0) return
230 this.currentSelectProps = this.unitData[index]; 236 this.currentSelectProps = this.unitData[index];
231 this.currentSelectProps.batchOperation = false; 237 this.currentSelectProps.batchOperation = false;
......
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-分割 2 * @Description: workFrame左侧菜单列表-分割
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-15 15:02:25 4 * @LastEditTime: 2023-09-20 15:33:05
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
88 watch: { 88 watch: {
89 isRefresh: { 89 isRefresh: {
90 handler (newVal, oldVal) { 90 handler (newVal, oldVal) {
91 if (newVal) this.loadBdcdylist() 91 if (newVal) this.loadBdcdylist(true)
92 }, 92 },
93 immediate: true 93 immediate: true
94 } 94 }
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
98 * @description: 读取申请单元信息 98 * @description: 读取申请单元信息
99 * @author: renchao 99 * @author: renchao
100 */ 100 */
101 loadBdcdylist () { 101 loadBdcdylist (status = false) {
102 let that = this 102 let that = this
103 var formdata = new FormData(); 103 var formdata = new FormData();
104 // 受理申请标识码 104 // 受理申请标识码
...@@ -114,13 +114,15 @@ ...@@ -114,13 +114,15 @@
114 this.currentSelectProps = res.result[0]; 114 this.currentSelectProps = res.result[0];
115 this.$emit('getCurrentSelectProps', this.currentSelectProps); 115 this.$emit('getCurrentSelectProps', this.currentSelectProps);
116 this.judgeBatchShow(); 116 this.judgeBatchShow();
117 if (sessionStorage.getItem('keyPath')) { 117 if (!status) {
118 that.unitClick(sessionStorage.getItem('keyPath') - 0) 118 if (sessionStorage.getItem('keyPath')) {
119 } else { 119 that.unitClick(sessionStorage.getItem('keyPath') - 0)
120 that.unitClick(0) 120 } else {
121 if (that.showBatch) { 121 that.unitClick(0)
122 //满足批量查封/批量抵押按钮出现 即先展示批量表单 122 if (that.showBatch) {
123 that.batchUnitClick(); 123 //满足批量查封/批量抵押按钮出现 即先展示批量表单
124 that.batchUnitClick();
125 }
124 } 126 }
125 } 127 }
126 } 128 }
...@@ -133,13 +135,15 @@ ...@@ -133,13 +135,15 @@
133 this.currentSelectProps = res.result[0]; 135 this.currentSelectProps = res.result[0];
134 this.$emit('getCurrentSelectProps', this.currentSelectProps); 136 this.$emit('getCurrentSelectProps', this.currentSelectProps);
135 this.judgeBatchShow(); 137 this.judgeBatchShow();
136 if (sessionStorage.getItem('keyPath')) { 138 if (!status) {
137 that.unitClick(sessionStorage.getItem('keyPath') - 0) 139 if (sessionStorage.getItem('keyPath')) {
138 } else { 140 that.unitClick(sessionStorage.getItem('keyPath') - 0)
139 that.unitClick(0) 141 } else {
140 if (that.showBatch) { 142 that.unitClick(0)
141 //满足批量查封/批量抵押按钮出现 即先展示批量表单 143 if (that.showBatch) {
142 that.batchUnitClick(); 144 //满足批量查封/批量抵押按钮出现 即先展示批量表单
145 that.batchUnitClick();
146 }
143 } 147 }
144 } 148 }
145 } 149 }
...@@ -214,6 +218,7 @@ ...@@ -214,6 +218,7 @@
214 * @author: renchao 218 * @author: renchao
215 */ 219 */
216 unitClick (index) { 220 unitClick (index) {
221 window.currentSelect = this.unitData[index]
217 this.activeHIndex = '-1' 222 this.activeHIndex = '-1'
218 this.currentSelectProps = this.aroundUnitData[index]; 223 this.currentSelectProps = this.aroundUnitData[index];
219 this.currentSelectProps.issave = '1' 224 this.currentSelectProps.issave = '1'
...@@ -230,6 +235,7 @@ ...@@ -230,6 +235,7 @@
230 * @author: renchao 235 * @author: renchao
231 */ 236 */
232 handleAfterunitClick (index) { 237 handleAfterunitClick (index) {
238 window.currentSelect = this.unitData[index]
233 this.activeIndex = '-1' 239 this.activeIndex = '-1'
234 this.currentSelectProps = this.afterUnitData[index]; 240 this.currentSelectProps = this.afterUnitData[index];
235 this.currentSelectProps.batchOperation = false; 241 this.currentSelectProps.batchOperation = false;
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-11 09:56:42 4 * @LastEditTime: 2023-09-19 15:24:14
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -72,12 +72,6 @@ ...@@ -72,12 +72,6 @@
72 <el-input v-model="ruleForm.cfdjList[0].cfwh" :disabled="!ableOperation|| isJfOperation"></el-input> 72 <el-input v-model="ruleForm.cfdjList[0].cfwh" :disabled="!ableOperation|| isJfOperation"></el-input>
73 </el-form-item> 73 </el-form-item>
74 </el-col> 74 </el-col>
75 <!-- 批量查封状态有多种查封类型,不予展示 -->
76 <!-- <el-col :span="8">
77 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflxmc">
78 <el-input v-model="ruleForm.cfdjList[0].cflxmc" disabled></el-input>
79 </el-form-item>
80 </el-col>-->
81 </el-row> 75 </el-row>
82 <el-row :gutter="10"> 76 <el-row :gutter="10">
83 <el-col :span="8"> 77 <el-col :span="8">
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-19 10:56:19 4 * @LastEditTime: 2023-09-19 15:47:56
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -128,15 +128,7 @@ ...@@ -128,15 +128,7 @@
128 <el-row :gutter="10"> 128 <el-row :gutter="10">
129 <el-col :span="8"> 129 <el-col :span="8">
130 <el-form-item :class="flag ? 'marginBot0' : ''" label="权利性质"> 130 <el-form-item :class="flag ? 'marginBot0' : ''" label="权利性质">
131 <treeselect 131 <el-input disabled v-model="ruleForm.ztQlxx.qlxzmc"></el-input>
132 disabled
133 v-model="ruleForm.ztQlxx.qlxzmc"
134 noOptionsText="暂无数据"
135 :default-expand-level="1"
136 placeholder=""
137 :normalizer="normalizer"
138 :show-count="true"
139 :options="dictData['A9']" />
140 </el-form-item> 132 </el-form-item>
141 </el-col> 133 </el-col>
142 <el-col :span="8"> 134 <el-col :span="8">
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-19 10:56:41 4 * @LastEditTime: 2023-09-20 14:09:36
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -100,15 +100,7 @@ ...@@ -100,15 +100,7 @@
100 </el-col> 100 </el-col>
101 <el-col :span="8"> 101 <el-col :span="8">
102 <el-form-item label="权利性质:"> 102 <el-form-item label="权利性质:">
103 <treeselect 103 <el-input disabled v-model="ruleForm.ztQlxx.qlxzmc"></el-input>
104 disabled
105 v-model="ruleForm.ztQlxx.qlxzmc"
106 noOptionsText="暂无数据"
107 :default-expand-level="1"
108 placeholder=""
109 :normalizer="normalizer"
110 :show-count="true"
111 :options="dictData['A9']" />
112 </el-form-item> 104 </el-form-item>
113 </el-col> 105 </el-col>
114 <el-col :span="8"> 106 <el-col :span="8">
...@@ -306,10 +298,10 @@ ...@@ -306,10 +298,10 @@
306 placeholder="持证人" 298 placeholder="持证人"
307 :disabled="!viewEdit"> 299 :disabled="!viewEdit">
308 <el-option 300 <el-option
309 v-for="item in czrOptions" 301 v-for="(item,index) in czrOptions"
310 :key="item.zjh" 302 :key="index"
311 :label="item.sqrmc" 303 :label="item.sqrmc"
312 :value="item.zjh"> 304 :value="item.id">
313 </el-option> 305 </el-option>
314 </el-select> 306 </el-select>
315 </el-form-item> 307 </el-form-item>
...@@ -391,14 +383,21 @@ ...@@ -391,14 +383,21 @@
391 }, 200) 383 }, 200)
392 if (res.code === 200 && res.result) { 384 if (res.code === 200 && res.result) {
393 that.ruleForm = res.result; 385 that.ruleForm = res.result;
394 that.czrOptions = this.ruleForm.qlrList;
395 that.ruleForm.qlrList.forEach((item) => { 386 that.ruleForm.qlrList.forEach((item) => {
396 if (item.sfczr == 1) { 387 item.id = item.bsmSqr
397 that.czr = item.zjh 388 if (item.sfczr == '1') {
389 that.czr = item.bsmSqr
398 } 390 }
399 }) 391 })
392 that.czrOptions = this.ruleForm.qlrList;
393 that.isSave = that.viewEdit
400 } else { 394 } else {
401 that.$message.error(res.message); 395 that.isSave = false
396 that.$confirm(res.message, '提示', {
397 cancelButtonText: '取消',
398 showConfirmButton: false,
399 type: 'warning'
400 })
402 } 401 }
403 }).catch(() => { 402 }).catch(() => {
404 this.loading = false 403 this.loading = false
...@@ -410,6 +409,7 @@ ...@@ -410,6 +409,7 @@
410 }, 409 },
411 data () { 410 data () {
412 return { 411 return {
412 isSave: true,
413 // 键名转换,方法默认是label和children进行树状渲染 413 // 键名转换,方法默认是label和children进行树状渲染
414 normalizer (node) { 414 normalizer (node) {
415 //方法 415 //方法
...@@ -481,21 +481,21 @@ ...@@ -481,21 +481,21 @@
481 item.sfczr = "1"; 481 item.sfczr = "1";
482 }); 482 });
483 } else { 483 } else {
484 if (!that.czr) { 484 if (that.czr === '') {
485 that.$message({ 485 that.$message({
486 showClose: true, 486 showClose: true,
487 message: "请选择持证人", 487 message: "请选择持证人",
488 type: "error", 488 type: "error"
489 }); 489 });
490 return false; 490 return false;
491 } 491 }
492 this.ruleForm.qlrList.forEach((item, index) => { 492 this.ruleForm.qlrList.forEach((item, index) => {
493 if (item.zjh == that.czr) { 493 if (item.id == that.czr) {
494 item.sfczr = "1"; 494 item.sfczr = "1"
495 } else { 495 } else {
496 item.sfczr = "0"; 496 item.sfczr = "0"
497 } 497 }
498 }); 498 })
499 } 499 }
500 } 500 }
501 501
...@@ -528,7 +528,7 @@ ...@@ -528,7 +528,7 @@
528 } 528 }
529 this.num = 0 529 this.num = 0
530 this.ruleForm.qlrList.forEach(item => { 530 this.ruleForm.qlrList.forEach(item => {
531 if (item.zjh == this.czr) { 531 if (item.id == this.czr) {
532 this.num++ 532 this.num++
533 } 533 }
534 }) 534 })
......
1 <!-- 1 <!--
2 * @Description: 房屋多幢受理信息 2 * @Description: 房屋多幢受理信息
3 * @Autor: ssq 3 * @Autor: ssq
4 * @LastEditTime: 2023-09-14 17:20:40 4 * @LastEditTime: 2023-09-20 13:39:05
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -220,16 +220,16 @@ ...@@ -220,16 +220,16 @@
220 <el-col 220 <el-col
221 :span="5" 221 :span="5"
222 v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'"> 222 v-show="ruleForm.sldy.sqfbcz == '0' && ruleForm.sldy.gyfs != '0'">
223 <el-form-item label="持证人1:"> 223 <el-form-item label="持证人:">
224 <el-select 224 <el-select
225 v-model="czr" 225 v-model="czr"
226 placeholder="持证人" 226 placeholder="持证人"
227 :disabled="!viewEdit"> 227 :disabled="!viewEdit">
228 <el-option 228 <el-option
229 v-for="item in czrOptions" 229 v-for="(item,index) in czrOptions"
230 :key="item.zjh" 230 :key="index"
231 :label="item.sqrmc" 231 :label="item.sqrmc"
232 :value="item.zjh"></el-option> 232 :value="item.id"></el-option>
233 </el-select> 233 </el-select>
234 </el-form-item> 234 </el-form-item>
235 </el-col> 235 </el-col>
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
272 </el-row> 272 </el-row>
273 </div> 273 </div>
274 </div> 274 </div>
275 <el-row class="btn" v-if="viewEdit"> 275 <el-row class="btn" v-if="isSave">
276 <el-form-item> 276 <el-form-item>
277 <el-button type="primary" @click="onSubmit">保存</el-button> 277 <el-button type="primary" @click="onSubmit">保存</el-button>
278 </el-form-item> 278 </el-form-item>
...@@ -291,6 +291,7 @@ ...@@ -291,6 +291,7 @@
291 export default { 291 export default {
292 mixins: [ywmix], 292 mixins: [ywmix],
293 mounted () { 293 mounted () {
294 let that = this
294 this.loading = true 295 this.loading = true
295 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 296 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
296 this.propsParam = this.$attrs; 297 this.propsParam = this.$attrs;
...@@ -303,19 +304,28 @@ ...@@ -303,19 +304,28 @@
303 this.loading = false 304 this.loading = false
304 }, 200) 305 }, 200)
305 if (res.code === 200 && res.result) { 306 if (res.code === 200 && res.result) {
306 this.ruleForm = { 307 that.ruleForm = {
307 ...res.result, 308 ...res.result,
308 ...res.result.qlxxdatas, 309 ...res.result.qlxxdatas,
309 }; 310 };
310 this.ruleForm.qlrList.forEach((item) => { 311 that.ruleForm.qlrList.forEach((item) => {
311 if (item.sfczr == 1) { 312 item.id = item.bsmSqr
312 this.czr = item.zjh 313 if (item.sfczr == '1') {
314 that.czr = item.bsmSqr
313 } 315 }
314 }); 316 });
315 this.czrOptions = this.ruleForm.qlrList; 317 that.czrOptions = that.ruleForm.qlrList;
318 that.isSave = this.viewEdit
316 } else { 319 } else {
317 this.$message.error(res.message); 320 that.isSave = false
321 that.$confirm(res.message, '提示', {
322 cancelButtonText: '取消',
323 showConfirmButton: false,
324 type: 'warning'
325 })
318 } 326 }
327 }).catch(() => {
328 this.loading = false
319 }) 329 })
320 }, 330 },
321 components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable }, 331 components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable },
...@@ -324,6 +334,7 @@ ...@@ -324,6 +334,7 @@
324 }, 334 },
325 data () { 335 data () {
326 return { 336 return {
337 isSave: true,
327 loading: false, 338 loading: false,
328 disabled: true, 339 disabled: true,
329 tdytOption: [], 340 tdytOption: [],
...@@ -386,7 +397,7 @@ ...@@ -386,7 +397,7 @@
386 } 397 }
387 this.num = 0 398 this.num = 0
388 this.ruleForm.qlrList.forEach(item => { 399 this.ruleForm.qlrList.forEach(item => {
389 if (item.zjh == this.czr) { 400 if (item.id == this.czr) {
390 this.num++ 401 this.num++
391 } 402 }
392 }) 403 })
...@@ -402,7 +413,6 @@ ...@@ -402,7 +413,6 @@
402 updaterow () { 413 updaterow () {
403 this.czr = ""; 414 this.czr = "";
404 }, 415 },
405 // 更新权利人信息
406 /** 416 /**
407 * @description: 更新权利人信息 417 * @description: 更新权利人信息
408 * @param {*} val 418 * @param {*} val
...@@ -461,7 +471,7 @@ ...@@ -461,7 +471,7 @@
461 item.sfczr = "1"; 471 item.sfczr = "1";
462 }); 472 });
463 } else { 473 } else {
464 if (!that.czr) { 474 if (that.czr === '') {
465 that.$message({ 475 that.$message({
466 showClose: true, 476 showClose: true,
467 message: "请选择持证人", 477 message: "请选择持证人",
...@@ -469,16 +479,15 @@ ...@@ -469,16 +479,15 @@
469 }); 479 });
470 return false; 480 return false;
471 } 481 }
472 this.ruleForm.qlrList.forEach((item, index) => { 482 this.ruleForm.qlrList.forEach(item => {
473 if (item.zjh == that.czr) { 483 if (item.id == that.czr) {
474 item.sfczr = "1"; 484 item.sfczr = "1"
475 } else { 485 } else {
476 item.sfczr = "0"; 486 item.sfczr = "0"
477 } 487 }
478 }); 488 })
479 } 489 }
480 } 490 }
481
482 saveData(this.ruleForm).then((res) => { 491 saveData(this.ruleForm).then((res) => {
483 if (res.code === 200) { 492 if (res.code === 200) {
484 this.$message({ 493 this.$message({
...@@ -491,13 +500,13 @@ ...@@ -491,13 +500,13 @@
491 this.$message({ 500 this.$message({
492 showClose: true, 501 showClose: true,
493 message: res.message, 502 message: res.message,
494 type: "error", 503 type: "error"
495 }); 504 })
496 } 505 }
497 }); 506 })
498 }, 507 }
499 }, 508 }
500 }; 509 }
501 </script> 510 </script>
502 <style scoped lang="scss"> 511 <style scoped lang="scss">
503 @import "~@/styles/public.scss"; 512 @import "~@/styles/public.scss";
......
1 <!-- 1 <!--
2 * @Description: 受理信息 2 * @Description: 受理信息
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-15 16:09:33 4 * @LastEditTime: 2023-09-20 14:30:39
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
227 style="width: 500%" 227 style="width: 500%"
228 :disabled="!viewEdit" 228 :disabled="!viewEdit"
229 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input> 229 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"></el-input>
230 <el-select v-model="ruleForm.fdcq2.jedw" :disabled="!viewEdit"> 230 <el-select v-model="ruleForm.fdcq2.jedw" disabled>
231 <el-option 231 <el-option
232 v-for="item in dictData['A57']" 232 v-for="item in dictData['A57']"
233 :key="item.dcode" 233 :key="item.dcode"
...@@ -355,10 +355,10 @@ ...@@ -355,10 +355,10 @@
355 placeholder="持证人" 355 placeholder="持证人"
356 :disabled="!viewEdit"> 356 :disabled="!viewEdit">
357 <el-option 357 <el-option
358 v-for="item in czrOptions" 358 v-for="(item,index) in czrOptions"
359 :key="item.zjh" 359 :key="index"
360 :label="item.sqrmc" 360 :label="item.sqrmc"
361 :value="item.zjh"> 361 :value="item.id">
362 </el-option> 362 </el-option>
363 </el-select> 363 </el-select>
364 </el-form-item> 364 </el-form-item>
...@@ -400,7 +400,7 @@ ...@@ -400,7 +400,7 @@
400 </el-col> 400 </el-col>
401 </el-row> 401 </el-row>
402 </div> 402 </div>
403 <el-row class="btn" v-if="viewEdit"> 403 <el-row class="btn" v-if="isSave">
404 <el-form-item> 404 <el-form-item>
405 <el-button type="primary" @click="onSubmit">保存</el-button> 405 <el-button type="primary" @click="onSubmit">保存</el-button>
406 </el-form-item> 406 </el-form-item>
...@@ -418,6 +418,7 @@ ...@@ -418,6 +418,7 @@
418 export default { 418 export default {
419 mixins: [ywmix], 419 mixins: [ywmix],
420 mounted () { 420 mounted () {
421 let that = this;
421 this.loading = true 422 this.loading = true
422 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 423 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
423 this.propsParam = this.$attrs; 424 this.propsParam = this.$attrs;
...@@ -430,18 +431,25 @@ ...@@ -430,18 +431,25 @@
430 this.loading = false 431 this.loading = false
431 }, 200) 432 }, 200)
432 if (res.code === 200 && res.result) { 433 if (res.code === 200 && res.result) {
433 this.ruleForm = { 434 that.ruleForm = {
434 ...res.result, 435 ...res.result,
435 ...res.result.qlxxdatas, 436 ...res.result.qlxxdatas,
436 }; 437 };
437 this.ruleForm.qlrList.forEach((item) => { 438 that.ruleForm.qlrList.forEach((item) => {
438 if (item.sfczr == 1) { 439 item.id = item.bsmSqr
439 this.czr = item.zjh 440 if (item.sfczr == '1') {
441 that.czr = item.bsmSqr
440 } 442 }
441 }); 443 })
442 this.czrOptions = this.ruleForm.qlrList; 444 that.czrOptions = that.ruleForm.qlrList;
445 that.isSave = that.viewEdit
443 } else { 446 } else {
444 this.$message.error(res.message); 447 that.isSave = false
448 that.$confirm(res.message, '提示', {
449 cancelButtonText: '取消',
450 showConfirmButton: false,
451 type: 'warning'
452 })
445 } 453 }
446 }).catch(() => { 454 }).catch(() => {
447 this.loading = false 455 this.loading = false
...@@ -453,6 +461,7 @@ ...@@ -453,6 +461,7 @@
453 }, 461 },
454 data () { 462 data () {
455 return { 463 return {
464 isSave: true,
456 loading: false, 465 loading: false,
457 mjdw: "1", 466 mjdw: "1",
458 // 键名转换,方法默认是label和children进行树状渲染 467 // 键名转换,方法默认是label和children进行树状渲染
...@@ -511,11 +520,13 @@ ...@@ -511,11 +520,13 @@
511 * @author: renchao 520 * @author: renchao
512 */ 521 */
513 upDateQlrxxList (val) { 522 upDateQlrxxList (val) {
514 this.ruleForm.qlrList = _.cloneDeep(val); 523 if (!_.isEqual(val, this.ruleForm.qlrList)) {
515 this.czrOptions = this.ruleForm.qlrList; 524 this.ruleForm.qlrList = _.cloneDeep(val);
525 this.czrOptions = this.ruleForm.qlrList;
526 }
516 this.num = 0 527 this.num = 0
517 this.ruleForm.qlrList.forEach(item => { 528 this.ruleForm.qlrList.forEach(item => {
518 if (item.zjh == this.czr) { 529 if (item.id == this.czr) {
519 this.num++ 530 this.num++
520 } 531 }
521 }) 532 })
...@@ -591,7 +602,7 @@ ...@@ -591,7 +602,7 @@
591 item.sfczr = "1"; 602 item.sfczr = "1";
592 }); 603 });
593 } else { 604 } else {
594 if (!that.czr) { 605 if (that.czr === '') {
595 that.$message({ 606 that.$message({
596 showClose: true, 607 showClose: true,
597 message: "请选择持证人", 608 message: "请选择持证人",
...@@ -600,7 +611,7 @@ ...@@ -600,7 +611,7 @@
600 return false; 611 return false;
601 } 612 }
602 this.ruleForm.qlrList.forEach((item, index) => { 613 this.ruleForm.qlrList.forEach((item, index) => {
603 if (item.zjh == that.czr) { 614 if (item.id == that.czr) {
604 item.sfczr = "1"; 615 item.sfczr = "1";
605 } else { 616 } else {
606 item.sfczr = "0"; 617 item.sfczr = "0";
......
1 <!-- 1 <!--
2 * @Description: 受理信息 2 * @Description: 受理信息
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-14 17:20:53 4 * @LastEditTime: 2023-09-20 13:32:47
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -225,10 +225,10 @@ ...@@ -225,10 +225,10 @@
225 placeholder="持证人" 225 placeholder="持证人"
226 :disabled="!viewEdit"> 226 :disabled="!viewEdit">
227 <el-option 227 <el-option
228 v-for="item in czrOptions" 228 v-for="(item,index) in czrOptions"
229 :key="item.zjh" 229 :key="index"
230 :label="item.sqrmc" 230 :label="item.sqrmc"
231 :value="item.zjh"> 231 :value="item.id">
232 </el-option> 232 </el-option>
233 </el-select> 233 </el-select>
234 </el-form-item> 234 </el-form-item>
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
258 </el-col> 258 </el-col>
259 </el-row> 259 </el-row>
260 </div> 260 </div>
261 <el-row class="btn" v-if="viewEdit"> 261 <el-row class="btn" v-if="isSave">
262 <el-form-item> 262 <el-form-item>
263 <el-button type="primary" @click="onSubmit">保存</el-button> 263 <el-button type="primary" @click="onSubmit">保存</el-button>
264 </el-form-item> 264 </el-form-item>
...@@ -275,6 +275,7 @@ ...@@ -275,6 +275,7 @@
275 export default { 275 export default {
276 mixins: [ywmix], 276 mixins: [ywmix],
277 mounted () { 277 mounted () {
278 let that = this
278 this.loading = true 279 this.loading = true
279 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 280 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
280 this.propsParam = this.$attrs; 281 this.propsParam = this.$attrs;
...@@ -287,23 +288,31 @@ ...@@ -287,23 +288,31 @@
287 this.loading = false 288 this.loading = false
288 }, 200) 289 }, 200)
289 if (res.code === 200 && res.result) { 290 if (res.code === 200 && res.result) {
290 this.ruleForm = { 291 that.ruleForm = {
291 ...res.result, 292 ...res.result,
292 ...res.result.zdjbxxdatas, 293 ...res.result.zdjbxxdatas,
293 ...res.result.qlxxdatas, 294 ...res.result.qlxxdatas,
294 ...res.result.jsydsyqdatas, 295 ...res.result.jsydsyqdatas,
295 }; 296 };
296 this.ruleForm.qlrList.forEach((item) => { 297 that.ruleForm.qlrList.forEach((item) => {
297 if (item.sfczr == 1) { 298 item.id = item.bsmSqr
298 this.czr = item.zjh 299 if (item.sfczr == '1') {
300 that.czr = item.bsmSqr
299 } 301 }
300 }); 302 })
301 this.czrOptions = this.ruleForm.qlrList; 303 that.czrOptions = that.ruleForm.qlrList;
304 that.isSave = that.viewEdit
302 } else { 305 } else {
303 this.$message.error(res.message); 306 that.isSave = false
307 that.$confirm(res.message, '提示', {
308 cancelButtonText: '取消',
309 showConfirmButton: false,
310 type: 'warning'
311 })
304 } 312 }
305 }).catch(() => { 313 }).catch(() => {
306 this.loading = false 314 this.loading = false
315 this.isSave = false
307 }) 316 })
308 }, 317 },
309 components: { qlrCommonTable, tdytTable }, 318 components: { qlrCommonTable, tdytTable },
...@@ -312,6 +321,7 @@ ...@@ -312,6 +321,7 @@
312 }, 321 },
313 data () { 322 data () {
314 return { 323 return {
324 isSave: true,
315 loading: false, 325 loading: false,
316 mjdw: "1", 326 mjdw: "1",
317 //表单是否可操作 327 //表单是否可操作
...@@ -397,7 +407,6 @@ ...@@ -397,7 +407,6 @@
397 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); 407 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
398 this.key++; 408 this.key++;
399 }, 409 },
400 // 是否持证人变化
401 /** 410 /**
402 * @description: 是否持证人变化 411 * @description: 是否持证人变化
403 * @param {*} val 412 * @param {*} val
...@@ -418,7 +427,7 @@ ...@@ -418,7 +427,7 @@
418 } 427 }
419 this.num = 0 428 this.num = 0
420 this.ruleForm.qlrList.forEach(item => { 429 this.ruleForm.qlrList.forEach(item => {
421 if (item.zjh == this.czr) { 430 if (item.id == this.czr) {
422 this.num++ 431 this.num++
423 } 432 }
424 }) 433 })
...@@ -426,7 +435,6 @@ ...@@ -426,7 +435,6 @@
426 this.czr = '' 435 this.czr = ''
427 } 436 }
428 }, 437 },
429 // 更新权利人信息
430 /** 438 /**
431 * @description: 更新权利人信息 439 * @description: 更新权利人信息
432 * @param {*} val 440 * @param {*} val
...@@ -486,21 +494,21 @@ ...@@ -486,21 +494,21 @@
486 item.sfczr = "1"; 494 item.sfczr = "1";
487 }); 495 });
488 } else { 496 } else {
489 if (!that.czr) { 497 if (that.czr === '') {
490 that.$message({ 498 that.$message({
491 showClose: true, 499 showClose: true,
492 message: "请选择持证人", 500 message: "请选择持证人",
493 type: "error", 501 type: "error"
494 }); 502 });
495 return false; 503 return false;
496 } 504 }
497 this.ruleForm.qlrList.forEach((item, index) => { 505 this.ruleForm.qlrList.forEach(item => {
498 if (item.zjh == that.czr) { 506 if (item.id == that.czr) {
499 item.sfczr = "1"; 507 item.sfczr = "1"
500 } else { 508 } else {
501 item.sfczr = "0"; 509 item.sfczr = "0"
502 } 510 }
503 }); 511 })
504 } 512 }
505 } 513 }
506 saveData(this.ruleForm).then((res) => { 514 saveData(this.ruleForm).then((res) => {
......
1 <!-- 1 <!--
2 * @Description: 受理信息 2 * @Description: 受理信息
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-14 17:20:59 4 * @LastEditTime: 2023-09-20 13:41:15
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 :model="ruleForm" 9 :model="ruleForm"
10 :rules="rules" 10 :rules="rules"
11 ref="ruleForm" 11 ref="ruleForm"
12 v-Loading="loading"
12 :label-position="flag ? 'top' : ''" 13 :label-position="flag ? 'top' : ''"
13 :inline="flag" 14 :inline="flag"
14 label-width="130px"> 15 label-width="130px">
...@@ -178,10 +179,10 @@ ...@@ -178,10 +179,10 @@
178 placeholder="持证人" 179 placeholder="持证人"
179 :disabled="!viewEdit"> 180 :disabled="!viewEdit">
180 <el-option 181 <el-option
181 v-for="item in czrOptions" 182 v-for="(item,index) in czrOptions"
182 :key="item.zjh" 183 :key="index"
183 :label="item.sqrmc" 184 :label="item.sqrmc"
184 :value="item.zjh"></el-option> 185 :value="item.id"></el-option>
185 </el-select> 186 </el-select>
186 </el-form-item> 187 </el-form-item>
187 </el-col> 188 </el-col>
...@@ -210,7 +211,7 @@ ...@@ -210,7 +211,7 @@
210 </el-col> 211 </el-col>
211 </el-row> 212 </el-row>
212 </div> 213 </div>
213 <el-row class="btn" v-if="viewEdit"> 214 <el-row class="btn" v-if="isSave">
214 <el-form-item> 215 <el-form-item>
215 <el-button type="primary" @click="onSubmit">保存</el-button> 216 <el-button type="primary" @click="onSubmit">保存</el-button>
216 </el-form-item> 217 </el-form-item>
...@@ -231,21 +232,13 @@ ...@@ -231,21 +232,13 @@
231 export default { 232 export default {
232 mixins: [ywmix], 233 mixins: [ywmix],
233 computed: { 234 computed: {
234 ...mapGetters(["dictData", "flag"]), 235 ...mapGetters(["dictData", "flag"])
235 }, 236 },
236 components: { qlrCommonTable }, 237 components: { qlrCommonTable },
237
238 // 更新义务人信息
239 /**
240 * @description: 更新义务人信息
241 * @param {*} val
242 * @author: renchao
243 */
244 upDateYwrxxList (val) {
245 this.ruleForm.ywrList = _.cloneDeep(val);
246 },
247 data () { 238 data () {
248 return { 239 return {
240 isSave: true,
241 loading: false,
249 disabled: true, 242 disabled: true,
250 tdytOption: [], 243 tdytOption: [],
251 ruleForm: { 244 ruleForm: {
...@@ -283,6 +276,8 @@ ...@@ -283,6 +276,8 @@
283 }; 276 };
284 }, 277 },
285 mounted (callbackfn, thisArg) { 278 mounted (callbackfn, thisArg) {
279 let that = this
280 this.loading = true
286 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 281 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
287 this.propsParam = this.$attrs; 282 this.propsParam = this.$attrs;
288 var formdata = new FormData(); 283 var formdata = new FormData();
...@@ -291,23 +286,34 @@ ...@@ -291,23 +286,34 @@
291 formdata.append("bsmSlsq", this.bsmSlsq); 286 formdata.append("bsmSlsq", this.bsmSlsq);
292 formdata.append("isEdit", this.viewEdit); 287 formdata.append("isEdit", this.viewEdit);
293 BatchInit(formdata).then((res) => { 288 BatchInit(formdata).then((res) => {
289 setTimeout(() => {
290 this.loading = false
291 }, 200)
294 if (res.code == 200) { 292 if (res.code == 200) {
295 this.ruleForm = res.result; 293 this.ruleForm = res.result;
296 this.czrOptions = this.ruleForm.qlrList; 294 this.czrOptions = this.ruleForm.qlrList;
297 this.gyfs = this.ruleForm.sldyList[0].gyfs; 295 this.gyfs = this.ruleForm.sldyList[0].gyfs;
296 this.ruleForm.qlrList.forEach((item) => {
297 item.id = item.bsmSqr
298 if (item.sfczr == '1') {
299 that.czr = item.bsmSqr
300 }
301 })
302 that.isSave = this.viewEdit
298 this.splicingFdcq2Info(); 303 this.splicingFdcq2Info();
299 } else { 304 } else {
300 this.$message.error(res.message); 305 that.isSave = false
306 that.$confirm(res.message, '提示', {
307 cancelButtonText: '取消',
308 showConfirmButton: false,
309 type: 'warning'
310 })
301 } 311 }
302 this.ruleForm.qlrList.forEach((item) => { 312 }).catch(() => {
303 if (item.sfczr == 1) { 313 this.loading = false
304 this.czr = item.zjh 314 })
305 }
306 });
307 });
308 }, 315 },
309 methods: { 316 methods: {
310 //组装房地产权通用信息
311 /** 317 /**
312 * @description: 组装房地产权通用信息 318 * @description: 组装房地产权通用信息
313 * @author: renchao 319 * @author: renchao
...@@ -322,7 +328,6 @@ ...@@ -322,7 +328,6 @@
322 fwjgArr.push(fdcq2.fwjgmc); 328 fwjgArr.push(fdcq2.fwjgmc);
323 jzmj += parseFloat(fdcq2.jzmj); 329 jzmj += parseFloat(fdcq2.jzmj);
324 }); 330 });
325 //将数据转为字符串
326 //房屋性质 331 //房屋性质
327 let fwxz = Array.from(new Set(fwxzArr)).join(","); 332 let fwxz = Array.from(new Set(fwxzArr)).join(",");
328 //房屋结构 333 //房屋结构
...@@ -344,7 +349,7 @@ ...@@ -344,7 +349,7 @@
344 } 349 }
345 this.num = 0 350 this.num = 0
346 this.ruleForm.qlrList.forEach(item => { 351 this.ruleForm.qlrList.forEach(item => {
347 if (item.zjh == this.czr) { 352 if (item.id == this.czr) {
348 this.num++ 353 this.num++
349 } 354 }
350 }) 355 })
...@@ -352,7 +357,6 @@ ...@@ -352,7 +357,6 @@
352 this.czr = '' 357 this.czr = ''
353 } 358 }
354 }, 359 },
355 // 是否持证人变化
356 /** 360 /**
357 * @description: 是否持证人变化 361 * @description: 是否持证人变化
358 * @param {*} val 362 * @param {*} val
...@@ -411,21 +415,21 @@ ...@@ -411,21 +415,21 @@
411 item.sfczr = "1"; 415 item.sfczr = "1";
412 }); 416 });
413 } else { 417 } else {
414 if (!that.czr) { 418 if (that.czr === '') {
415 that.$message({ 419 that.$message({
416 showClose: true, 420 showClose: true,
417 message: "请选择持证人", 421 message: "请选择持证人",
418 type: "error", 422 type: "error"
419 }); 423 });
420 return false; 424 return false;
421 } 425 }
422 this.ruleForm.qlrList.forEach((item, index) => { 426 this.ruleForm.qlrList.forEach((item, index) => {
423 if (item.zjh == that.czr) { 427 if (item.id == that.czr) {
424 item.sfczr = "1"; 428 item.sfczr = "1"
425 } else { 429 } else {
426 item.sfczr = "0"; 430 item.sfczr = "0"
427 } 431 }
428 }); 432 })
429 } 433 }
430 } 434 }
431 saveBatchData(this.ruleForm).then((res) => { 435 saveBatchData(this.ruleForm).then((res) => {
...@@ -440,13 +444,13 @@ ...@@ -440,13 +444,13 @@
440 this.$message({ 444 this.$message({
441 showClose: true, 445 showClose: true,
442 message: res.message, 446 message: res.message,
443 type: "error", 447 type: "error"
444 }); 448 })
445 } 449 }
446 }); 450 })
447 }, 451 }
448 }, 452 }
449 }; 453 }
450 </script> 454 </script>
451 <style scoped lang="scss"> 455 <style scoped lang="scss">
452 @import "~@/styles/public.scss"; 456 @import "~@/styles/public.scss";
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-19 10:56:59 4 * @LastEditTime: 2023-09-20 14:27:29
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -94,15 +94,7 @@ ...@@ -94,15 +94,7 @@
94 </el-col> 94 </el-col>
95 <el-col :span="8"> 95 <el-col :span="8">
96 <el-form-item label="权利性质:" prop="qlxzmc"> 96 <el-form-item label="权利性质:" prop="qlxzmc">
97 <treeselect 97 <el-input disabled v-model="ruleForm.qlxzmc"></el-input>
98 disabled
99 v-model="ruleForm.qlxzmc"
100 noOptionsText="暂无数据"
101 :default-expand-level="1"
102 placeholder=""
103 :normalizer="normalizer"
104 :show-count="true"
105 :options="dictData['A9']" />
106 </el-form-item> 98 </el-form-item>
107 </el-col> 99 </el-col>
108 </el-row> 100 </el-row>
...@@ -196,17 +188,17 @@ ...@@ -196,17 +188,17 @@
196 </el-col> 188 </el-col>
197 <el-col 189 <el-col
198 :span="5" 190 :span="5"
199 v-show="ruleForm.gyfs != '1' && ruleForm.sffbcz == '0'"> 191 v-show="ruleForm.gyfs != '0' && ruleForm.sffbcz == '0'">
200 <el-form-item label="持证人:"> 192 <el-form-item label="持证人:">
201 <el-select 193 <el-select
202 v-model="czr" 194 v-model="czr"
203 placeholder="持证人" 195 placeholder="持证人"
204 :disabled="!viewEdit"> 196 :disabled="!viewEdit">
205 <el-option 197 <el-option
206 v-for="item in czrOptions" 198 v-for="(item,index) in czrOptions"
207 :key="item.value" 199 :key="index"
208 :label="item.label" 200 :label="item.sqrmc"
209 :value="item.value"> 201 :value="item.id">
210 </el-option> 202 </el-option>
211 </el-select> 203 </el-select>
212 </el-form-item> 204 </el-form-item>
...@@ -214,6 +206,7 @@ ...@@ -214,6 +206,7 @@
214 </el-row> 206 </el-row>
215 <qlrCommonTable 207 <qlrCommonTable
216 :tableData="ruleForm.qlrList" 208 :tableData="ruleForm.qlrList"
209 @upDateQlrxxList="upDateQlrxxList"
217 :gyfs="ruleForm.gyfs" 210 :gyfs="ruleForm.gyfs"
218 :disabled="viewEdit" /> 211 :disabled="viewEdit" />
219 <div class="slxx_title title-block"> 212 <div class="slxx_title title-block">
...@@ -235,7 +228,7 @@ ...@@ -235,7 +228,7 @@
235 </el-col> 228 </el-col>
236 </el-row> 229 </el-row>
237 </div> 230 </div>
238 <el-row class="btn" v-if="viewEdit"> 231 <el-row class="btn" v-if="isSave">
239 <el-form-item> 232 <el-form-item>
240 <el-button type="primary" @click="onSubmit">保存</el-button> 233 <el-button type="primary" @click="onSubmit">保存</el-button>
241 </el-form-item> 234 </el-form-item>
...@@ -252,13 +245,16 @@ ...@@ -252,13 +245,16 @@
252 export default { 245 export default {
253 mixins: [ywmix], 246 mixins: [ywmix],
254 mounted () { 247 mounted () {
248 let that = this
255 this.loading = true 249 this.loading = true
256 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 250 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
257 this.propsParam = this.$attrs; 251 this.propsParam = this.$attrs;
258 var formdata = new FormData(); 252 var formdata = new FormData();
259 formdata.append("bsmSldy", this.propsParam.bsmSldy); 253 formdata.append("bsmSldy", this.propsParam.bsmSldy);
260 Init(formdata).then((res) => { 254 Init(formdata).then((res) => {
261 this.loading = false 255 setTimeout(() => {
256 this.loading = false
257 }, 200)
262 if (res.code === 200 && res.result) { 258 if (res.code === 200 && res.result) {
263 this.ruleForm = { 259 this.ruleForm = {
264 ...res.result, 260 ...res.result,
...@@ -267,16 +263,24 @@ ...@@ -267,16 +263,24 @@
267 ...res.result.jsydsyqdatas, 263 ...res.result.jsydsyqdatas,
268 }; 264 };
269 this.ruleForm.qlrList.forEach((item) => { 265 this.ruleForm.qlrList.forEach((item) => {
270 if (item.sfczr == 1) { 266 item.id = item.bsmSqr
271 this.czr = item.zjh 267 if (item.sfczr == '1') {
268 that.czr = item.bsmSqr
272 } 269 }
273 }); 270 });
274 this.czrOptions = this.ruleForm.qlrList; 271 this.czrOptions = this.ruleForm.qlrList;
272 that.isSave = this.viewEdit
275 } else { 273 } else {
276 this.$message.error(res.message); 274 that.isSave = false
275 that.$confirm(res.message, '提示', {
276 cancelButtonText: '取消',
277 showConfirmButton: false,
278 type: 'warning'
279 })
277 } 280 }
278 }).catch(() => { 281 }).catch(() => {
279 this.loading = false 282 this.loading = false
283 this.isSave = false
280 }) 284 })
281 }, 285 },
282 components: { qlrCommonTable, tdytTable }, 286 components: { qlrCommonTable, tdytTable },
...@@ -285,6 +289,7 @@ ...@@ -285,6 +289,7 @@
285 }, 289 },
286 data () { 290 data () {
287 return { 291 return {
292 isSave: true,
288 // 键名转换,方法默认是label和children进行树状渲染 293 // 键名转换,方法默认是label和children进行树状渲染
289 normalizer (node) { 294 normalizer (node) {
290 //方法 295 //方法
...@@ -351,7 +356,26 @@ ...@@ -351,7 +356,26 @@
351 this.czrOptions = this.ruleForm.qlrData; 356 this.czrOptions = this.ruleForm.qlrData;
352 this.key++; 357 this.key++;
353 }, 358 },
354 // 是否持证人变化 359 /**
360 * @description: 更新权利人信息
361 * @param {*} val
362 * @author: renchao
363 */
364 upDateQlrxxList (val) {
365 if (!_.isEqual(val, this.ruleForm.qlrList)) {
366 this.ruleForm.qlrList = _.cloneDeep(val);
367 this.czrOptions = this.ruleForm.qlrList;
368 }
369 this.num = 0
370 this.ruleForm.qlrList.forEach(item => {
371 if (item.id == this.czr) {
372 this.num++
373 }
374 })
375 if (this.num == 0) {
376 this.czr = ''
377 }
378 },
355 /** 379 /**
356 * @description: 是否持证人变化 380 * @description: 是否持证人变化
357 * @param {*} val 381 * @param {*} val
...@@ -433,21 +457,21 @@ ...@@ -433,21 +457,21 @@
433 item.sfczr = "1"; 457 item.sfczr = "1";
434 }); 458 });
435 } else { 459 } else {
436 if (!that.czr) { 460 if (that.czr === '') {
437 that.$message({ 461 that.$message({
438 showClose: true, 462 showClose: true,
439 message: "请选择持证人", 463 message: "请选择持证人",
440 type: "error", 464 type: "error"
441 }); 465 })
442 return false; 466 return false;
443 } 467 }
444 this.ruleForm.qlrList.forEach((item, index) => { 468 this.ruleForm.qlrList.forEach((item, index) => {
445 if (item.zjh == that.czr) { 469 if (item.id == that.czr) {
446 item.sfczr = "1"; 470 item.sfczr = "1"
447 } else { 471 } else {
448 item.sfczr = "0"; 472 item.sfczr = "0"
449 } 473 }
450 }); 474 })
451 } 475 }
452 } 476 }
453 fristReg(this.ruleForm).then((res) => { 477 fristReg(this.ruleForm).then((res) => {
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-19 10:57:23 4 * @LastEditTime: 2023-09-20 14:27:17
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 :label-position="flag ? 'top' : ''" 15 :label-position="flag ? 'top' : ''"
16 :inline="flag" 16 :inline="flag"
17 label-width="120px"> 17 label-width="120px">
18 <div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''"> 18 <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
19 <div class="slxx_title title-block"> 19 <div class="slxx_title title-block">
20 申请业务信息 20 申请业务信息
21 <div class="triangle"></div> 21 <div class="triangle"></div>
...@@ -70,10 +70,9 @@ ...@@ -70,10 +70,9 @@
70 </el-form-item> 70 </el-form-item>
71 </el-col> 71 </el-col>
72 <el-col :span="8"> 72 <el-col :span="8">
73 <el-form-item label="权利性质"> 73 <el-form-item label="权利性质">
74 <treeselect 74 <treeselect
75 disabled 75 v-model="ruleForm.zdjbxx.qlxz"
76 v-model="ruleForm.zdjbxx.qlxzmc"
77 noOptionsText="暂无数据" 76 noOptionsText="暂无数据"
78 :default-expand-level="1" 77 :default-expand-level="1"
79 placeholder="" 78 placeholder=""
...@@ -193,7 +192,7 @@ ...@@ -193,7 +192,7 @@
193 v-for="(item, index) in czrOptions" 192 v-for="(item, index) in czrOptions"
194 :key="index" 193 :key="index"
195 :label="item.sqrmc" 194 :label="item.sqrmc"
196 :value="item.zjh"> 195 :value="item.id">
197 </el-option> 196 </el-option>
198 </el-select> 197 </el-select>
199 </el-form-item> 198 </el-form-item>
...@@ -238,7 +237,7 @@ ...@@ -238,7 +237,7 @@
238 </el-col> 237 </el-col>
239 </el-row> 238 </el-row>
240 </div> 239 </div>
241 <el-row class="btn" v-if="viewEdit"> 240 <el-row class="btn" v-if="isSave">
242 <el-form-item> 241 <el-form-item>
243 <el-button type="primary" @click="onSubmit">保存</el-button> 242 <el-button type="primary" @click="onSubmit">保存</el-button>
244 </el-form-item> 243 </el-form-item>
...@@ -256,29 +255,39 @@ ...@@ -256,29 +255,39 @@
256 export default { 255 export default {
257 mixins: [ywmix], 256 mixins: [ywmix],
258 mounted () { 257 mounted () {
258 let that = this
259 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 259 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
260 this.propsParam = this.$attrs; 260 this.propsParam = this.$attrs;
261 var formdata = new FormData(); 261 var formdata = new FormData();
262 let that = this;
263 this.loading = true 262 this.loading = true
264 formdata.append("bsmSldy", this.propsParam.bsmSldy); 263 formdata.append("bsmSldy", this.propsParam.bsmSldy);
265 formdata.append("djlx", this.propsParam.djlx); 264 formdata.append("djlx", this.propsParam.djlx);
266 formdata.append("isEdit", this.viewEdit); 265 formdata.append("isEdit", this.viewEdit);
267 Init(formdata).then((res) => { 266 Init(formdata).then((res) => {
268 this.loading = false 267 setTimeout(() => {
269 this.$nextTick(() => { 268 that.loading = false
269 }, 200)
270 if (res.code === 200) {
270 that.ruleForm = res.result; 271 that.ruleForm = res.result;
271 that.isShow = true; 272 that.ruleForm.qlrList.forEach((item) => {
272 this.czrOptions = this.ruleForm.qlrList; 273 item.id = item.bsmSqr
273 this.ruleForm.qlrList.forEach((item) => { 274 if (item.sfczr == '1') {
274 if (item.sfczr == 1) { 275 that.czr = item.bsmSqr
275 this.czr = item.zjh
276 console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr);
277 } 276 }
278 }) 277 })
279 }) 278 that.czrOptions = that.ruleForm.qlrList;
279 that.isSave = that.viewEdit
280 } else {
281 that.isSave = false
282 that.$confirm(res.message, '提示', {
283 cancelButtonText: '取消',
284 showConfirmButton: false,
285 type: 'warning'
286 })
287 }
280 }).catch(() => { 288 }).catch(() => {
281 this.loading = false 289 this.loading = false
290 this.isSave = false
282 }) 291 })
283 }, 292 },
284 components: { qlrCommonTable, tdytTable, ywrCommonTable }, 293 components: { qlrCommonTable, tdytTable, ywrCommonTable },
...@@ -295,6 +304,7 @@ ...@@ -295,6 +304,7 @@
295 }, 304 },
296 data () { 305 data () {
297 return { 306 return {
307 isSave: true,
298 // 键名转换,方法默认是label和children进行树状渲染 308 // 键名转换,方法默认是label和children进行树状渲染
299 normalizer (node) { 309 normalizer (node) {
300 //方法 310 //方法
...@@ -312,7 +322,6 @@ ...@@ -312,7 +322,6 @@
312 viewEdit: true, 322 viewEdit: true,
313 czr: "", 323 czr: "",
314 key: 0, 324 key: 0,
315 isShow: false,
316 disabled: true, 325 disabled: true,
317 czrOptions: [], 326 czrOptions: [],
318 ruleForm: {}, 327 ruleForm: {},
...@@ -331,7 +340,6 @@ ...@@ -331,7 +340,6 @@
331 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); 340 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
332 this.key++; 341 this.key++;
333 }, 342 },
334 // 更新权利人信息
335 /** 343 /**
336 * @description: 更新权利人信息 344 * @description: 更新权利人信息
337 * @param {*} val 345 * @param {*} val
...@@ -340,10 +348,9 @@ ...@@ -340,10 +348,9 @@
340 upDateQlrxxList (val) { 348 upDateQlrxxList (val) {
341 this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)); 349 this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val));
342 this.czrOptions = this.ruleForm.qlrList; 350 this.czrOptions = this.ruleForm.qlrList;
343 this.key++;
344 this.num = 0 351 this.num = 0
345 this.ruleForm.qlrList.forEach(item => { 352 this.ruleForm.qlrList.forEach(item => {
346 if (item.zjh == this.czr) { 353 if (item.id == this.czr) {
347 this.num++ 354 this.num++
348 } 355 }
349 }) 356 })
...@@ -351,7 +358,6 @@ ...@@ -351,7 +358,6 @@
351 this.czr = '' 358 this.czr = ''
352 } 359 }
353 }, 360 },
354 // 是否持证人变化
355 /** 361 /**
356 * @description: 是否持证人变化 362 * @description: 是否持证人变化
357 * @param {*} val 363 * @param {*} val
...@@ -360,7 +366,6 @@ ...@@ -360,7 +366,6 @@
360 updaterow () { 366 updaterow () {
361 this.czr = ""; 367 this.czr = "";
362 }, 368 },
363 // 更新义务人信息
364 /** 369 /**
365 * @description: 更新义务人信息 370 * @description: 更新义务人信息
366 * @param {*} val 371 * @param {*} val
...@@ -420,7 +425,7 @@ ...@@ -420,7 +425,7 @@
420 item.sfczr = "1"; 425 item.sfczr = "1";
421 }); 426 });
422 } else { 427 } else {
423 if (!that.czr) { 428 if (that.czr === '') {
424 that.$message({ 429 that.$message({
425 showClose: true, 430 showClose: true,
426 message: "请选择持证人", 431 message: "请选择持证人",
...@@ -429,7 +434,7 @@ ...@@ -429,7 +434,7 @@
429 return false; 434 return false;
430 } 435 }
431 this.ruleForm.qlrList.forEach((item, index) => { 436 this.ruleForm.qlrList.forEach((item, index) => {
432 if (item.zjh == that.czr) { 437 if (item.id == that.czr) {
433 item.sfczr = "1"; 438 item.sfczr = "1";
434 } else { 439 } else {
435 item.sfczr = "0"; 440 item.sfczr = "0";
...@@ -453,13 +458,13 @@ ...@@ -453,13 +458,13 @@
453 this.$message({ 458 this.$message({
454 showClose: true, 459 showClose: true,
455 message: res.message, 460 message: res.message,
456 type: "error", 461 type: "error"
457 }); 462 })
458 } 463 }
459 }); 464 })
460 }, 465 }
461 }, 466 }
462 }; 467 }
463 </script> 468 </script>
464 <style scoped lang="scss"> 469 <style scoped lang="scss">
465 @import "~@/styles/public.scss"; 470 @import "~@/styles/public.scss";
......
...@@ -2,14 +2,15 @@ ...@@ -2,14 +2,15 @@
2 <!-- 2 <!--
3 * @Description: 3 * @Description:
4 * @Autor: renchao 4 * @Autor: renchao
5 * @LastEditTime: 2023-09-19 10:57:35 5 * @LastEditTime: 2023-09-20 14:26:30
6 --> 6 -->
7 <template> 7 <template>
8 <!-- 受理信息 --> 8 <!-- 受理信息 -->
9 <div class="slxx loadingtext"> 9 <div class="slxx">
10 <el-form 10 <el-form
11 :model="ruleForm" 11 :model="ruleForm"
12 :rules="rules" 12 :rules="rules"
13 v-Loading="loading"
13 ref="ruleForm" 14 ref="ruleForm"
14 :label-position="flag ? 'top' : ''" 15 :label-position="flag ? 'top' : ''"
15 :inline="flag" 16 :inline="flag"
...@@ -72,15 +73,7 @@ ...@@ -72,15 +73,7 @@
72 </el-col> 73 </el-col>
73 <el-col :span="8"> 74 <el-col :span="8">
74 <el-form-item label="权利性质:"> 75 <el-form-item label="权利性质:">
75 <treeselect 76 <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
76 disabled
77 v-model="ruleForm.zdjbxx.qlxzmc"
78 noOptionsText="暂无数据"
79 :default-expand-level="1"
80 placeholder=""
81 :normalizer="normalizer"
82 :show-count="true"
83 :options="dictData['A9']" />
84 </el-form-item> 77 </el-form-item>
85 </el-col> 78 </el-col>
86 </el-row> 79 </el-row>
...@@ -186,10 +179,10 @@ ...@@ -186,10 +179,10 @@
186 placeholder="持证人" 179 placeholder="持证人"
187 :disabled="!viewEdit"> 180 :disabled="!viewEdit">
188 <el-option 181 <el-option
189 v-for="item in czrOptions" 182 v-for="(item,index) in czrOptions"
190 :key="item.zjh" 183 :key="index"
191 :label="item.sqrmc" 184 :label="item.sqrmc"
192 :value="item.zjh"> 185 :value="item.id">
193 </el-option> 186 </el-option>
194 </el-select> 187 </el-select>
195 </el-form-item> 188 </el-form-item>
...@@ -219,7 +212,7 @@ ...@@ -219,7 +212,7 @@
219 </el-col> 212 </el-col>
220 </el-row> 213 </el-row>
221 </div> 214 </div>
222 <el-row class="btn" v-if="viewEdit"> 215 <el-row class="btn" v-if="isSave">
223 <el-form-item> 216 <el-form-item>
224 <el-button type="primary" @click="onSubmit">保存</el-button> 217 <el-button type="primary" @click="onSubmit">保存</el-button>
225 </el-form-item> 218 </el-form-item>
...@@ -236,27 +229,40 @@ ...@@ -236,27 +229,40 @@
236 export default { 229 export default {
237 mixins: [ywmix], 230 mixins: [ywmix],
238 mounted () { 231 mounted () {
232 let that = this;
233 this.loading = true
239 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 234 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
240 this.propsParam = this.$attrs; 235 this.propsParam = this.$attrs;
241 var formdata = new FormData(); 236 var formdata = new FormData();
242 this.$startLoading();
243 formdata.append("bsmSldy", this.propsParam.bsmSldy); 237 formdata.append("bsmSldy", this.propsParam.bsmSldy);
244 formdata.append("djlx", this.propsParam.djlx); 238 formdata.append("djlx", this.propsParam.djlx);
245 formdata.append("isEdit", this.viewEdit); 239 formdata.append("isEdit", this.viewEdit);
246 Init(formdata).then((res) => { 240 Init(formdata).then((res) => {
241 setTimeout(() => {
242 this.loading = false
243 }, 200)
247 if (res.code === 200 && res.result) { 244 if (res.code === 200 && res.result) {
248 this.ruleForm = res.result; 245 that.ruleForm = res.result;
249 this.czrOptions = this.ruleForm.qlrList; 246 that.ruleForm.qlrList.forEach((item) => {
247 item.id = item.bsmSqr
248 if (item.sfczr == '1') {
249 that.czr = item.bsmSqr
250 }
251 })
252 that.czrOptions = that.ruleForm.qlrList;
253 that.isSave = that.viewEdit
250 } else { 254 } else {
251 this.$message.error(res.message); 255 that.isSave = false
256 that.$confirm(res.message, '提示', {
257 cancelButtonText: '取消',
258 showConfirmButton: false,
259 type: 'warning'
260 })
252 } 261 }
253 this.ruleForm.qlrList.forEach((item) => { 262 }).catch(() => {
254 if (item.sfczr == 1) { 263 this.loading = false
255 this.czr = item.zjh 264 this.isSave = false
256 } 265 })
257 });
258 this.$endLoading();
259 });
260 }, 266 },
261 components: { qlrCommonTable, tdytTable }, 267 components: { qlrCommonTable, tdytTable },
262 computed: { 268 computed: {
...@@ -264,6 +270,8 @@ ...@@ -264,6 +270,8 @@
264 }, 270 },
265 data () { 271 data () {
266 return { 272 return {
273 isSave: true,
274 loading: false,
267 // 键名转换,方法默认是label和children进行树状渲染 275 // 键名转换,方法默认是label和children进行树状渲染
268 normalizer (node) { 276 normalizer (node) {
269 //方法 277 //方法
...@@ -313,7 +321,7 @@ ...@@ -313,7 +321,7 @@
313 } 321 }
314 this.num = 0 322 this.num = 0
315 this.ruleForm.qlrList.forEach(item => { 323 this.ruleForm.qlrList.forEach(item => {
316 if (item.zjh == this.czr) { 324 if (item.id == this.czr) {
317 this.num++ 325 this.num++
318 } 326 }
319 }) 327 })
...@@ -321,7 +329,6 @@ ...@@ -321,7 +329,6 @@
321 this.czr = '' 329 this.czr = ''
322 } 330 }
323 }, 331 },
324 // 是否持证人变化
325 /** 332 /**
326 * @description: 是否持证人变化 333 * @description: 是否持证人变化
327 * @param {*} val 334 * @param {*} val
...@@ -381,7 +388,7 @@ ...@@ -381,7 +388,7 @@
381 item.sfczr = "1"; 388 item.sfczr = "1";
382 }); 389 });
383 } else { 390 } else {
384 if (!that.czr) { 391 if (that.czr === '') {
385 that.$message({ 392 that.$message({
386 showClose: true, 393 showClose: true,
387 message: "请选择持证人", 394 message: "请选择持证人",
...@@ -390,12 +397,12 @@ ...@@ -390,12 +397,12 @@
390 return false; 397 return false;
391 } 398 }
392 this.ruleForm.qlrList.forEach((item, index) => { 399 this.ruleForm.qlrList.forEach((item, index) => {
393 if (item.zjh == that.czr) { 400 if (item.id == that.czr) {
394 item.sfczr = "1"; 401 item.sfczr = "1";
395 } else { 402 } else {
396 item.sfczr = "0"; 403 item.sfczr = "0";
397 } 404 }
398 }); 405 })
399 } 406 }
400 } 407 }
401 saveData(this.ruleForm).then((res) => { 408 saveData(this.ruleForm).then((res) => {
......
1 <!-- 1 <!--
2 * @Description: 房屋多幢受理信息 2 * @Description: 房屋多幢受理信息
3 * @Autor: ssq 3 * @Autor: ssq
4 * @LastEditTime: 2023-09-11 11:14:35 4 * @LastEditTime: 2023-09-20 14:25:52
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -171,7 +171,6 @@ ...@@ -171,7 +171,6 @@
171 </el-col> 171 </el-col>
172 <el-col :span="8"> 172 <el-col :span="8">
173 <el-form-item label="林地使用(承包)起始时间:"> 173 <el-form-item label="林地使用(承包)起始时间:">
174 <!-- <el-input v-model="ruleForm.lq.ldsyqssj"></el-input> -->
175 <el-date-picker 174 <el-date-picker
176 class="width100" 175 class="width100"
177 value-format="yyyy-MM-dd HH:mm:ss" 176 value-format="yyyy-MM-dd HH:mm:ss"
...@@ -182,7 +181,6 @@ ...@@ -182,7 +181,6 @@
182 </el-col> 181 </el-col>
183 <el-col :span="8"> 182 <el-col :span="8">
184 <el-form-item label="林地使用(承包)结束时间:"> 183 <el-form-item label="林地使用(承包)结束时间:">
185 <!-- <el-input v-model="ruleForm.lq.ldsyjssj"></el-input> -->
186 <el-date-picker 184 <el-date-picker
187 class="width100" 185 class="width100"
188 value-format="yyyy-MM-dd HH:mm:ss" 186 value-format="yyyy-MM-dd HH:mm:ss"
...@@ -193,11 +191,6 @@ ...@@ -193,11 +191,6 @@
193 </el-col> 191 </el-col>
194 </el-row> 192 </el-row>
195 <el-row :gutter="10"> 193 <el-row :gutter="10">
196 <!-- <el-col :span="8">
197 <el-form-item label="土地用途:">
198 <el-input v-model="ruleForm.lq.xdm"></el-input>
199 </el-form-item>
200 </el-col> -->
201 <el-col :span="8"> 194 <el-col :span="8">
202 <el-form-item label="林地使用 (承包)期限:"> 195 <el-form-item label="林地使用 (承包)期限:">
203 <el-input v-model="ruleForm.lq.ldsyqx" :disabled="!viewEdit"></el-input> 196 <el-input v-model="ruleForm.lq.ldsyqx" :disabled="!viewEdit"></el-input>
...@@ -216,14 +209,6 @@ ...@@ -216,14 +209,6 @@
216 </el-form-item> 209 </el-form-item>
217 </el-col> 210 </el-col>
218 </el-row> 211 </el-row>
219 <!-- <div class="slxx_title title-block">
220 土地用途
221 <div class="triangle"></div>
222 </div>
223 <tdytTable
224 :ableOperation="viewEdit"
225 :tableData="ruleForm.tdytqxList"
226 @upDateTdytxxList="upDateTdytxxList" /> -->
227 <div class="slxx_title title-block"> 212 <div class="slxx_title title-block">
228 权利人信息 213 权利人信息
229 <div class="triangle"></div> 214 <div class="triangle"></div>
...@@ -264,7 +249,7 @@ ...@@ -264,7 +249,7 @@
264 v-for="(item, index) in czrOptions" 249 v-for="(item, index) in czrOptions"
265 :key="index" 250 :key="index"
266 :label="item.sqrmc" 251 :label="item.sqrmc"
267 :value="item.zjh"> 252 :value="item.id">
268 </el-option> 253 </el-option>
269 </el-select> 254 </el-select>
270 </el-form-item> 255 </el-form-item>
...@@ -307,7 +292,7 @@ ...@@ -307,7 +292,7 @@
307 </el-col> 292 </el-col>
308 </el-row> 293 </el-row>
309 </div> 294 </div>
310 <el-row class="btn" v-if="viewEdit"> 295 <el-row class="btn" v-if="isSave">
311 <el-form-item> 296 <el-form-item>
312 <el-button type="primary" @click="onSubmit">保存</el-button> 297 <el-button type="primary" @click="onSubmit">保存</el-button>
313 </el-form-item> 298 </el-form-item>
...@@ -316,15 +301,16 @@ ...@@ -316,15 +301,16 @@
316 </div> 301 </div>
317 </template> 302 </template>
318 <script> 303 <script>
304 import { mapGetters } from "vuex";
319 import ywmix from "@/views/ywbl/mixin/index"; 305 import ywmix from "@/views/ywbl/mixin/index";
320 import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; 306 import qlrCommonTable from "@/views/workflow/components/qlrCommonTable";
321 import ywrCommonTable from "@/views/workflow/components/ywrCommonTable"; 307 import ywrCommonTable from "@/views/workflow/components/ywrCommonTable";
322 import tdytTable from "@/views/workflow/components/tdytTable"; 308 import tdytTable from "@/views/workflow/components/tdytTable";
323 import { Init, saveData } from "@/api/workflow/lqFlow.js"; 309 import { Init, saveData } from "@/api/workflow/lqFlow.js";
324 import { mapGetters } from "vuex";
325 export default { 310 export default {
326 mixins: [ywmix], 311 mixins: [ywmix],
327 mounted () { 312 mounted () {
313 let that = this;
328 this.loading = true 314 this.loading = true
329 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 315 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
330 this.propsParam = this.$attrs; 316 this.propsParam = this.$attrs;
...@@ -333,28 +319,34 @@ ...@@ -333,28 +319,34 @@
333 formdata.append("djlx", this.propsParam.djlx); 319 formdata.append("djlx", this.propsParam.djlx);
334 formdata.append("isEdit", this.viewEdit); 320 formdata.append("isEdit", this.viewEdit);
335 Init(formdata).then((res) => { 321 Init(formdata).then((res) => {
322 setTimeout(() => {
323 this.loading = false
324 }, 200)
336 if (res.code === 200 && res.result) { 325 if (res.code === 200 && res.result) {
337 this.ruleForm = { 326 that.ruleForm = {
338 ...res.result, 327 ...res.result,
339 ...res.result.qlxxdatas, 328 ...res.result.qlxxdatas
340 }; 329 };
341 this.ruleForm.qlrList.forEach((item) => { 330 that.ruleForm.qlrList.forEach(item => {
342 if (item.sfczr == 1) { 331 item.id = item.bsmSqr
343 this.czr = item.zjh 332 if (item.sfczr == '1') {
333 that.czr = item.bsmSqr
344 } 334 }
345 }); 335 })
346 //初始化发证方式,1:小证,2:大正 336 that.czrOptions = that.ruleForm.qlrList;
347 this.ruleForm.slsq.fzfs == null 337 that.ruleForm.lq.zlnd ? that.$set(that.ruleForm.lq, 'zlnd', that.ruleForm.lq.zlnd.toString()) : that.$set(that.ruleForm.lq, 'zlnd', "")
348 ? (this.ruleForm.slsq.fzfs = "1") 338 that.isSave = that.viewEdit
349 : this.ruleForm.slsq.fzfs;
350 this.czrOptions = this.ruleForm.qlrList;
351 this.ruleForm.lq.zlnd ? this.$set(this.ruleForm.lq, 'zlnd', this.ruleForm.lq.zlnd.toString()) : this.$set(this.ruleForm.lq, 'zlnd', "")
352 setTimeout(() => {
353 this.loading = false
354 }, 200)
355 } else { 339 } else {
356 this.$message.error(res.message); 340 that.isSave = false
341 that.$confirm(res.message, '提示', {
342 cancelButtonText: '取消',
343 showConfirmButton: false,
344 type: 'warning'
345 })
357 } 346 }
347 }).catch(() => {
348 this.loading = false
349 this.isSave = false
358 }) 350 })
359 }, 351 },
360 components: { qlrCommonTable, tdytTable, ywrCommonTable }, 352 components: { qlrCommonTable, tdytTable, ywrCommonTable },
...@@ -363,6 +355,7 @@ ...@@ -363,6 +355,7 @@
363 }, 355 },
364 data () { 356 data () {
365 return { 357 return {
358 isSave: true,
366 loading: false, 359 loading: false,
367 disabled: true, 360 disabled: true,
368 tdytOption: [], 361 tdytOption: [],
...@@ -405,7 +398,6 @@ ...@@ -405,7 +398,6 @@
405 upDateTdytxxList (val) { 398 upDateTdytxxList (val) {
406 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val)); 399 this.ruleForm.tdytqxList && (this.ruleForm.tdytqxList = _.cloneDeep(val));
407 }, 400 },
408 // 是否持证人变化
409 /** 401 /**
410 * @description: 是否持证人变化 402 * @description: 是否持证人变化
411 * @param {*} val 403 * @param {*} val
...@@ -424,7 +416,7 @@ ...@@ -424,7 +416,7 @@
424 this.czrOptions = this.ruleForm.qlrList; 416 this.czrOptions = this.ruleForm.qlrList;
425 this.num = 0 417 this.num = 0
426 this.ruleForm.qlrList.forEach(item => { 418 this.ruleForm.qlrList.forEach(item => {
427 if (item.zjh == this.czr) { 419 if (item.id == this.czr) {
428 this.num++ 420 this.num++
429 } 421 }
430 }) 422 })
...@@ -482,7 +474,7 @@ ...@@ -482,7 +474,7 @@
482 item.sfczr = "1"; 474 item.sfczr = "1";
483 }); 475 });
484 } else { 476 } else {
485 if (!that.czr) { 477 if (that.czr === '') {
486 that.$message({ 478 that.$message({
487 showClose: true, 479 showClose: true,
488 message: "请选择持证人", 480 message: "请选择持证人",
...@@ -490,13 +482,13 @@ ...@@ -490,13 +482,13 @@
490 }); 482 });
491 return false; 483 return false;
492 } 484 }
493 this.ruleForm.qlrList.forEach((item, index) => { 485 this.ruleForm.qlrList.forEach(item => {
494 if (item.zjh == that.czr) { 486 if (item.id == that.czr) {
495 item.sfczr = "1"; 487 item.sfczr = "1"
496 } else { 488 } else {
497 item.sfczr = "0"; 489 item.sfczr = "0"
498 } 490 }
499 }); 491 })
500 } 492 }
501 } 493 }
502 saveData(this.ruleForm).then((res) => { 494 saveData(this.ruleForm).then((res) => {
......
...@@ -65,15 +65,7 @@ ...@@ -65,15 +65,7 @@
65 </el-col> 65 </el-col>
66 <el-col :span="8"> 66 <el-col :span="8">
67 <el-form-item label="权利性质:"> 67 <el-form-item label="权利性质:">
68 <treeselect 68 <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
69 disabled
70 v-model="ruleForm.zdjbxx.qlxzmc"
71 noOptionsText="暂无数据"
72 :default-expand-level="1"
73 placeholder=""
74 :normalizer="normalizer"
75 :show-count="true"
76 :options="dictData['A9']" />
77 </el-form-item> 69 </el-form-item>
78 </el-col> 70 </el-col>
79 </el-row> 71 </el-row>
...@@ -271,10 +263,10 @@ ...@@ -271,10 +263,10 @@
271 placeholder="持证人" 263 placeholder="持证人"
272 :disabled="!viewEdit"> 264 :disabled="!viewEdit">
273 <el-option 265 <el-option
274 v-for="item in czrOptions" 266 v-for="(item,index) in czrOptions"
275 :key="item.zjh" 267 :key="index"
276 :label="item.sqrmc" 268 :label="item.sqrmc"
277 :value="item.zjh"> 269 :value="item.id">
278 </el-option> 270 </el-option>
279 </el-select> 271 </el-select>
280 </el-form-item> 272 </el-form-item>
...@@ -313,7 +305,7 @@ ...@@ -313,7 +305,7 @@
313 </el-col> 305 </el-col>
314 </el-row> 306 </el-row>
315 </div> 307 </div>
316 <el-row class="btn" v-if="viewEdit"> 308 <el-row class="btn" v-if="isSave">
317 <el-form-item> 309 <el-form-item>
318 <el-button type="primary" @click="onSubmit">保存</el-button> 310 <el-button type="primary" @click="onSubmit">保存</el-button>
319 </el-form-item> 311 </el-form-item>
...@@ -330,6 +322,7 @@ ...@@ -330,6 +322,7 @@
330 export default { 322 export default {
331 mixins: [ywmix], 323 mixins: [ywmix],
332 mounted () { 324 mounted () {
325 let that = this
333 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 326 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
334 this.propsParam = this.$attrs; 327 this.propsParam = this.$attrs;
335 this.loading = true 328 this.loading = true
...@@ -338,16 +331,30 @@ ...@@ -338,16 +331,30 @@
338 formdata.append("djlx", this.propsParam.djlx); 331 formdata.append("djlx", this.propsParam.djlx);
339 formdata.append("isEdit", this.viewEdit); 332 formdata.append("isEdit", this.viewEdit);
340 Init(formdata).then((res) => { 333 Init(formdata).then((res) => {
341 this.loading = false 334 setTimeout(() => {
342 this.ruleForm = res.result; 335 that.loading = false
343 this.czrOptions = this.ruleForm.qlrList; 336 }, 200)
344 this.ruleForm.qlrList.forEach((item) => { 337 if (res.code === 200) {
345 if (item.sfczr == 1) { 338 that.ruleForm = res.result;
346 this.czr = item.zjh 339 that.ruleForm.qlrList.forEach((item) => {
347 } 340 item.id = item.bsmSqr
348 }) 341 if (item.sfczr == '1') {
342 that.czr = item.bsmSqr
343 }
344 })
345 that.czrOptions = that.ruleForm.qlrList;
346 that.isSave = that.viewEdit
347 } else {
348 that.isSave = false
349 that.$confirm(res.message, '提示', {
350 cancelButtonText: '取消',
351 showConfirmButton: false,
352 type: 'warning'
353 })
354 }
349 }).catch(() => { 355 }).catch(() => {
350 this.loading = false 356 this.loading = false
357 this.isSave = false
351 }) 358 })
352 }, 359 },
353 components: { qlrCommonTable, JtcyTable }, 360 components: { qlrCommonTable, JtcyTable },
...@@ -356,6 +363,7 @@ ...@@ -356,6 +363,7 @@
356 }, 363 },
357 data () { 364 data () {
358 return { 365 return {
366 isSave: true,
359 // 键名转换,方法默认是label和children进行树状渲染 367 // 键名转换,方法默认是label和children进行树状渲染
360 normalizer (node) { 368 normalizer (node) {
361 //方法 369 //方法
...@@ -427,16 +435,16 @@ ...@@ -427,16 +435,16 @@
427 item.sfczr = "1"; 435 item.sfczr = "1";
428 }); 436 });
429 } else { 437 } else {
430 if (!that.czr) { 438 if (that.czr === '') {
431 that.$message({ 439 that.$message({
432 showClose: true, 440 showClose: true,
433 message: "请选择持证人", 441 message: "请选择持证人",
434 type: "error", 442 type: "error",
435 }); 443 })
436 return false; 444 return false;
437 } 445 }
438 this.ruleForm.qlrList.forEach((item, index) => { 446 this.ruleForm.qlrList.forEach((item, index) => {
439 if (item.zjh == that.czr) { 447 if (item.id == that.czr) {
440 item.sfczr = "1"; 448 item.sfczr = "1";
441 } else { 449 } else {
442 item.sfczr = "0"; 450 item.sfczr = "0";
...@@ -474,7 +482,7 @@ ...@@ -474,7 +482,7 @@
474 } 482 }
475 this.num = 0 483 this.num = 0
476 this.ruleForm.qlrList.forEach(item => { 484 this.ruleForm.qlrList.forEach(item => {
477 if (item.zjh == this.czr) { 485 if (item.id == this.czr) {
478 this.num++ 486 this.num++
479 } 487 }
480 }) 488 })
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <el-form 4 <el-form
5 :model="ruleForm" 5 :model="ruleForm"
6 :rules="rules" 6 :rules="rules"
7 class="loadingtext" 7 v-Loading="loading"
8 ref="ruleForm" 8 ref="ruleForm"
9 :label-position="flag ? 'top' : ''" 9 :label-position="flag ? 'top' : ''"
10 :inline="flag" 10 :inline="flag"
...@@ -65,15 +65,7 @@ ...@@ -65,15 +65,7 @@
65 </el-col> 65 </el-col>
66 <el-col :span="8"> 66 <el-col :span="8">
67 <el-form-item label="权利性质:"> 67 <el-form-item label="权利性质:">
68 <treeselect 68 <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
69 disabled
70 v-model="ruleForm.zdjbxx.qlxzmc"
71 noOptionsText="暂无数据"
72 :default-expand-level="1"
73 placeholder=""
74 :normalizer="normalizer"
75 :show-count="true"
76 :options="dictData['A9']" />
77 </el-form-item> 69 </el-form-item>
78 </el-col> 70 </el-col>
79 </el-row> 71 </el-row>
...@@ -275,10 +267,10 @@ ...@@ -275,10 +267,10 @@
275 placeholder="持证人" 267 placeholder="持证人"
276 :disabled="!viewEdit"> 268 :disabled="!viewEdit">
277 <el-option 269 <el-option
278 v-for="item in czrOptions" 270 v-for="(item,index) in czrOptions"
279 :key="item.zjh" 271 :key="index"
280 :label="item.sqrmc" 272 :label="item.sqrmc"
281 :value="item.zjh"> 273 :value="item.id">
282 </el-option> 274 </el-option>
283 </el-select> 275 </el-select>
284 </el-form-item> 276 </el-form-item>
...@@ -325,7 +317,7 @@ ...@@ -325,7 +317,7 @@
325 </el-col> 317 </el-col>
326 </el-row> 318 </el-row>
327 </div> 319 </div>
328 <el-row class="btn" v-if="viewEdit"> 320 <el-row class="btn" v-if="isSave">
329 <el-form-item> 321 <el-form-item>
330 <el-button type="primary" @click="onSubmit">保存</el-button> 322 <el-button type="primary" @click="onSubmit">保存</el-button>
331 </el-form-item> 323 </el-form-item>
...@@ -343,23 +335,40 @@ ...@@ -343,23 +335,40 @@
343 export default { 335 export default {
344 mixins: [ywmix], 336 mixins: [ywmix],
345 mounted () { 337 mounted () {
338 let that = this
346 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 339 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
347 this.propsParam = this.$attrs; 340 this.propsParam = this.$attrs;
348 var formdata = new FormData(); 341 var formdata = new FormData();
349 this.$startLoading(); 342 this.loading = true
350 formdata.append("bsmSldy", this.propsParam.bsmSldy); 343 formdata.append("bsmSldy", this.propsParam.bsmSldy);
351 formdata.append("djlx", this.propsParam.djlx); 344 formdata.append("djlx", this.propsParam.djlx);
352 formdata.append("isEdit", this.viewEdit); 345 formdata.append("isEdit", this.viewEdit);
353 Init(formdata).then((res) => { 346 Init(formdata).then((res) => {
354 this.ruleForm = res.result; 347 setTimeout(() => {
355 this.czrOptions = this.ruleForm.qlrList; 348 that.loading = false
356 this.ruleForm.qlrList.forEach((item) => { 349 }, 200)
357 if (item.sfczr == 1) { 350 if (res.code === 200) {
358 this.czr = item.zjh 351 that.ruleForm = res.result;
359 } 352 that.ruleForm.qlrList.forEach((item) => {
360 }); 353 item.id = item.bsmSqr
361 this.$endLoading(); 354 if (item.sfczr == '1') {
362 }); 355 that.czr = item.bsmSqr
356 }
357 })
358 that.czrOptions = that.ruleForm.qlrList
359 that.isSave = that.viewEdit
360 } else {
361 that.isSave = false
362 that.$confirm(res.message, '提示', {
363 cancelButtonText: '取消',
364 showConfirmButton: false,
365 type: 'warning'
366 })
367 }
368 }).catch(() => {
369 this.loading = false
370 this.isSave = false
371 })
363 }, 372 },
364 components: { qlrCommonTable, JtcyTable, ywrCommonTable }, 373 components: { qlrCommonTable, JtcyTable, ywrCommonTable },
365 computed: { 374 computed: {
...@@ -367,6 +376,8 @@ ...@@ -367,6 +376,8 @@
367 }, 376 },
368 data () { 377 data () {
369 return { 378 return {
379 isSave: true,
380 loading: false,
370 // 键名转换,方法默认是label和children进行树状渲染 381 // 键名转换,方法默认是label和children进行树状渲染
371 normalizer (node) { 382 normalizer (node) {
372 //方法 383 //方法
...@@ -432,21 +443,21 @@ ...@@ -432,21 +443,21 @@
432 item.sfczr = "1"; 443 item.sfczr = "1";
433 }); 444 });
434 } else { 445 } else {
435 if (!that.czr) { 446 if (that.czr === '') {
436 that.$message({ 447 that.$message({
437 showClose: true, 448 showClose: true,
438 message: "请选择持证人", 449 message: "请选择持证人",
439 type: "error", 450 type: "error"
440 }); 451 });
441 return false; 452 return false;
442 } 453 }
443 this.ruleForm.qlrList.forEach((item, index) => { 454 this.ruleForm.qlrList.forEach((item, index) => {
444 if (item.zjh == that.czr) { 455 if (item.id == that.czr) {
445 item.sfczr = "1"; 456 item.sfczr = "1"
446 } else { 457 } else {
447 item.sfczr = "0"; 458 item.sfczr = "0"
448 } 459 }
449 }); 460 })
450 } 461 }
451 } 462 }
452 463
...@@ -477,7 +488,7 @@ ...@@ -477,7 +488,7 @@
477 this.czrOptions = this.ruleForm.qlrList; 488 this.czrOptions = this.ruleForm.qlrList;
478 this.num = 0 489 this.num = 0
479 this.ruleForm.qlrList.forEach(item => { 490 this.ruleForm.qlrList.forEach(item => {
480 if (item.zjh == this.czr) { 491 if (item.id == this.czr) {
481 this.num++ 492 this.num++
482 } 493 }
483 }) 494 })
...@@ -485,7 +496,6 @@ ...@@ -485,7 +496,6 @@
485 this.czr = '' 496 this.czr = ''
486 } 497 }
487 }, 498 },
488 // 是否持证人变化
489 /** 499 /**
490 * @description: 是否持证人变化 500 * @description: 是否持证人变化
491 * @param {*} val 501 * @param {*} val
......
1 <!-- 1 <!--
2 * @Description: 房屋多幢受理信息 2 * @Description: 房屋多幢受理信息
3 * @Autor: ssq 3 * @Autor: ssq
4 * @LastEditTime: 2023-09-11 09:51:59 4 * @LastEditTime: 2023-09-20 14:23:42
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 :model="ruleForm" 9 :model="ruleForm"
10 :rules="rules" 10 :rules="rules"
11 ref="ruleForm" 11 ref="ruleForm"
12 v-Loading="loading"
12 :label-position="flag ? 'top' : ''" 13 :label-position="flag ? 'top' : ''"
13 :inline="flag" 14 :inline="flag"
14 label-width="190px"> 15 label-width="190px">
...@@ -262,7 +263,7 @@ ...@@ -262,7 +263,7 @@
262 v-for="(item, index) in czrOptions" 263 v-for="(item, index) in czrOptions"
263 :key="index" 264 :key="index"
264 :label="item.sqrmc" 265 :label="item.sqrmc"
265 :value="item.zjh"> 266 :value="item.id">
266 </el-option> 267 </el-option>
267 </el-select> 268 </el-select>
268 </el-form-item> 269 </el-form-item>
...@@ -305,7 +306,7 @@ ...@@ -305,7 +306,7 @@
305 </el-col> 306 </el-col>
306 </el-row> 307 </el-row>
307 </div> 308 </div>
308 <el-row class="btn" v-if="viewEdit"> 309 <el-row class="btn" v-if="isSave">
309 <el-form-item> 310 <el-form-item>
310 <el-button type="primary" @click="onSubmit">保存</el-button> 311 <el-button type="primary" @click="onSubmit">保存</el-button>
311 </el-form-item> 312 </el-form-item>
...@@ -323,32 +324,43 @@ ...@@ -323,32 +324,43 @@
323 export default { 324 export default {
324 mixins: [ywmix], 325 mixins: [ywmix],
325 mounted () { 326 mounted () {
327 let that = this
326 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 328 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
327 this.propsParam = this.$attrs; 329 this.propsParam = this.$attrs;
328 var formdata = new FormData(); 330 var formdata = new FormData();
331 this.loading = true
329 formdata.append("bsmSldy", this.propsParam.bsmSldy); 332 formdata.append("bsmSldy", this.propsParam.bsmSldy);
330 formdata.append("djlx", this.propsParam.djlx); 333 formdata.append("djlx", this.propsParam.djlx);
331 formdata.append("isEdit", this.viewEdit); 334 formdata.append("isEdit", this.viewEdit);
332 Init(formdata).then((res) => { 335 Init(formdata).then((res) => {
336 setTimeout(() => {
337 this.loading = false
338 }, 200)
333 if (res.code === 200 && res.result) { 339 if (res.code === 200 && res.result) {
334 this.ruleForm = { 340 this.ruleForm = {
335 ...res.result, 341 ...res.result,
336 ...res.result.qlxxdatas, 342 ...res.result.qlxxdatas,
337 }; 343 };
338 this.ruleForm.qlrList.forEach((item) => { 344 this.ruleForm.qlrList.forEach((item) => {
339 if (item.sfczr == 1) { 345 item.id = item.bsmSqr
340 this.czr = item.zjh 346 if (item.sfczr == '1') {
347 that.czr = item.bsmSqr
341 } 348 }
342 }); 349 })
343 //初始化发证方式,1:小证,2:大正 350 that.czrOptions = that.ruleForm.qlrList
344 this.ruleForm.slsq.fzfs == null 351 that.isSave = that.viewEdit
345 ? (this.ruleForm.slsq.fzfs = "1")
346 : this.ruleForm.slsq.fzfs;
347 this.czrOptions = this.ruleForm.qlrList;
348 } else { 352 } else {
349 this.$message.error(res.message); 353 that.isSave = false
354 that.$confirm(res.message, '提示', {
355 cancelButtonText: '取消',
356 showConfirmButton: false,
357 type: 'warning'
358 })
350 } 359 }
351 }); 360 }).catch(() => {
361 this.loading = false
362 this.isSave = false
363 })
352 }, 364 },
353 components: { qlrCommonTable, tdytTable, ywrCommonTable }, 365 components: { qlrCommonTable, tdytTable, ywrCommonTable },
354 computed: { 366 computed: {
...@@ -356,6 +368,8 @@ ...@@ -356,6 +368,8 @@
356 }, 368 },
357 data () { 369 data () {
358 return { 370 return {
371 isSave: true,
372 loading: false,
359 disabled: true, 373 disabled: true,
360 tdytOption: [], 374 tdytOption: [],
361 czrOptions: [], 375 czrOptions: [],
...@@ -406,11 +420,13 @@ ...@@ -406,11 +420,13 @@
406 * @author: renchao 420 * @author: renchao
407 */ 421 */
408 upDateQlrxxList (val) { 422 upDateQlrxxList (val) {
409 this.ruleForm.qlrList = _.cloneDeep(val); 423 if (!_.isEqual(val, this.ruleForm.qlrList)) {
410 this.czrOptions = this.ruleForm.qlrList; 424 this.ruleForm.qlrList = _.cloneDeep(val);
425 this.czrOptions = this.ruleForm.qlrList;
426 }
411 this.num = 0 427 this.num = 0
412 this.ruleForm.qlrList.forEach(item => { 428 this.ruleForm.qlrList.forEach(item => {
413 if (item.zjh == this.czr) { 429 if (item.id == this.czr) {
414 this.num++ 430 this.num++
415 } 431 }
416 }) 432 })
...@@ -418,7 +434,6 @@ ...@@ -418,7 +434,6 @@
418 this.czr = '' 434 this.czr = ''
419 } 435 }
420 }, 436 },
421 // 是否持证人变化
422 /** 437 /**
423 * @description: 是否持证人变化 438 * @description: 是否持证人变化
424 * @param {*} val 439 * @param {*} val
...@@ -473,11 +488,11 @@ ...@@ -473,11 +488,11 @@
473 //是否分别持证 488 //是否分别持证
474 if (this.ruleForm.sldy.sqfbcz == "1") { 489 if (this.ruleForm.sldy.sqfbcz == "1") {
475 //是 490 //是
476 this.ruleForm.qlrList.forEach((item, index) => { 491 this.ruleForm.qlrList.forEach(item => {
477 item.sfczr = "1"; 492 item.sfczr = "1";
478 }); 493 });
479 } else { 494 } else {
480 if (!that.czr) { 495 if (that.czr === '') {
481 that.$message({ 496 that.$message({
482 showClose: true, 497 showClose: true,
483 message: "请选择持证人", 498 message: "请选择持证人",
...@@ -485,8 +500,8 @@ ...@@ -485,8 +500,8 @@
485 }); 500 });
486 return false; 501 return false;
487 } 502 }
488 this.ruleForm.qlrList.forEach((item, index) => { 503 this.ruleForm.qlrList.forEach(item => {
489 if (item.zjh == that.czr) { 504 if (item.id == that.czr) {
490 item.sfczr = "1"; 505 item.sfczr = "1";
491 } else { 506 } else {
492 item.sfczr = "0"; 507 item.sfczr = "0";
...@@ -506,13 +521,13 @@ ...@@ -506,13 +521,13 @@
506 this.$message({ 521 this.$message({
507 showClose: true, 522 showClose: true,
508 message: res.message, 523 message: res.message,
509 type: "error", 524 type: "error"
510 }); 525 })
511 } 526 }
512 }); 527 })
513 }, 528 }
514 }, 529 }
515 }; 530 }
516 </script> 531 </script>
517 <style scoped lang="scss"> 532 <style scoped lang="scss">
518 @import "~@/styles/public.scss"; 533 @import "~@/styles/public.scss";
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-19 10:58:26 4 * @LastEditTime: 2023-09-20 10:52:39
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
9 <el-form 9 <el-form
10 :model="ruleForm" 10 :model="ruleForm"
11 :rules="rules" 11 :rules="rules"
12 class="loadingtext" 12 v-Loading="loading"
13 ref="ruleForm" 13 ref="ruleForm"
14 :label-position="flag ? 'top' : ''" 14 :label-position="flag ? 'top' : ''"
15 :inline="flag" 15 :inline="flag"
16 label-width="120px"> 16 label-width="120px">
17 <div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''"> 17 <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
18 <div class="slxx_title title-block"> 18 <div class="slxx_title title-block">
19 申请业务信息 19 申请业务信息
20 <div class="triangle"></div> 20 <div class="triangle"></div>
...@@ -70,15 +70,7 @@ ...@@ -70,15 +70,7 @@
70 </el-col> 70 </el-col>
71 <el-col :span="8"> 71 <el-col :span="8">
72 <el-form-item label="权利性质:"> 72 <el-form-item label="权利性质:">
73 <treeselect 73 <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
74 disabled
75 v-model="ruleForm.zdjbxx.qlxzmc"
76 noOptionsText="暂无数据"
77 :default-expand-level="1"
78 placeholder=""
79 :normalizer="normalizer"
80 :show-count="true"
81 :options="dictData['A9']" />
82 </el-form-item> 74 </el-form-item>
83 </el-col> 75 </el-col>
84 </el-row> 76 </el-row>
...@@ -93,8 +85,6 @@ ...@@ -93,8 +85,6 @@
93 <el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input> 85 <el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input>
94 </el-form-item> 86 </el-form-item>
95 </el-col> 87 </el-col>
96 </el-row>
97 <el-row :gutter="10">
98 <el-col :span="8"> 88 <el-col :span="8">
99 <el-form-item label="农用地面积:"> 89 <el-form-item label="农用地面积:">
100 <div class="flex"> 90 <div class="flex">
...@@ -117,6 +107,8 @@ ...@@ -117,6 +107,8 @@
117 </div> 107 </div>
118 </el-form-item> 108 </el-form-item>
119 </el-col> 109 </el-col>
110 </el-row>
111 <el-row :gutter="10">
120 <el-col :span="8"> 112 <el-col :span="8">
121 <el-form-item label="耕地面积:"> 113 <el-form-item label="耕地面积:">
122 <div class="flex"> 114 <div class="flex">
...@@ -161,8 +153,6 @@ ...@@ -161,8 +153,6 @@
161 </div> 153 </div>
162 </el-form-item> 154 </el-form-item>
163 </el-col> 155 </el-col>
164 </el-row>
165 <el-row :gutter="10">
166 <el-col :span="8"> 156 <el-col :span="8">
167 <el-form-item label="草地面积:"> 157 <el-form-item label="草地面积:">
168 <div class="flex"> 158 <div class="flex">
...@@ -185,6 +175,8 @@ ...@@ -185,6 +175,8 @@
185 </div> 175 </div>
186 </el-form-item> 176 </el-form-item>
187 </el-col> 177 </el-col>
178 </el-row>
179 <el-row :gutter="10">
188 <el-col :span="8"> 180 <el-col :span="8">
189 <el-form-item label="其他农用地面积:"> 181 <el-form-item label="其他农用地面积:">
190 <div class="flex"> 182 <div class="flex">
...@@ -229,8 +221,6 @@ ...@@ -229,8 +221,6 @@
229 </div> 221 </div>
230 </el-form-item> 222 </el-form-item>
231 </el-col> 223 </el-col>
232 </el-row>
233 <el-row :gutter="10">
234 <el-col :span="8"> 224 <el-col :span="8">
235 <el-form-item label="未利用地面积:"> 225 <el-form-item label="未利用地面积:">
236 <div class="flex"> 226 <div class="flex">
...@@ -299,10 +289,10 @@ ...@@ -299,10 +289,10 @@
299 placeholder="持证人" 289 placeholder="持证人"
300 :disabled="!viewEdit"> 290 :disabled="!viewEdit">
301 <el-option 291 <el-option
302 v-for="item in czrOptions" 292 v-for="(item, index) in czrOptions"
303 :key="item.zjh" 293 :key="index"
304 :label="item.sqrmc" 294 :label="item.sqrmc"
305 :value="item.zjh"> 295 :value="item.id">
306 </el-option> 296 </el-option>
307 </el-select> 297 </el-select>
308 </el-form-item> 298 </el-form-item>
...@@ -347,7 +337,7 @@ ...@@ -347,7 +337,7 @@
347 </el-col> 337 </el-col>
348 </el-row> 338 </el-row>
349 </div> 339 </div>
350 <el-row class="btn" v-if="viewEdit"> 340 <el-row class="btn" v-if="isSave">
351 <el-form-item> 341 <el-form-item>
352 <el-button type="primary" @click="onSubmit">保存</el-button> 342 <el-button type="primary" @click="onSubmit">保存</el-button>
353 </el-form-item> 343 </el-form-item>
...@@ -370,31 +360,43 @@ ...@@ -370,31 +360,43 @@
370 this.propsParam = this.$attrs; 360 this.propsParam = this.$attrs;
371 var formdata = new FormData(); 361 var formdata = new FormData();
372 let that = this; 362 let that = this;
373 this.$startLoading(); 363 this.loading = true
374 formdata.append("bsmSldy", this.propsParam.bsmSldy); 364 formdata.append("bsmSldy", this.propsParam.bsmSldy);
375 formdata.append("djlx", this.propsParam.djlx); 365 formdata.append("djlx", this.propsParam.djlx);
376 formdata.append("isEdit", this.viewEdit); 366 formdata.append("isEdit", this.viewEdit);
377 Init(formdata).then((res) => { 367 Init(formdata).then((res) => {
378 this.$nextTick(() => { 368 setTimeout(() => {
369 this.loading = false
370 }, 200)
371 if (res.code === 200) {
379 that.ruleForm = res.result; 372 that.ruleForm = res.result;
380 this.czrOptions = this.ruleForm.qlrList; 373 that.ruleForm.qlrList.forEach((item) => {
381 that.$endLoading(); 374 item.id = item.bsmSqr
382 that.isShow = true; 375 if (item.sfczr == '1') {
383 this.czrOptions = this.ruleForm.qlrList; 376 that.czr = item.bsmSqr
384 this.ruleForm.qlrList.forEach((item) => {
385 if (item.sfczr == 1) {
386 this.czr = item.zjh
387 } 377 }
388 }); 378 })
389 }); 379 that.czrOptions = that.ruleForm.qlrList;
390 }); 380 that.isSave = that.viewEdit
381 } else {
382 this.isSave = false
383 this.$confirm(res.message, '提示', {
384 cancelButtonText: '取消',
385 showConfirmButton: false,
386 type: 'warning'
387 })
388 }
389 }).catch(() => {
390 this.loading = false
391 })
391 }, 392 },
392
393 computed: { 393 computed: {
394 ...mapGetters(["dictData", "flag"]), 394 ...mapGetters(["dictData", "flag"]),
395 }, 395 },
396 data () { 396 data () {
397 return { 397 return {
398 isSave: true,
399 loading: false,
398 // 键名转换,方法默认是label和children进行树状渲染 400 // 键名转换,方法默认是label和children进行树状渲染
399 normalizer (node) { 401 normalizer (node) {
400 //方法 402 //方法
...@@ -416,11 +418,9 @@ ...@@ -416,11 +418,9 @@
416 value: "id", 418 value: "id",
417 keyword: "keyword", 419 keyword: "keyword",
418 }, 420 },
419
420 //表单是否可操作 421 //表单是否可操作
421 viewEdit: true, 422 viewEdit: true,
422 key: 0, 423 key: 0,
423 isShow: false,
424 disabled: true, 424 disabled: true,
425 czrOptions: [], 425 czrOptions: [],
426 czr: "", 426 czr: "",
...@@ -450,7 +450,7 @@ ...@@ -450,7 +450,7 @@
450 this.czrOptions = this.ruleForm.qlrList; 450 this.czrOptions = this.ruleForm.qlrList;
451 this.num = 0 451 this.num = 0
452 this.ruleForm.qlrList.forEach(item => { 452 this.ruleForm.qlrList.forEach(item => {
453 if (item.zjh == this.czr) { 453 if (item.id == this.czr) {
454 this.num++ 454 this.num++
455 } 455 }
456 }) 456 })
...@@ -458,7 +458,6 @@ ...@@ -458,7 +458,6 @@
458 this.czr = '' 458 this.czr = ''
459 } 459 }
460 }, 460 },
461 // 更新义务人信息
462 /** 461 /**
463 * @description: 更新义务人信息 462 * @description: 更新义务人信息
464 * @param {*} val 463 * @param {*} val
...@@ -468,7 +467,6 @@ ...@@ -468,7 +467,6 @@
468 this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val)); 467 this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val));
469 this.key++; 468 this.key++;
470 }, 469 },
471 // 是否持证人变化
472 /** 470 /**
473 * @description: 是否持证人变化 471 * @description: 是否持证人变化
474 * @param {*} val 472 * @param {*} val
...@@ -526,23 +524,23 @@ ...@@ -526,23 +524,23 @@
526 //是 524 //是
527 this.ruleForm.qlrList.forEach((item, index) => { 525 this.ruleForm.qlrList.forEach((item, index) => {
528 item.sfczr = "1"; 526 item.sfczr = "1";
529 }); 527 })
530 } else { 528 } else {
531 if (!that.czr) { 529 if (that.czr === '') {
532 that.$message({ 530 that.$message({
533 showClose: true, 531 showClose: true,
534 message: "请选择持证人", 532 message: "请选择持证人",
535 type: "error", 533 type: "error"
536 }); 534 })
537 return false; 535 return false
538 } 536 }
539 this.ruleForm.qlrList.forEach((item, index) => { 537 this.ruleForm.qlrList.forEach((item, index) => {
540 if (item.zjh == that.czr) { 538 if (item.id == that.czr) {
541 item.sfczr = "1"; 539 item.sfczr = "1"
542 } else { 540 } else {
543 item.sfczr = "0"; 541 item.sfczr = "0"
544 } 542 }
545 }); 543 })
546 } 544 }
547 } 545 }
548 /** 546 /**
......
...@@ -226,10 +226,10 @@ ...@@ -226,10 +226,10 @@
226 placeholder="持证人" 226 placeholder="持证人"
227 :disabled="!viewEdit"> 227 :disabled="!viewEdit">
228 <el-option 228 <el-option
229 v-for="item in czrOptions" 229 v-for="(item,index) in czrOptions"
230 :key="item.zjh" 230 :key="index"
231 :label="item.sqrmc" 231 :label="item.sqrmc"
232 :value="item.zjh"> 232 :value="item.id">
233 </el-option> 233 </el-option>
234 </el-select> 234 </el-select>
235 </el-form-item> 235 </el-form-item>
...@@ -278,7 +278,7 @@ ...@@ -278,7 +278,7 @@
278 </el-col> 278 </el-col>
279 </el-row> 279 </el-row>
280 </div> 280 </div>
281 <el-row class="btn" v-if="viewEdit"> 281 <el-row class="btn" v-if="isSave">
282 <el-form-item> 282 <el-form-item>
283 <el-button type="primary" @click="onSubmit">保存</el-button> 283 <el-button type="primary" @click="onSubmit">保存</el-button>
284 </el-form-item> 284 </el-form-item>
...@@ -295,6 +295,7 @@ ...@@ -295,6 +295,7 @@
295 export default { 295 export default {
296 mixins: [ywmix], 296 mixins: [ywmix],
297 mounted () { 297 mounted () {
298 let that = this
298 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 299 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
299 this.propsParam = this.$attrs; 300 this.propsParam = this.$attrs;
300 this.loading = true 301 this.loading = true
...@@ -303,26 +304,39 @@ ...@@ -303,26 +304,39 @@
303 formdata.append("djlx", this.propsParam.djlx); 304 formdata.append("djlx", this.propsParam.djlx);
304 formdata.append("isEdit", this.viewEdit); 305 formdata.append("isEdit", this.viewEdit);
305 Init(formdata).then((res) => { 306 Init(formdata).then((res) => {
307 setTimeout(() => {
308 this.loading = false
309 }, 200)
306 if (res.code === 200 && res.result) { 310 if (res.code === 200 && res.result) {
307 this.ruleForm = res.result; 311 this.ruleForm = res.result;
308 this.czrOptions = this.ruleForm.qlrList;
309 this.ruleForm.qlrList.forEach((item) => { 312 this.ruleForm.qlrList.forEach((item) => {
310 if (item.sfczr == 1) { 313 item.id = item.bsmSqr
311 this.czr = item.sqrmc 314 if (item.sfczr == '1') {
315 that.czr = item.bsmSqr
312 } 316 }
313 }) 317 })
314 setTimeout(() => { 318 that.czrOptions = this.ruleForm.qlrList
315 this.loading = false 319 that.isSave = that.viewEdit
316 }, 200) 320 } else {
321 that.isSave = false
322 that.$confirm(res.message, '提示', {
323 cancelButtonText: '取消',
324 showConfirmButton: false,
325 type: 'warning'
326 })
317 } 327 }
328 }).catch(() => {
329 this.isSave = false
330 this.loading = false
318 }) 331 })
319 }, 332 },
320 components: { qlrCommonTable, ywrCommonTable }, 333 components: { qlrCommonTable, ywrCommonTable },
321 computed: { 334 computed: {
322 ...mapGetters(["dictData", "flag"]), 335 ...mapGetters(["dictData", "flag"])
323 }, 336 },
324 data () { 337 data () {
325 return { 338 return {
339 isSave: true,
326 loading: false, 340 loading: false,
327 mjdw: "1", 341 mjdw: "1",
328 //表单是否可操作 342 //表单是否可操作
...@@ -354,7 +368,7 @@ ...@@ -354,7 +368,7 @@
354 this.czrOptions = this.ruleForm.qlrList; 368 this.czrOptions = this.ruleForm.qlrList;
355 this.num = 0 369 this.num = 0
356 this.ruleForm.qlrList.forEach(item => { 370 this.ruleForm.qlrList.forEach(item => {
357 if (item.zjh == this.czr) { 371 if (item.id == this.czr) {
358 this.num++ 372 this.num++
359 } 373 }
360 }) 374 })
...@@ -370,7 +384,6 @@ ...@@ -370,7 +384,6 @@
370 upDateYwrxxList (val) { 384 upDateYwrxxList (val) {
371 this.ruleForm.ywrList = _.cloneDeep(val); 385 this.ruleForm.ywrList = _.cloneDeep(val);
372 }, 386 },
373 // 是否持证人变化
374 /** 387 /**
375 * @description: 是否持证人变化 388 * @description: 是否持证人变化
376 * @param {*} val 389 * @param {*} val
...@@ -421,21 +434,21 @@ ...@@ -421,21 +434,21 @@
421 item.sfczr = "1"; 434 item.sfczr = "1";
422 }); 435 });
423 } else { 436 } else {
424 if (!that.czr) { 437 if (that.czr === '') {
425 that.$message({ 438 that.$message({
426 showClose: true, 439 showClose: true,
427 message: "请选择持证人", 440 message: "请选择持证人",
428 type: "error", 441 type: "error"
429 }); 442 });
430 return false; 443 return false;
431 } 444 }
432 this.ruleForm.qlrList.forEach((item, index) => { 445 this.ruleForm.qlrList.forEach((item, index) => {
433 if (item.zjh == that.czr) { 446 if (item.id == that.czr) {
434 item.sfczr = "1"; 447 item.sfczr = "1"
435 } else { 448 } else {
436 item.sfczr = "0"; 449 item.sfczr = "0"
437 } 450 }
438 }); 451 })
439 } 452 }
440 } 453 }
441 saveData(this.ruleForm).then((res) => { 454 saveData(this.ruleForm).then((res) => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <el-form 4 <el-form
5 :model="ruleForm" 5 :model="ruleForm"
6 :rules="rules" 6 :rules="rules"
7 class="loadingtext" 7 v-Loading="loading"
8 ref="ruleForm" 8 ref="ruleForm"
9 :label-position="flag ? 'top' : ''" 9 :label-position="flag ? 'top' : ''"
10 :inline="flag" 10 :inline="flag"
...@@ -152,10 +152,10 @@ ...@@ -152,10 +152,10 @@
152 placeholder="持证人" 152 placeholder="持证人"
153 :disabled="!viewEdit"> 153 :disabled="!viewEdit">
154 <el-option 154 <el-option
155 v-for="item in czrOptions" 155 v-for="(item,index) in czrOptions"
156 :key="item.zjh" 156 :key="index"
157 :label="item.sqrmc" 157 :label="item.sqrmc"
158 :value="item.zjh"> 158 :value="item.id">
159 </el-option> 159 </el-option>
160 </el-select> 160 </el-select>
161 </el-form-item> 161 </el-form-item>
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
194 </el-col> 194 </el-col>
195 </el-row> 195 </el-row>
196 </div> 196 </div>
197 <el-row class="btn" v-if="viewEdit"> 197 <el-row class="btn" v-if="isSave">
198 <el-form-item> 198 <el-form-item>
199 <el-button type="primary" @click="onSubmit">保存</el-button> 199 <el-button type="primary" @click="onSubmit">保存</el-button>
200 </el-form-item> 200 </el-form-item>
...@@ -211,26 +211,39 @@ ...@@ -211,26 +211,39 @@
211 export default { 211 export default {
212 mixins: [ywmix], 212 mixins: [ywmix],
213 mounted () { 213 mounted () {
214 let that = this
214 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 215 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
215 this.propsParam = this.$attrs; 216 this.propsParam = this.$attrs;
216 var formdata = new FormData(); 217 var formdata = new FormData();
217 this.$startLoading(); 218 this.loading = true
218 formdata.append("bsmSldy", this.propsParam.bsmSldy); 219 formdata.append("bsmSldy", this.propsParam.bsmSldy);
219 formdata.append("djlx", this.propsParam.djlx); 220 formdata.append("djlx", this.propsParam.djlx);
220 formdata.append("isEdit", this.viewEdit); 221 formdata.append("isEdit", this.viewEdit);
221 Init(formdata).then((res) => { 222 Init(formdata).then((res) => {
223 setTimeout(() => {
224 that.loading = false
225 }, 200)
222 if (res.code === 200 && res.result) { 226 if (res.code === 200 && res.result) {
223 this.$endLoading(); 227 that.ruleForm = res.result;
224 this.ruleForm = res.result; 228 that.ruleForm.qlrList.forEach((item) => {
225 this.czrOptions = this.ruleForm.qlrList; 229 item.id = item.bsmSqr
226 this.ruleForm.qlrList.forEach((item) => { 230 if (item.sfczr == '1') {
227 if (item.sfczr == 1) { 231 that.czr = item.bsmSqr
228 this.czr = item.zjh
229 } 232 }
230 }) 233 })
234 that.czrOptions = this.ruleForm.qlrList;
235 that.isSave = that.viewEdit
231 } else { 236 } else {
232 this.$message.error(res.message); 237 that.isSave = false
238 that.$confirm(res.message, '提示', {
239 cancelButtonText: '取消',
240 showConfirmButton: false,
241 type: 'warning'
242 })
233 } 243 }
244 }).catch(() => {
245 that.isSave = false
246 that.loading = false
234 }) 247 })
235 }, 248 },
236 components: { qlrCommonTable, ywrCommonTable }, 249 components: { qlrCommonTable, ywrCommonTable },
...@@ -239,6 +252,8 @@ ...@@ -239,6 +252,8 @@
239 }, 252 },
240 data () { 253 data () {
241 return { 254 return {
255 isSave: true,
256 loading: false,
242 //表单是否可操作 257 //表单是否可操作
243 viewEdit: true, 258 viewEdit: true,
244 disabled: true, 259 disabled: true,
...@@ -274,7 +289,7 @@ ...@@ -274,7 +289,7 @@
274 this.czrOptions = this.ruleForm.qlrList; 289 this.czrOptions = this.ruleForm.qlrList;
275 this.num = 0 290 this.num = 0
276 this.ruleForm.qlrList.forEach(item => { 291 this.ruleForm.qlrList.forEach(item => {
277 if (item.zjh == this.czr) { 292 if (item.id == this.czr) {
278 this.num++ 293 this.num++
279 } 294 }
280 }) 295 })
...@@ -341,21 +356,21 @@ ...@@ -341,21 +356,21 @@
341 item.sfczr = "1"; 356 item.sfczr = "1";
342 }); 357 });
343 } else { 358 } else {
344 if (!that.czr) { 359 if (that.czr === '') {
345 that.$message({ 360 that.$message({
346 showClose: true, 361 showClose: true,
347 message: "请选择持证人", 362 message: "请选择持证人",
348 type: "error", 363 type: "error"
349 }); 364 });
350 return false; 365 return false;
351 } 366 }
352 this.ruleForm.qlrList.forEach((item, index) => { 367 this.ruleForm.qlrList.forEach((item, index) => {
353 if (item.zjh == that.czr) { 368 if (item.id == that.czr) {
354 item.sfczr = "1"; 369 item.sfczr = "1"
355 } else { 370 } else {
356 item.sfczr = "0"; 371 item.sfczr = "0"
357 } 372 }
358 }); 373 })
359 } 374 }
360 } 375 }
361 saveData(this.ruleForm).then((res) => { 376 saveData(this.ruleForm).then((res) => {
......
...@@ -238,10 +238,10 @@ ...@@ -238,10 +238,10 @@
238 placeholder="持证人" 238 placeholder="持证人"
239 :disabled="!viewEdit"> 239 :disabled="!viewEdit">
240 <el-option 240 <el-option
241 v-for="item in czrOptions" 241 v-for="(item,index) in czrOptions"
242 :key="item.zjh" 242 :key="index"
243 :label="item.sqrmc" 243 :label="item.sqrmc"
244 :value="item.zjh"></el-option> 244 :value="item.id"></el-option>
245 </el-select> 245 </el-select>
246 </el-form-item> 246 </el-form-item>
247 </el-col> 247 </el-col>
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
289 </el-col> 289 </el-col>
290 </el-row> 290 </el-row>
291 </div> 291 </div>
292 <el-row class="btn" v-if="viewEdit"> 292 <el-row class="btn" v-if="isSave">
293 <el-form-item> 293 <el-form-item>
294 <el-button type="primary" @click="onSubmit">保存</el-button> 294 <el-button type="primary" @click="onSubmit">保存</el-button>
295 </el-form-item> 295 </el-form-item>
...@@ -306,30 +306,40 @@ ...@@ -306,30 +306,40 @@
306 export default { 306 export default {
307 mixins: [ywmix], 307 mixins: [ywmix],
308 mounted () { 308 mounted () {
309 let that = this;
309 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 310 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
310 this.propsParam = this.$attrs; 311 this.propsParam = this.$attrs;
311 var formdata = new FormData(); 312 var formdata = new FormData();
312 let that = this;
313 this.loading = true; 313 this.loading = true;
314 formdata.append("bsmSldy", this.propsParam.bsmSldy); 314 formdata.append("bsmSldy", this.propsParam.bsmSldy);
315 formdata.append("bsmSlsq", this.$route.query.bsmSlsq); 315 formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
316 formdata.append("djlx", this.propsParam.djlx); 316 formdata.append("djlx", this.propsParam.djlx);
317 formdata.append("isEdit", this.viewEdit); 317 formdata.append("isEdit", this.viewEdit);
318 Init(formdata).then((res) => { 318 Init(formdata).then((res) => {
319 setTimeout(() => {
320 that.loading = false
321 }, 200)
319 if (res.code === 200 && res.result) { 322 if (res.code === 200 && res.result) {
320 that.ruleForm = res.result; 323 that.ruleForm = res.result;
321 that.czrOptions = this.ruleForm.qlrList;
322 that.ruleForm.qlrList.forEach((item) => { 324 that.ruleForm.qlrList.forEach((item) => {
323 if (item.sfczr == 1) { 325 item.id = item.bsmSqr
324 that.czr = item.zjh; 326 if (item.sfczr == '1') {
327 that.czr = item.bsmSqr
325 } 328 }
326 }); 329 })
327 setTimeout(() => { 330 that.czrOptions = this.ruleForm.qlrList;
328 that.loading = false 331 that.isSave = that.viewEdit
329 }, 200)
330 } else { 332 } else {
331 this.$message.error(res.message); 333 that.isSave = false
334 that.$confirm(res.message, '提示', {
335 cancelButtonText: '取消',
336 showConfirmButton: false,
337 type: 'warning'
338 })
332 } 339 }
340 }).catch(() => {
341 this.loading = false
342 this.isSave = false
333 }) 343 })
334 }, 344 },
335 components: { qlrCommonTable, ywrCommonTable }, 345 components: { qlrCommonTable, ywrCommonTable },
...@@ -338,6 +348,7 @@ ...@@ -338,6 +348,7 @@
338 }, 348 },
339 data () { 349 data () {
340 return { 350 return {
351 isSave: true,
341 //表单是否可操作 352 //表单是否可操作
342 viewEdit: true, 353 viewEdit: true,
343 loading: false, 354 loading: false,
...@@ -362,7 +373,7 @@ ...@@ -362,7 +373,7 @@
362 this.czrOptions = this.ruleForm.qlrList; 373 this.czrOptions = this.ruleForm.qlrList;
363 this.num = 0 374 this.num = 0
364 this.ruleForm.qlrList.forEach(item => { 375 this.ruleForm.qlrList.forEach(item => {
365 if (item.zjh == this.czr) { 376 if (item.id == this.czr) {
366 this.num++ 377 this.num++
367 } 378 }
368 }) 379 })
...@@ -427,7 +438,7 @@ ...@@ -427,7 +438,7 @@
427 item.sfczr = "1"; 438 item.sfczr = "1";
428 }); 439 });
429 } else { 440 } else {
430 if (!that.czr) { 441 if (that.czr === '') {
431 that.$message({ 442 that.$message({
432 showClose: true, 443 showClose: true,
433 message: "请选择持证人", 444 message: "请选择持证人",
...@@ -436,7 +447,7 @@ ...@@ -436,7 +447,7 @@
436 return false; 447 return false;
437 } 448 }
438 this.ruleForm.qlrList.forEach((item, index) => { 449 this.ruleForm.qlrList.forEach((item, index) => {
439 if (item.zjh == that.czr) { 450 if (item.id == that.czr) {
440 item.sfczr = "1"; 451 item.sfczr = "1";
441 } else { 452 } else {
442 item.sfczr = "0"; 453 item.sfczr = "0";
......
...@@ -204,7 +204,6 @@ ...@@ -204,7 +204,6 @@
204 </el-radio-group> 204 </el-radio-group>
205 </el-form-item> 205 </el-form-item>
206 </el-col> 206 </el-col>
207
208 <el-col :span="5" v-show="ruleForm.sldyList[0].gyfs != '0'"> 207 <el-col :span="5" v-show="ruleForm.sldyList[0].gyfs != '0'">
209 <el-form-item label="是否分别持证:"> 208 <el-form-item label="是否分别持证:">
210 <el-radio-group 209 <el-radio-group
...@@ -228,10 +227,10 @@ ...@@ -228,10 +227,10 @@
228 placeholder="持证人" 227 placeholder="持证人"
229 :disabled="!viewEdit"> 228 :disabled="!viewEdit">
230 <el-option 229 <el-option
231 v-for="item in czrOptions" 230 v-for="(item,index) in czrOptions"
232 :key="item.zjh" 231 :key="index"
233 :label="item.sqrmc" 232 :label="item.sqrmc"
234 :value="item.zjh"> 233 :value="item.id">
235 </el-option> 234 </el-option>
236 </el-select> 235 </el-select>
237 </el-form-item> 236 </el-form-item>
...@@ -284,7 +283,7 @@ ...@@ -284,7 +283,7 @@
284 </el-col> 283 </el-col>
285 </el-row> 284 </el-row>
286 </div> 285 </div>
287 <el-row class="btn" v-if="viewEdit"> 286 <el-row class="btn" v-if="isSave">
288 <el-form-item> 287 <el-form-item>
289 <el-button type="primary" @click="onSubmitClick()">保存</el-button> 288 <el-button type="primary" @click="onSubmitClick()">保存</el-button>
290 </el-form-item> 289 </el-form-item>
...@@ -299,6 +298,7 @@ ...@@ -299,6 +298,7 @@
299 import { mapGetters } from "vuex"; 298 import { mapGetters } from "vuex";
300 export default { 299 export default {
301 mounted () { 300 mounted () {
301 let that = this
302 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 302 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
303 this.propsParam = this.$attrs; 303 this.propsParam = this.$attrs;
304 var formdata = new FormData(); 304 var formdata = new FormData();
...@@ -308,17 +308,26 @@ ...@@ -308,17 +308,26 @@
308 formdata.append("djlx", this.propsParam.djlx); 308 formdata.append("djlx", this.propsParam.djlx);
309 formdata.append("isEdit", this.viewEdit); 309 formdata.append("isEdit", this.viewEdit);
310 bacthInit(formdata).then((res) => { 310 bacthInit(formdata).then((res) => {
311 this.loading = false 311 setTimeout(() => {
312 that.loading = false
313 }, 200)
312 if (res.code === 200 && res.result) { 314 if (res.code === 200 && res.result) {
313 this.ruleForm = res.result; 315 this.ruleForm = res.result;
314 this.czrOptions = this.ruleForm.qlrList;
315 this.ruleForm.qlrList.forEach((item) => { 316 this.ruleForm.qlrList.forEach((item) => {
316 if (item.sfczr == 1) { 317 item.id = item.bsmSqr
317 this.czr = item.zjh 318 if (item.sfczr == '1') {
319 that.czr = item.bsmSqr
318 } 320 }
319 }) 321 })
322 that.czrOptions = that.ruleForm.qlrList;
323 that.isSave = that.viewEdit
320 } else { 324 } else {
321 this.$message.error(res.message) 325 that.isSave = false
326 that.$confirm(res.message, '提示', {
327 cancelButtonText: '取消',
328 showConfirmButton: false,
329 type: 'warning'
330 })
322 } 331 }
323 }).catch(() => { 332 }).catch(() => {
324 this.loading = false 333 this.loading = false
...@@ -330,6 +339,7 @@ ...@@ -330,6 +339,7 @@
330 }, 339 },
331 data () { 340 data () {
332 return { 341 return {
342 isSave: true,
333 loading: false, 343 loading: false,
334 //表单是否可操作 344 //表单是否可操作
335 viewEdit: true, 345 viewEdit: true,
...@@ -362,7 +372,7 @@ ...@@ -362,7 +372,7 @@
362 if (this.ruleForm.qlrList.length > 1) { 372 if (this.ruleForm.qlrList.length > 1) {
363 this.$message({ 373 this.$message({
364 showClose: true, 374 showClose: true,
365 message: "共有方式:单独所有,权利人只能是一个人", 375 message: "共有方式:单独所有,抵押权人只能是一个人",
366 type: "error", 376 type: "error",
367 }); 377 });
368 return false; 378 return false;
...@@ -373,7 +383,7 @@ ...@@ -373,7 +383,7 @@
373 this.$message({ 383 this.$message({
374 showClose: true, 384 showClose: true,
375 message: 385 message:
376 "共有方式:共同所有,按份所有,其他所有,权利人必须是两个以上", 386 "共有方式:共同所有,按份所有,其他所有,抵押权人必须是两个以上",
377 type: "error", 387 type: "error",
378 }); 388 });
379 return false; 389 return false;
...@@ -385,7 +395,7 @@ ...@@ -385,7 +395,7 @@
385 item.sfczr = "1" 395 item.sfczr = "1"
386 }) 396 })
387 } else { 397 } else {
388 if (!that.czr) { 398 if (that.czr === '') {
389 that.$message({ 399 that.$message({
390 showClose: true, 400 showClose: true,
391 message: "请选择持证人", 401 message: "请选择持证人",
...@@ -394,7 +404,7 @@ ...@@ -394,7 +404,7 @@
394 return false; 404 return false;
395 } 405 }
396 this.ruleForm.qlrList.forEach((item, index) => { 406 this.ruleForm.qlrList.forEach((item, index) => {
397 if (item.zjh == that.czr) { 407 if (item.id == that.czr) {
398 item.sfczr = "1"; 408 item.sfczr = "1";
399 } else { 409 } else {
400 item.sfczr = "0"; 410 item.sfczr = "0";
...@@ -428,7 +438,7 @@ ...@@ -428,7 +438,7 @@
428 this.czr = ""; 438 this.czr = "";
429 }, 439 },
430 /** 440 /**
431 * @description: 更新权利人信息 441 * @description: 更新抵押权人信息
432 * @param {*} val 442 * @param {*} val
433 * @author: renchao 443 * @author: renchao
434 */ 444 */
...@@ -439,7 +449,7 @@ ...@@ -439,7 +449,7 @@
439 } 449 }
440 this.num = 0 450 this.num = 0
441 this.ruleForm.qlrList.forEach(item => { 451 this.ruleForm.qlrList.forEach(item => {
442 if (item.zjh == this.czr) { 452 if (item.id == this.czr) {
443 this.num++ 453 this.num++
444 } 454 }
445 }) 455 })
......
...@@ -143,17 +143,19 @@ ...@@ -143,17 +143,19 @@
143 <el-row :gutter="10"> 143 <el-row :gutter="10">
144 <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1"> 144 <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1">
145 <el-form-item label="被担保主债权数额:"> 145 <el-form-item label="被担保主债权数额:">
146 <el-input 146 <div style="display:flex">
147 v-model="ruleForm.diyaq.bdbzzqse" 147 <el-input
148 :disabled="!viewEdit"></el-input> 148 v-model="ruleForm.diyaq.bdbzzqse"
149 <el-select v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit"> 149 :disabled="!viewEdit"></el-input>
150 <el-option 150 <el-select style="width: 68px" v-model="ruleForm.diyaq.jedw" :disabled="!viewEdit">
151 v-for="item in dictData['A57']" 151 <el-option
152 :key="item.dcode" 152 v-for="item in dictData['A57']"
153 :label="item.dname" 153 :key="item.dcode"
154 :value="item.dcode"> 154 :label="item.dname"
155 </el-option> 155 :value="item.dcode">
156 </el-select> 156 </el-option>
157 </el-select>
158 </div>
157 </el-form-item> 159 </el-form-item>
158 </el-col> 160 </el-col>
159 161
...@@ -229,7 +231,7 @@ ...@@ -229,7 +231,7 @@
229 <div class="triangle"></div> 231 <div class="triangle"></div>
230 </div> 232 </div>
231 <el-row :gutter="10"> 233 <el-row :gutter="10">
232 <el-col :span="14"> 234 <el-col :span="12">
233 <el-form-item label="共有方式:"> 235 <el-form-item label="共有方式:">
234 <el-radio-group 236 <el-radio-group
235 :disabled="!viewEdit" 237 :disabled="!viewEdit"
...@@ -261,10 +263,10 @@ ...@@ -261,10 +263,10 @@
261 placeholder="持证人" 263 placeholder="持证人"
262 :disabled="!viewEdit"> 264 :disabled="!viewEdit">
263 <el-option 265 <el-option
264 v-for="item in czrOptions" 266 v-for="(item,index) in czrOptions"
265 :key="item.zjh" 267 :key="index"
266 :label="item.sqrmc" 268 :label="item.sqrmc"
267 :value="item.zjh"> 269 :value="item.id">
268 </el-option> 270 </el-option>
269 </el-select> 271 </el-select>
270 </el-form-item> 272 </el-form-item>
...@@ -314,7 +316,7 @@ ...@@ -314,7 +316,7 @@
314 </el-col> 316 </el-col>
315 </el-row> 317 </el-row>
316 </div> 318 </div>
317 <el-row class="btn" v-if="viewEdit"> 319 <el-row class="btn" v-if="isSave">
318 <el-form-item> 320 <el-form-item>
319 <el-button type="primary" @click="onSubmitClick()">保存</el-button> 321 <el-button type="primary" @click="onSubmitClick()">保存</el-button>
320 </el-form-item> 322 </el-form-item>
...@@ -328,6 +330,7 @@ ...@@ -328,6 +330,7 @@
328 import { mapGetters } from "vuex"; 330 import { mapGetters } from "vuex";
329 export default { 331 export default {
330 mounted () { 332 mounted () {
333 let that = this
331 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 334 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
332 this.propsParam = this.$attrs; 335 this.propsParam = this.$attrs;
333 var formdata = new FormData(); 336 var formdata = new FormData();
...@@ -342,12 +345,20 @@ ...@@ -342,12 +345,20 @@
342 window.djlx = res.result.sldy.djlx 345 window.djlx = res.result.sldy.djlx
343 this.czrOptions = this.ruleForm.qlrList; 346 this.czrOptions = this.ruleForm.qlrList;
344 this.ruleForm.qlrList.forEach((item) => { 347 this.ruleForm.qlrList.forEach((item) => {
345 if (item.sfczr == 1) { 348 item.id = item.bsmSqr
346 this.czr = item.zjh 349 if (item.sfczr == '1') {
350 that.czr = item.bsmSqr
347 } 351 }
348 }) 352 })
353 that.czrOptions = that.ruleForm.qlrList;
354 that.isSave = that.viewEdit
349 } else { 355 } else {
350 this.$message.error(res.message); 356 that.isSave = false
357 that.$confirm(res.message, '提示', {
358 cancelButtonText: '取消',
359 showConfirmButton: false,
360 type: 'warning'
361 })
351 } 362 }
352 }).catch(() => { 363 }).catch(() => {
353 this.loading = false 364 this.loading = false
...@@ -359,6 +370,7 @@ ...@@ -359,6 +370,7 @@
359 }, 370 },
360 data () { 371 data () {
361 return { 372 return {
373 isSave: true,
362 loading: false, 374 loading: false,
363 //表单是否可操作 375 //表单是否可操作
364 viewEdit: true, 376 viewEdit: true,
...@@ -425,7 +437,7 @@ ...@@ -425,7 +437,7 @@
425 item.sfczr = "1"; 437 item.sfczr = "1";
426 }); 438 });
427 } else { 439 } else {
428 if (!that.czr) { 440 if (that.czr === '') {
429 that.$message({ 441 that.$message({
430 showClose: true, 442 showClose: true,
431 message: "请选择持证人", 443 message: "请选择持证人",
...@@ -434,7 +446,7 @@ ...@@ -434,7 +446,7 @@
434 return false; 446 return false;
435 } 447 }
436 this.ruleForm.qlrList.forEach((item, index) => { 448 this.ruleForm.qlrList.forEach((item, index) => {
437 if (item.zjh == that.czr) { 449 if (item.id == that.czr) {
438 item.sfczr = "1"; 450 item.sfczr = "1";
439 } else { 451 } else {
440 item.sfczr = "0"; 452 item.sfczr = "0";
...@@ -471,7 +483,7 @@ ...@@ -471,7 +483,7 @@
471 } 483 }
472 this.num = 0 484 this.num = 0
473 this.ruleForm.qlrList.forEach(item => { 485 this.ruleForm.qlrList.forEach(item => {
474 if (item.zjh == this.czr) { 486 if (item.id == this.czr) {
475 this.num++ 487 this.num++
476 } 488 }
477 }) 489 })
......