74b7522d by zhaoqian

自然幢表单数据填充

1 parent c35e886b
1 import request from '@/plugin/axios'
2 /**
3 * 查询所有行政区
4 */
5 export function getSearchList() {
6 return request({
7 url: '/system/basiccommon/query',
8 method: 'get',
9 })
10 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -9,3 +9,28 @@ export function insertZrzjbxx (data) { ...@@ -9,3 +9,28 @@ export function insertZrzjbxx (data) {
9 data: data, 9 data: data,
10 }) 10 })
11 } 11 }
12
13 /**
14 * 生成不动产单元号
15 */
16 export function getBdcdyh (dpdm,dptype) {
17 return request({
18 url: '/system/generator/getBdcdyh',
19 method: 'get',
20 params:{
21 dpdm:dpdm,
22 dptype:dptype
23 }
24 })
25 }
26
27 /**
28 * 保存自然幢信息
29 */
30 export function saveZrzInfo (data) {
31 return request({
32 url: '/fw/qjZrz/updateQjZrz',
33 method: 'put',
34 data:data
35 })
36 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -12,7 +12,10 @@ const store = new Vuex.Store({ ...@@ -12,7 +12,10 @@ const store = new Vuex.Store({
12 zdbsm:'', 12 zdbsm:'',
13 xzqList:[], 13 xzqList:[],
14 djqList:[], 14 djqList:[],
15 djzqList:[] 15 djzqList:[],
16 //创建自然幢时需要用到的临时存储信息
17 zrzbsm:'',
18 xmmc:'',
16 }, 19 },
17 modules: { 20 modules: {
18 user, 21 user,
......
...@@ -242,7 +242,12 @@ export default { ...@@ -242,7 +242,12 @@ export default {
242 }); 242 });
243 //todo 跳转到自然幢基本信息内容表页面 (预留) 243 //todo 跳转到自然幢基本信息内容表页面 (预留)
244 this.close(); 244 this.close();
245 this.$router.push("/zrz"); 245 this.$store.zdbsm=res.result.zdbsm;
246 this.$store.zrzbsm=res.result.bsm;
247 this.$store.xmmc=res.result.xmmc;
248 this.$router.push({
249 path: '/zrz', query:{data: res.result}
250 });
246 } else { 251 } else {
247 this.$message.error("创建失败!"); 252 this.$message.error("创建失败!");
248 } 253 }
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
43 43
44 <script> 44 <script>
45 import SearchHead from "../../../components/searchHead/searchHead"; 45 import SearchHead from "../../../components/searchHead/searchHead";
46 import {getSearchList} from "../../../api/search";
46 export default { 47 export default {
47 name: "", 48 name: "",
48 components: { SearchHead }, 49 components: { SearchHead },
...@@ -55,35 +56,42 @@ export default { ...@@ -55,35 +56,42 @@ export default {
55 type: [], 56 type: [],
56 }, 57 },
57 tableData: [ 58 tableData: [
58 { 59 // {
59 bdcdyh: "610101001001GB00001W", 60 // bdcdyh: "610101001001GB00001W",
60 xmmc: "万科集团万科城", 61 // xmmc: "万科集团万科城",
61 bdcqzh: "陕(2017)西安市不动产权第00000", 62 // bdcqzh: "陕(2017)西安市不动产权第00000",
62 lx: "宗地", 63 // lx: "宗地",
63 qlr: "李子新", 64 // qlr: "李子新",
64 zl: "灞桥-田家湾-咸宁东路,近浐河西路", 65 // zl: "灞桥-田家湾-咸宁东路,近浐河西路",
65 zrsj: "2020.09.07 ", 66 // zrsj: "2020.09.07 ",
66 cjr: "李子新", 67 // cjr: "李子新",
67 }, 68 // },
68 ], 69 ],
69 tableHeight: "", 70 tableHeight: "",
70 }; 71 };
71 }, 72 },
72 created() {}, 73 created() {},
73 mounted() { 74 mounted() {
74 for (let i = 0; i < 11; i++) { 75 getSearchList().then((res)=>{
75 let obj = { 76 console.log(res)
76 bdcdyh: "610101001001GB00001W", 77 if(res.code===200){
77 xmmc: "万科集团万科城", 78 this.tableData=res.result.records;
78 bdcqzh: "陕(2017)西安市不动产权第00000", 79 console.log(this.tableData)
79 lx: "自然幢", 80 }
80 qlr: "李子新", 81 })
81 zl: "灞桥-田家湾-咸宁东路,近浐河西路", 82 // for (let i = 0; i < 11; i++) {
82 zrsj: "2020.09.07 ", 83 // let obj = {
83 cjr: "李子新", 84 // bdcdyh: "610101001001GB00001W",
84 }; 85 // xmmc: "万科集团万科城",
85 this.tableData.push(obj); 86 // bdcqzh: "陕(2017)西安市不动产权第00000",
86 } 87 // lx: "自然幢",
88 // qlr: "李子新",
89 // zl: "灞桥-田家湾-咸宁东路,近浐河西路",
90 // zrsj: "2020.09.07 ",
91 // cjr: "李子新",
92 // };
93 // this.tableData.push(obj);
94 // }
87 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68; 95 this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
88 }, 96 },
89 methods: { 97 methods: {
......