system-phone 3.0.19 → 3.0.20

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,20 +1,20 @@
1
1
  <template>
2
2
  <div class="nav-bgcolor">
3
3
  <div class="auto">
4
- <div class="row nav-bgcolor" >
4
+ <div class="row nav-bgcolor">
5
5
  <div class="col-xs-6 manbiankuang" v-for="tab in tabs" @click="gotopage(tab.link,tab.name,tab.navigate)">
6
6
  <div class="badge" v-show="tab.name == '维修派发'">
7
- <div class="badge-content">{{ pointNum?pointNum:0 }}</div>
7
+ <div class="badge-content">{{ pointNum ? pointNum : 0 }}</div>
8
8
  </div>
9
9
  <div class="badge" v-show="tab.name == '抄表待办'">
10
- <div class="badge-content">{{ meterNum?meterNum:0 }}</div>
10
+ <div class="badge-content">{{ meterNum ? meterNum : 0 }}</div>
11
11
  </div>
12
12
  <div class="badge" v-show="tab.name == '信息公告'">
13
- <div class="badge-content">{{ infoNum?infoNum:0 }}</div>
13
+ <div class="badge-content">{{ infoNum ? infoNum : 0 }}</div>
14
14
  </div>
15
15
  <img class="imgs" :src="imgback(tab.name)" alt="">
16
16
  <p></p>
17
- <p class="pagesfoot">{{tab.name}}</p>
17
+ <p class="pagesfoot">{{ tab.name }}</p>
18
18
  <!--<p class="pagesfoot">{{tab.name}}&nbsp;{{tab.icon}}</p>-->
19
19
  <p></p>
20
20
  </div>
@@ -30,46 +30,47 @@
30
30
  <script scoped>
31
31
  import Vue from 'vue'
32
32
  import {HttpResetClass} from "vue-client";
33
+ import * as Util from "../Util";
33
34
 
