system-phone 3.0.15 → 3.0.17

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,461 @@
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
+ <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
+ var _this = this;
189
+ let bbb = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
190
+ if (bbb.code === 200) {
191
+ _this.repairNum = bbb.data.length
192
+ }
193
+ this.timeoutRepair = window.setInterval(function() {
194
+ let result = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
195
+ if (result.code === 200) {
196
+ console.log('查询得到的代办2' + JSON.stringify(result))
197
+ var crv = {
198
+ title: '维修待办',
199
+ sum: result.data.length
200
+ }
201
+ _this.repairNum = result.data.length
202
+ // _this.changesum(crv)
203
+ }
204
+ }, 100000)
205
+ },
206
+ getSafeCheck(){
207
+ var _this = this;
208
+ let aaa = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
209
+ if (aaa.code === 200) {
210
+ _this.safeckNum = aaa.data.length
211
+ }
212
+ this.timeoutRepair = window.setInterval(function() {
213
+ let result = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
214
+ if (result.code === 200) {
215
+ console.log('查询得到的安检代办' + JSON.stringify(result))
216
+ var crv = {
217
+ title: '安检待办',
218
+ sum: result.data.length
219
+ }
220
+ _this.safeckNum = result.data.length
221
+ // _this.changesum(crv)
222
+ }
223
+ }, 100000)
224
+ },
225
+ getZhihuan(){
226
+ var _this = this;
227
+ this.timeoutZhihuan = window.setInterval(function() {
228
+ let result = _this.$androidUtil.path({'alias':`getSubstitMobile`,'data':{condition:'1 = 1'}})
229
+ if (result.code === 200) {
230
+ console.log('查询得到的代办2' + JSON.stringify(result))
231
+ var crv = {
232
+ title: '置换待办',
233
+ sum: result.data.length
234
+ }
235
+ _this.changesum(crv)
236
+ }
237
+ }, 100000)
238
+ },
239
+ changesum(titdata){
240
+ for(var i = 0;i<this.tabs.length;i++){
241
+ if(this.tabs[i].name == titdata.title){
242
+ this.tabs[i].icon = titdata.sum + '单'
243
+ console.log(JSON.stringify(this.tabs[i].icon))
244
+ return
245
+ }
246
+ }
247
+ },
248
+ getNoTagTabs(){
249
+ for(let funs in Vue.functions){
250
+ if(Vue.functions[funs].link == 'attend-manage'){
251
+ this.$set('tabs',Vue.functions[funs].children)
252
+ }
253
+ }
254
+ this.getTabs()
255
+ },
256
+ getTabs(){
257
+ if (Vue.android) {
258
+ if(Vue.config.telephone&&Vue.config.telephone.TipConfig&&Vue.config.telephone.TipConfig.data) {
259
+ this.isshowTag = true
260
+ const config = Vue.config.telephone.TipConfig.data
261
+ const user = Vue.user
262
+ console.log("Vue.android" + Vue.android)
263
+ const result = this.$androidUtil.syncBzLogic("TipConfig", {data: {config, user}})
264
+ if (result.code === 200) {
265
+ for (var i = 0; i < this.tabs.length; i++) {
266
+ result.result.forEach(ress => {
267
+ if (this.tabs[i].link === ress.link) {
268
+ this.$set('tabs[' + i + '].num', ress.num)
269
+ }
270
+ })
271
+ }
272
+ }
273
+ }
274
+ } else {
275
+ const result = {
276
+ "code": 200,
277
+ "result": [{"link": "repair-first", "num": 50}, {"link": "current-create", "num": 30}]
278
+ }
279
+ if (result.code === 200) {
280
+ for (var i = 0; i < this.tabs.length; i++) {
281
+ result.result.forEach(ress => {
282
+ if (this.tabs[i].link === ress.link) {
283
+ this.$set('tabs[' + i + '].num', ress.num)
284
+ }
285
+ })
286
+ }
287
+ }
288
+ }
289
+ this.getmeterNum()
290
+ this.getModelSum()
291
+ },
292
+ getmeterNum() {
293
+ if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
294
+ return
295
+ }
296
+ window.setInterval( ()=> {
297
+ let val = {
298
+ items:"*",
299
+ tablename:"t_handplan",
300
+ orderitem:"id desc",
301
+ condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
302
+ f_orgid:`'${Vue.user.orgid}'`
303
+ }
304
+ let http = new HttpResetClass()
305
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
306
+ resolveMsg: null,
307
+ rejectMsg: null
308
+ }).then((res) => {
309
+ this.meterNum = res.data.length
310
+ debugger
311
+ console.log("this.meterNum的值是:",this.meterNum)
312
+ })
313
+ },10000)
314
+ this.timeOutGetmeterNum()
315
+ },
316
+ timeOutGetmeterNum(){
317
+ let val = {
318
+ items:"*",
319
+ tablename:"t_handplan",
320
+ orderitem:"id desc",
321
+ condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
322
+ f_orgid:`'${Vue.user.orgid}'`
323
+ }
324
+ let http = new HttpResetClass()
325
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
326
+ resolveMsg: null,
327
+ rejectMsg: null
328
+ }).then((res) => {
329
+ this.meterNum = res.data.length
330
+ })
331
+ },
332
+ imgback(val){
333
+ return require('../assets/'+val+'.png')
334
+ },
335
+ // 返回主界面
336
+ back(){
337
+ this.titleName = '主界面'
338
+ this.isMenu = true
339
+
340
+ },
341
+ gotopage(param,title) {
342
+ if(title === '工程发起'){
343
+ this.showModal = !this.showModal
344
+ }else{
345
+ console.log('进入子组件')
346
+ var prpdata = {
347
+ _this:this,
348
+ title:title,
349
+ safe:false
350
+ }
351
+ this.$dispatch('gotoson',prpdata)
352
+ this.$goto(param,{sourcet:'竖屏',tabname:title},'self',this.getTabs)
353
+ }
354
+ },
355
+ mute () {
356
+ HostApp.mute()
357
+ }
358
+ },
359
+ }
360
+ </script>
361
+ <style lang="less">
362
+ .badge-content{
363
+ color: #fff;
364
+ box-sizing: border-box;
365
+ min-width: 8px;
366
+ font-size: 9px;
367
+ line-height: 12px;
368
+ white-space: nowrap;
369
+ font-weight: 400;
370
+ text-align: center;
371
+ }
372
+ .badge{
373
+ top: 6px;
374
+ position: absolute;
375
+ max-height: 13px;
376
+ min-height: 8px;
377
+ //transform: translate(50%,-50%);
378
+ right:0;
379
+ display: inline-flex;
380
+ vertical-align: middle;
381
+ box-sizing: content-box;
382
+ border-radius: 100px;
383
+ background-color: red;
384
+ }
385
+ .app-input {
386
+ label {
387
+ float: left;
388
+ }
389
+ .select {
390
+ button {
391
+ border: none;
392
+ outline: none;
393
+ text-align: left;
394
+ .btn-placeholder {
395
+ color: #ACA899
396
+ }
397
+ }
398
+ }
399
+ .datepicker {
400
+ .form-control:focus {
401
+ border: none!important;
402
+ outline: none!important;
403
+ -webkit-box-shadow: none;
404
+ box-shadow: none;
405
+ }
406
+ }
407
+ }
408
+ .tab-befor-img {
409
+ content: '';
410
+ background-size: 30px;
411
+ display: inline-block;
412
+ margin-right: 8px;
413
+ height: 30px;
414
+ width: 30px;
415
+ vertical-align: -35%;
416
+ }
417
+ .pageskuang{
418
+ vertical-align:middle;
419
+ display:table-cell;
420
+ width: 32%;
421
+ top:-50%;
422
+ margin-top: 1%;
423
+ margin-left: 1%;
424
+ border:1px solid #e3e3e3;
425
+ text-align: center;
426
+ background-color: #ffffff;
427
+ }
428
+ .pgesfoot{
429
+ font-size: 14px;
430
+ color: #666666;
431
+ /* font-family: "Pingfhs";*/
432
+ }
433
+ .imgs{
434
+ width: 35px;
435
+ margin-top: 15px;
436
+ }
437
+ .pages-bgcolor{
438
+ text-align: center;
439
+ background-color: #f0f0ef;
440
+ }
441
+ img[src=""],img:not([src]){
442
+ opacity: 0;
443
+ border:none;
444
+ visibility: hidden;
445
+ max-width: none;
446
+ }
447
+
448
+ .manbiankuang{
449
+ width: 44%;
450
+ margin-top: 15px;
451
+ margin-left: 4%;
452
+ border:1px solid #e3e3e3;
453
+ border-radius:10px 10px 10px 10px;
454
+ text-align: center;
455
+ background-color: #ffffff;
456
+ }
457
+
458
+ .nav-bgcolor{
459
+ background-color: #ffffff;
460
+ }
461
+ </style>