74b7522d by zhaoqian

自然幢表单数据填充

1 parent c35e886b
import request from '@/plugin/axios'
/**
* 查询所有行政区
*/
export function getSearchList() {
return request({
url: '/system/basiccommon/query',
method: 'get',
})
}
\ No newline at end of file
......@@ -9,3 +9,28 @@ export function insertZrzjbxx (data) {
data: data,
})
}
/**
* 生成不动产单元号
*/
export function getBdcdyh (dpdm,dptype) {
return request({
url: '/system/generator/getBdcdyh',
method: 'get',
params:{
dpdm:dpdm,
dptype:dptype
}
})
}
/**
* 保存自然幢信息
*/
export function saveZrzInfo (data) {
return request({
url: '/fw/qjZrz/updateQjZrz',
method: 'put',
data:data
})
}
\ No newline at end of file
......
......@@ -12,7 +12,10 @@ const store = new Vuex.Store({
zdbsm:'',
xzqList:[],
djqList:[],
djzqList:[]
djzqList:[],
//创建自然幢时需要用到的临时存储信息
zrzbsm:'',
xmmc:'',
},
modules: {
user,
......
......@@ -242,7 +242,12 @@ export default {
});
//todo 跳转到自然幢基本信息内容表页面 (预留)
this.close();
this.$router.push("/zrz");
this.$store.zdbsm=res.result.zdbsm;
this.$store.zrzbsm=res.result.bsm;
this.$store.xmmc=res.result.xmmc;
this.$router.push({
path: '/zrz', query:{data: res.result}
});
} else {
this.$message.error("创建失败!");
}
......
......@@ -43,6 +43,7 @@
<script>
import SearchHead from "../../../components/searchHead/searchHead";
import {getSearchList} from "../../../api/search";
export default {
name: "",
components: { SearchHead },
......@@ -55,35 +56,42 @@ export default {
type: [],
},
tableData: [
{
bdcdyh: "610101001001GB00001W",
xmmc: "万科集团万科城",
bdcqzh: "陕(2017)西安市不动产权第00000",
lx: "宗地",
qlr: "李子新",
zl: "灞桥-田家湾-咸宁东路,近浐河西路",
zrsj: "2020.09.07 ",
cjr: "李子新",
},
// {
// bdcdyh: "610101001001GB00001W",
// xmmc: "万科集团万科城",
// bdcqzh: "陕(2017)西安市不动产权第00000",
// lx: "宗地",
// qlr: "李子新",
// zl: "灞桥-田家湾-咸宁东路,近浐河西路",
// zrsj: "2020.09.07 ",
// cjr: "李子新",
// },
],
tableHeight: "",
};
},
created() {},
mounted() {
for (let i = 0; i < 11; i++) {
let obj = {
bdcdyh: "610101001001GB00001W",
xmmc: "万科集团万科城",
bdcqzh: "陕(2017)西安市不动产权第00000",
lx: "自然幢",
qlr: "李子新",
zl: "灞桥-田家湾-咸宁东路,近浐河西路",
zrsj: "2020.09.07 ",
cjr: "李子新",
};
this.tableData.push(obj);
getSearchList().then((res)=>{
console.log(res)
if(res.code===200){
this.tableData=res.result.records;
console.log(this.tableData)
}
})
// for (let i = 0; i < 11; i++) {
// let obj = {
// bdcdyh: "610101001001GB00001W",
// xmmc: "万科集团万科城",
// bdcqzh: "陕(2017)西安市不动产权第00000",
// lx: "自然幢",
// qlr: "李子新",
// zl: "灞桥-田家湾-咸宁东路,近浐河西路",
// zrsj: "2020.09.07 ",
// cjr: "李子新",
// };
// this.tableData.push(obj);
// }
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
},
methods: {
......