1b0d010a by zhaoqian

Merge remote-tracking branch 'origin/master'

2 parents ac695d2a 0a3a38d6
...@@ -70,6 +70,11 @@ const constantRoutes = [ ...@@ -70,6 +70,11 @@ const constantRoutes = [
70 name: "宗地", 70 name: "宗地",
71 code: "1-5", 71 code: "1-5",
72 component: () => import("@/views/zd/index"), 72 component: () => import("@/views/zd/index"),
73 },{
74 path: "/h",
75 name: "户",
76 code: "1-6",
77 component: () => import("@/views/systemH/index"),
73 }, 78 },
74 { 79 {
75 path: "/viewMap", 80 path: "/viewMap",
......
1 <template> 1 <template>
2 <div class="content_box"> 2 <div class="content_box">
3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"> 3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
4 <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx></dzxx></el-tab-pane> 4 <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane>
5 <el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane>
5 </el-tabs> 6 </el-tabs>
6 </div> 7 </div>
7 </template> 8 </template>
8 9
9 <script> 10 <script>
10 import dzxx from "./dzxx"; 11 import dzxx from "./dzxx";
12 import fjcl from "./../zd/fjcl/fjcl"
11 export default { 13 export default {
12 name: "", 14 name: "",
13 components: { 15 components: {
14 dzxx 16 dzxx,fjcl
15 }, 17 },
16 props: {}, 18 props: {},
17 data() { 19 data() {
18 return { 20 return {
19 activeName: "dzxx", 21 activeName: "dzxx",
22 dzJbxxVisble:false,
23 fjclVisible:false
20 }; 24 };
21 }, 25 },
22 methods: { 26 methods: {
23 handleClick(tab, event) { 27 handleClick(tab, event) {
24 console.log(tab, event); 28 switch (tab.name) {
29 case 'dzxx':
30 this.dzJbxxVisble = true;
31 break
32 case 'fjcl':
33 this.fjclVisible = true;
34 break;
35 default:
36 break;
37 }
25 }, 38 },
26 }, 39 },
27 created() {}, 40 created() {},
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
127 this.$store.state.zdbsm = row.glbsm 127 this.$store.state.zdbsm = row.glbsm
128 break; 128 break;
129 case "h": 129 case "h":
130 path = "h"; 130 path = "/h";
131 this.$store.state.hbsm = row.glbsm 131 this.$store.state.hbsm = row.glbsm
132 type = "2"; 132 type = "2";
133 default: 133 default:
......
...@@ -38,11 +38,6 @@ ...@@ -38,11 +38,6 @@
38 <el-tooltip class="item" effect="light" content="定位" placement="top"> 38 <el-tooltip class="item" effect="light" content="定位" placement="top">
39 <i class="iconfont icondingwei iconfontEdit" @click="postionToMap(scope.row)"></i> 39 <i class="iconfont icondingwei iconfontEdit" @click="postionToMap(scope.row)"></i>
40 </el-tooltip> 40 </el-tooltip>
41 <!-- <el-button type="text" size="small"
42 >办理
43 </el-button
44 >
45 <el-button type="text" size="small">定位</el-button> -->
46 </template> 41 </template>
47 </el-table-column> 42 </el-table-column>
48 </el-table> 43 </el-table>
...@@ -52,15 +47,6 @@ ...@@ -52,15 +47,6 @@
52 </el-pagination> 47 </el-pagination>
53 </div> 48 </div>
54 49
55 <el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center>
56 <hbj ref="hbj" :bsm="hbsm" :key="hbsm"></hbj>
57 <div class="btnGroup">
58 <el-button type="primary" @click="hbjSaveInfo">保存</el-button>
59 <el-button type="primary" @click="hbjSubmitInfo">提交</el-button>
60 <el-button type="primary" @click="hbjResetInfo">重置</el-button>
61 <el-button type="primary" @click="hbjVisible = false">取消</el-button>
62 </div>
63 </el-dialog>
64 </div> 50 </div>
65 </div> 51 </div>
66 </template> 52 </template>
...@@ -68,11 +54,10 @@ ...@@ -68,11 +54,10 @@
68 <script> 54 <script>
69 import SearchHead from "../../../components/searchHead/searchHead"; 55 import SearchHead from "../../../components/searchHead/searchHead";
70 import {getSearchList} from "../../../api/search"; 56 import {getSearchList} from "../../../api/search";
71 import hbj from "./../../zrz/lpb/bjlp/hbj/index";
72 57
73 export default { 58 export default {
74 name: "", 59 name: "",
75 components: {SearchHead,hbj}, 60 components: {SearchHead},
76 props: {}, 61 props: {},
77 data() { 62 data() {
78 return { 63 return {
...@@ -82,9 +67,6 @@ ...@@ -82,9 +67,6 @@
82 tableData: [], 67 tableData: [],
83 tableHeight: 0, 68 tableHeight: 0,
84 queryData: {}, 69 queryData: {},
85 hbjVisible: false,
86 hbsm:'',
87 tabPosition: "1", //1是实测 0是预测
88 }; 70 };
89 }, 71 },
90 created() { 72 created() {
...@@ -106,20 +88,6 @@ ...@@ -106,20 +88,6 @@
106 return ""; 88 return "";
107 } 89 }
108 }, 90 },
109 //户保存
110 hbjSaveInfo() {
111 this.$refs.hbj.onSave(this.hbsm, this.tabPosition);
112 this.getData({pageSize:15});
113 },
114 //户提交
115 hbjSubmitInfo() {
116 this.$refs.hbj.onSubmit(this.hbsm, this.tabPosition);
117 this.getData({pageSize:15});
118 },
119 //户编辑表单重置
120 hbjResetInfo() {
121 this.$refs.hbj.onReset();
122 },
123 handleCurrentChange(val) { 91 handleCurrentChange(val) {
124 this.pageNo = val; 92 this.pageNo = val;
125 this.queryData.pageNo = val; 93 this.queryData.pageNo = val;
...@@ -159,17 +127,8 @@ ...@@ -159,17 +127,8 @@
159 case "h": 127 case "h":
160 case "h0": 128 case "h0":
161 case "h1": 129 case "h1":
162 this.hbsm = row.glbsm; 130 path="/h";
163 this.hbjVisible = true; 131 this.$store.state.hbsm=row.glbsm
164 if(row.dylx === "h0"){
165 this.tabPosition = 0;
166 }else {
167 this.tabPosition = 1;
168 }
169 this.$nextTick(()=>{
170 console.log(this.$refs.hbj);
171 this.$refs.hbj.getHInfo(this.hbsm);
172 });
173 break; 132 break;
174 default: 133 default:
175 break; 134 break;
......
1 <template>
2 <div class="content_box">
3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
4 <el-tab-pane label="户基本信息表" name="hjbxx">
5 <hbj :bsm="hbsm"></hbj>
6 </el-tab-pane>
7 <el-tab-pane label="登记簿" name="djb">
8 <djb v-if="djbVisible"></djb>
9 </el-tab-pane>
10 <el-tab-pane label="附件材料" name="fjcl">
11 <fjcl v-if="fjclVisible"></fjcl>
12 </el-tab-pane>
13 </el-tabs>
14 </div>
15 </template>
16
17 <script>
18 import hbj from "./../zrz/lpb/bjlp/hbj/index"
19 import djb from "./../zd/djb/index";
20 import fjcl from "./../zd/fjcl/fjcl"
21
22 export default {
23 name: "index",
24 components: {
25 hbj, djb, fjcl
26 },
27 data() {
28 return {
29 hbsm:this.$store.state.hbsm,
30 activeName: "hjbxx",
31 djbVisible: false,
32 fjclVisible: false,
33 }
34 },
35 mounted() {
36
37 },
38 methods: {
39 handleClick(tab, event) {
40 // console.log(tab, event);
41 switch (tab.name) {
42 case 'djb':
43 this.djbVisible = true;
44 break;
45 case 'fjcl':
46 this.fjclVisible = true;
47 break;
48 default:
49 break;
50 }
51 },
52 },
53 watch: {}
54 }
55 </script>
56
57 <style scoped>
58
59 </style>
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
106 window.open(`/api/file/download?url=`+url); 106 window.open(`/api/file/download?url=`+url);
107 }, 107 },
108 getFileList() { 108 getFileList() {
109 console.log(this.$route.name,'NAME')
109 switch (this.$route.name) { 110 switch (this.$route.name) {
110 case "宗地": 111 case "宗地":
111 this.filesData.dylx = 'zd'; 112 this.filesData.dylx = 'zd';
...@@ -115,6 +116,14 @@ ...@@ -115,6 +116,14 @@
115 this.filesData.dylx = 'zrz'; 116 this.filesData.dylx = 'zrz';
116 this.filesData.glbsm = this.$store.state.zrzbsm 117 this.filesData.glbsm = this.$store.state.zrzbsm
117 break 118 break
119 case "多幢":
120 this.filesData.dylx = 'dz';
121 this.filesData.glbsm = this.$store.state.dzbsm
122 break
123 case "户":
124 this.filesData.dylx = 'h';
125 this.filesData.glbsm = this.$store.state.hbsm
126 break;
118 default: 127 default:
119 break 128 break
120 } 129 }
......
...@@ -391,6 +391,11 @@ ...@@ -391,6 +391,11 @@
391 </tbody> 391 </tbody>
392 </table> 392 </table>
393 </el-form> 393 </el-form>
394 <div class="btnGroup">
395 <el-button type="primary" @click="onSave">保存</el-button>
396 <el-button type="primary" @click="onSubmit">提交</el-button>
397 <el-button type="primary" @click="registerCall">登记调用</el-button>
398 </div>
394 <!-- <div style="min-height: 40px;text-align: center;margin-top: 10px"> 399 <!-- <div style="min-height: 40px;text-align: center;margin-top: 10px">
395 <el-button type="success" @click="onSave">保存</el-button> 400 <el-button type="success" @click="onSave">保存</el-button>
396 <el-button type="primary" @click="onSubmit">提交</el-button> 401 <el-button type="primary" @click="onSubmit">提交</el-button>
...@@ -404,7 +409,7 @@ ...@@ -404,7 +409,7 @@
404 import Qlxz from "./../../../../../components/formMenu/qlxz_simple"; 409 import Qlxz from "./../../../../../components/formMenu/qlxz_simple";
405 import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h"; 410 import {getQjHDetailByBsm,updateQjH} from "./../../../../../api/h";
406 import {getBdcdyh} from "./../../../../../api/zrz"; 411 import {getBdcdyh} from "./../../../../../api/zrz";
407 import {submit} from "./../../../../../api/common" 412 import {submit,registerCall} from "./../../../../../api/common"
408 export default { 413 export default {
409 name:'zrz', 414 name:'zrz',
410 components:{ 415 components:{
...@@ -520,7 +525,24 @@ ...@@ -520,7 +525,24 @@
520 fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量 525 fwjgTitleRowspan:1, //房屋结构的单元格垂直合并数量
521 } 526 }
522 }, 527 },
528 created(){
529 let bsm=this.$store.state.hbsm
530 console.log(bsm,'户BSM')
531 this.getHInfo(bsm);
532 },
523 methods: { 533 methods: {
534 registerCall(){
535 let data={
536 type:'h',
537 bsm:this.$store.state.hbsm
538 }
539 registerCall(data).then(res=>{
540 if (res.success) {
541 this.$message.success("登记成功")
542 this.getRightTree(this.$store.state.zdbsm)
543 }
544 })
545 },
524 addYtInfo(){ 546 addYtInfo(){
525 this.form.fwytList.push({ 547 this.form.fwytList.push({
526 glbsm:'', 548 glbsm:'',
...@@ -675,10 +697,8 @@ ...@@ -675,10 +697,8 @@
675 }) 697 })
676 }, 698 },
677 //保存户信息 699 //保存户信息
678 onSave(bsm,yclx){ 700 onSave(){
679 console.log(bsm); 701 this.form.bsm=this.$store.state.hbsm;
680 console.log(yclx)
681 this.form.bsm=bsm;
682 this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList(); 702 this.form.qlxzList= this.$refs.qlxzModule.getQlxzDataList();
683 if(this.form.scyclx==='0'){ 703 if(this.form.scyclx==='0'){
684 this.form.jzmj = this.form.ycjzmj; 704 this.form.jzmj = this.form.ycjzmj;
...@@ -703,9 +723,9 @@ ...@@ -703,9 +723,9 @@
703 } 723 }
704 }) 724 })
705 }, 725 },
706 onSubmit(bsm,yclx){ 726 onSubmit(){
707 let data={ 727 let data={
708 glbsm:bsm, 728 glbsm:this.$store.state.hbsm,
709 status:1, 729 status:1,
710 type:"h" 730 type:"h"
711 } 731 }
...@@ -818,7 +838,7 @@ ...@@ -818,7 +838,7 @@
818 watch: { 838 watch: {
819 scyclx:{ 839 scyclx:{
820 handler(n){ 840 handler(n){
821 this.$nextTick(()=>{ 841 this.$nextTick(()=>{
822 this.form.scyclx = this.scyclx; 842 this.form.scyclx = this.scyclx;
823 }) 843 })
824 } 844 }
...@@ -828,7 +848,7 @@ ...@@ -828,7 +848,7 @@
828 </script> 848 </script>
829 <style rel="stylesheet/less" lang="less" scoped> 849 <style rel="stylesheet/less" lang="less" scoped>
830 .h { 850 .h {
831 height: 600px; 851 height: 100%;
832 width: 100%; 852 width: 100%;
833 margin-top: 10px; 853 margin-top: 10px;
834 overflow-y: scroll; 854 overflow-y: scroll;
...@@ -872,11 +892,15 @@ ...@@ -872,11 +892,15 @@
872 .hTable{ 892 .hTable{
873 margin-top: 10px; 893 margin-top: 10px;
874 } 894 }
875 895
876 /deep/.el-select-tree{ 896 /deep/.el-select-tree{
877 width: 100%; 897 width: 100%;
878 .el-input__inner{ 898 .el-input__inner{
879 height: 30px !important; 899 height: 30px !important;
880 } 900 }
881 } 901 }
882 </style>
...\ No newline at end of file ...\ No newline at end of file
902 .btnGroup{
903 text-align: center;
904 margin-top: 20px;
905 }
906 </style>
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
4 <el-row class="searchContent"> 4 <el-row class="searchContent">
5 <el-col :span="6"> 5 <el-col :span="6">
6 <el-radio-group v-model="scyclx" @change="scyclxChange"> 6 <el-radio-group v-model="scyclx" @change="scyclxChange">
7 <el-radio-button label="1">实测</el-radio-button>
8 <el-radio-button label="0">预测</el-radio-button> 7 <el-radio-button label="0">预测</el-radio-button>
8 <el-radio-button label="1">实测</el-radio-button>
9 </el-radio-group> 9 </el-radio-group>
10 <el-input 10 <el-input
11 maxlength="28" 11 maxlength="28"
...@@ -257,13 +257,6 @@ ...@@ -257,13 +257,6 @@
257 <!-- 双击户的弹出框 --> 257 <!-- 双击户的弹出框 -->
258 <el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center> 258 <el-dialog title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="70%" center>
259 <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj> 259 <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx"></hbj>
260 <div class="btnGroup">
261 <el-button type="primary" @click="hbjSaveInfo">保存</el-button>
262 <el-button type="primary" @click="hbjSubmitInfo">提交</el-button>
263 <el-button type="primary" @click="hbjResetInfo">重置</el-button>
264 <el-button type="primary" @click="hbjVisible = false">取消</el-button>
265 <el-button type="primary" @click="registerCall">登记调用</el-button>
266 </div>
267 </el-dialog> 260 </el-dialog>
268 </div> 261 </div>
269 </template> 262 </template>
...@@ -281,7 +274,6 @@ import addZdy from "./zdy/index"; ...@@ -281,7 +274,6 @@ import addZdy from "./zdy/index";
281 import addCh from "./ch/index"; 274 import addCh from "./ch/index";
282 import hbj from "./hbj/index"; 275 import hbj from "./hbj/index";
283 import lpbContent from "./lpbContent/index"; 276 import lpbContent from "./lpbContent/index";
284 import {registerCall} from "../../../../api/common";
285 import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "../../../../api/lpb"; 277 import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "../../../../api/lpb";
286 278
287 export default { 279 export default {
...@@ -312,7 +304,7 @@ export default { ...@@ -312,7 +304,7 @@ export default {
312 plzlVisible: false, 304 plzlVisible: false,
313 hbjVisible: false, 305 hbjVisible: false,
314 hcxlzVisible:false, 306 hcxlzVisible:false,
315 scyclx: "1", //1是实测 0是预测 307 scyclx: "0", //1是实测 0是预测
316 radio1: "", 308 radio1: "",
317 radio2: "", 309 radio2: "",
318 createFlag: false, 310 createFlag: false,
...@@ -406,18 +398,6 @@ export default { ...@@ -406,18 +398,6 @@ export default {
406 }, 100); 398 }, 100);
407 }, 399 },
408 methods: { 400 methods: {
409 registerCall(){
410 let data={
411 type:'h',
412 bsm:this.hbsm
413 }
414 registerCall(data).then(res=>{
415 if (res.success) {
416 this.$message.success("登记成功")
417 this.getRightTree(this.$store.state.zdbsm)
418 }
419 })
420 },
421 batchCommit(){ 401 batchCommit(){
422 if (this.bsms.length <= 0) { 402 if (this.bsms.length <= 0) {
423 Message.warning("请选择操作户") 403 Message.warning("请选择操作户")
...@@ -604,18 +584,6 @@ export default { ...@@ -604,18 +584,6 @@ export default {
604 }); 584 });
605 } 585 }
606 }, 586 },
607 //户保存
608 hbjSaveInfo() {
609 this.$refs.hbj.onSave(this.bsms[this.bsms.length - 1], this.tabPosition);
610 },
611 //户保存
612 hbjSubmitInfo() {
613 this.$refs.hbj.onSubmit(this.bsms[this.bsms.length - 1], this.tabPosition);
614 },
615 //户编辑表单重置
616 hbjResetInfo() {
617 this.$refs.hbj.onReset();
618 },
619 //调用楼盘表信息查询接口 587 //调用楼盘表信息查询接口
620 getlpbData() { 588 getlpbData() {
621 this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm); 589 this.$refs.lpbContent.getLpb(this.$store.state.zrzbsm);
...@@ -648,6 +616,7 @@ export default { ...@@ -648,6 +616,7 @@ export default {
648 // this.$refs.lpbContent.clearChoosedH(); 616 // this.$refs.lpbContent.clearChoosedH();
649 this.$nextTick(()=>{ 617 this.$nextTick(()=>{
650 //给hBsmList传值 618 //给hBsmList传值
619 // console.log(bsms,'bsms');
651 this.$refs.lpbContent.choosedList = bsms; 620 this.$refs.lpbContent.choosedList = bsms;
652 this.$refs.lpbContent.borderColor = color; 621 this.$refs.lpbContent.borderColor = color;
653 }) 622 })
......
...@@ -681,6 +681,8 @@ export default { ...@@ -681,6 +681,8 @@ export default {
681 //父组件中选择单元状态改变选中户的边框颜色 681 //父组件中选择单元状态改变选中户的边框颜色
682 choosedList(n) { 682 choosedList(n) {
683 this.$refs.hBsm.forEach((item) => { 683 this.$refs.hBsm.forEach((item) => {
684 // console.log(item.dataset.bsm,'item.dataset.bsm');
685 // console.log(this.choosedList,'this.choosedList');
684 this.choosedList.forEach((i) => { 686 this.choosedList.forEach((i) => {
685 if (item.dataset.bsm == i) { 687 if (item.dataset.bsm == i) {
686 console.log(item.style.borderColor ,'item.style.borderColor '); 688 console.log(item.style.borderColor ,'item.style.borderColor ');
......