8a41d1bf by weimo934

Merge remote-tracking branch 'origin/master'

2 parents cb00b7a0 9eaddfbb
......@@ -34,3 +34,16 @@ export function saveZrzInfo (data) {
data:data
})
}
/**
* 保存自然幢信息
*/
export function getZrzDetailByBsm (data) {
return request({
url: '/fw/qjZrz/getQjZrzDetailById',
method: 'get',
params:{
id:data
}
})
}
\ No newline at end of file
......
......@@ -50,7 +50,7 @@
width="50%"
center
>
<el-form :model="form">
<el-form :model="formData">
<table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1">
<tr>
<td colspan="2">权利人名称<i class="requisite">*</i></td>
......@@ -279,6 +279,7 @@ export default {
gyqlrqk: "",
sm: "",
},
qllxList:[],
};
},
methods: {
......
......@@ -179,6 +179,11 @@ export default {
pzytList:[],
sjytList:[],
djList:[],
compareList: [
{label: "=", value: "="},
{label: "<=", value: "<="},
{label: ">=", value: ">="},
],
countList: [
{
id: Math.random(),
......
......@@ -245,7 +245,7 @@ export default {
this.$store.zrzbsm=res.result.bsm;
this.$store.xmmc=res.result.xmmc;
this.$router.push({
path: '/zrz', query:{data: res.result}
path: '/zrz', query:{source: 1}
});
} else {
this.$message.error("创建失败!");
......
......@@ -112,17 +112,23 @@ export default {
//点击办理
handleClick(row) {
let path = "";
switch (row.lx) {
case "自然幢":
switch (row.dylx) {
case "zrz":
path = "/zrz";
break;
case "宗地":
case "zd":
path = "/zd";
break;
default:
break;
}
this.$router.push(path);
this.$router.push({
path:path,
query:{
bsm:row.glbsm,
source:2
}
});
},
},
computed: {},
......
......@@ -269,7 +269,7 @@
<script>
import Qlr from "../../../components/formMenu/qlr";
import Qlxz from "../../../components/formMenu/qlxz";
import {getBdcdyh,saveZrzInfo} from "../../../api/zrz"
import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz"
import {getQjZdjbxxDetailById} from "../../../api/zd"
import {getDdicByMC} from "../../../api/common"
export default {
......@@ -351,6 +351,7 @@
ytTitleRowspan:1, //用途的单元格垂直合并数量
fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
loading:false,
source:'',
}
},
methods: {
......@@ -528,6 +529,14 @@
}
})
},
getZrzDetailByBsm(data){
getZrzDetailByBsm(data).then((res)=>{
if(res.code===200){
console.log(res.result)
this.form=res.result;
}
})
}
},
created(){
......@@ -535,10 +544,17 @@
mounted() {
this.getDDic();
//todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来;
this.source = this.$route.query.source;
//source为1代表是从新建中进入道该页面的,source为2代表是从综合查询进入到该页面的
if(this.source===1){
this.form.zdbsm=this.$store.zdbsm;
this.getZddm(this.$store.zdbsm);
this.form.xmmc=this.$store.xmmc;
this.form.zrzbsm=this.$store.zrzbsm;
}else {
this.getZrzDetailByBsm(this.$route.query.bsm)
}
}
}
</script>
......