2c6e62e2 by 杨威
2 parents 750786f7 3917f637
......@@ -96,6 +96,17 @@ export function updateQsztByBsm(data){
data: data
})
}
/**x
*修改 宗地,自然幢,户的权属状态
*/
export function copyZdjbxx(data){
return request({
url: '/bg/fwsxbg/copyZdjbxx',
method: 'post',
data: data
})
}
/**
* 提交表单信息
* glbsm 关联标识码,自然幢,多幢等标识码 ,
......
......@@ -52,7 +52,7 @@
<script>
import SearchHead from "../../../../components/searchHead/searchHead";
import {getSearchList} from "../../../../api/search";
import {copyZdjbxx} from "../../../../api/common";
export default {
name: "",
components: {SearchHead},
......@@ -108,25 +108,50 @@
},
//点击办理
handleClick(row) {
debugger;
console.log('fwsxbg');
console.log(row);
var bsm = row.glbsm;
var type ;
let path = "";
switch (row.dylx) {
case "zrz":
type="1";
path = "/zrz";
break;
case "zd":
type ="0";
this.$store.state.zdbsm = row.glbsm;
path = "/zd";
break;
case "h":
type="2"
break;
default:
break;
}
this.$router.push({
path: path,
query: {
bsm: row.glbsm,
source: 2
}
});
var params = {"id":bsm,"type":type};
copyZdjbxx(params)
.then((res =>{
if(res.code==200){
this.$message({
message: res.message,
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
}));
//this.$router.push({
// path: path,
// query: {
// bsm: row.glbsm,
// source: 2
// }
//});
},
},
computed: {},
......
......@@ -117,7 +117,7 @@
console.log(row);
let path = "";
var type;
var id = row.glbsm;
var id = row.bsm;
switch (row.dylx) {
case "自然幢":
path = "/zrz";
......@@ -137,8 +137,16 @@
updateQsztByBsm(data)
.then((res =>{
if(res.code==200){
console.log(res);
}
this.$message({
message: res.message,
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
}))
this.$router.push(path);
},
......