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