663be839 by zhaoqian

qlr,qlxz,页面参数缺失信息报错修改补充

1 parent 2e95d891
...@@ -33,4 +33,17 @@ export function saveZrzInfo (data) { ...@@ -33,4 +33,17 @@ export function saveZrzInfo (data) {
33 method: 'put', 33 method: 'put',
34 data:data 34 data:data
35 }) 35 })
36 }
37
38 /**
39 * 保存自然幢信息
40 */
41 export function getZrzDetailByBsm (data) {
42 return request({
43 url: '/fw/qjZrz/getQjZrzDetailById',
44 method: 'get',
45 params:{
46 id:data
47 }
48 })
36 } 49 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
68 width="50%" 68 width="50%"
69 center 69 center
70 > 70 >
71 <el-form :model="form"> 71 <el-form :model="formData">
72 <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1"> 72 <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1">
73 <tr> 73 <tr>
74 <td colspan="2">权利人名称<i class="requisite">*</i></td> 74 <td colspan="2">权利人名称<i class="requisite">*</i></td>
...@@ -297,6 +297,7 @@ export default { ...@@ -297,6 +297,7 @@ export default {
297 gyqlrqk: "", 297 gyqlrqk: "",
298 sm: "", 298 sm: "",
299 }, 299 },
300 qllxList:[],
300 }; 301 };
301 }, 302 },
302 methods: { 303 methods: {
......
...@@ -179,6 +179,11 @@ export default { ...@@ -179,6 +179,11 @@ export default {
179 pzytList:[], 179 pzytList:[],
180 sjytList:[], 180 sjytList:[],
181 djList:[], 181 djList:[],
182 compareList: [
183 {label: "=", value: "="},
184 {label: "<=", value: "<="},
185 {label: ">=", value: ">="},
186 ],
182 countList: [ 187 countList: [
183 { 188 {
184 id: Math.random(), 189 id: Math.random(),
......
...@@ -245,7 +245,7 @@ export default { ...@@ -245,7 +245,7 @@ export default {
245 this.$store.zrzbsm=res.result.bsm; 245 this.$store.zrzbsm=res.result.bsm;
246 this.$store.xmmc=res.result.xmmc; 246 this.$store.xmmc=res.result.xmmc;
247 this.$router.push({ 247 this.$router.push({
248 path: '/zrz', query:{data: res.result} 248 path: '/zrz', query:{source: 1}
249 }); 249 });
250 } else { 250 } else {
251 this.$message.error("创建失败!"); 251 this.$message.error("创建失败!");
......
...@@ -112,17 +112,23 @@ export default { ...@@ -112,17 +112,23 @@ export default {
112 //点击办理 112 //点击办理
113 handleClick(row) { 113 handleClick(row) {
114 let path = ""; 114 let path = "";
115 switch (row.lx) { 115 switch (row.dylx) {
116 case "自然幢": 116 case "zrz":
117 path = "/zrz"; 117 path = "/zrz";
118 break; 118 break;
119 case "宗地": 119 case "zd":
120 path = "/zd"; 120 path = "/zd";
121 break; 121 break;
122 default: 122 default:
123 break; 123 break;
124 } 124 }
125 this.$router.push(path); 125 this.$router.push({
126 path:path,
127 query:{
128 bsm:row.glbsm,
129 source:2
130 }
131 });
126 }, 132 },
127 }, 133 },
128 computed: {}, 134 computed: {},
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
269 <script> 269 <script>
270 import Qlr from "../../../components/formMenu/qlr"; 270 import Qlr from "../../../components/formMenu/qlr";
271 import Qlxz from "../../../components/formMenu/qlxz"; 271 import Qlxz from "../../../components/formMenu/qlxz";
272 import {getBdcdyh,saveZrzInfo} from "../../../api/zrz" 272 import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz"
273 import {getQjZdjbxxDetailById} from "../../../api/zd" 273 import {getQjZdjbxxDetailById} from "../../../api/zd"
274 import {getDdicByMC} from "../../../api/common" 274 import {getDdicByMC} from "../../../api/common"
275 export default { 275 export default {
...@@ -351,6 +351,7 @@ ...@@ -351,6 +351,7 @@
351 ytTitleRowspan:1, //用途的单元格垂直合并数量 351 ytTitleRowspan:1, //用途的单元格垂直合并数量
352 fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量 352 fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
353 loading:false, 353 loading:false,
354 source:'',
354 } 355 }
355 }, 356 },
356 methods: { 357 methods: {
...@@ -528,6 +529,14 @@ ...@@ -528,6 +529,14 @@
528 } 529 }
529 }) 530 })
530 }, 531 },
532 getZrzDetailByBsm(data){
533 getZrzDetailByBsm(data).then((res)=>{
534 if(res.code===200){
535 console.log(res.result)
536 this.form=res.result;
537 }
538 })
539 }
531 }, 540 },
532 created(){ 541 created(){
533 542
...@@ -535,10 +544,17 @@ ...@@ -535,10 +544,17 @@
535 mounted() { 544 mounted() {
536 this.getDDic(); 545 this.getDDic();
537 //todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来; 546 //todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
538 this.form.zdbsm=this.$store.zdbsm; 547 this.source = this.$route.query.source;
539 this.getZddm(this.$store.zdbsm); 548 //source为1代表是从新建中进入道该页面的,source为2代表是从综合查询进入到该页面的
540 this.form.xmmc=this.$store.xmmc; 549 if(this.source===1){
541 this.form.zrzbsm=this.$store.zrzbsm; 550 this.form.zdbsm=this.$store.zdbsm;
551 this.getZddm(this.$store.zdbsm);
552 this.form.xmmc=this.$store.xmmc;
553 this.form.zrzbsm=this.$store.zrzbsm;
554 }else {
555 this.getZrzDetailByBsm(this.$route.query.bsm)
556 }
557
542 } 558 }
543 } 559 }
544 </script> 560 </script>
......