b463e8f8 by zhaoqian

宗地代码生成联调

1 parent 40b5c69a
...@@ -23,3 +23,17 @@ export function insertQjZdjbxx (data) { ...@@ -23,3 +23,17 @@ export function insertQjZdjbxx (data) {
23 data: data, 23 data: data,
24 }) 24 })
25 } 25 }
26
27 /**
28 * 新增宗地基本信息
29 */
30 export function getBdcdyh (dpdm,dptype) {
31 return request({
32 url: '/system/generator/getBdcdyh',
33 method: 'get',
34 params:{
35 dpdm:dpdm,
36 dptype:dptype
37 }
38 })
39 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -69,13 +69,13 @@ const constantRoutes = [ ...@@ -69,13 +69,13 @@ const constantRoutes = [
69 path: "/dz", 69 path: "/dz",
70 name: "多幢", 70 name: "多幢",
71 code: "1-2", 71 code: "1-2",
72 component: () => import("@/views/basic/dz/index"), 72 component: () => import("@/views/systemDZ/index"),
73 }, 73 },
74 { 74 {
75 path: "/h", 75 path: "/h",
76 name: "户", 76 name: "户",
77 code: "1-3", 77 code: "1-3",
78 component: () => import("@/views/basic/h/index"), 78 component: () => import("@/views/systemH/index"),
79 }, 79 },
80 { 80 {
81 path: "/zd", 81 path: "/zd",
......
1 <template>
2 <div class="content_box">
3 <el-tabs v-model="activeName" @tab-click="handleClick">
4 <el-tab-pane label="自然幢信息" name="dzxx"><dzxx></dzxx></el-tab-pane>
5 </el-tabs>
6 </div>
7 </template>
8
9 <script>
10 import dzxx from "./dzxx";
11 export default {
12 name: "",
13 components: {
14 dzxx
15 },
16 props: {},
17 data() {
18 return {
19 activeName: "dzxx",
20 };
21 },
22 methods: {
23 handleClick(tab, event) {
24 console.log(tab, event);
25 },
26 },
27 created() {},
28 mounted() {},
29 computed: {},
30 watch: {},
31 };
32 </script>
33 <style scoped lang="less"></style>
......
1 <template>
2 <div class="content_box">
3 <el-tabs v-model="activeName" @tab-click="handleClick">
4 <el-tab-pane label="自然幢信息" name="hxx"><hxx></hxx></el-tab-pane>
5 </el-tabs>
6 </div>
7 </template>
8
9 <script>
10 import hxx from "./hxx";
11 export default {
12 name: "",
13 components: {
14 hxx
15 },
16 props: {},
17 data() {
18 return {
19 activeName: "hxx",
20 };
21 },
22 methods: {
23 handleClick(tab, event) {
24 console.log(tab, event);
25 },
26 },
27 created() {},
28 mounted() {},
29 computed: {},
30 watch: {},
31 };
32 </script>
33 <style scoped lang="less"></style>
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
79 class="formInput percent78" 79 class="formInput percent78"
80 v-model="formData.zddm" 80 v-model="formData.zddm"
81 /> 81 />
82 <el-button type="primary" class="createBtn">生成</el-button> 82 <el-button type="primary" class="createBtn" @click="generatorCode">生成</el-button>
83 </td> 83 </td>
84 </tr> 84 </tr>
85 <tr> 85 <tr>
...@@ -271,6 +271,7 @@ ...@@ -271,6 +271,7 @@
271 import Qlr from "../../../components/formMenu/qlr"; 271 import Qlr from "../../../components/formMenu/qlr";
272 import Qlxz from "../../../components/formMenu/qlxz"; 272 import Qlxz from "../../../components/formMenu/qlxz";
273 import { getDdicByMC } from "../../../api/common"; 273 import { getDdicByMC } from "../../../api/common";
274 import { getBdcdyh } from "../../../api/zd";
274 export default { 275 export default {
275 name: "", 276 name: "",
276 components: { 277 components: {
...@@ -329,6 +330,16 @@ export default { ...@@ -329,6 +330,16 @@ export default {
329 }, 330 },
330 mounted() {}, 331 mounted() {},
331 methods: { 332 methods: {
333
334 generatorCode(){
335 getBdcdyh("860101555888GB","zd")
336 .then((res)=>{
337 console.log(res)
338 this.formData.zddm=res.message.substring(0,19);
339 this.formData.bdcdyh=res.message;
340 })
341 },
342
332 getQlrxxData() { 343 getQlrxxData() {
333 console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据 344 console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
334 console.log(this.$refs.qlrxxModule.getQlrxxData()); //权利人表格数据 345 console.log(this.$refs.qlrxxModule.getQlrxxData()); //权利人表格数据
......