readmeter-changan 1.0.39 → 1.0.42

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.
@@ -1,192 +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.$refs.route.init(this.name)
66
- } else if (param === '表单上传') {
67
- this.name = 'plan-update'
68
- this.$refs.route.init(this.name)
69
- } else if (param === '抄表管理') {
70
- this.name = 'read-meter'
71
- this.$refs.route.init('read-meter',{data:this.model.selectstreet})
72
- } else if (param === '抄表记录') {
73
- this.name = 'read-meter-info'
74
- this.$refs.route.init('read-meter-info')
75
- } else {
76
- this.showTop = false
77
- this.name = 'home'
78
- this.$refs.route.init('home')
79
- }
80
- },
81
- 'changepage' (val, param) {
82
- if (param === 'save') {
83
- window.currentPage = '抄表录入'
84
- this.name = 'phone-hand-home'
85
- this.$refs.route.init('phone-hand-home', {data: val, type: param})
86
- } else if (param === 'selectpoint') {
87
- //选择用气点
88
- window.currentPage = '选择用气点'
89
- this.name = 'read-meter-changan'
90
- this.$refs.route.init('read-meter-changan', {param: val, type: param})
91
- } else if (param === 'selectuser') {
92
- //选择用户
93
- // window.alert('选择用户')
94
- window.currentPage = '选择用户'
95
-
96
- console.log('传入的信息'+ JSON.stringify(val))
97
- this.name = 'phone-hand-home'
98
- this.$refs.route.init('phone-hand-home', {param: val, type: param,show:true})
99
- }else if (param === 'hadupload') {
100
- //选择用户
101
- // console.log('查看用户')
102
- window.currentPage = '已上传'
103
- this.name = 'phone-hand-home'
104
- this.$refs.route.init('phone-hand-home', {param: val, type: param,show:false})
105
- }
106
- else if (param === 'waitupload') {
107
- //选择用户
108
- // console.log('查看用户')
109
- window.currentPage = '待上传'
110
- this.name = 'phone-hand-home'
111
- this.$refs.route.init('phone-hand-home', {param: val, type: param,show:false})
112
- }
113
- else {
114
- window.currentPage = undefined
115
- this.name = 'phone-hand-home'
116
- this.$refs.route.init('phone-hand-home', {param: val, type: param})
117
- }
118
- },
119
- 'returnPage' () {
120
- console.log('当前页面' + window.currentPage)
121
- if (window.currentPage && window.currentPage === '抄表录入') {
122
- this.showTop = true
123
- this.pageName = '抄表管理'
124
- window.currentPage = undefined
125
- this.$refs.route.init('read-meter')
126
- return
127
- }
128
- if (window.currentPage && window.currentPage === '选择用气点') {
129
- this.showTop = true
130
- this.pageName = '选择用气点'
131
- window.currentPage = undefined
132
- this.$refs.route.init('read-meter',{data:this.model.selectstreet})
133
-
134
- return
135
- }
136
- if (window.currentPage && window.currentPage === '选择用户') {
137
- this.showTop = true
138
- this.pageName = '选择用户'
139
- window.currentPage = '选择用气点'
140
- this.$refs.route.init('read-meter-changan',{param:this.model.selectstreet})
141
- this.$refs.route.remove('phone-hand-home')
142
- return
143
- }
144
- if (window.currentPage && window.currentPage === '已上传') {
145
- this.showTop = true
146
- this.pageName = '抄表记录查看'
147
- window.currentPage = ''
148
- this.$refs.route.init('read-meter-info',{f_meter_state:'已抄表'})
149
- this.$refs.route.remove('phone-hand-home')
150
- return
151
- }
152
- if (window.currentPage && window.currentPage === '待上传') {
153
- this.showTop = true
154
- this.pageName = '抄表记录查看'
155
- window.currentPage = ''
156
- this.name = 'read-meter-info'
157
- this.$refs.route.init('read-meter-info',{f_meter_state:'待上传'})
158
- this.$refs.route.remove('phone-hand-home')
159
- return
160
- }
161
- // this.$dispatch('hideFullPage')
162
- this.showTop = false
163
- this.name = 'readmeter-homepage'
164
- this.$refs.route.init('readmeter-homepage')
165
- },
166
- 'hand-success' (type) {
167
- // this.$dispatch('showFullPage')
168
- HostApp.alert('抄表成功')
169
- if (type === 'save') {
170
- this.name = 'read-meter'
171
- this.$refs.route.init('read-meter',null)
172
- } else {
173
- this.name = 'read-meter-info'
174
- this.$refs.route.init('read-meter-info',null)
175
- }
176
- }
177
- },
178
- ready () {
179
- this.name = 'readmeter-homepage'
180
- this.$refs.route.init('readmeter-homepage',null)
181
- this.showTop = false
182
- }
183
- }
184
- </script>
185
- <style>
186
- .have_top {
187
- padding-top: 60px;
188
- }
189
- /*.content{*/
190
-
191
- /*}*/
192
- </style>
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>