34
35
  export default {
35
36
  title: '在线业务导航',
36
- data () {
37
+ data() {
37
38
  return {
38
- titleName:'在线业务',
39
- isMenu:true,
39
+ titleName: '在线业务',
40
+ isMenu: true,
40
41
  tabs: this.getTabs(),
41
42
  text: '导航组件this',
42
43
  beforeName: '在线业务',
43
44
  sourcet: '竖屏',
44
45
  pointNum: null,
45
- infoNum:null,
46
- meterNum:null
46
+ infoNum: null,
47
+ meterNum: null
47
48
  }
48
49
  },
49
- ready () {
50
+ ready() {
50
51
  // this.getModelSum()
51
52
  },
52
53
 
53
54
  methods: {
54
55
  //看去哪个页面
55
- getModelSum(){
56
- for(var i = 0;i<this.tabs.length;i++){
57
- if(this.tabs[i].link == 'readmeter-home' ){
56
+ getModelSum() {
57
+ for (var i = 0; i < this.tabs.length; i++) {
58
+ if (this.tabs[i].link == 'readmeter-home') {
58
59
  this.getZhihuan()
59
60
  }
60
- if(this.tabs[i].link == 'weiup-load' ){
61
+ if (this.tabs[i].link == 'weiup-load') {
61
62
  this.getRepair()
62
63
  }
63
- if(this.tabs[i].link == 'upload-page' ){
64
+ if (this.tabs[i].link == 'upload-page') {
64
65
  this.getSafeCheck()
65
66
  }
66
67
  }
67
68
 
68
69
  },
69
- getRepair(){
70
+ getRepair() {
70
71
  var _this = this;
71
- this.timeoutRepair = window.setInterval(function() {
72
- let result = _this.$androidUtil.path({'alias':'notUpload','data': {f_workorder_type: '报修单'}})
72
+ this.timeoutRepair = window.setInterval(function () {
73
+ let result = _this.$androidUtil.path({'alias': 'notUpload', 'data': {f_workorder_type: '报修单'}})
73
74
  if (result.code === 200) {
74
75
  console.log('查询得到的代办2' + JSON.stringify(result))
75
76
  var crv = {
@@ -80,10 +81,10 @@
80
81
  }
81
82
  }, 6000)
82
83
  },
83
- getSafeCheck(){
84
+ getSafeCheck() {
84
85
  var _this = this;
85
- this.timeoutRepair = window.setInterval(function() {
86
- let result = _this.$androidUtil.path({'alias':'safecheckNotUpload','data': {}})
86
+ this.timeoutRepair = window.setInterval(function () {
87
+ let result = _this.$androidUtil.path({'alias': 'safecheckNotUpload', 'data': {}})
87
88
  if (result.code === 200) {
88
89
  console.log('查询得到的安检上传' + JSON.stringify(result))
89
90
  var crv = {
@@ -94,10 +95,10 @@
94
95
  }
95
96
  }, 6000)
96
97
  },
97
- getZhihuan(){
98
+ getZhihuan() {
98
99
  var _this = this;
99
- this.timeoutZhihuan = window.setInterval(function() {
100
- let result = {code:200}
100
+ this.timeoutZhihuan = window.setInterval(function () {
101
+ let result = {code: 200}
101
102
  if (result.code === 200) {
102
103
  console.log('查询得到的代办2' + JSON.stringify(result))
103
104
  var crv = {
@@ -108,21 +109,21 @@
108
109
  }
109
110
  }, 6000)
110
111
  },
111
- changesum(titdata){
112
- for(var i = 0;i<this.tabs.length;i++){
113
- if(this.tabs[i].name == titdata.title){
112
+ changesum(titdata) {
113
+ for (var i = 0; i < this.tabs.length; i++) {
114
+ if (this.tabs[i].name == titdata.title) {
114
115
  this.tabs[i].icon = titdata.sum + '单'
115
116
  console.log(JSON.stringify(this.tabs[i].icon))
116
117
  return
117
118
  }
118
119
  }
119
120
  },
120
- getTabs(){
121
+ getTabs() {
121
122
  this.getRepairNum()
122
123
  this.getInfoNum()
123
124
  this.getmeterNum()
124
- for(let funs in Vue.functions){
125
- if(Vue.functions[funs].link == 'online-manage'){
125
+ for (let funs in Vue.functions) {
126
+ if (Vue.functions[funs].link == 'online-manage') {
126
127
  return Vue.functions[funs].children
127
128
  }
128
129
  }
@@ -131,13 +132,13 @@
131
132
  if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
132
133
  return
133
134
  }
134
- window.setInterval( ()=> {
135
+ window.setInterval(() => {
135
136
  let val = {
136
- items:"*",
137
- tablename:"t_handplan",
138
- orderitem:"id desc",
139
- condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
140
- f_orgid:`'${Vue.user.orgid}'`
137
+ items: "*",
138
+ tablename: "t_handplan",
139
+ orderitem: "id desc",
140
+ condition: `1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
141
+ f_orgid: `'${Vue.user.orgid}'`
141
142
  }
142
143
  let http = new HttpResetClass()
143
144
  http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
@@ -146,20 +147,21 @@
146
147
  }).then((res) => {
147
148
  this.meterNum = res.data.length
148
149
  })
149
- },100000)
150
+ }, 100000)
150
151
  this.timeOutGetmeterNum()
151
152
  },
152
153
  getInfoNum() {
153
154
  if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
154
155
  return
155
156
  }
156
- window.setInterval( ()=> {
157
+ window.setInterval(() => {
158
+ let condition = " 1 = 1 and (f_enddate <= '" + Util.toStandardTimeString + "' or f_state = '公告中') "
157
159
  let val = {
158
- items:"*",
159
- tablename:"T_STOPGAS",
160
- orderitem:"f_date desc",
161
- condition:'1=1',
162
- f_orgstr:`'${Vue.user.orgid}'`
160
+ items: "*",
161
+ tablename: "T_STOPGAS",
162
+ orderitem: "f_date desc",
163
+ condition: condition,
164
+ f_orgstr: `'${Vue.user.orgid}'`
163
165
  }
164
166
  let http = new HttpResetClass()
165
167
  http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
@@ -168,14 +170,14 @@
168
170
  }).then((res) => {
169
171
  this.infoNum = res.data.length
170
172
  })
171
- },100000)
173
+ }, 100000)
172
174
  this.timeOutGetInfoNum()
173
175
  },
174
176
  getRepairNum() {
175
177
  if (!Vue.android || !Vue.come || !Vue.come == 'tongchuan') {
176
178
  return
177
179
  }
178
- window.setInterval( ()=> {
180
+ window.setInterval(() => {
179
181
  let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
180
182
  let val = {
181
183
  condition: {
@@ -191,10 +193,10 @@
191
193
  }).then((res) => {
192
194
  this.pointNum = res.data.length
193
195
  })
194
- },100000)
196
+ }, 100000)
195
197
  this.timeOutGetRepairNum()
196
198
  },
197
- timeOutGetRepairNum(){
199
+ timeOutGetRepairNum() {
198
200
 
199
201
  let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
200
202
  let val = {
@@ -212,13 +214,14 @@
212
214
  this.pointNum = res.data.length
213
215
  })
214
216
  },
215
- timeOutGetInfoNum(){
217
+ timeOutGetInfoNum() {
218
+ let condition = " 1 = 1 and (f_enddate <= '" + Util.toStandardTimeString + "' or f_state = '公告中') "
216
219
  let val = {
217
- items:"*",
218
- tablename:"T_STOPGAS",
219
- orderitem:"f_date desc",
220
- condition:'1=1',
221
- f_orgstr:`'${Vue.user.orgid}'`
220
+ items: "*",
221
+ tablename: "T_STOPGAS",
222
+ orderitem: "f_date desc",
223
+ condition: condition,
224
+ f_orgstr: `'${Vue.user.orgid}'`
222
225
  }
223
226
  let http = new HttpResetClass()
224
227
  http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
@@ -228,13 +231,13 @@
228
231
  this.infoNum = res.data.length
229
232
  })
230
233
  },
231
- timeOutGetmeterNum(){
234
+ timeOutGetmeterNum() {
232
235
  let val = {
233
- items:"*",
234
- tablename:"t_handplan",
235
- orderitem:"id desc",
236
- condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
237
- f_orgid:`'${Vue.user.orgid}'`
236
+ items: "*",
237
+ tablename: "t_handplan",
238
+ orderitem: "id desc",
239
+ condition: `1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
240
+ f_orgid: `'${Vue.user.orgid}'`
238
241
  }
239
242
  let http = new HttpResetClass()
240
243
  http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
@@ -244,30 +247,30 @@
244
247
  this.meterNum = res.data.length
245
248
  })
246
249
  },
247
- imgback(val){
248
- return require('../assets/'+val+'.png')
250
+ imgback(val) {
251
+ return require('../assets/' + val + '.png')
249
252
  },
250
253
  // 返回主界面
251
- back(){
254
+ back() {
252
255
  this.titleName = '主界面'
253
256
  this.isMenu = true
254
257
 
255
258
  },
256
- gotopage(param,title,navigate) {
259
+ gotopage(param, title, navigate) {
257
260
  console.log('进入子组件')
258
261
  var prpdata = {
259
- _this:this,
260
- title:title,
261
- safe:false
262
+ _this: this,
263
+ title: title,
264
+ safe: false
262
265
  }
263
- this.$dispatch('gotoson',prpdata)
264
- if(navigate){
266
+ this.$dispatch('gotoson', prpdata)
267
+ if (navigate) {
265
268
  this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
266
- }else{
267
- this.$goto(param,{sourcet:'竖屏',tabname:title})
269
+ } else {
270
+ this.$goto(param, {sourcet: '竖屏', tabname: title})
268
271
  }
269
272
  },
270
- mute () {
273
+ mute() {
271
274
  HostApp.mute()
272
275
  }
273
276
  },
@@ -307,33 +310,38 @@
307
310
  width: 30px;
308
311
  vertical-align: -35%;
309
312
  }
310
- .pageskuang{
311
- vertical-align:middle;
312
- display:table-cell;
313
+
314
+ .pageskuang {
315
+ vertical-align: middle;
316
+ display: table-cell;
313
317
  width: 32%;
314
- top:-50%;
318
+ top: -50%;
315
319
  margin-top: 1%;
316
320
  margin-left: 1%;
317
- border:1px solid #e3e3e3;
321
+ border: 1px solid #e3e3e3;
318
322
  text-align: center;
319
323
  background-color: #ffffff;
320
324
  }
321
- .pgesfoot{
325
+
326
+ .pgesfoot {
322
327
  font-size: 14px;
323
328
  color: #666666;
324
329
  /* font-family: "Pingfhs";*/
325
330
  }
326
- .imgs{
331
+
332
+ .imgs {
327
333
  width: 35px;
328
334
  margin-top: 15px;
329
335
  }
330
- .pages-bgcolor{
336
+
337
+ .pages-bgcolor {
331
338
  text-align: center;
332
339
  background-color: #f0f0ef;
333
340
  }
334
- img[src=""],img:not([src]){
341
+
342
+ img[src=""], img:not([src]) {
335
343
  opacity: 0;
336
- border:none;
344
+ border: none;
337
345
  visibility: hidden;
338
346
  max-width: none;
339
347
  }