index.vue
4.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<template>
<!-- <div class="content_box"> -->
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
<el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
<el-tab-pane label="分类调查表" name="fldcb" v-if="isFldc"
><fldcb
v-if="fldbcVisible"
:qlr="qlr"
:bdcdyh="bdcdyh"
:zddm="zddm"
></fldcb
></el-tab-pane>
<el-tab-pane
label="土地承包经营权、农用地其他使用权调查表"
name="tdcb"
v-if="isTdcb"
><tdcb :bdcdyh="bdcdyh" :zddm="zddm" lazy></tdcb
></el-tab-pane>
<el-tab-pane label="面积分摊表" name="mjftb"
><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb
></el-tab-pane>
<el-tab-pane label="界址点" name="jzd">
<jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd>
</el-tab-pane>
<el-tab-pane label="界址线" name="jzx">
<jzx v-if="jzxVisible" :is-disabled="isDisabled"></jzx>
</el-tab-pane>
<el-tab-pane label="登记簿" name="djb"
><djb v-if="djbVisible"></djb
></el-tab-pane>
<el-tab-pane label="历史回溯" name="lshs"
><lshs v-if="lshsVisible" :type="type" :bsm="$route.query.bsm"></lshs
></el-tab-pane>
<el-tab-pane label="附件材料" name="fjcl">
<fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl>
</el-tab-pane>
<el-tab-pane
label="流程跟踪"
name="lcgz"
v-if="$store.state.isWorkFlow || $store.state.lcgzShow"
lazy
>
<lcgz ref="lcgz"></lcgz>
</el-tab-pane>
</el-tabs>
<!-- </div> -->
</template>
<script>
import zddcb from "./zddcb";
import mjftb from "./mjftb";
import jzd from "./jzd";
import jzx from "./jzx";
import djb from "./djb";
import lshs from "./lshs";
import fjcl from "./fjcl/fjcl";
import Lcgz from "./lcgz";
import { queryStatus } from "@api/search";
import Fldcb from "./fldcb";
import Tdcb from "./tdcb";
import { getQjZdjbxxDetailById } from "@api/zd";
export default {
name: "",
components: {
zddcb,
mjftb,
jzd,
jzx,
djb,
lshs,
fjcl,
Fldcb,
Lcgz,
Tdcb,
//zddcb,mjftb,jzd,jzx,djb,lshs,fjcl,Lcgz
},
props: {},
data() {
return {
qlr: "",
bdcdyh: "",
zddm: "",
isFldc: false,
isTdcb: false,
isDisabled: false,
activeName: "djdcb",
mjftbVisible: false,
jzdVisible: false,
fldbcVisible: false,
jzxVisible: false,
djbVisible: false,
lshsVisible: false,
fjclVisible: false,
type: "zd",
};
},
methods: {
getZdData(bsm) {
getQjZdjbxxDetailById(bsm).then((res) => {
if (res.success) {
console.log(res, "宗地信息");
this.isFldc = res.result.zdtzmbsm === "PSHGSBDCQJDC000000000000DC440010";
this.isTdcb = res.result.zdtzmbsm === ("PSHGSBDCQJDC000000000000DC440060" || "PSHGSBDCQJDC000000000000DC440070" ||"PSHGSBDCQJDC000000000000DC440080");
}
});
},
loadingStatus() {
let bsm = this.$route.query.bsm;
queryStatus(bsm).then((res) => {
if (res.success) {
let qszt = res.result.qszt;
this.qlr = res.result.qlrmc;
this.zddm = res.result.zddm;
this.bdcdyh = res.result.bdcdyh;
console.log(this.qlr, "权利人");
this.isDisabled = +qszt !== 0;
}
});
},
/* loading(){
console.log("附件材料是否禁用")
this.$refs.fjcl.isUpload(this.$store.state.zdbsm)
},*/
handleClick(tab, event) {
// console.log(tab, event);
this.loadingStatus();
switch (tab.name) {
case "mjftb":
this.mjftbVisible = true;
break;
case "fldcb":
this.fldbcVisible = true;
break;
case "jzd":
this.jzdVisible = true;
break;
case "jzx":
this.jzxVisible = true;
break;
case "djb":
this.djbVisible = true;
break;
case "lshs":
this.lshsVisible = true;
break;
case "fjcl":
this.fjclVisible = true;
break;
default:
break;
}
},
},
created() {},
mounted() {
this.getZdData(this.$store.state.zdbsm);
this.loadingStatus();
},
computed: {
zdbsm() {
return this.$route.query.bsm;
},
},
watch: {
zdbsm: function(val) {
this.getZdData(val);
this.loadingStatus();
},
},
};
</script>
<style scoped lang="less">
.el-tab-pane {
overflow-y: scroll;
height: 100%;
}
</style>