365bbba2 by 杨威
2 parents f5b48b50 601e8980
......@@ -83,4 +83,16 @@ export function getTreeByZrzbsm(zrzbsm) {
zrzbsm
}
})
}
/**x
*修改 宗地,自然幢,户的权属状态
*/
export function updateQsztByBsm(data){
return request({
url: '/gz/updateByBsm',
method: 'post',
data: data
})
}
\ No newline at end of file
......
......@@ -46,4 +46,16 @@ export function getZrzDetailByBsm (data) {
id:data
}
})
}
\ No newline at end of file
}
/**
* 保存自然幢信息
*/
export function submit (data) {
return request({
url: '/system/submit/submitInfo',
method: 'get',
data:data
})
}
......
......@@ -174,8 +174,23 @@ export default {
},
deleteByBsm(){
var zdBsm = this.zdData.zdbsm;
var type;
console.log(zdBsm);
deleteZdInfoByBsm(zdBsm)
switch (this.zdData.type){
case "zd":
type="0";
break;
case "zrz":
type="1";
break;
case "h":
type="2";
break;
default:
break;
}
var params={"id":zdBsm,"type":type}
deleteZdInfoByBsm(params)
.then((res) => {
if(res.code=200){
this.$message({
......
......@@ -52,6 +52,7 @@
<script>
import SearchHead from "../../../components/searchHead/searchHead";
import {getSearchList} from "../../../api/search";
import {updateQsztByBsm} from "../../../api/common";
export default {
name: "",
......@@ -113,17 +114,32 @@
},
//点击办理
handleClick(row) {
console.log(row);
let path = "";
switch (row.lx) {
var type;
var id = row.glbsm;
switch (row.dylx) {
case "自然幢":
path = "/zrz";
type = "1";
break;
case "宗地":
case "zd":
path = "/zd";
type = "0";
break;
case "户":
path = "h";
type = "2";
default:
break;
}
var data={"id":id,"type":type};
updateQsztByBsm(data)
.then((res =>{
if(res.code==200){
console.log(res);
}
}))
this.$router.push(path);
},
},
......
......@@ -270,7 +270,7 @@
<script>
import Qlr from "../../../components/formMenu/qlr";
import Qlxz from "../../../components/formMenu/qlxz";
import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz"
import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm,submit} from "../../../api/zrz"
import {getQjZdjbxxDetailById} from "../../../api/zd"
export default {
name:'zrz',
......@@ -412,6 +412,16 @@
}
},
onSubmit(){
let data={
glbsm:this.bsm,
status:1,
type:"zrz"
}
submit(data).then((res)=>{
if(res.code===200){
this.$message.success("提交完成!")
}
})
},
generatorCode(){
getBdcdyh(this.form.zddm,"zrz")
......