75257008 by 吴蕾

登记簿查询接口调试

1 parent 5483a37f
1 import request from '@/utils/request'
2 /*
3 登记簿查询
4 */
5
6 // 根据条件进行列表查询
7 export function getDjbBysearch(data) {
8 return request({
9 url: '/zhcx/qlxx/getDjbBysearch',
10 method: 'post',
11 data: data
12 })
13 }
14
15 // 获取登记封面
16 export function getDjbfm(qlbsm) {
17 return request({
18 url: '/zhcx/djbcx/djbfm/' + qlbsm,
19 method: 'get'
20 })
21 }
22
23 // 获取登记目录
24 export function getDjml(qlbsm) {
25 return request({
26 url: '/zhcx/djbcx/djml/' + qlbsm,
27 method: 'get'
28 })
29 }
30
31 // 获取宗地信息
32 export function getZdxx(qlbsm) {
33 return request({
34 url: '/zhcx/djbcx/zdjbxx/' + qlbsm,
35 method: 'get'
36 })
37 }
38
39 // 获取封面权利名称
40 export function getQlmc(qlbsm) {
41 return request({
42 url: '/zhcx/djbcx/qlname/' + qlbsm,
43 method: 'get'
44 })
45 }
46
...@@ -9,6 +9,7 @@ const getters = { ...@@ -9,6 +9,7 @@ const getters = {
9 permission_routes: state => state.permission.routes, 9 permission_routes: state => state.permission.routes,
10 addRoutes: state => state.permission.addRoutes, 10 addRoutes: state => state.permission.addRoutes,
11 addDict: state => state.dict.addDict, 11 addDict: state => state.dict.addDict,
12 dictData: state => state.dict.dictData 12 dictData: state => state.dict.dictData,
13 djbxx: state => state.djbxx.djbxx
13 } 14 }
14 export default getters 15 export default getters
......
1
2 const state = {
3 djbxx: {}
4 }
5
6 const mutations = {
7 SET_DJXX: (state, data) => {
8 state.djbxx = data;
9 }
10 }
11
12 const actions = {
13 setDjbxx({ commit }, data) {
14 commit('SET_DJXX', data)
15 }
16 }
17
18 export default {
19 namespaced: true,
20 state,
21 mutations,
22 actions
23 }
24
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 18
19 </p> 19 </p>
20 <div class="title">不动产登记簿</div> 20 <div class="title">不动产登记簿</div>
21 <br> 21 <br />
22 <p> 22 <p>
23 宗地/宗海号: 23 宗地/宗海号:
24 <font>{{ data.zdzhh }}</font> 24 <font>{{ data.zdzhh }}</font>
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
35 <script> 35 <script>
36 export default { 36 export default {
37 name: "djbfm", 37 name: "djbfm",
38 props: {
39 djbxxData: {},
40 },
38 data() { 41 data() {
39 return { 42 return {
40 data: { 43 data: {
......
...@@ -111,7 +111,8 @@ export default { ...@@ -111,7 +111,8 @@ export default {
111 showTab: "djbfm", // 选中状态,根据表格中权利类型判断 111 showTab: "djbfm", // 选中状态,根据表格中权利类型判断
112 }; 112 };
113 }, 113 },
114 114 mounted() {
115 },
115 methods: { 116 methods: {
116 submitForm() { 117 submitForm() {
117 this.$emit("input", false); 118 this.$emit("input", false);
...@@ -120,7 +121,6 @@ export default { ...@@ -120,7 +121,6 @@ export default {
120 this.$emit("input", false); 121 this.$emit("input", false);
121 }, 122 },
122 handleNodeClick(data) { 123 handleNodeClick(data) {
123 console.log("1111111111", data);
124 this.showTab = data.id; 124 this.showTab = data.id;
125 }, 125 },
126 }, 126 },
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
13 placeholder="请选择权利类型" 13 placeholder="请选择权利类型"
14 > 14 >
15 <el-option 15 <el-option
16 v-for="item in qllxs" 16 v-for="item in dictData['权利类型']"
17 :key="item.value" 17 :key="item.dcode"
18 :label="item.label" 18 :label="item.dname"
19 :value="item.value" 19 :value="item.dcode"
20 > 20 >
21 </el-option> 21 </el-option>
22 </el-select> 22 </el-select>
...@@ -80,17 +80,27 @@ ...@@ -80,17 +80,27 @@
80 > 80 >
81 </lb-table> 81 </lb-table>
82 </div> 82 </div>
83 <djbxxDialog v-model="isDialog" ref="djbxxDialog"/> 83 <djbxxDialog v-model="isDialog" ref="djbxxDialog" :data="djbxxData" />
84 </div> 84 </div>
85 </template> 85 </template>
86 <script> 86 <script>
87 import table from "@/utils/mixin/table"; 87 import table from "@/utils/mixin/table";
88 import { datas, sendThis } from "./djbcxdata"; 88 import { datas, sendThis } from "./djbcxdata";
89 import djbxxDialog from "./components/djbxxDialog.vue"; 89 import djbxxDialog from "./components/djbxxDialog.vue";
90 import {
91 getDjbBysearch,
92 getDjbfm,
93 getDjml,
94 getZdxx,
95 getQlmc,
96 } from "@/api/djbcx.js";
97 import { mapGetters, mapMutations } from "vuex";
98 import axios from "axios";
99
90 export default { 100 export default {
91 name: "djbcx", 101 name: "djbcx",
92 components: { 102 components: {
93 djbxxDialog 103 djbxxDialog,
94 }, 104 },
95 mixins: [table], 105 mixins: [table],
96 mounted() { 106 mounted() {
...@@ -112,45 +122,63 @@ export default { ...@@ -112,45 +122,63 @@ export default {
112 ywlys: datas.ywlys(), 122 ywlys: datas.ywlys(),
113 tableData: { 123 tableData: {
114 columns: datas.columns(), 124 columns: datas.columns(),
115 data: [ 125 data: [],
116 {
117 qszt: "1",
118 slsj: "2022-5-12",
119 qllx: "预告买卖登记"
120 },
121 {
122 qszt: "2",
123 slsj: "2022-5-13",
124 qllx: "查封登记"
125 },
126 {
127 qszt: "3",
128 slsj: "2022-5-13",
129 qllx: "预告买卖登记"
130 },
131 ],
132 }, 126 },
133 qllxs: [], 127 qllxs: [],
134 isDialog: false, 128 isDialog: false,
129 djbxxData: {},
135 }; 130 };
136 }, 131 },
132 computed: {
133 ...mapGetters(["dictData"]),
134 },
137 methods: { 135 methods: {
138 // 初始化数据 136 // 初始化数据
139 fetchData() {}, 137 fetchData() {
138 getDjbBysearch({ ...this.queryForm, ...this.pageData }).then((res) => {
139 if (res.code === 200) {
140 let { total, records } = res.result;
141 this.pageData.total = total;
142 this.tableData.data = records;
143 }
144 });
145 },
140 handleSort(name, sort) { 146 handleSort(name, sort) {
141 console.log(name, sort); 147 console.log(name, sort);
142 }, 148 },
143 queryClick(){ 149 // 查询
144 150 queryClick() {
151 this.pageData.current = 1;
152 this.pageData.currentPage = 1;
153 this.fetchData();
145 }, 154 },
146 moreQueryClick(){}, 155 // 高级查询
156 moreQueryClick() {},
147 openDialog(scope) { 157 openDialog(scope) {
148 this.isDialog = true; 158 let _this = this;
149 if (scope.row.qllx == "预告买卖登记") { 159 let bsm = scope.row.bsmQlxx;
150 this.$refs.djbxxDialog.showTab = "ygdj"; 160 this.bsm = bsm;
151 } else if (scope.row.qllx == "查封登记") { 161 axios
152 this.$refs.djbxxDialog.showTab = "cfdj"; 162 .all([getDjbfm(bsm), getDjml(bsm), getZdxx(bsm), getQlmc(bsm)])
153 } 163 .then(([fm, ml, zdxx, qlmc]) => {
164 console.log("fm:", fm.result);
165 console.log("ml:", ml.result);
166 console.log("zdxx:", zdxx.result);
167 console.log("qlmc:", qlmc.result);
168 let obj = {
169 fm:fm.result,
170 ml:ml.result,
171 zdxx:zdxx.result,
172 qlmc:qlmc.result
173 }
174 _this.isDialog = true;
175
176 // if (scope.row.qllx == "预告买卖登记") {
177 // this.$refs.djbxxDialog.showTab = "ygdj";
178 // } else if (scope.row.qllx == "查封登记") {
179 // this.$refs.djbxxDialog.showTab = "cfdj";
180 // }
181 });
154 }, 182 },
155 }, 183 },
156 }; 184 };
......
...@@ -13,7 +13,14 @@ class data extends filter { ...@@ -13,7 +13,14 @@ class data extends filter {
13 { 13 {
14 label: '序号', 14 label: '序号',
15 type: 'index', 15 type: 'index',
16 width: '50' 16 width: '50',
17 render: (h, scope) => {
18 return (
19 <div>
20 {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
21 </div>
22 )
23 }
17 }, 24 },
18 { 25 {
19 label: "权属状态", 26 label: "权属状态",
...@@ -64,11 +71,11 @@ class data extends filter { ...@@ -64,11 +71,11 @@ class data extends filter {
64 label: "不动产权证号", 71 label: "不动产权证号",
65 }, 72 },
66 { 73 {
67 prop: "qlr", 74 prop: "qlrmc",
68 label: "权利人", 75 label: "权利人",
69 }, 76 },
70 { 77 {
71 prop: "ywr", 78 prop: "ywrmc",
72 label: "义务人", 79 label: "义务人",
73 }, 80 },
74 { 81 {
......