system-phone 3.0.41 → 3.0.43
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.
package/package.json
CHANGED
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
componentName: 'repair-first',
|
|
80
80
|
sourcet: '竖屏',
|
|
81
81
|
meterNum:null,
|
|
82
|
-
isShowRedNum:this.$appdata.getSingleValue('
|
|
82
|
+
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
83
83
|
applyType: '', // 报建类型
|
|
84
84
|
// applyTypes:this.$appdata.getParam("手机报建类型"),
|
|
85
85
|
applyTypes: [{label: '散户报建', value: '散户报建'}, {label: '工商户报建', value: '工商户报建'}, {
|
|
@@ -94,8 +94,9 @@
|
|
|
94
94
|
},
|
|
95
95
|
ready () {
|
|
96
96
|
this.getNoTagTabs()
|
|
97
|
+
this.getmeterNum()
|
|
98
|
+
this.getModelSum()
|
|
97
99
|
},
|
|
98
|
-
|
|
99
100
|
methods: {
|
|
100
101
|
click (row) {
|
|
101
102
|
let _this = this
|
|
@@ -194,18 +195,6 @@
|
|
|
194
195
|
if (bbb.code === 200) {
|
|
195
196
|
_this.repairNum = bbb.data.length
|
|
196
197
|
}
|
|
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
198
|
},
|
|
210
199
|
getSafeCheck(){
|
|
211
200
|
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
@@ -216,41 +205,16 @@
|
|
|
216
205
|
if (aaa.code === 200) {
|
|
217
206
|
_this.safeckNum = aaa.data.length
|
|
218
207
|
}
|
|
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
208
|
},
|
|
232
209
|
getZhihuan(){
|
|
233
210
|
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
234
211
|
return
|
|
235
212
|
}
|
|
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
213
|
},
|
|
249
214
|
changesum(titdata){
|
|
250
215
|
for(var i = 0;i<this.tabs.length;i++){
|
|
251
216
|
if(this.tabs[i].name == titdata.title){
|
|
252
217
|
this.tabs[i].icon = titdata.sum + '单'
|
|
253
|
-
console.log(JSON.stringify(this.tabs[i].icon))
|
|
254
218
|
return
|
|
255
219
|
}
|
|
256
220
|
}
|
|
@@ -303,31 +267,13 @@
|
|
|
303
267
|
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
304
268
|
return
|
|
305
269
|
}
|
|
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
270
|
this.timeOutGetmeterNum()
|
|
325
271
|
},
|
|
326
272
|
timeOutGetmeterNum(){
|
|
327
273
|
let val = {
|
|
328
|
-
items:"*",
|
|
274
|
+
items:"count(*) as count_num",
|
|
329
275
|
tablename:"t_handplan",
|
|
330
|
-
orderitem:"
|
|
276
|
+
orderitem:"1",
|
|
331
277
|
condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
|
|
332
278
|
f_orgid:`'${Vue.user.orgid}'`
|
|
333
279
|
}
|
|
@@ -336,7 +282,7 @@
|
|
|
336
282
|
resolveMsg: null,
|
|
337
283
|
rejectMsg: null
|
|
338
284
|
}).then((res) => {
|
|
339
|
-
this.meterNum = res.data.
|
|
285
|
+
this.meterNum = res.data[0].count_num
|
|
340
286
|
})
|
|
341
287
|
},
|
|
342
288
|
imgback(val){
|
|
@@ -346,13 +292,11 @@
|
|
|
346
292
|
back(){
|
|
347
293
|
this.titleName = '主界面'
|
|
348
294
|
this.isMenu = true
|
|
349
|
-
|
|
350
295
|
},
|
|
351
296
|
gotopage(param,title) {
|
|
352
297
|
if(title === '工程发起'){
|
|
353
298
|
this.showModal = !this.showModal
|
|
354
299
|
}else{
|
|
355
|
-
console.log('进入子组件')
|
|
356
300
|
var prpdata = {
|
|
357
301
|
_this:this,
|
|
358
302
|
title:title,
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
isMenu: true,
|
|
41
41
|
tabs: this.getTabs(),
|
|
42
42
|
text: '导航组件this',
|
|
43
|
-
isShowRedNum:this.$appdata.getSingleValue('
|
|
43
|
+
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
44
44
|
beforeName: '在线业务',
|
|
45
45
|
sourcet: '竖屏',
|
|
46
46
|
pointNum: null,
|
|
@@ -49,67 +49,11 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
ready() {
|
|
52
|
-
|
|
52
|
+
this.getRepairNum()
|
|
53
|
+
this.getInfoNum()
|
|
54
|
+
this.getmeterNum()
|
|
53
55
|
},
|
|
54
|
-
|
|
55
56
|
methods: {
|
|
56
|
-
//看去哪个页面
|
|
57
|
-
getModelSum() {
|
|
58
|
-
for (var i = 0; i < this.tabs.length; i++) {
|
|
59
|
-
if (this.tabs[i].link == 'readmeter-home') {
|
|
60
|
-
this.getZhihuan()
|
|
61
|
-
}
|
|
62
|
-
if (this.tabs[i].link == 'weiup-load') {
|
|
63
|
-
this.getRepair()
|
|
64
|
-
}
|
|
65
|
-
if (this.tabs[i].link == 'upload-page') {
|
|
66
|
-
this.getSafeCheck()
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
getRepair() {
|
|
72
|
-
var _this = this;
|
|
73
|
-
this.timeoutRepair = window.setInterval(function () {
|
|
74
|
-
let result = _this.$androidUtil.path({'alias': 'notUpload', 'data': {f_workorder_type: '报修单'}})
|
|
75
|
-
if (result.code === 200) {
|
|
76
|
-
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
77
|
-
var crv = {
|
|
78
|
-
title: '维修上传',
|
|
79
|
-
sum: result.data.length
|
|
80
|
-
}
|
|
81
|
-
_this.changesum(crv)
|
|
82
|
-
}
|
|
83
|
-
}, 6000)
|
|
84
|
-
},
|
|
85
|
-
getSafeCheck() {
|
|
86
|
-
var _this = this;
|
|
87
|
-
this.timeoutRepair = window.setInterval(function () {
|
|
88
|
-
let result = _this.$androidUtil.path({'alias': 'safecheckNotUpload', 'data': {}})
|
|
89
|
-
if (result.code === 200) {
|
|
90
|
-
console.log('查询得到的安检上传' + JSON.stringify(result))
|
|
91
|
-
var crv = {
|
|
92
|
-
title: '安检上传',
|
|
93
|
-
sum: result.data.length
|
|
94
|
-
}
|
|
95
|
-
_this.changesum(crv)
|
|
96
|
-
}
|
|
97
|
-
}, 6000)
|
|
98
|
-
},
|
|
99
|
-
getZhihuan() {
|
|
100
|
-
var _this = this;
|
|
101
|
-
this.timeoutZhihuan = window.setInterval(function () {
|
|
102
|
-
let result = {code: 200}
|
|
103
|
-
if (result.code === 200) {
|
|
104
|
-
console.log('查询得到的代办2' + JSON.stringify(result))
|
|
105
|
-
var crv = {
|
|
106
|
-
title: '置换上传',
|
|
107
|
-
sum: result.data.length
|
|
108
|
-
}
|
|
109
|
-
_this.changesum(crv)
|
|
110
|
-
}
|
|
111
|
-
}, 6000)
|
|
112
|
-
},
|
|
113
57
|
changesum(titdata) {
|
|
114
58
|
for (var i = 0; i < this.tabs.length; i++) {
|
|
115
59
|
if (this.tabs[i].name == titdata.title) {
|
|
@@ -120,85 +64,35 @@
|
|
|
120
64
|
}
|
|
121
65
|
},
|
|
122
66
|
getTabs() {
|
|
123
|
-
|
|
124
|
-
this.getInfoNum()
|
|
125
|
-
this.getmeterNum()
|
|
67
|
+
debugger
|
|
126
68
|
for (let funs in Vue.functions) {
|
|
127
69
|
if (Vue.functions[funs].link == 'online-manage') {
|
|
128
70
|
return Vue.functions[funs].children
|
|
129
71
|
}
|
|
130
72
|
}
|
|
73
|
+
this.getRepairNum()
|
|
74
|
+
this.getInfoNum()
|
|
75
|
+
this.getmeterNum()
|
|
131
76
|
},
|
|
132
77
|
getmeterNum() {
|
|
133
78
|
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
134
79
|
return
|
|
135
80
|
}
|
|
136
|
-
window.setInterval(() => {
|
|
137
|
-
let val = {
|
|
138
|
-
items: "*",
|
|
139
|
-
tablename: "t_handplan",
|
|
140
|
-
orderitem: "id desc",
|
|
141
|
-
condition: `1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
|
|
142
|
-
f_orgid: `'${Vue.user.orgid}'`
|
|
143
|
-
}
|
|
144
|
-
let http = new HttpResetClass()
|
|
145
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
|
|
146
|
-
resolveMsg: null,
|
|
147
|
-
rejectMsg: null
|
|
148
|
-
}).then((res) => {
|
|
149
|
-
this.meterNum = res.data.length
|
|
150
|
-
})
|
|
151
|
-
}, 100000)
|
|
152
81
|
this.timeOutGetmeterNum()
|
|
153
82
|
},
|
|
154
83
|
getInfoNum() {
|
|
155
84
|
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
156
85
|
return
|
|
157
86
|
}
|
|
158
|
-
window.setInterval(() => {
|
|
159
|
-
let condition = " 1 = 1 and (f_enddate >= '" + Util.toStandardTimeString()+ "' or f_state = '公告中') "
|
|
160
|
-
let val = {
|
|
161
|
-
items: "*",
|
|
162
|
-
tablename: "T_STOPGAS",
|
|
163
|
-
orderitem: "f_date desc",
|
|
164
|
-
condition: condition,
|
|
165
|
-
f_orgstr: `'${Vue.user.orgid}'`
|
|
166
|
-
}
|
|
167
|
-
let http = new HttpResetClass()
|
|
168
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
|
|
169
|
-
resolveMsg: null,
|
|
170
|
-
rejectMsg: null
|
|
171
|
-
}).then((res) => {
|
|
172
|
-
this.infoNum = res.data.length
|
|
173
|
-
})
|
|
174
|
-
}, 100000)
|
|
175
87
|
this.timeOutGetInfoNum()
|
|
176
88
|
},
|
|
177
89
|
getRepairNum() {
|
|
178
90
|
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
179
91
|
return
|
|
180
92
|
}
|
|
181
|
-
window.setInterval(() => {
|
|
182
|
-
let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
|
|
183
|
-
let val = {
|
|
184
|
-
condition: {
|
|
185
|
-
condition: condition,
|
|
186
|
-
sign: '1 = 1'
|
|
187
|
-
},
|
|
188
|
-
userid: Vue.user.name
|
|
189
|
-
}
|
|
190
|
-
let http = new HttpResetClass()
|
|
191
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/path/operatorServiceAndroid`, {data: val}, {
|
|
192
|
-
resolveMsg: null,
|
|
193
|
-
rejectMsg: null
|
|
194
|
-
}).then((res) => {
|
|
195
|
-
this.pointNum = res.data.length
|
|
196
|
-
})
|
|
197
|
-
}, 100000)
|
|
198
93
|
this.timeOutGetRepairNum()
|
|
199
94
|
},
|
|
200
95
|
timeOutGetRepairNum() {
|
|
201
|
-
|
|
202
96
|
let condition = `1 = 1 and f_workorder_type = '报修单' and f_state = null `
|
|
203
97
|
let val = {
|
|
204
98
|
condition: {
|
|
@@ -218,9 +112,9 @@
|
|
|
218
112
|
timeOutGetInfoNum() {
|
|
219
113
|
let condition = " 1 = 1 and (f_enddate >= '" + Util.toStandardTimeString() + "' or f_state = '公告中') "
|
|
220
114
|
let val = {
|
|
221
|
-
items: "*",
|
|
115
|
+
items: "count(*) as count_num",
|
|
222
116
|
tablename: "T_STOPGAS",
|
|
223
|
-
orderitem: "
|
|
117
|
+
orderitem: "1",
|
|
224
118
|
condition: condition,
|
|
225
119
|
f_orgstr: `'${Vue.user.orgid}'`
|
|
226
120
|
}
|
|
@@ -229,14 +123,14 @@
|
|
|
229
123
|
resolveMsg: null,
|
|
230
124
|
rejectMsg: null
|
|
231
125
|
}).then((res) => {
|
|
232
|
-
this.infoNum = res.data.
|
|
126
|
+
this.infoNum = res.data[0].count_num
|
|
233
127
|
})
|
|
234
128
|
},
|
|
235
129
|
timeOutGetmeterNum() {
|
|
236
130
|
let val = {
|
|
237
|
-
items: "*",
|
|
131
|
+
items: "count(*) as count_num",
|
|
238
132
|
tablename: "t_handplan",
|
|
239
|
-
orderitem: "
|
|
133
|
+
orderitem: "1",
|
|
240
134
|
condition: `1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
|
|
241
135
|
f_orgid: `'${Vue.user.orgid}'`
|
|
242
136
|
}
|
|
@@ -245,7 +139,7 @@
|
|
|
245
139
|
resolveMsg: null,
|
|
246
140
|
rejectMsg: null
|
|
247
141
|
}).then((res) => {
|
|
248
|
-
this.meterNum = res.data.
|
|
142
|
+
this.meterNum = res.data[0].count_num
|
|
249
143
|
})
|
|
250
144
|
},
|
|
251
145
|
imgback(val) {
|
|
@@ -268,7 +162,7 @@
|
|
|
268
162
|
if (navigate) {
|
|
269
163
|
this.$goto('embbed-page', {domainName: navigate, title: title, compName: param, login: Vue.user})
|
|
270
164
|
} else {
|
|
271
|
-
this.$goto(param, {sourcet: '竖屏', tabname: title})
|
|
165
|
+
this.$goto(param, {sourcet: '竖屏', tabname: title},'self',this.getTabs)
|
|
272
166
|
}
|
|
273
167
|
},
|
|
274
168
|
mute() {
|
|
@@ -327,7 +221,6 @@
|
|
|
327
221
|
.pgesfoot {
|
|
328
222
|
font-size: 14px;
|
|
329
223
|
color: #666666;
|
|
330
|
-
/* font-family: "Pingfhs";*/
|
|
331
224
|
}
|
|
332
225
|
|
|
333
226
|
.imgs {
|