system-phone 3.0.49-7 → 3.0.49-9

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