readmeter-changan 1.0.40 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +5 -6
- package/package.json +1 -1
- package/src/components/readingmeter/CheckInfo.vue +13 -2
- package/src/components/readingmeter/CheckOnline.vue +32 -32
- package/src/components/readingmeter/PhoneHandplanInfo.vue +11 -2
- package/src/components/readingmeter/UserInfo.vue +220 -219
- package/src/components/server/ReadMeterHome.vue +214 -208
- package/src/components/server/ReadMeterNavBottom.vue +123 -123
|
@@ -1,208 +1,214 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="bg-white "style="overflow: hidden;">
|
|
3
|
-
<div class="top" style="height: 0%">
|
|
4
|
-
<readmeter-top v-if='showTop' :toptext='pageName'></readmeter-top>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="row "style="height: 100%;" >
|
|
7
|
-
<route v-ref:route :reuse="reuse" name="handplanlist"></route>
|
|
8
|
-
</div>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
<script>
|
|
12
|
-
import Vue from 'vue'
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
title: 'home',
|
|
16
|
-
data () {
|
|
17
|
-
return {
|
|
18
|
-
model: {
|
|
19
|
-
selectstreet:{
|
|
20
|
-
f_userinfo_code: '',
|
|
21
|
-
f_userinfo_id: '',
|
|
22
|
-
f_user_name: '',
|
|
23
|
-
f_address: '',
|
|
24
|
-
f_meternumber: '',
|
|
25
|
-
startDate: '',
|
|
26
|
-
endDate: '',
|
|
27
|
-
name:'',
|
|
28
|
-
returnData: [],
|
|
29
|
-
gasArr: [],
|
|
30
|
-
streetArr:[],
|
|
31
|
-
pointArr: [],
|
|
32
|
-
handinfo: [],
|
|
33
|
-
show: false,
|
|
34
|
-
f_street: '',
|
|
35
|
-
f_gas_area: '',
|
|
36
|
-
f_point_name: '',
|
|
37
|
-
gasArr: [],
|
|
38
|
-
pointArr: [],
|
|
39
|
-
handcount: 0,
|
|
40
|
-
f_point_name: ''
|
|
41
|
-
},
|
|
42
|
-
selectuser:{},
|
|
43
|
-
f_userinfo_code: '',
|
|
44
|
-
f_userinfo_id: '',
|
|
45
|
-
f_user_name: '',
|
|
46
|
-
f_address: '',
|
|
47
|
-
f_meternumber: '',
|
|
48
|
-
startDate: '',
|
|
49
|
-
endDate: ''
|
|
50
|
-
},
|
|
51
|
-
reuse:true,
|
|
52
|
-
pageName: '',
|
|
53
|
-
name:'',
|
|
54
|
-
showback: 'false',
|
|
55
|
-
nowPage: 'home-page',
|
|
56
|
-
showTop: false
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
events: {
|
|
60
|
-
'menu' (param) {
|
|
61
|
-
this.showTop = true
|
|
62
|
-
this.pageName = param
|
|
63
|
-
if (param === '计划下载') {
|
|
64
|
-
this.name = 'plan-down'
|
|
65
|
-
this
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
this
|
|
69
|
-
|
|
70
|
-
this.name
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.name = '
|
|
74
|
-
this.$refs.route.init(
|
|
75
|
-
} else if (param === '
|
|
76
|
-
this.
|
|
77
|
-
this
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
this.
|
|
81
|
-
this
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
this
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
this
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
window.currentPage = '
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
this.name = 'phone-hand-home'
|
|
113
|
-
this.$refs.route.init('phone-hand-home', {param: val, type: param,show:
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
this.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
this.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
this.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
this.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
this.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
// this.$dispatch('
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="bg-white "style="overflow: hidden;">
|
|
3
|
+
<div class="top" style="height: 0%">
|
|
4
|
+
<readmeter-top v-if='showTop' :toptext='pageName'></readmeter-top>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="row "style="height: 100%;" >
|
|
7
|
+
<route v-ref:route :reuse="reuse" name="handplanlist"></route>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
<script>
|
|
12
|
+
import Vue from 'vue'
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
title: 'home',
|
|
16
|
+
data () {
|
|
17
|
+
return {
|
|
18
|
+
model: {
|
|
19
|
+
selectstreet:{
|
|
20
|
+
f_userinfo_code: '',
|
|
21
|
+
f_userinfo_id: '',
|
|
22
|
+
f_user_name: '',
|
|
23
|
+
f_address: '',
|
|
24
|
+
f_meternumber: '',
|
|
25
|
+
startDate: '',
|
|
26
|
+
endDate: '',
|
|
27
|
+
name:'',
|
|
28
|
+
returnData: [],
|
|
29
|
+
gasArr: [],
|
|
30
|
+
streetArr:[],
|
|
31
|
+
pointArr: [],
|
|
32
|
+
handinfo: [],
|
|
33
|
+
show: false,
|
|
34
|
+
f_street: '',
|
|
35
|
+
f_gas_area: '',
|
|
36
|
+
f_point_name: '',
|
|
37
|
+
gasArr: [],
|
|
38
|
+
pointArr: [],
|
|
39
|
+
handcount: 0,
|
|
40
|
+
f_point_name: ''
|
|
41
|
+
},
|
|
42
|
+
selectuser:{},
|
|
43
|
+
f_userinfo_code: '',
|
|
44
|
+
f_userinfo_id: '',
|
|
45
|
+
f_user_name: '',
|
|
46
|
+
f_address: '',
|
|
47
|
+
f_meternumber: '',
|
|
48
|
+
startDate: '',
|
|
49
|
+
endDate: ''
|
|
50
|
+
},
|
|
51
|
+
reuse:true,
|
|
52
|
+
pageName: '',
|
|
53
|
+
name:'',
|
|
54
|
+
showback: 'false',
|
|
55
|
+
nowPage: 'home-page',
|
|
56
|
+
showTop: false
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
events: {
|
|
60
|
+
'menu' (param) {
|
|
61
|
+
this.showTop = true
|
|
62
|
+
this.pageName = param
|
|
63
|
+
if (param === '计划下载') {
|
|
64
|
+
this.name = 'plan-down'
|
|
65
|
+
this.reuse = true
|
|
66
|
+
this.$refs.route.init(this.name)
|
|
67
|
+
}else if (param === '临时周检') {
|
|
68
|
+
this.name = 'check-online'
|
|
69
|
+
this.reuse = false
|
|
70
|
+
this.$refs.route.init(this.name)
|
|
71
|
+
} else if (param === '表单上传') {
|
|
72
|
+
this.reuse = true
|
|
73
|
+
this.name = 'plan-update'
|
|
74
|
+
this.$refs.route.init(this.name)
|
|
75
|
+
} else if (param === '抄表管理') {
|
|
76
|
+
this.reuse = true
|
|
77
|
+
this.name = 'read-meter'
|
|
78
|
+
this.$refs.route.init('read-meter',{data:this.model.selectstreet})
|
|
79
|
+
} else if (param === '抄表记录') {
|
|
80
|
+
this.reuse = true
|
|
81
|
+
this.name = 'read-meter-info'
|
|
82
|
+
this.$refs.route.init('read-meter-info')
|
|
83
|
+
} else {
|
|
84
|
+
this.reuse = true
|
|
85
|
+
this.showTop = false
|
|
86
|
+
this.name = 'home'
|
|
87
|
+
this.$refs.route.init('home')
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
'changepage' (val, param) {
|
|
91
|
+
console.log(val)
|
|
92
|
+
if (param === 'save') {
|
|
93
|
+
window.currentPage = '抄表录入'
|
|
94
|
+
this.name = 'phone-hand-home'
|
|
95
|
+
this.$refs.route.init('phone-hand-home', {data: val, type: param})
|
|
96
|
+
}else if (param === 'onlinecheck') {
|
|
97
|
+
//选择用气点
|
|
98
|
+
window.currentPage = '临时周检'
|
|
99
|
+
this.name = 'phone-hand-home'
|
|
100
|
+
this.$refs.route.init('phone-hand-home', {param: val, type: param})
|
|
101
|
+
} else if (param === 'selectpoint') {
|
|
102
|
+
//选择用气点
|
|
103
|
+
window.currentPage = '选择用气点'
|
|
104
|
+
this.name = 'read-meter-changan'
|
|
105
|
+
this.$refs.route.init('read-meter-changan', {param: val, type: param})
|
|
106
|
+
} else if (param === 'selectuser') {
|
|
107
|
+
//选择用户
|
|
108
|
+
// window.alert('选择用户')
|
|
109
|
+
window.currentPage = '选择用户'
|
|
110
|
+
|
|
111
|
+
console.log('传入的信息'+ JSON.stringify(val))
|
|
112
|
+
this.name = 'phone-hand-home'
|
|
113
|
+
this.$refs.route.init('phone-hand-home', {param: val, type: param,show:true})
|
|
114
|
+
}else if (param === 'hadupload') {
|
|
115
|
+
//选择用户
|
|
116
|
+
// console.log('查看用户')
|
|
117
|
+
window.currentPage = '已上传'
|
|
118
|
+
this.name = 'phone-hand-home'
|
|
119
|
+
this.$refs.route.init('phone-hand-home', {param: val, type: param,show:false})
|
|
120
|
+
}
|
|
121
|
+
else if (param === 'waitupload') {
|
|
122
|
+
//选择用户
|
|
123
|
+
// console.log('查看用户')
|
|
124
|
+
window.currentPage = '待上传'
|
|
125
|
+
this.name = 'phone-hand-home'
|
|
126
|
+
this.$refs.route.init('phone-hand-home', {param: val, type: param,show:false})
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
window.currentPage = undefined
|
|
130
|
+
this.name = 'phone-hand-home'
|
|
131
|
+
this.$refs.route.init('phone-hand-home', {param: val, type: param})
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
'returnPage' () {
|
|
135
|
+
console.log('当前页面' + window.currentPage)
|
|
136
|
+
if (window.currentPage && window.currentPage === '抄表录入') {
|
|
137
|
+
this.showTop = true
|
|
138
|
+
this.pageName = '抄表管理'
|
|
139
|
+
window.currentPage = undefined
|
|
140
|
+
this.$refs.route.init('read-meter')
|
|
141
|
+
return
|
|
142
|
+
}
|
|
143
|
+
if (window.currentPage && window.currentPage === '临时周检') {
|
|
144
|
+
this.showTop = true
|
|
145
|
+
this.pageName = '临时周检'
|
|
146
|
+
window.currentPage = undefined
|
|
147
|
+
this.$refs.route.init('check-online')
|
|
148
|
+
return
|
|
149
|
+
}
|
|
150
|
+
if (window.currentPage && window.currentPage === '选择用气点') {
|
|
151
|
+
this.showTop = true
|
|
152
|
+
this.pageName = '选择用气点'
|
|
153
|
+
window.currentPage = undefined
|
|
154
|
+
this.$refs.route.init('read-meter',{data:this.model.selectstreet})
|
|
155
|
+
|
|
156
|
+
return
|
|
157
|
+
}
|
|
158
|
+
if (window.currentPage && window.currentPage === '选择用户') {
|
|
159
|
+
this.showTop = true
|
|
160
|
+
this.pageName = '选择用户'
|
|
161
|
+
window.currentPage = '选择用气点'
|
|
162
|
+
this.$refs.route.init('read-meter-changan',{param:this.model.selectstreet})
|
|
163
|
+
this.$refs.route.remove('phone-hand-home')
|
|
164
|
+
return
|
|
165
|
+
}
|
|
166
|
+
if (window.currentPage && window.currentPage === '已上传') {
|
|
167
|
+
this.showTop = true
|
|
168
|
+
this.pageName = '抄表记录查看'
|
|
169
|
+
window.currentPage = ''
|
|
170
|
+
this.$refs.route.init('read-meter-info',{f_meter_state:'已抄表'})
|
|
171
|
+
this.$refs.route.remove('phone-hand-home')
|
|
172
|
+
return
|
|
173
|
+
}
|
|
174
|
+
if (window.currentPage && window.currentPage === '待上传') {
|
|
175
|
+
this.showTop = true
|
|
176
|
+
this.pageName = '抄表记录查看'
|
|
177
|
+
window.currentPage = ''
|
|
178
|
+
this.name = 'read-meter-info'
|
|
179
|
+
this.$refs.route.init('read-meter-info',{f_meter_state:'待上传'})
|
|
180
|
+
this.$refs.route.remove('phone-hand-home')
|
|
181
|
+
return
|
|
182
|
+
}
|
|
183
|
+
// this.$dispatch('hideFullPage')
|
|
184
|
+
this.showTop = false
|
|
185
|
+
this.name = 'readmeter-homepage'
|
|
186
|
+
this.$refs.route.init('readmeter-homepage')
|
|
187
|
+
},
|
|
188
|
+
'hand-success' (type) {
|
|
189
|
+
// this.$dispatch('showFullPage')
|
|
190
|
+
HostApp.alert('抄表成功')
|
|
191
|
+
if (type === 'save') {
|
|
192
|
+
this.name = 'read-meter'
|
|
193
|
+
this.$refs.route.init('read-meter',null)
|
|
194
|
+
} else {
|
|
195
|
+
this.name = 'read-meter-info'
|
|
196
|
+
this.$refs.route.init('read-meter-info',null)
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
ready () {
|
|
201
|
+
this.name = 'readmeter-homepage'
|
|
202
|
+
this.$refs.route.init('readmeter-homepage',null)
|
|
203
|
+
this.showTop = false
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
</script>
|
|
207
|
+
<style>
|
|
208
|
+
.have_top {
|
|
209
|
+
padding-top: 60px;
|
|
210
|
+
}
|
|
211
|
+
/*.content{*/
|
|
212
|
+
|
|
213
|
+
/*}*/
|
|
214
|
+
</style>
|