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