system-phone 3.0.49-30 → 3.0.49-32
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
|
Binary file
|
|
@@ -111,264 +111,251 @@
|
|
|
111
111
|
</template>
|
|
112
112
|
|
|
113
113
|
<script scoped>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
114
|
+
import Vue from 'vue'
|
|
115
|
+
import {HttpResetClass} from "vue-client";
|
|
116
|
+
export default {
|
|
117
|
+
title: '待办工作导航',
|
|
118
|
+
data() {
|
|
119
|
+
return {
|
|
120
|
+
titleName: '待办工作',
|
|
121
|
+
showModal: false,
|
|
122
|
+
isMenu: true,
|
|
123
|
+
isshowTag:false,
|
|
124
|
+
shownotices:false,
|
|
125
|
+
tabs: [],
|
|
126
|
+
safeckNum:0,
|
|
127
|
+
repairNum:0,
|
|
128
|
+
model:{},
|
|
129
|
+
notices:{},
|
|
130
|
+
weakPassword: false,
|
|
131
|
+
modifyPassword: false,
|
|
132
|
+
isShowStopGas:this.$appdata.getSingleValue('公告展示'),
|
|
133
|
+
text: '导航组件this',
|
|
134
|
+
beforeName: '待办工作',
|
|
135
|
+
componentName: 'repair-first',
|
|
136
|
+
sourcet: '竖屏',
|
|
137
|
+
meterNum:null,
|
|
138
|
+
isShowRedNum:this.$appdata.getSingleValue('手机端获取任务条数'),
|
|
139
|
+
applyType: '', // 报建类型
|
|
140
|
+
// applyTypes:this.$appdata.getParam("手机报建类型"),
|
|
141
|
+
applyTypes: [{label: '散户报建', value: '散户报建'}, {label: '工商户报建', value: '工商户报建'}, {
|
|
142
|
+
label: '团购报建',
|
|
143
|
+
value: '团购报建'
|
|
144
|
+
}, {label: '改管报建', value: '改管报建'}, {label: '增容报建', value: '增容报建'}, {
|
|
145
|
+
label: '退款报建',
|
|
146
|
+
value: '退款报建'
|
|
147
|
+
}, {label: '团购转散户', value: '团购转散户'}, {label: '报警器报建', value: '报警器报建'}, {label: '工商业报警器报建', value: '工商业报警器报建'}],
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
ready () {
|
|
152
|
+
this.getNoTagTabs()
|
|
153
|
+
this.getmeterNum()
|
|
154
|
+
this.getModelSum()
|
|
155
|
+
this.searchStopGas()
|
|
156
|
+
this.tabs.sort((a, b) => new Date(a.f_create_date) - new Date(b.f_create_date))
|
|
157
|
+
console.log('this.tabs=', JSON.stringify(this.tabs))
|
|
158
|
+
},
|
|
159
|
+
methods: {
|
|
160
|
+
closeshowModal(){
|
|
161
|
+
this.shownotices = false
|
|
162
|
+
this.saveIsShowStopGas()
|
|
150
163
|
},
|
|
151
|
-
|
|
152
|
-
this.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
164
|
+
searchStopGas(){
|
|
165
|
+
if(!this.isShowStopGas || !this.isShowStopGas == 'true'){
|
|
166
|
+
return
|
|
167
|
+
}
|
|
168
|
+
let http = new HttpResetClass()
|
|
169
|
+
var condition = `1=1 and f_state = '公告中' and f_typeofreceipt = '手机端'`
|
|
170
|
+
let data = {
|
|
171
|
+
items: '*',
|
|
172
|
+
tablename: 'T_STOPGAS',
|
|
173
|
+
condition: condition,
|
|
174
|
+
orderitem: 'id desc'
|
|
175
|
+
}
|
|
176
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable_OrderBy`, {data: data}, {
|
|
177
|
+
resolveMsg: null,
|
|
178
|
+
rejectMsg: null
|
|
179
|
+
}).then((res) => {
|
|
180
|
+
this.notices = res.data[0]
|
|
181
|
+
this.showStopGas(res.data[0].id,Vue.user.id)
|
|
182
|
+
}).catch((e)=>{
|
|
183
|
+
})
|
|
156
184
|
},
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
resolveMsg: null,
|
|
176
|
-
rejectMsg: null
|
|
177
|
-
}).then((res) => {
|
|
178
|
-
this.notices = res.data[0]
|
|
179
|
-
this.showStopGas(res.data[0].id,Vue.user.id)
|
|
180
|
-
}).catch((e)=>{
|
|
181
|
-
})
|
|
182
|
-
},
|
|
183
|
-
showStopGas(stopId,userid){
|
|
184
|
-
let http = new HttpResetClass()
|
|
185
|
-
var condition = `f_stopgas_id = '${stopId}' and f_user_id = '${userid}'`
|
|
186
|
-
let data = {
|
|
187
|
-
items: '*',
|
|
188
|
-
tablename: 't_notice_notarize',
|
|
189
|
-
condition: condition,
|
|
190
|
-
orderitem: 'f_id desc'
|
|
191
|
-
}
|
|
192
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable_OrderBy`, {data: data}, {
|
|
193
|
-
resolveMsg: null,
|
|
194
|
-
rejectMsg: null
|
|
195
|
-
}).then((res) => {
|
|
196
|
-
if (res.data.length === 0) {
|
|
197
|
-
this.shownotices = true
|
|
198
|
-
}else if (res.data[0].f_phstate !== '已确认' ){
|
|
199
|
-
this.model.f_id = res.data[0].f_id
|
|
200
|
-
this.shownotices = true
|
|
201
|
-
} else {
|
|
202
|
-
this.shownotices = false
|
|
203
|
-
}
|
|
204
|
-
}).catch((e)=>{
|
|
205
|
-
console.log('报错了!!')
|
|
206
|
-
console.error(e)
|
|
207
|
-
})
|
|
208
|
-
},
|
|
209
|
-
saveIsShowStopGas(){
|
|
210
|
-
this.model.f_stopgas_id = this.notices.id
|
|
211
|
-
this.model.f_phstate = '已确认'
|
|
212
|
-
this.model.f_user_id = Vue.user.id
|
|
213
|
-
console.log('保存', this.model)
|
|
214
|
-
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/savenoticenotarize`, {data:this.model}).then((res) => {
|
|
215
|
-
this.model.f_stopgas_id = ''
|
|
216
|
-
this.model.f_user_id = ''
|
|
217
|
-
}).catch((res) => {
|
|
218
|
-
console.log('打印报错信息'+ res)
|
|
219
|
-
})
|
|
220
|
-
},
|
|
221
|
-
click (row) {
|
|
222
|
-
let _this = this
|
|
223
|
-
this.$dispatch('gotoson', {
|
|
224
|
-
_this: _this,
|
|
225
|
-
title: row.defname,
|
|
226
|
-
safe: true
|
|
227
|
-
})
|
|
228
|
-
this.$goto('app-service-control', {selectdata: row})
|
|
229
|
-
},
|
|
230
|
-
async getProcessId(processname) {
|
|
231
|
-
let data = {
|
|
232
|
-
workname: processname
|
|
233
|
-
}
|
|
234
|
-
let http = new HttpResetClass()
|
|
235
|
-
let res = await http.load(
|
|
236
|
-
'POST',
|
|
237
|
-
`${this.$androidUtil.getProxyUrl()}/rs/logic/getProcessId`,
|
|
238
|
-
{data: data},
|
|
239
|
-
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
240
|
-
)
|
|
241
|
-
|
|
242
|
-
return res.data
|
|
243
|
-
},
|
|
244
|
-
async apply () {
|
|
245
|
-
if (this.applyType === '' || this.applyType === null) {
|
|
246
|
-
this.$showAlert('请选择需要发起的类型', 'warning', 3000)
|
|
247
|
-
return
|
|
248
|
-
}
|
|
249
|
-
let data = {
|
|
250
|
-
f_apply_type: this.applyType
|
|
251
|
-
}
|
|
252
|
-
if (this.applyType === '散户报建') {
|
|
253
|
-
data.processname = '散户报建流程'
|
|
254
|
-
data.defname = '报装申请'
|
|
255
|
-
} else if (this.applyType === '工商户报建') {
|
|
256
|
-
data.processname = '工商户报建流程'
|
|
257
|
-
data.defname = '报装申请'
|
|
258
|
-
} else if (this.applyType === '改管报建') {
|
|
259
|
-
data.processname = '改管报建流程'
|
|
260
|
-
data.defname = '报装申请'
|
|
261
|
-
} else if (this.applyType === '增容报建') {
|
|
262
|
-
data.processname = '增容报建流程'
|
|
263
|
-
data.defname = '报装申请'
|
|
264
|
-
} else if (this.applyType === '团购报建') {
|
|
265
|
-
data.processname = '团购报建流程'
|
|
266
|
-
data.defname = '报装申请'
|
|
267
|
-
} else if (this.applyType === '退款报建') {
|
|
268
|
-
data.processname = '退款报建流程'
|
|
269
|
-
data.defname = '终止报建'
|
|
270
|
-
} else if (this.applyType === '团购转散户') {
|
|
271
|
-
data.processname = '团购转散户报建流程'
|
|
272
|
-
data.defname = '信息确认'
|
|
273
|
-
}else if (this.applyType === '报警器报建') {
|
|
274
|
-
data.processname = '报警器报建流程'
|
|
275
|
-
data.defname = '报装申请'
|
|
276
|
-
}else if (this.applyType === '工商业报警器报建') {
|
|
277
|
-
data.processname = '工商业报警器报建流程'
|
|
278
|
-
data.defname = '报装申请'
|
|
185
|
+
showStopGas(stopId,userid){
|
|
186
|
+
let http = new HttpResetClass()
|
|
187
|
+
var condition = `f_stopgas_id = '${stopId}' and f_user_id = '${userid}'`
|
|
188
|
+
let data = {
|
|
189
|
+
items: '*',
|
|
190
|
+
tablename: 't_notice_notarize',
|
|
191
|
+
condition: condition,
|
|
192
|
+
orderitem: 'f_id desc'
|
|
193
|
+
}
|
|
194
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/singleTable_OrderBy`, {data: data}, {
|
|
195
|
+
resolveMsg: null,
|
|
196
|
+
rejectMsg: null
|
|
197
|
+
}).then((res) => {
|
|
198
|
+
if (res.data.length === 0) {
|
|
199
|
+
this.shownotices = true
|
|
200
|
+
}else if (res.data[0].f_phstate !== '已确认' ){
|
|
201
|
+
this.model.f_id = res.data[0].f_id
|
|
202
|
+
this.shownotices = true
|
|
279
203
|
} else {
|
|
280
|
-
this
|
|
281
|
-
return
|
|
204
|
+
this.shownotices = false
|
|
282
205
|
}
|
|
206
|
+
}).catch((e)=>{
|
|
207
|
+
console.log('报错了!!')
|
|
208
|
+
console.error(e)
|
|
209
|
+
})
|
|
210
|
+
},
|
|
211
|
+
saveIsShowStopGas(){
|
|
212
|
+
this.model.f_stopgas_id = this.notices.id
|
|
213
|
+
this.model.f_phstate = '已确认'
|
|
214
|
+
this.model.f_user_id = Vue.user.id
|
|
215
|
+
console.log('保存', this.model)
|
|
216
|
+
this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/savenoticenotarize`, {data:this.model}).then((res) => {
|
|
217
|
+
this.model.f_stopgas_id = ''
|
|
218
|
+
this.model.f_user_id = ''
|
|
219
|
+
}).catch((res) => {
|
|
220
|
+
console.log('打印报错信息'+ res)
|
|
221
|
+
})
|
|
222
|
+
},
|
|
223
|
+
click (row) {
|
|
224
|
+
let _this = this
|
|
225
|
+
this.$dispatch('gotoson', {
|
|
226
|
+
_this: _this,
|
|
227
|
+
title: row.defname,
|
|
228
|
+
safe: true
|
|
229
|
+
})
|
|
230
|
+
this.$goto('app-service-control', {selectdata: row})
|
|
231
|
+
},
|
|
232
|
+
async getProcessId(processname) {
|
|
233
|
+
let data = {
|
|
234
|
+
workname: processname
|
|
235
|
+
}
|
|
236
|
+
let http = new HttpResetClass()
|
|
237
|
+
let res = await http.load(
|
|
238
|
+
'POST',
|
|
239
|
+
`${this.$androidUtil.getProxyUrl()}/rs/logic/getProcessId`,
|
|
240
|
+
{data: data},
|
|
241
|
+
{resolveMsg: null, rejectMsg: '流程标识获取失败!!!'}
|
|
242
|
+
)
|
|
283
243
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
244
|
+
return res.data
|
|
245
|
+
},
|
|
246
|
+
async apply () {
|
|
247
|
+
if (this.applyType === '' || this.applyType === null) {
|
|
248
|
+
this.$showAlert('请选择需要发起的类型', 'warning', 3000)
|
|
249
|
+
return
|
|
250
|
+
}
|
|
251
|
+
let data = {
|
|
252
|
+
f_apply_type: this.applyType
|
|
253
|
+
}
|
|
254
|
+
if (this.applyType === '散户报建') {
|
|
255
|
+
data.processname = '散户报建流程'
|
|
256
|
+
data.defname = '报装申请'
|
|
257
|
+
} else if (this.applyType === '工商户报建') {
|
|
258
|
+
data.processname = '工商户报建流程'
|
|
259
|
+
data.defname = '报装申请'
|
|
260
|
+
} else if (this.applyType === '改管报建') {
|
|
261
|
+
data.processname = '改管报建流程'
|
|
262
|
+
data.defname = '报装申请'
|
|
263
|
+
} else if (this.applyType === '增容报建') {
|
|
264
|
+
data.processname = '增容报建流程'
|
|
265
|
+
data.defname = '报装申请'
|
|
266
|
+
} else if (this.applyType === '团购报建') {
|
|
267
|
+
data.processname = '团购报建流程'
|
|
268
|
+
data.defname = '报装申请'
|
|
269
|
+
} else if (this.applyType === '退款报建') {
|
|
270
|
+
data.processname = '退款报建流程'
|
|
271
|
+
data.defname = '终止报建'
|
|
272
|
+
} else if (this.applyType === '团购转散户') {
|
|
273
|
+
data.processname = '团购转散户报建流程'
|
|
274
|
+
data.defname = '信息确认'
|
|
275
|
+
}else if (this.applyType === '报警器报建') {
|
|
276
|
+
data.processname = '报警器报建流程'
|
|
277
|
+
data.defname = '报装申请'
|
|
278
|
+
}else if (this.applyType === '工商业报警器报建') {
|
|
279
|
+
data.processname = '工商业报警器报建流程'
|
|
280
|
+
data.defname = '报装申请'
|
|
281
|
+
} else {
|
|
282
|
+
this.$showMessage('暂无此类报装')
|
|
283
|
+
return
|
|
284
|
+
}
|
|
287
285
|
|
|
288
|
-
|
|
286
|
+
data.f_sub_state = "新增"
|
|
287
|
+
data.f_apply_source = "线下发起"
|
|
288
|
+
data.f_process_id = await this.getProcessId(data.processname)
|
|
289
289
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
this.getRepair()
|
|
302
|
-
}
|
|
303
|
-
if(this.tabs[i].link == 'current-create' ){
|
|
304
|
-
this.getSafeCheck()
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
getRepair(){
|
|
309
|
-
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
310
|
-
return
|
|
311
|
-
}
|
|
312
|
-
var _this = this;
|
|
313
|
-
let bbb = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
|
|
314
|
-
if (bbb.code === 200) {
|
|
315
|
-
_this.repairNum = bbb.data.length
|
|
290
|
+
// 调用ExplorationUser事件
|
|
291
|
+
|
|
292
|
+
this.click(data)
|
|
293
|
+
this.applyType = null
|
|
294
|
+
this.showModal = false
|
|
295
|
+
},
|
|
296
|
+
// 查询本地所有待办
|
|
297
|
+
getModelSum(){
|
|
298
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
299
|
+
if(this.tabs[i].link == 'zhihuan-first' ){
|
|
300
|
+
this.getZhihuan()
|
|
316
301
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
320
|
-
return
|
|
302
|
+
if(this.tabs[i].link == 'repair-first' ){
|
|
303
|
+
this.getRepair()
|
|
321
304
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
if (aaa.code === 200) {
|
|
325
|
-
_this.safeckNum = aaa.data.length
|
|
305
|
+
if(this.tabs[i].link == 'current-create' ){
|
|
306
|
+
this.getSafeCheck()
|
|
326
307
|
}
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
getRepair(){
|
|
311
|
+
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
312
|
+
return
|
|
313
|
+
}
|
|
314
|
+
var _this = this;
|
|
315
|
+
let bbb = _this.$androidUtil.path({'alias':`getServiceMobile`,'data':{condition:'1 = 1'}})
|
|
316
|
+
if (bbb.code === 200) {
|
|
317
|
+
_this.repairNum = bbb.data.length
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
getSafeCheck(){
|
|
321
|
+
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
322
|
+
return
|
|
323
|
+
}
|
|
324
|
+
var _this = this;
|
|
325
|
+
let aaa = _this.$androidUtil.path({'alias':`safecheckGetServiceMobile`,'data':{condition:'1 = 1'}})
|
|
326
|
+
if (aaa.code === 200) {
|
|
327
|
+
_this.safeckNum = aaa.data.length
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
getZhihuan(){
|
|
331
|
+
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
332
|
+
return
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
changesum(titdata){
|
|
336
|
+
for(var i = 0;i<this.tabs.length;i++){
|
|
337
|
+
if(this.tabs[i].name == titdata.title){
|
|
338
|
+
this.tabs[i].icon = titdata.sum + '单'
|
|
330
339
|
return
|
|
331
340
|
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
},
|
|
341
|
-
getNoTagTabs(){
|
|
342
|
-
for(let funs in Vue.functions){
|
|
343
|
-
if(Vue.functions[funs].link == 'attend-manage'){
|
|
344
|
-
this.$set('tabs',Vue.functions[funs].children)
|
|
345
|
-
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
getNoTagTabs(){
|
|
344
|
+
for(let funs in Vue.functions){
|
|
345
|
+
if(Vue.functions[funs].link == 'attend-manage'){
|
|
346
|
+
this.$set('tabs',Vue.functions[funs].children)
|
|
346
347
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
for (var i = 0; i < this.tabs.length; i++) {
|
|
359
|
-
result.result.forEach(ress => {
|
|
360
|
-
if (this.tabs[i].link === ress.link) {
|
|
361
|
-
this.$set('tabs[' + i + '].num', ress.num)
|
|
362
|
-
}
|
|
363
|
-
})
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
} else {
|
|
368
|
-
const result = {
|
|
369
|
-
"code": 200,
|
|
370
|
-
"result": [{"link": "repair-first", "num": 50}, {"link": "current-create", "num": 30}]
|
|
371
|
-
}
|
|
348
|
+
}
|
|
349
|
+
this.getTabs()
|
|
350
|
+
},
|
|
351
|
+
getTabs(){
|
|
352
|
+
if (Vue.android) {
|
|
353
|
+
if(Vue.config.telephone&&Vue.config.telephone.TipConfig&&Vue.config.telephone.TipConfig.data) {
|
|
354
|
+
this.isshowTag = true
|
|
355
|
+
const config = Vue.config.telephone.TipConfig.data
|
|
356
|
+
const user = Vue.user
|
|
357
|
+
console.log("Vue.android" + Vue.android)
|
|
358
|
+
const result = this.$androidUtil.syncBzLogic("TipConfig", {data: {config, user}})
|
|
372
359
|
if (result.code === 200) {
|
|
373
360
|
for (var i = 0; i < this.tabs.length; i++) {
|
|
374
361
|
result.result.forEach(ress => {
|
|
@@ -379,156 +366,171 @@
|
|
|
379
366
|
}
|
|
380
367
|
}
|
|
381
368
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
387
|
-
return
|
|
388
|
-
}
|
|
389
|
-
this.timeOutGetmeterNum()
|
|
390
|
-
},
|
|
391
|
-
timeOutGetmeterNum(){
|
|
392
|
-
let val = {
|
|
393
|
-
items:"count(*) as count_num",
|
|
394
|
-
tablename:"t_handplan",
|
|
395
|
-
orderitem:"1",
|
|
396
|
-
condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
|
|
397
|
-
f_orgid:`'${Vue.user.orgid}'`
|
|
369
|
+
} else {
|
|
370
|
+
const result = {
|
|
371
|
+
"code": 200,
|
|
372
|
+
"result": [{"link": "repair-first", "num": 50}, {"link": "current-create", "num": 30}]
|
|
398
373
|
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
},
|
|
407
|
-
imgback(val){
|
|
408
|
-
return require('../../assets/'+val+'.png')
|
|
409
|
-
},
|
|
410
|
-
// 返回主界面
|
|
411
|
-
back(){
|
|
412
|
-
this.titleName = '主界面'
|
|
413
|
-
this.isMenu = true
|
|
414
|
-
},
|
|
415
|
-
gotopage(param,title) {
|
|
416
|
-
if(title === '工程发起'){
|
|
417
|
-
this.showModal = !this.showModal
|
|
418
|
-
}else{
|
|
419
|
-
var prpdata = {
|
|
420
|
-
_this:this,
|
|
421
|
-
title:title,
|
|
422
|
-
safe:false
|
|
374
|
+
if (result.code === 200) {
|
|
375
|
+
for (var i = 0; i < this.tabs.length; i++) {
|
|
376
|
+
result.result.forEach(ress => {
|
|
377
|
+
if (this.tabs[i].link === ress.link) {
|
|
378
|
+
this.$set('tabs[' + i + '].num', ress.num)
|
|
379
|
+
}
|
|
380
|
+
})
|
|
423
381
|
}
|
|
424
|
-
this.$dispatch('gotoson',prpdata)
|
|
425
|
-
this.$goto(param,{sourcet:'竖屏',tabname:title},'self',this.getTabs)
|
|
426
382
|
}
|
|
427
|
-
},
|
|
428
|
-
mute () {
|
|
429
|
-
HostApp.mute()
|
|
430
383
|
}
|
|
384
|
+
this.getmeterNum()
|
|
385
|
+
this.getModelSum()
|
|
431
386
|
},
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
387
|
+
getmeterNum() {
|
|
388
|
+
if (!this.isShowRedNum || this.isShowRedNum != 'true') {
|
|
389
|
+
return
|
|
390
|
+
}
|
|
391
|
+
this.timeOutGetmeterNum()
|
|
392
|
+
},
|
|
393
|
+
timeOutGetmeterNum(){
|
|
394
|
+
let val = {
|
|
395
|
+
items:"count(*) as count_num",
|
|
396
|
+
tablename:"t_handplan",
|
|
397
|
+
orderitem:"1",
|
|
398
|
+
condition:`1=1 and f_inputtor = '${Vue.user.name}' and f_hand_state = '有效' and f_meter_state = '未抄表'`,
|
|
399
|
+
f_orgid:`'${Vue.user.orgid}'`
|
|
400
|
+
}
|
|
401
|
+
let http = new HttpResetClass()
|
|
402
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: val}, {
|
|
403
|
+
resolveMsg: null,
|
|
404
|
+
rejectMsg: null
|
|
405
|
+
}).then((res) => {
|
|
406
|
+
this.meterNum = res.data[0].count_num
|
|
407
|
+
})
|
|
408
|
+
},
|
|
409
|
+
imgback(val){
|
|
410
|
+
return require('../../assets/'+val+'.png')
|
|
411
|
+
},
|
|
412
|
+
// 返回主界面
|
|
413
|
+
back(){
|
|
414
|
+
this.titleName = '主界面'
|
|
415
|
+
this.isMenu = true
|
|
416
|
+
},
|
|
417
|
+
gotopage(param,title) {
|
|
418
|
+
if(title === '工程发起'){
|
|
419
|
+
this.showModal = !this.showModal
|
|
420
|
+
}else{
|
|
421
|
+
var prpdata = {
|
|
422
|
+
_this:this,
|
|
423
|
+
title:title,
|
|
424
|
+
safe:false
|
|
469
425
|
}
|
|
426
|
+
this.$dispatch('gotoson',prpdata)
|
|
427
|
+
this.$goto(param,{sourcet:'竖屏',tabname:title},'self',this.getTabs)
|
|
470
428
|
}
|
|
429
|
+
},
|
|
430
|
+
mute () {
|
|
431
|
+
HostApp.mute()
|
|
471
432
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
433
|
+
},
|
|
434
|
+
}
|
|
435
|
+
</script>
|
|
436
|
+
<style lang="less">
|
|
437
|
+
.badge-content{
|
|
438
|
+
color: #fff;
|
|
439
|
+
box-sizing: border-box;
|
|
440
|
+
min-width: 8px;
|
|
441
|
+
font-size: 9px;
|
|
442
|
+
line-height: 12px;
|
|
443
|
+
white-space: nowrap;
|
|
444
|
+
font-weight: 400;
|
|
445
|
+
text-align: center;
|
|
446
|
+
}
|
|
447
|
+
.badge{
|
|
448
|
+
top: 6px;
|
|
449
|
+
position: absolute;
|
|
450
|
+
max-height: 13px;
|
|
451
|
+
min-height: 8px;
|
|
452
|
+
//transform: translate(50%,-50%);
|
|
453
|
+
right:0;
|
|
454
|
+
display: inline-flex;
|
|
455
|
+
vertical-align: middle;
|
|
456
|
+
box-sizing: content-box;
|
|
457
|
+
border-radius: 100px;
|
|
458
|
+
background-color: red;
|
|
459
|
+
}
|
|
460
|
+
.app-input {
|
|
461
|
+
label {
|
|
462
|
+
float: left;
|
|
463
|
+
}
|
|
464
|
+
.select {
|
|
465
|
+
button {
|
|
466
|
+
border: none;
|
|
467
|
+
outline: none;
|
|
468
|
+
text-align: left;
|
|
469
|
+
.btn-placeholder {
|
|
470
|
+
color: #ACA899
|
|
478
471
|
}
|
|
479
472
|
}
|
|
480
473
|
}
|
|
481
|
-
.
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
vertical-align: -35%;
|
|
489
|
-
}
|
|
490
|
-
.pageskuang{
|
|
491
|
-
vertical-align:middle;
|
|
492
|
-
display:table-cell;
|
|
493
|
-
width: 32%;
|
|
494
|
-
top:-50%;
|
|
495
|
-
margin-top: 1%;
|
|
496
|
-
margin-left: 1%;
|
|
497
|
-
border:1px solid #e3e3e3;
|
|
498
|
-
text-align: center;
|
|
499
|
-
background-color: #ffffff;
|
|
500
|
-
}
|
|
501
|
-
.pgesfoot{
|
|
502
|
-
font-size: 14px;
|
|
503
|
-
color: #666666;
|
|
504
|
-
/* font-family: "Pingfhs";*/
|
|
505
|
-
}
|
|
506
|
-
.imgs{
|
|
507
|
-
width: 35px;
|
|
508
|
-
margin-top: 15px;
|
|
509
|
-
}
|
|
510
|
-
.pages-bgcolor{
|
|
511
|
-
text-align: center;
|
|
512
|
-
background-color: #f0f0ef;
|
|
513
|
-
}
|
|
514
|
-
img[src=""],img:not([src]){
|
|
515
|
-
opacity: 0;
|
|
516
|
-
border:none;
|
|
517
|
-
visibility: hidden;
|
|
518
|
-
max-width: none;
|
|
474
|
+
.datepicker {
|
|
475
|
+
.form-control:focus {
|
|
476
|
+
border: none!important;
|
|
477
|
+
outline: none!important;
|
|
478
|
+
-webkit-box-shadow: none;
|
|
479
|
+
box-shadow: none;
|
|
480
|
+
}
|
|
519
481
|
}
|
|
482
|
+
}
|
|
483
|
+
.tab-befor-img {
|
|
484
|
+
content: '';
|
|
485
|
+
background-size: 30px;
|
|
486
|
+
display: inline-block;
|
|
487
|
+
margin-right: 8px;
|
|
488
|
+
height: 30px;
|
|
489
|
+
width: 30px;
|
|
490
|
+
vertical-align: -35%;
|
|
491
|
+
}
|
|
492
|
+
.pageskuang{
|
|
493
|
+
vertical-align:middle;
|
|
494
|
+
display:table-cell;
|
|
495
|
+
width: 32%;
|
|
496
|
+
top:-50%;
|
|
497
|
+
margin-top: 1%;
|
|
498
|
+
margin-left: 1%;
|
|
499
|
+
border:1px solid #e3e3e3;
|
|
500
|
+
text-align: center;
|
|
501
|
+
background-color: #ffffff;
|
|
502
|
+
}
|
|
503
|
+
.pgesfoot{
|
|
504
|
+
font-size: 14px;
|
|
505
|
+
color: #666666;
|
|
506
|
+
/* font-family: "Pingfhs";*/
|
|
507
|
+
}
|
|
508
|
+
.imgs{
|
|
509
|
+
width: 35px;
|
|
510
|
+
margin-top: 15px;
|
|
511
|
+
}
|
|
512
|
+
.pages-bgcolor{
|
|
513
|
+
text-align: center;
|
|
514
|
+
background-color: #f0f0ef;
|
|
515
|
+
}
|
|
516
|
+
img[src=""],img:not([src]){
|
|
517
|
+
opacity: 0;
|
|
518
|
+
border:none;
|
|
519
|
+
visibility: hidden;
|
|
520
|
+
max-width: none;
|
|
521
|
+
}
|
|
520
522
|
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
523
|
+
.manbiankuang{
|
|
524
|
+
width: 44%;
|
|
525
|
+
margin-top: 15px;
|
|
526
|
+
margin-left: 4%;
|
|
527
|
+
border:1px solid #e3e3e3;
|
|
528
|
+
border-radius:10px 10px 10px 10px;
|
|
529
|
+
text-align: center;
|
|
530
|
+
background-color: #ffffff;
|
|
531
|
+
}
|
|
530
532
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
533
|
+
.nav-bgcolor{
|
|
534
|
+
background-color: #ffffff;
|
|
535
|
+
}
|
|
534
536
|
</style>
|