4ca4142e by weimo934

feat():户重新落宗添加提示,宗地分割调整

1 parent 07514623
1 import request from '@/plugin/axios' 1 import request from '@/plugin/axios'
2
2 /** 3 /**
3 * 新增多幢基本信息 4 * 新增多幢基本信息
4 */ 5 */
5 export function insertDzjbxx (data) { 6 export function insertDzjbxx(data) {
6 return request({ 7 return request({
7 url: '/fw/qjDz/insertQjDz', 8 url: '/fw/qjDz/insertQjDz',
8 method: 'post', 9 method: 'post',
...@@ -13,13 +14,13 @@ export function insertDzjbxx (data) { ...@@ -13,13 +14,13 @@ export function insertDzjbxx (data) {
13 /** 14 /**
14 * 生成不动产单元号 15 * 生成不动产单元号
15 */ 16 */
16 export function getBdcdyh (dpdm,dptype) { 17 export function getBdcdyh(dpdm, dptype) {
17 return request({ 18 return request({
18 url: '/system/generator/getBdcdyh', 19 url: '/system/generator/getBdcdyh',
19 method: 'get', 20 method: 'get',
20 params:{ 21 params: {
21 dpdm:dpdm, 22 dpdm: dpdm,
22 dptype:dptype 23 dptype: dptype
23 } 24 }
24 }) 25 })
25 } 26 }
...@@ -27,23 +28,50 @@ export function getBdcdyh (dpdm,dptype) { ...@@ -27,23 +28,50 @@ export function getBdcdyh (dpdm,dptype) {
27 /** 28 /**
28 * 保存自然幢信息 29 * 保存自然幢信息
29 */ 30 */
30 export function saveDzInfo (data) { 31 export function saveDzInfo(data) {
31 return request({ 32 return request({
32 url: '/fw/qjDz/updateQjDz', 33 url: '/fw/qjDz/updateQjDz',
33 method: 'put', 34 method: 'put',
34 data:data 35 data: data
35 }) 36 })
36 } 37 }
37 38
38 /** 39 /**
39 * 保存自然幢信息 40 * 保存自然幢信息
40 */ 41 */
41 export function getDzDetailByBsm (data) { 42 export function getDzDetailByBsm(data) {
42 return request({ 43 return request({
43 url: '/fw/qjDz/getDzDetailByBsm', 44 url: '/fw/qjDz/getDzDetailByBsm',
44 method: 'get', 45 method: 'get',
46 params: {
47 id: data
48 }
49 })
50 }
51
52 /**
53 * 获取多幢上的宗地信息
54 * @param bsm
55 */
56 export function getZdxx(bsm) {
57 return request({
58 url: '/fw/qjDz/zdxx',
59 method: 'get',
60 params: {
61 bsm
62 }
63 })
64 }
65
66 /**
67 * 宗地分割获取幢信息
68 */
69 export function ZdfggetZxx(zdbsm) {
70 return request({
71 url:"/bg/zdSplitMerge/fgSelectDzZrz",
72 method:'get',
45 params:{ 73 params:{
46 id:data 74 zdbsm
47 } 75 }
48 }) 76 })
49 }
...\ No newline at end of file ...\ No newline at end of file
77 }
......
...@@ -45,3 +45,17 @@ export function zrzcxlz(data) { ...@@ -45,3 +45,17 @@ export function zrzcxlz(data) {
45 data: data 45 data: data
46 }) 46 })
47 } 47 }
48
49 /**
50 * 获取户上的宗地信息
51 */
52 export function getHZdxx(bsm) {
53 return request({
54 url:'/bg/hSplitMerge/zdxx',
55 method:'get',
56 params: {
57 bsm
58 }
59 })
60
61 }
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
191 this.hcxlzData.zrzbsm = '' 191 this.hcxlzData.zrzbsm = ''
192 this.hcxlzData.zdybsm = '' 192 this.hcxlzData.zdybsm = ''
193 this.hcxlzData.ljzbsm = '' 193 this.hcxlzData.ljzbsm = ''
194 this.getZrz(val.glbsm) 194 this.getZrz(val.zdbsm)
195 } 195 }
196 } 196 }
197 } 197 }
......
...@@ -587,10 +587,11 @@ ...@@ -587,10 +587,11 @@
587 getListByPbsm, 587 getListByPbsm,
588 getDdicByMC 588 getDdicByMC
589 } from "./../../../../api/common"; 589 } from "./../../../../api/common";
590 import {getQjZdjbxxDetailById} from './../../../../api/zd' 590 import {getQjZdjbxxDetailById,zdfg} from './../../../../api/zd'
591 import {getZdxx,ZdfggetZxx} from './../../../../api/dz'
592 import {getHZdxx} from './../../../../api/h'
591 import QueryData from './../../../../components/queryData/queryData' 593 import QueryData from './../../../../components/queryData/queryData'
592 import zdQueryData from './../../../../components/zdQueryData/zdQueryData' 594 import zdQueryData from './../../../../components/zdQueryData/zdQueryData'
593 import {zdfg} from './../../../../api/zd'
594 import {Message} from 'element-ui' 595 import {Message} from 'element-ui'
595 596
596 export default { 597 export default {
...@@ -606,6 +607,7 @@ ...@@ -606,6 +607,7 @@
606 zdFgqData: {}, // 宗地分割前数据 607 zdFgqData: {}, // 宗地分割前数据
607 dzFgqData: {}, //多幢分割前数据 608 dzFgqData: {}, //多幢分割前数据
608 hFgqData: {}, // 户分割前数据 609 hFgqData: {}, // 户分割前数据
610 zdZxx:{}, // 宗地选择幢
609 xzq: [], 611 xzq: [],
610 djq: [], 612 djq: [],
611 djzq: [], 613 djzq: [],
...@@ -707,10 +709,15 @@ ...@@ -707,10 +709,15 @@
707 }) 709 })
708 }, 710 },
709 methods: { 711 methods: {
712 ZdgetDzXx(zdbsm){
713 ZdfggetZxx(zdbsm).then(res=>{
714 if (res.success) {
715 this.zdZxx=res.result;
716 console.log(res.result,"宗地分割多幢信息");
717 }
718 })
719 },
710 handleNodeClick(node) { 720 handleNodeClick(node) {
711 console.log(node, 'node');
712 console.log(node.parent, 'node.parent')
713 console.log(node.children, 'node.children')
714 this.zdFghData.newZdlist[this.selectIndex].fwlist.push({ 721 this.zdFghData.newZdlist[this.selectIndex].fwlist.push({
715 zbsm: node.label, 722 zbsm: node.label,
716 ztype: '多幢' 723 ztype: '多幢'
...@@ -781,6 +788,24 @@ ...@@ -781,6 +788,24 @@
781 this.checkedData.fwlist = [{zbsm: '', ztype: ''}] 788 this.checkedData.fwlist = [{zbsm: '', ztype: ''}]
782 }) 789 })
783 }, 790 },
791 getDzZdjbxx(id){
792 getZdxx(id).then(res=>{
793 this.checkedData = res.result
794 // 用户bsm暂时传空
795 this.checkedData.userbsm = ''
796 // fwlist 暂时传空
797 this.checkedData.fwlist = [{zbsm: '', ztype: ''}]
798 })
799 },
800 getHZdxx(id){
801 getHZdxx(id).then(res=>{
802 this.checkedData = res.result
803 // 用户bsm暂时传空
804 this.checkedData.userbsm = ''
805 // fwlist 暂时传空
806 this.checkedData.fwlist = [{zbsm: '', ztype: ''}]
807 })
808 },
784 getzdtzm() { 809 getzdtzm() {
785 getDdicByMC('宗地(宗海)特征码').then(res => { 810 getDdicByMC('宗地(宗海)特征码').then(res => {
786 this.tdtzm = res.result 811 this.tdtzm = res.result
...@@ -797,9 +822,24 @@ ...@@ -797,9 +822,24 @@
797 changeXzq(id, index) { 822 changeXzq(id, index) {
798 this.djq = []; 823 this.djq = [];
799 this.djzq = []; 824 this.djzq = [];
800 if (index != undefined) { 825 if (index !== undefined) {
801 this.zdFghData.newZdlist[index].djqbsm = '' 826 switch (this.tabName) {
802 this.zdFghData.newZdlist[index].djzqbsm = '' 827 case "zd":
828 this.zdFghData.newZdlist[index].djqbsm = '';
829 this.zdFghData.newZdlist[index].djzqbsm = '';
830 break;
831 case "dz":
832 this.dzFghData.newZdlist[index].djqbsm = '';
833 this.dzFghData.newZdlist[index].djzqbsm = '';
834 break;
835 case "h":
836 this.hFghData.newZdlist[index].djqbsm = '';
837 this.hFghData.newZdlist[index].djzqbsm = '';
838 break;
839 default:
840 break;
841 }
842
803 } 843 }
804 getListByXzqbsm(id) 844 getListByXzqbsm(id)
805 .then((res) => { 845 .then((res) => {
...@@ -940,6 +980,7 @@ ...@@ -940,6 +980,7 @@
940 zdFgqData: { 980 zdFgqData: {
941 handler: function (item) { 981 handler: function (item) {
942 this.zdFghData.oldZdbsm = item.zdbsm; 982 this.zdFghData.oldZdbsm = item.zdbsm;
983 this.ZdgetDzXx(item.zdbsm);
943 this.getZdJbxx(item.zdbsm); 984 this.getZdJbxx(item.zdbsm);
944 }, 985 },
945 deep: true 986 deep: true
...@@ -947,14 +988,15 @@ ...@@ -947,14 +988,15 @@
947 dzFgqData: { 988 dzFgqData: {
948 handler: function (item) { 989 handler: function (item) {
949 this.dzFgqData.oldZdbsm = item.glbsm; 990 this.dzFgqData.oldZdbsm = item.glbsm;
950 this.getZdJbxx(item.glbsm); 991 this.getDzZdjbxx(item.glbsm);
951 }, 992 },
952 deep: true 993 deep: true
953 }, 994 },
954 hFgqData: { 995 hFgqData: {
955 handler: function (item) { 996 handler: function (item) {
956 this.hFgqData.oldZdbsm = item.glbsm; 997 this.hFgqData.oldZdbsm = item.glbsm;
957 this.getZdJbxx(item.glbsm); 998 console.log(item.glbsm,"户bsm")
999 this.getHZdxx(item.glbsm);
958 }, 1000 },
959 deep: true 1001 deep: true
960 }, 1002 },
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
66 class="radioBtn" 66 class="radioBtn"
67 label="7" 67 label="7"
68 border 68 border
69 @click="hcxlzVisible = true" 69 @click="hcxlz"
70 ><i class="fa fa-building-o"></i>户重新落宗</el-button 70 ><i class="fa fa-building-o"></i>户重新落宗</el-button
71 > 71 >
72 </div> 72 </div>
...@@ -395,6 +395,13 @@ export default { ...@@ -395,6 +395,13 @@ export default {
395 }, 100); 395 }, 100);
396 }, 396 },
397 methods: { 397 methods: {
398 hcxlz(){
399 if (this.bsms.length <= 0) {
400 Message.warning("请选择操作户")
401 return
402 }
403 this.hcxlzVisible = true
404 },
398 loading(){ 405 loading(){
399 this.getLpbMenuTree(this.$store.state.zrzbsm); 406 this.getLpbMenuTree(this.$store.state.zrzbsm);
400 }, 407 },
......