system-phone 3.0.15 → 3.0.16

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,397 +1,442 @@
1
- <template>
2
- <div class="nav-bgcolor">
3
- <div class="auto">
4
- <div class="row nav-bgcolor" >
5
- <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
6
- <img class="imgs" :src="imgback(tab.name)">
7
- <div class="badge"
8
- v-show="isshowTag&&tab.num&&tab.num>0"
9
- ><div class="badge-content">{{tab.num>99?'99+':tab.num}}</div></div>
10
- <p></p>
11
- <p class="pagesfoot">{{tab.name}}</p>
12
-
13
- <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
14
- <p></p>
15
- </div>
16
- </div>
17
- <!--<div class="row" style="overflow:auto;">-->
18
- <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
19
- <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
20
- <!--</div>-->
21
- </div>
22
- <validator name="v">
23
- <modal
24
- v-if="showModal"
25
- :show.sync="showModal"
26
- backdrop="false"
27
- title="工程类型"
28
- cancel-text="取消"
29
- ok-text="确认"
30
- :callback="apply"
31
- >
32
- <div class="form-horizontal" slot="modal-body">
33
- <div class="row form-group app-input" style="margin: 10px auto">
34
- <label class="">报建类型:</label>
35
- <div class="col-sm-8">
36
- <v-select
37
- v-model="applyType"
38
- placeholder='请选择需要发起的工程类型'
39
- :value.sync="applyType"
40
- :options='applyTypes'
41
- :value-single="true"
42
- class="select select_list"
43
- :search="false"
44
- close-on-select ></v-select>
45
- </div>
46
- </div>
47
- </div>
48
- </modal>
49
- </validator>
50
- </div>
51
- </template>
52
-
53
- <script scoped>
54
- import Vue from 'vue'
55
- import * as Util from '../Util'
56
- import {HttpResetClass} from "vue-client";
57
- export default {
58
- title: '待办工作导航',
59
- data() {
60
- return {
61
- titleName: '待办工作',
62
- showModal: false,
63
- isMenu: true,
64
- isshowTag:false,
65
- tabs: [],
66
- text: '导航组件this',
67
- beforeName: '待办工作',
68
- componentName: 'repair-first',
69
- sourcet: '竖屏',
70
- applyType: '', // 报建类型
71
- // applyTypes:this.$appdata.getParam("手机报建类型"),
72
- applyTypes: [{label: '散户报建', value: '散户报建'}, {label: '工商户报建', value: '工商户报建'}, {
73
- label: '团购报建',
74
- value: '团购报建'
75
- }, {label: '改管报建', value: '改管报建'}, {label: '增容报建', value: '增容报建'}, {
76
- label: '退款报建',
77
- value: '退款报建'
78
- }, {label: '团购转散户', value: '团购转散户'}, {label: '报警器报建', value: '报警器报建'}, {label: '工商业报警器报建', value: '工商业报警器报建'}],
79
-
80
- }
81
- },
82
- ready () {
83
- this.getNoTagTabs()
84
- },
85
-
86
- methods: {
87
- click (row) {
88
- let _this = this
89
- this.$dispatch('gotoson', {
90
- _this: _this,
91
- title: row.defname,
92
- safe: true
93
- })
94
- this.$goto('app-service-control', {selectdata: row})
95
- },
96
- async getProcessId(processname) {
97
- let data = {
98
- workname: processname
99
- }
100
- let http = new HttpResetClass()
101
- let res = await http.load(
102
- 'POST',
103
- `${this.$androidUtil.getProxyUrl()}/rs/logic/getProcessId`,
104
- {data: data},
105
- {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
106
- )
107
-
108
- return res.data
109
- },
110
- async apply () {
111
- if (this.applyType === '' || this.applyType === null) {
112
- this.$showAlert('请选择需要发起的类型', 'warning', 3000)
113
- return
114
- }
115
- let data = {
116
- f_apply_type: this.applyType
117
- }
118
- if (this.applyType === '散户报建') {
119
- data.processname = '散户报建流程'
120
- data.defname = '报装申请'
121
- } else if (this.applyType === '工商户报建') {
122
- data.processname = '工商户报建流程'
123
- data.defname = '报装申请'
124
- } else if (this.applyType === '改管报建') {
125
- data.processname = '改管报建流程'
126
- data.defname = '报装申请'
127
- } else if (this.applyType === '增容报建') {
128
- data.processname = '增容报建流程'
129
- data.defname = '报装申请'
130
- } else if (this.applyType === '团购报建') {
131
- data.processname = '团购报建流程'
132
- data.defname = '报装申请'
133
- } else if (this.applyType === '退款报建') {
134
- data.processname = '退款报建流程'
135
- data.defname = '终止报建'
136
- } else if (this.applyType === '团购转散户') {
137
- data.processname = '团购转散户报建流程'
138
- data.defname = '信息确认'
139
- }else if (this.applyType === '报警器报建') {
140
- data.processname = '报警器报建流程'
141
- data.defname = '报装申请'
142
- }else if (this.applyType === '工商业报警器报建') {
143
- data.processname = '工商业报警器报建流程'
144
- data.defname = '报装申请'
145
- } else {
146
- this.$showMessage('暂无此类报装')
147
- return
148
- }
149
-
150
- data.f_sub_state = "新增"
151
- data.f_apply_source = "线下发起"
152
- data.f_process_id = await this.getProcessId(data.processname)
153
-
154
- // 调用ExplorationUser事件
155
-
156
- this.click(data)
157
- this.applyType = null
158
- this.showModal = false
159
- },
160
- // 查询本地所有待办
161
- getModelSum(){
162
- for(var i = 0;i<this.tabs.length;i++){
163
- if(this.tabs[i].link == 'zhihuan-first' ){
164
- this.getZhihuan()
165
- }
166
- if(this.tabs[i].link == 'repair-first' ){
167
- this.getRepair()
168
- }
169
- if(this.tabs[i].link == 'current-create' ){
170
- this.getSafeCheck()
171
- }
172
- }
173
-
174
- },
175
- getRepair(){
176
- var _this = this;
177
- this.timeoutRepair = window.setInterval(function() {
178
- let result = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
179
- if (result.code === 200) {
180
- console.log('查询得到的代办2' + JSON.stringify(result))
181
- var crv = {
182
- title: '维修待办',
183
- sum: result.data.length
184
- }
185
- _this.changesum(crv)
186
- }
187
- }, 6000)
188
- },
189
- getSafeCheck(){
190
- var _this = this;
191
- this.timeoutRepair = window.setInterval(function() {
192
- let result = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
193
- if (result.code === 200) {
194
- console.log('查询得到的安检代办' + JSON.stringify(result))
195
- var crv = {
196
- title: '安检待办',
197
- sum: result.data.length
198
- }
199
- _this.changesum(crv)
200
- }
201
- }, 6000)
202
- },
203
- getZhihuan(){
204
- var _this = this;
205
- this.timeoutZhihuan = window.setInterval(function() {
206
- let result = _this.$androidUtil.path({'alias':`getSubstitMobile`,'data':{condition:'1 = 1'}})
207
- if (result.code === 200) {
208
- console.log('查询得到的代办2' + JSON.stringify(result))
209
- var crv = {
210
- title: '置换待办',
211
- sum: result.data.length
212
- }
213
- _this.changesum(crv)
214
- }
215
- }, 6000)
216
- },
217
- changesum(titdata){
218
- for(var i = 0;i<this.tabs.length;i++){
219
- if(this.tabs[i].name == titdata.title){
220
- this.tabs[i].icon = titdata.sum + '单'
221
- console.log(JSON.stringify(this.tabs[i].icon))
222
- return
223
- }
224
- }
225
- },
226
- getNoTagTabs(){
227
- for(let funs in Vue.functions){
228
- if(Vue.functions[funs].link == 'attend-manage'){
229
- this.$set('tabs',Vue.functions[funs].children)
230
- }
231
- }
232
- this.getTabs()
233
- },
234
- getTabs(){
235
- if (Vue.android) {
236
- if(Vue.config.telephone&&Vue.config.telephone.TipConfig&&Vue.config.telephone.TipConfig.data) {
237
- this.isshowTag = true
238
- const config = Vue.config.telephone.TipConfig.data
239
- const user = Vue.user
240
- console.log("Vue.android" + Vue.android)
241
- const result = this.$androidUtil.syncBzLogic("TipConfig", {data: {config, user}})
242
- if (result.code === 200) {
243
- for (var i = 0; i < this.tabs.length; i++) {
244
- result.result.forEach(ress => {
245
- if (this.tabs[i].link === ress.link) {
246
- this.$set('tabs[' + i + '].num', ress.num)
247
- }
248
- })
249
- }
250
- }
251
- }
252
- } else {
253
- const result = {
254
- "code": 200,
255
- "result": [{"link": "repair-first", "num": 50}, {"link": "current-create", "num": 30}]
256
- }
257
- if (result.code === 200) {
258
- for (var i = 0; i < this.tabs.length; i++) {
259
- result.result.forEach(ress => {
260
- if (this.tabs[i].link === ress.link) {
261
- this.$set('tabs[' + i + '].num', ress.num)
262
- }
263
- })
264
- }
265
- }
266
- }
267
- },
268
- imgback(val){
269
- return require('../assets/'+val+'.png')
270
- },
271
- // 返回主界面
272
- back(){
273
- this.titleName = '主界面'
274
- this.isMenu = true
275
-
276
- },
277
- gotopage(param,title) {
278
- if(title === '工程发起'){
279
- this.showModal = !this.showModal
280
- }else{
281
- console.log('进入子组件')
282
- var prpdata = {
283
- _this:this,
284
- title:title,
285
- safe:false
286
- }
287
- this.$dispatch('gotoson',prpdata)
288
- this.$goto(param,{sourcet:'竖屏',tabname:title},'self',this.getTabs)
289
- }
290
- },
291
- mute () {
292
- HostApp.mute()
293
- }
294
- },
295
- }
296
- </script>
297
- <style lang="less">
298
- .badge-content{
299
- color: #fff;
300
- box-sizing: border-box;
301
- min-width: 8px;
302
- font-size: 9px;
303
- line-height: 12px;
304
- white-space: nowrap;
305
- font-weight: 400;
306
- text-align: center;
307
- }
308
- .badge{
309
- top: 6px;
310
- position: absolute;
311
- max-height: 13px;
312
- min-height: 8px;
313
- //transform: translate(50%,-50%);
314
- right:0;
315
- display: inline-flex;
316
- vertical-align: middle;
317
- box-sizing: content-box;
318
- border-radius: 100px;
319
- background-color: red;
320
- }
321
- .app-input {
322
- label {
323
- float: left;
324
- }
325
- .select {
326
- button {
327
- border: none;
328
- outline: none;
329
- text-align: left;
330
- .btn-placeholder {
331
- color: #ACA899
332
- }
333
- }
334
- }
335
- .datepicker {
336
- .form-control:focus {
337
- border: none!important;
338
- outline: none!important;
339
- -webkit-box-shadow: none;
340
- box-shadow: none;
341
- }
342
- }
343
- }
344
- .tab-befor-img {
345
- content: '';
346
- background-size: 30px;
347
- display: inline-block;
348
- margin-right: 8px;
349
- height: 30px;
350
- width: 30px;
351
- vertical-align: -35%;
352
- }
353
- .pageskuang{
354
- vertical-align:middle;
355
- display:table-cell;
356
- width: 32%;
357
- top:-50%;
358
- margin-top: 1%;
359
- margin-left: 1%;
360
- border:1px solid #e3e3e3;
361
- text-align: center;
362
- background-color: #ffffff;
363
- }
364
- .pgesfoot{
365
- font-size: 14px;
366
- color: #666666;
367
- /* font-family: "Pingfhs";*/
368
- }
369
- .imgs{
370
- width: 35px;
371
- margin-top: 15px;
372
- }
373
- .pages-bgcolor{
374
- text-align: center;
375
- background-color: #f0f0ef;
376
- }
377
- img[src=""],img:not([src]){
378
- opacity: 0;
379
- border:none;
380
- visibility: hidden;
381
- max-width: none;
382
- }
383
-
384
- .manbiankuang{
385
- width: 44%;
386
- margin-top: 15px;
387
- margin-left: 4%;
388
- border:1px solid #e3e3e3;
389
- border-radius:10px 10px 10px 10px;
390
- text-align: center;
391
- background-color: #ffffff;
392
- }
393
-
394
- .nav-bgcolor{
395
- background-color: #ffffff;
396
- }
397
- </style>
1
+ <template>
2
+ <div class="nav-bgcolor">
3
+ <div class="auto">
4
+ <div class="row nav-bgcolor" >
5
+ <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name)">
6
+ <img class="imgs" :src="imgback(tab.name)">
7
+ <div class="badge"
8
+ v-show="isshowTag&&tab.num&&tab.num>0"
9
+ ><div class="badge-content">{{tab.num>99?'99+':tab.num}}</div></div>
10
+ <div class="badge" v-show="tab.name == '抄表待办'">
11
+ <div class="badge-content">{{ meterNum?meterNum:0 }}</div>
12
+ </div>
13
+ <p></p>
14
+ <p class="pagesfoot">{{tab.name}}</p>
15
+
16
+ <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
17
+ <p></p>
18
+ </div>
19
+ </div>
20
+ <!--<div class="row" style="overflow:auto;">-->
21
+ <!--<repair-first v-show="componentName == 'repair-first'" worktype="报修单" :sourcet="sourcet" tabname="维修待办" v-on:changesum="changesum"></repair-first>-->
22
+ <!--<zhihuan-first v-show="componentName == 'zhihuan-first'" worktype="置换通气单" :sourcet="sourcet" tabname="置换待办" v-on:changesum="changesum"></zhihuan-first>-->
23
+ <!--</div>-->
24
+ </div>
25
+ <validator name="v">
26
+ <modal
27
+ v-if="showModal"
28
+ :show.sync="showModal"
29
+ backdrop="false"
30
+ title="工程类型"
31
+ cancel-text="取消"
32
+ ok-text="确认"
33
+ :callback="apply"
34
+ >
35
+ <div class="form-horizontal" slot="modal-body">
36
+ <div class="row form-group app-input" style="margin: 10px auto">
37
+ <label class="">报建类型:</label>
38
+ <div class="col-sm-8">
39
+ <v-select
40
+ v-model="applyType"
41
+ placeholder='请选择需要发起的工程类型'
42
+ :value.sync="applyType"
43
+ :options='applyTypes'
44
+ :value-single="true"
45
+ class="select select_list"
46
+ :search="false"
47
+ close-on-select ></v-select>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </modal>
52
+ </validator>
53
+ </div>
54
+ </template>
55
+
56
+ <script scoped>
57
+ import Vue from 'vue'
58
+ import * as Util from '../Util'
59
+ import {HttpResetClass} from "vue-client";
60
+ export default {
61
+ title: '待办工作导航',
62
+ data() {
63
+ return {
64
+ titleName: '待办工作',
65
+ showModal: false,
66
+ isMenu: true,
67
+ isshowTag:false,
68
+ tabs: [],
69
+ text: '导航组件this',
70
+ beforeName: '待办工作',
71
+ componentName: 'repair-first',
72
+ sourcet: '竖屏',
73
+ meterNum:null,
74
+ applyType: '', // 报建类型
75
+ // applyTypes:this.$appdata.getParam("手机报建类型"),
76
+ applyTypes: [{label: '散户报建', value: '散户报建'}, {label: '工商户报建', value: '工商户报建'}, {
77
+ label: '团购报建',
78
+ value: '团购报建'
79
+ }, {label: '改管报建', value: '改管报建'}, {label: '增容报建', value: '增容报建'}, {
80
+ label: '退款报建',
81
+ value: '退款报建'
82
+ }, {label: '团购转散户', value: '团购转散户'}, {label: '报警器报建', value: '报警器报建'}, {label: '工商业报警器报建', value: '工商业报警器报建'}],
83
+
84
+ }
85
+ },
86
+ ready () {
87
+ this.getNoTagTabs()
88
+ },
89
+
90
+ methods: {
91
+ click (row) {
92
+ let _this = this
93
+ this.$dispatch('gotoson', {
94
+ _this: _this,
95
+ title: row.defname,
96
+ safe: true
97
+ })
98
+ this.$goto('app-service-control', {selectdata: row})
99
+ },
100
+ async getProcessId(processname) {
101
+ let data = {
102
+ workname: processname
103
+ }
104
+ let http = new HttpResetClass()
105
+ let res = await http.load(
106
+ 'POST',
107
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/getProcessId`,
108
+ {data: data},
109
+ {resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
110
+ )
111
+
112
+ return res.data
113
+ },
114
+ async apply () {
115
+ if (this.applyType === '' || this.applyType === null) {
116
+ this.$showAlert('请选择需要发起的类型', 'warning', 3000)
117
+ return
118
+ }
119
+ let data = {
120
+ f_apply_type: this.applyType
121
+ }
122
+ if (this.applyType === '散户报建') {
123
+ data.processname = '散户报建流程'
124
+ data.defname = '报装申请'
125
+ } else if (this.applyType === '工商户报建') {
126
+ data.processname = '工商户报建流程'
127
+ data.defname = '报装申请'
128
+ } else if (this.applyType === '改管报建') {
129
+ data.processname = '改管报建流程'
130
+ data.defname = '报装申请'
131
+ } else if (this.applyType === '增容报建') {
132
+ data.processname = '增容报建流程'
133
+ data.defname = '报装申请'
134
+ } else if (this.applyType === '团购报建') {
135
+ data.processname = '团购报建流程'
136
+ data.defname = '报装申请'
137
+ } else if (this.applyType === '退款报建') {
138
+ data.processname = '退款报建流程'
139
+ data.defname = '终止报建'
140
+ } else if (this.applyType === '团购转散户') {
141
+ data.processname = '团购转散户报建流程'
142
+ data.defname = '信息确认'
143
+ }else if (this.applyType === '报警器报建') {
144
+ data.processname = '报警器报建流程'
145
+ data.defname = '报装申请'
146
+ }else if (this.applyType === '工商业报警器报建') {
147
+ data.processname = '工商业报警器报建流程'
148
+ data.defname = '报装申请'
149
+ } else {
150
+ this.$showMessage('暂无此类报装')
151
+ return
152
+ }
153
+
154
+ data.f_sub_state = "新增"
155
+ data.f_apply_source = "线下发起"
156
+ data.f_process_id = await this.getProcessId(data.processname)
157
+
158
+ // 调用ExplorationUser事件
159
+
160
+ this.click(data)
161
+ this.applyType = null
162
+ this.showModal = false
163
+ },
164
+ // 查询本地所有待办
165
+ getModelSum(){
166
+ for(var i = 0;i<this.tabs.length;i++){
167
+ if(this.tabs[i].link == 'zhihuan-first' ){
168
+ this.getZhihuan()
169
+ }
170
+ if(this.tabs[i].link == 'repair-first' ){
171
+ this.getRepair()
172
+ }
173
+ if(this.tabs[i].link == 'current-create' ){
174
+ this.getSafeCheck()
175
+ }
176
+ }
177
+
178
+ },
179
+ getRepair(){
180
+ var _this = this;
181
+ this.timeoutRepair = window.setInterval(function() {
182
+ let result = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
183
+ if (result.code === 200) {
184
+ console.log('查询得到的代办2' + JSON.stringify(result))
185
+ var crv = {
186
+ title: '维修待办',
187
+ sum: result.data.length
188
+ }
189
+ _this.changesum(crv)
190
+ }
191
+ }, 6000)
192
+ },
193
+ getSafeCheck(){
194
+ var _this = this;
195
+ this.timeoutRepair = window.setInterval(function() {
196
+ let result = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
197
+ if (result.code === 200) {
198
+ console.log('查询得到的安检代办' + JSON.stringify(result))
199
+ var crv = {
200
+ title: '安检待办',
201
+ sum: result.data.length
202
+ }
203
+ _this.changesum(crv)
204
+ }
205
+ }, 6000)
206
+ },
207
+ getZhihuan(){
208
+ var _this = this;
209
+ this.timeoutZhihuan = window.setInterval(function() {
210
+ let result = _this.$androidUtil.path({'alias':`getSubstitMobile`,'data':{condition:'1 = 1'}})
211
+ if (result.code === 200) {
212
+ console.log('查询得到的代办2' + JSON.stringify(result))
213
+ var crv = {
214
+ title: '置换待办',
215
+ sum: result.data.length
216
+ }
217
+ _this.changesum(crv)
218
+ }
219
+ }, 6000)
220
+ },
221
+ changesum(titdata){
222
+ for(var i = 0;i<this.tabs.length;i++){
223
+ if(this.tabs[i].name == titdata.title){
224
+ this.tabs[i].icon = titdata.sum + '单'
225
+ console.log(JSON.stringify(this.tabs[i].icon))
226
+ return
227
+ }
228
+ }
229
+ },
230
+ getNoTagTabs(){
231
+ for(let funs in Vue.functions){
232
+ if(Vue.functions[funs].link == 'attend-manage'){
233
+ this.$set('tabs',Vue.functions[funs].children)
234
+ }
235
+ }
236
+ this.getTabs()
237
+ },
238
+ getTabs(){
239
+ if (Vue.android) {
240
+ if(Vue.config.telephone&&Vue.config.telephone.TipConfig&&Vue.config.telephone.TipConfig.data) {
241
+ this.isshowTag = true
242
+ const config = Vue.config.telephone.TipConfig.data
243
+ const user = Vue.user
244
+ console.log("Vue.android" + Vue.android)
245
+ const result = this.$androidUtil.syncBzLogic("TipConfig", {data: {config, user}})
246
+ if (result.code === 200) {
247
+ for (var i = 0; i < this.tabs.length; i++) {
248
+ result.result.forEach(ress => {
249
+ if (this.tabs[i].link === ress.link) {
250
+ this.$set('tabs[' + i + '].num', ress.num)
251
+ }
252
+ })
253
+ }
254
+ }
255
+ }
256
+ } else {
257
+ const result = {
258
+ "code": 200,
259
+ "result": [{"link": "repair-first", "num": 50}, {"link": "current-create", "num": 30}]
260
+ }
261
+ if (result.code === 200) {
262
+ for (var i = 0; i < this.tabs.length; i++) {
263
+ result.result.forEach(ress => {
264
+ if (this.tabs[i].link === ress.link) {
265
+ this.$set('tabs[' + i + '].num', ress.num)
266
+ }
267
+ })
268
+ }
269
+ }
270
+ }
271
+ this.getmeterNum()
272
+ },
273
+ getmeterNum() {
274
+ if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
275
+ return
276
+ }
277
+ window.setInterval( ()=> {
278
+ let val = {
279
+ items:"*",
280
+ tablename:"t_handplan",
281
+ orderitem:"id desc",
282
+ condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
283
+ f_orgid:`'${Vue.user.orgid}'`
284
+ }
285
+ let http = new HttpResetClass()
286
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
287
+ resolveMsg: null,
288
+ rejectMsg: null
289
+ }).then((res) => {
290
+ this.meterNum = res.data.length
291
+ debugger
292
+ console.log("this.meterNum的值是:",this.meterNum)
293
+ })
294
+ },10000)
295
+ this.timeOutGetmeterNum()
296
+ },
297
+ timeOutGetmeterNum(){
298
+ let val = {
299
+ items:"*",
300
+ tablename:"t_handplan",
301
+ orderitem:"id desc",
302
+ condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
303
+ f_orgid:`'${Vue.user.orgid}'`
304
+ }
305
+ let http = new HttpResetClass()
306
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
307
+ resolveMsg: null,
308
+ rejectMsg: null
309
+ }).then((res) => {
310
+ this.meterNum = res.data.length
311
+ })
312
+ },
313
+ imgback(val){
314
+ return require('../assets/'+val+'.png')
315
+ },
316
+ // 返回主界面
317
+ back(){
318
+ this.titleName = '主界面'
319
+ this.isMenu = true
320
+
321
+ },
322
+ gotopage(param,title) {
323
+ if(title === '工程发起'){
324
+ this.showModal = !this.showModal
325
+ }else{
326
+ console.log('进入子组件')
327
+ var prpdata = {
328
+ _this:this,
329
+ title:title,
330
+ safe:false
331
+ }
332
+ this.$dispatch('gotoson',prpdata)
333
+ this.$goto(param,{sourcet:'竖屏',tabname:title},'self',this.getTabs)
334
+ }
335
+ },
336
+ mute () {
337
+ HostApp.mute()
338
+ }
339
+ },
340
+ }
341
+ </script>
342
+ <style lang="less">
343
+ .badge-content{
344
+ color: #fff;
345
+ box-sizing: border-box;
346
+ min-width: 8px;
347
+ font-size: 9px;
348
+ line-height: 12px;
349
+ white-space: nowrap;
350
+ font-weight: 400;
351
+ text-align: center;
352
+ }
353
+ .badge{
354
+ top: 6px;
355
+ position: absolute;
356
+ max-height: 13px;
357
+ min-height: 8px;
358
+ //transform: translate(50%,-50%);
359
+ right:0;
360
+ display: inline-flex;
361
+ vertical-align: middle;
362
+ box-sizing: content-box;
363
+ border-radius: 100px;
364
+ background-color: red;
365
+ }
366
+ .app-input {
367
+ label {
368
+ float: left;
369
+ }
370
+ .select {
371
+ button {
372
+ border: none;
373
+ outline: none;
374
+ text-align: left;
375
+ .btn-placeholder {
376
+ color: #ACA899
377
+ }
378
+ }
379
+ }
380
+ .datepicker {
381
+ .form-control:focus {
382
+ border: none!important;
383
+ outline: none!important;
384
+ -webkit-box-shadow: none;
385
+ box-shadow: none;
386
+ }
387
+ }
388
+ }
389
+ .tab-befor-img {
390
+ content: '';
391
+ background-size: 30px;
392
+ display: inline-block;
393
+ margin-right: 8px;
394
+ height: 30px;
395
+ width: 30px;
396
+ vertical-align: -35%;
397
+ }
398
+ .pageskuang{
399
+ vertical-align:middle;
400
+ display:table-cell;
401
+ width: 32%;
402
+ top:-50%;
403
+ margin-top: 1%;
404
+ margin-left: 1%;
405
+ border:1px solid #e3e3e3;
406
+ text-align: center;
407
+ background-color: #ffffff;
408
+ }
409
+ .pgesfoot{
410
+ font-size: 14px;
411
+ color: #666666;
412
+ /* font-family: "Pingfhs";*/
413
+ }
414
+ .imgs{
415
+ width: 35px;
416
+ margin-top: 15px;
417
+ }
418
+ .pages-bgcolor{
419
+ text-align: center;
420
+ background-color: #f0f0ef;
421
+ }
422
+ img[src=""],img:not([src]){
423
+ opacity: 0;
424
+ border:none;
425
+ visibility: hidden;
426
+ max-width: none;
427
+ }
428
+
429
+ .manbiankuang{
430
+ width: 44%;
431
+ margin-top: 15px;
432
+ margin-left: 4%;
433
+ border:1px solid #e3e3e3;
434
+ border-radius:10px 10px 10px 10px;
435
+ text-align: center;
436
+ background-color: #ffffff;
437
+ }
438
+
439
+ .nav-bgcolor{
440
+ background-color: #ffffff;
441
+ }
442
+ </style>