aaeee444 by weimo934

feat(dzhb):多幢合并

1 parent e25615ec
...@@ -249,3 +249,13 @@ export function ZdHb(data) { ...@@ -249,3 +249,13 @@ export function ZdHb(data) {
249 }) 249 })
250 } 250 }
251 251
252 /**
253 * 多幢合并
254 */
255 export function dzHb(data) {
256 return request({
257 url:"/bg/dzSplitMerge/dzHb",
258 method:'post',
259 data:data
260 })
261 }
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
42 <td class="bdcqzh">{{item.bdcqzh}}</td> 42 <td class="bdcqzh">{{item.bdcqzh}}</td>
43 <td class="qlr">{{item.qlr}}</td> 43 <td class="qlr">{{item.qlr}}</td>
44 <td class="zl">{{item.zl}}</td> 44 <td class="zl">{{item.zl}}</td>
45 <td class="zl">{{item.type}}</td> 45 <td class="zl">{{item.type=='zrz'?'自然幢':'多幢'}}</td>
46 <td class="cz"> 46 <td class="cz">
47 <el-button 47 <el-button
48 type="primary" 48 type="primary"
...@@ -64,7 +64,8 @@ ...@@ -64,7 +64,8 @@
64 <li> 64 <li>
65 <span class="label">行政区:</span> 65 <span class="label">行政区:</span>
66 <span class="value"> 66 <span class="value">
67 <el-select v-model="dzhbhData.xzqbsm" @change="changeXzq(dzhbhData.xzqbsm)" disabled> 67 <el-select v-model="dzhbhData.xzqbsm" @change="changeXzq(dzhbhData.xzqbsm)"
68 disabled>
68 <el-option 69 <el-option
69 v-for="i in xzq" 70 v-for="i in xzq"
70 :key="i.bsm" 71 :key="i.bsm"
...@@ -77,7 +78,8 @@ ...@@ -77,7 +78,8 @@
77 <li> 78 <li>
78 <span class="label">地籍区:</span> 79 <span class="label">地籍区:</span>
79 <span class="value"> 80 <span class="value">
80 <el-select v-model="dzhbhData.djqbsm" @change="changeDjq(dzhbhData.djqbsm)" disabled> 81 <el-select v-model="dzhbhData.djqbsm" @change="changeDjq(dzhbhData.djqbsm)"
82 disabled>
81 <el-option 83 <el-option
82 v-for="i in djq" 84 v-for="i in djq"
83 :key="i.bsm" 85 :key="i.bsm"
...@@ -364,7 +366,7 @@ ...@@ -364,7 +366,7 @@
364 getDdicByMC 366 getDdicByMC
365 } from "@api/common"; 367 } from "@api/common";
366 import {dzList, zrzList} from './../../api/search' 368 import {dzList, zrzList} from './../../api/search'
367 import {getQjZdjbxxDetailById} from './../../api/zd' 369 import {getQjZdjbxxDetailById, dzHb} from './../../api/zd'
368 370
369 export default { 371 export default {
370 name: "dzHb", 372 name: "dzHb",
...@@ -452,6 +454,25 @@ ...@@ -452,6 +454,25 @@
452 } 454 }
453 }, 455 },
454 save() { 456 save() {
457 let data = {
458 fwlist: this.dzhbqData,
459 newdzxmmc: this.dzhbhData.xmmc,
460 zdbsm: this.zdbsm
461 }
462
463 dzHb(data).then(res => {
464 if (res.success) {
465 console.log(res)
466 this.$message.success("多幢合并成功")
467 this.$router.push({
468 path: '/dz',
469 query: {
470 source: 1,
471 bsm: res.result
472 }
473 })
474 }
475 })
455 }, 476 },
456 dzClose() { 477 dzClose() {
457 this.dzIsVisible = false; 478 this.dzIsVisible = false;
...@@ -498,7 +519,7 @@ ...@@ -498,7 +519,7 @@
498 this.$confirm('当前选择多幢不在同一宗地下,是否继续选择?') 519 this.$confirm('当前选择多幢不在同一宗地下,是否继续选择?')
499 .then(_ => { 520 .then(_ => {
500 this.dzList.push(data) 521 this.dzList.push(data)
501 data['type']='多幢' 522 data['type'] = 'dz'
502 this.addData(data) 523 this.addData(data)
503 return 524 return
504 }) 525 })
...@@ -507,7 +528,7 @@ ...@@ -507,7 +528,7 @@
507 }); 528 });
508 } else { 529 } else {
509 this.dzList.push(data); 530 this.dzList.push(data);
510 data['type']='多幢' 531 data['type'] = 'dz'
511 this.addData(data) 532 this.addData(data)
512 } 533 }
513 }, 534 },
...@@ -523,7 +544,7 @@ ...@@ -523,7 +544,7 @@
523 this.$confirm('当前选择多幢不在同一宗地下,是否继续选择?') 544 this.$confirm('当前选择多幢不在同一宗地下,是否继续选择?')
524 .then(_ => { 545 .then(_ => {
525 this.zrzList.push(data) 546 this.zrzList.push(data)
526 data['type'] = '自然幢' 547 data['type'] = 'zrz'
527 this.addData(data) 548 this.addData(data)
528 return 549 return
529 }) 550 })
...@@ -532,7 +553,7 @@ ...@@ -532,7 +553,7 @@
532 }); 553 });
533 } else { 554 } else {
534 this.zrzList.push(data) 555 this.zrzList.push(data)
535 data['type'] = '自然幢'; 556 data['type'] = 'zrz';
536 this.addData(data) 557 this.addData(data)
537 } 558 }
538 }, 559 },
......