system-phone 3.0.28 → 3.0.29

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