ywsq.vue
5.93 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<template>
<div class="ywsq">
<div class="ywsq-left">
<p v-for="(item, index) in leftList" @click="handleleftTitle(index)" :key="index"
:class="{ 'active': n == index }">{{ item }}</p>
<el-collapse disabled v-model="activeNames">
<el-collapse-item title="业务申请" name="1">
<ul class="item-list">
<li v-for="(obj, key) in list" :key="key" @click="handleList(list, obj)" :class="obj.check ? 'active' : ''">
{{ obj.nodename }}</li>
</ul>
</el-collapse-item>
</el-collapse>
</div>
<!-- right -->
<div class="ywsq-right">
<div class="right-type el-card box-card is-always-shadow" v-if="n == -1">
<div class="right-title">登记类型</div>
<ul class="type-content">
<li :class="item.select ? 'cactive' : ''" @click="handleDjlxSelect(item)" v-for="(item, index) in djlxList"
:key="index">
<p>
{{ item.nodename }}
</p>
<p v-if="item.sffqlc == 1" :class="item.select ? 'active' : ''">
<i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i>
</p>
</li>
</ul>
</div>
<div class="right-situation el-card box-card is-always-shadow">
<div v-if="n >= 0">
<div class="right-title">业务列表</div>
<ul>
<li v-for="(item, index) in ywList" :key="index" @click="handleSelectYw(item, ywList)"
:class="item.cselect ? 'cactive' : ''">
<p>
{{ item.nodename }}
</p>
<p v-if="item.sffqlc == 1" :class="item.select ? 'active' : ''" @click="handleCollection(item)">
<i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i>
</p>
</li>
</ul>
</div>
<div v-if="n == -1">
<div class="right-title">登记情形</div>
<ul class="registration">
<li v-for="(item, index) in djqxList" @click="handleSelectYw(item, djqxList)"
:class="item.cselect ? 'cactive' : ''" :key="index">
<p>
{{ item.nodename }}
</p>
<p :class="item.select ? 'active' : ''" @click.stop="handleCollection(item)">
<i class="el-icon-star-off" :class="item.select ? 'active' : ''"></i>
</p>
</li>
</ul>
</div>
</div>
<div class="submit-button">
<el-button type="primary" :disabled="btnDisabled" @click="btnClick">选择不动产信息</el-button>
</div>
</div>
<fqsqDialog v-model="isDialog" :bsmSqyw="bsmSqyw" :djywbm="djywbm" :djqxObj = 'djqxObj' />
</div>
</template>
<script>
import { getCollectBiz, getleftMenu, getNextNode } from "@/api/ywbl"
import fqsqDialog from "./components/fqsqDialog/fqsqDialog.vue"
export default {
data () {
return {
n: 0,
activeNames: ['1'],
leftList: [
'常办业务', '一并申请', '补申请',
],
list: [],
djlxList: [],
ywList: [
{
name: '国有建设用地使用权 || 首次登记+ 以出让方式取得',
select: false,
cselect: false,
}
],
djqxList: [],
bsmSqyw: '',
isDialog: false,
btnDisabled: true,
djywbm: '',
djqxObj:{
djqxbm:"",
djqxmc:"",
},
}
},
components: {
fqsqDialog
},
created () {
this.getDataList()
},
methods: {
getDataList () {
getCollectBiz().then(res => {
let { result } = res
this.ywList = result
this.ywList.forEach(item => {
this.$set(item, 'cselect', false)
})
})
getleftMenu().then(res => {
let { result } = res
this.list = result
})
},
handleleftTitle (index) {
this.n = index
this.list.forEach(item => {
if (item.check) item.check = false
})
},
// 业务-登记情形选择
handleSelectYw (item, list) {
list.forEach(item => {
item.cselect = false
})
item.cselect = !item.cselect
this.djqxObj = {
'djqxbm':item.nodecode,
'djqxmc':item.nodename,
}
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
this.djywbm = item.djywbm
}
},
handleList (list, obj) {
this.btnDisabled = true
list.forEach(item => {
if (item.check) item.check = false
})
this.n = -1
this.$set(obj, 'check', true)
this.getNextNode(obj.bsmSqyw)
this.djqxList = []
this.djlxList = []
},
// 获取下个节点类型
getNextNode (bsmSqyw) {
getNextNode(bsmSqyw).then(res => {
if (res.result.djqx) this.djqxList = res.result.djqx
if (res.result.djlx) this.djlxList = res.result.djlx
this.djqxList.forEach(item => {
this.$set(item, 'cselect', false)
})
})
},
handleCollection (item) {
item.select = !item.select
},
handleSelect (item) {
this.busList.forEach(item => {
item.cselect = false
})
item.cselect = !item.cselect
},
// 登记类型
handleDjlxSelect (item) {
console.log(item, 'itemitem');
this.btnDisabled = true
this.djlxList.forEach(item => {
if (item.select) item.select = false
})
this.$set(item, 'select', true)
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
this.djywbm = item.djywbm
} else {
this.getNextNode(item.bsmSqyw)
}
this.djqxList = []
},
// 选择不动产信息
btnClick () {
this.isDialog = true
},
loadView (view) {
return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`)))
},
}
}
</script>
<style scoped lang='scss'>
@import "~@/styles/mixin.scss";
@import './ywsq.scss';
</style>