safecheck-client 3.0.39-1 → 3.0.39-3

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/src/components/android/AreaPlan.vue +567 -566
  3. package/src/components/android/SafecheckDevices.vue +1300 -1300
  4. package/src/components/android/SealBind.vue +392 -392
  5. package/src/components/android/SealManage.vue +250 -250
  6. package/src/components/map/checkScreen.vue +920 -920
  7. package/src/filiale/dexin/android/AreaPlan.vue +567 -0
  8. package/src/filiale/dexin/android/SafecheckOrderV.vue +2983 -2983
  9. package/src/filiale/dexin/android.js +21 -20
  10. package/src/filiale/dexin/pc/PlanManage.vue +894 -894
  11. package/src/filiale/dexin/pc.js +15 -15
  12. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  13. package/src/filiale/huayin/android/AddPlanItem.vue +509 -509
  14. package/src/filiale/huayin/android/AreaPlan.vue +572 -572
  15. package/src/filiale/huayin/android/CurrentCreate.vue +1121 -1121
  16. package/src/filiale/huayin/android.js +16 -16
  17. package/src/filiale/huayin/pc/PaperList.vue +635 -635
  18. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1231 -1231
  19. package/src/filiale/tongchuan/android/AddPlanItemset.vue +484 -484
  20. package/src/filiale/tongchuan/android/PaperFeedback.vue +1317 -1317
  21. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +1343 -1343
  22. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1209 -1209
  23. package/src/filiale/tongchuan/android.js +22 -22
  24. package/src/filiale/tongchuan/pc/CheckBookList.vue +377 -377
  25. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  26. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +618 -618
  27. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1524 -1524
  28. package/src/filiale/tongchuan/pc/PaperList.vue +684 -684
  29. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2682 -2680
  30. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +278 -278
  31. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1136 -1136
@@ -1,509 +1,509 @@
1
- <template>
2
- <div class="auto">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
- <div partial>
6
- <form>
7
- <div class="row app-row">
8
- <div class="col-xs-4">
9
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
- <label class="font text-left">用户编号:</label>
11
- </div>
12
- <div class="col-xs-8" >
13
- <input class="search_input input-font"
14
- v-model=model.f_userinfo_code condition="ui.f_userinfo_code = '{}'" placeholder="请输入用户编号" />
15
- </div>
16
- </div>
17
- <div class="row app-row">
18
- <div class="col-xs-4">
19
- <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
- <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
21
- </div>
22
- <div class="col-xs-8" >
23
- <input class="search_input input-font"
24
- v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
25
- <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
26
- </div>
27
- </div>
28
- <div class="row app-row">
29
- <div class="col-xs-4">
30
- <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
31
- <label class="font text-left">用户名称:</label>
32
- </div>
33
- <div class="col-xs-8" >
34
- <input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
35
- </div>
36
- </div>
37
- <div class="row app-row">
38
- <div class="col-xs-4">
39
- <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
40
- <label class="font text-left">用户类型:</label>
41
- </div>
42
- <div class="col-xs-8" >
43
- <v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
44
- :options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
45
- v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
46
- </div>
47
- </div>
48
- <div class="row app-row">
49
- <div class="col-xs-4">
50
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
51
- <label class="font text-left">小区名称:</label>
52
- </div>
53
- <div class="col-xs-8" >
54
- <input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
55
- </div>
56
- </div>
57
- <div class="row app-row">
58
- <div class="col-xs-4">
59
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
60
- <label class="font text-left">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
61
- </div>
62
- <div class="col-xs-8" >
63
- <input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
64
- </div>
65
- </div>
66
- <div class="row app-row">
67
- <div class="col-xs-4">
68
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
69
- <label class="font text-left">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元:</label>
70
- </div>
71
- <div class="col-xs-8" >
72
- <input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
73
- </div>
74
- </div>
75
- <div class="row app-row">
76
- <div class="col-xs-4">
77
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
78
- <label class="font text-left">用户地址:</label>
79
- </div>
80
- <div class="col-xs-8" >
81
- <input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
82
- </div>
83
- </div>
84
- <div class="row app-row">
85
- <div class="col-xs-4">
86
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
87
- <label class="font text-left">表&nbsp;&nbsp;封&nbsp;&nbsp;号:</label>
88
- </div>
89
- <div class="col-xs-8" >
90
- <input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
91
- </div>
92
- </div>
93
- <div class="row app-row">
94
- <div class="col-xs-4">
95
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
96
- <label class="font text-left">电&nbsp;&nbsp;话&nbsp;&nbsp;号:</label>
97
- </div>
98
- <div class="col-xs-8" >
99
- <input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
100
- </div>
101
- </div>
102
- <div class="row app-row">
103
- <div class="col-xs-4">
104
- <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
105
- <label class="font text-left">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
106
- </div>
107
- <div class="col-xs-8" >
108
- <input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
109
- </div>
110
- </div>
111
- <div class="row app-row">
112
- <div class="col-xs-4">
113
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
114
- <label class="font text-left">抄&nbsp;&nbsp;表&nbsp;&nbsp;册:</label>
115
- </div>
116
- <div class="col-xs-8" >
117
- <v-select class="input-font"
118
- placeholder='请选择抄表册'
119
- :value.sync="model.f_meter_book_num"
120
- v-model="model.f_meter_book_num"
121
- :options='$parent.$parent.cbc'
122
- condition="uf.f_meter_book_num='{}'"
123
- close-on-select clear-button></v-select>
124
- </div>
125
- </div>
126
- <!-- <div class="row app-row">
127
- <div class="col-xs-4">
128
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
129
- <label class="font text-left">安检情况</label>
130
- </div>
131
- <div class="col-xs-8" >
132
- <v-select class="input-font"
133
- placeholder='请选择安检情况'
134
- :value.sync="model.f_ischeck"
135
- v-model="model.f_ischeck"
136
- :options='$parent.$parent.ischecks'
137
- condition="{}"
138
- close-on-select clear-button></v-select>
139
- </div>
140
- </div>
141
- <div class="row app-row">
142
- <div class="col-xs-4">
143
- <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
144
- <label class="font text-left">档案状态:</label>
145
- </div>
146
- <div class="col-xs-8" >
147
- <v-select class="input-font"
148
- placeholder='请选择档案状态'
149
- :value.sync="$parent.$parent.model.f_user_state"
150
- :options='$parent.$parent.f_user_states'
151
- close-on-select clear-button></v-select>
152
- </div>
153
- </div>-->
154
-
155
-
156
-
157
- <div class="row text-center" style="margin-top: 20px;">
158
- <button type="button" style="width: 25%;" class="btn btn-lg btn-font btn-color" @click="search">查询</button>
159
- <button style="margin-right: 20px;width: 25%;" type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.sealScan">铅封识别</button>
160
- </div>
161
- <div style="height:30px;"></div>
162
- </form>
163
- </div>
164
- </criteria>
165
-
166
- <list :model="model" partial='list'>
167
- <div partial>
168
- <div @click="$parent.$parent.$parent.inspectbefor(row)" class="auto app-text" style="margin-top: 5px;">
169
- <div class="panel" style="padding: 10px 10px 5px 10px;">
170
- <div class="panel-body panel-self">
171
- <div class="row">
172
- <p class="panel-title col-xs-4 text-left font">用户编号</p>
173
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
174
- </div>
175
- <div class="row">
176
- <p class="panel-title col-xs-4 text-left font">用户名称</p>
177
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
178
- </div>
179
- <div class="row">
180
- <p class="panel-title col-xs-4 text-left font">表号</p>
181
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
182
- </div>
183
- <div class="row">
184
- <p class="panel-title col-xs-4 text-left font">用户类型</p>
185
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
186
- </div>
187
- <div class="row">
188
- <p class="panel-title col-xs-4 text-left font">用户电话</p>
189
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
190
- </div>
191
-
192
- <div class="row">
193
- <p class="panel-title col-xs-4 text-left font">小区名称</p>
194
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
195
- </div>
196
- <div class="row">
197
- <p class="panel-title col-xs-4 text-left font">用户地址</p>
198
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
199
- </div>
200
- <div class="row">
201
- <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
202
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
203
- </div>
204
- <div class="row">
205
- <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
206
- <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
207
- </div>
208
- </div>
209
- </div>
210
-
211
- </div>
212
- </div>
213
- </list>
214
- </criteria-paged>
215
- <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
216
- </div>
217
- </template>
218
-
219
- <script>
220
- import {HttpResetClass, PagedList} from 'vue-client'
221
- import Vue from 'vue'
222
- import * as Util from '../../Util'
223
-
224
- export default {
225
- title: '安检员B',
226
- data () {
227
- let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room"',f_check_type:'this.f_check_type[0]',
228
- f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
229
- model.f_sign = ['']
230
- model.f_user_type = ''
231
- model.f_user_state =['']
232
- model.f_check_type =['']
233
- model.myCycle = 0
234
- model.fyCycle = 0
235
- model.f_filialeid = Vue.user.orgid
236
- //model.f_filialeid = 287
237
- return {
238
- model: model,
239
- cbc:[],
240
- showModal:false,
241
- signs: [
242
- {label:'请选择录入状态', value:''},
243
- {label:'录入', value:'1'},
244
- {label:'非录入', value:'0'},
245
- ],
246
- ischecks: [
247
- ],
248
- user_types: [
249
- {label: '请选择用户类型', value: ''},
250
- {label: '民用', value: '民用'},
251
- {label: '非民用', value: '非民用'},
252
- ],
253
- f_user_states: [
254
- {label:'请选择档案状态', value:''},
255
- {label:'正常', value:'正常'},
256
- {label:'点火', value:'点火'},
257
- ],
258
- f_check_types: [
259
- {label:'请选择安检类型', value:''},
260
- {label:'应检', value:'应检'},
261
- {label:'超期', value:'超期'},
262
- ],
263
- f_source:'搜索查询'
264
- }
265
- },
266
- ready () {
267
- // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
268
- // //tag)
269
- // if(res.data.code == 200){
270
- // this.model.myCycle = res.data.civil.value
271
- // this.model.fyCycle = res.data.civilian.value
272
- // }else{
273
- // //this.$showMessage(res.data.msg)
274
- // }
275
- //
276
- // })
277
- // this.getCheckTime()
278
- // this.Mreadibook()
279
- },
280
- computed: {
281
- reload(){
282
- // this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
283
- },
284
- selected () {
285
- return this.$refs.paged.$refs.grid.selected
286
- }
287
- },
288
- methods:{
289
- sealScan() {
290
- HostApp.__this__ = this
291
- HostApp.readNfc({
292
- 'callback': 'javascript:HostApp.__this__.sealScanCallback()',
293
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
294
- // 执行回调方法传入key为backresult
295
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
296
- 'backresult': 1
297
- })
298
- },
299
- sealScanCallback() {
300
- console.log('sealScanCallback=========')
301
- let result = HostApp.getNfcUUID()
302
- console.log('result=', result)
303
- if (result.code == 200){
304
- let sealUID = ''
305
- if (result.data.indexOf('=') > 0) {
306
- sealUID = result.data.substring(result.data.indexOf('=') + 1)
307
- }else{
308
- sealUID = result.data
309
- }
310
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`,{"data":{
311
- "condition":` 1=1 and sr.f_uid = '${sealUID}'`,
312
- "condValue":[],
313
- "groupitem":"",
314
- "orderitem":"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room",
315
- "f_check_type":"",
316
- "f_user_name":"",
317
- "myCycle":0,
318
- "fyCycle":0,
319
- "f_user_type":"",
320
- "f_sign":"",
321
- "f_residential_area":"",
322
- "f_address":"",
323
- "f_user_state":"",
324
- "f_unit":"",
325
- "f_building":"",
326
- "f_filialeid": Vue.user.orgid,
327
- }
328
- }, ).then(res=> {
329
- console.log('res=', JSON.stringify(res))
330
- if (res.data.length){
331
- this.f_source = 'NFC查询'
332
- this.inspect(res.data[0])
333
- return
334
- }
335
- this.$showMessage("未找到与该铅封绑定的用户,请输入地址查询!")
336
- })
337
- } else {
338
- this.$showMessage("未识别到铅封信息,请重新尝试!")
339
- return
340
- }
341
- },
342
- scan(){
343
- HostApp.__this__=this,
344
- HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
345
- },
346
- getCode(){
347
- let datapa = HostApp.getCode().data;
348
- let indexnum = datapa.indexOf("]C1")
349
- if(indexnum != -1){
350
- datapa = datapa.substring(indexnum+3,datapa.length)
351
- }
352
- if (datapa.startsWith('WL')){
353
- datapa = datapa.substring(2)
354
- }
355
- this.$refs.paged.$refs.cri.model.f_meternumber=datapa
356
- },
357
- getCheckTime(){
358
- //tag
359
- new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
360
- items: 'f_circle,f_start_time',
361
- tablename: 't_safe_circle',
362
- condition: `f_filialeid = '${Vue.user.orgid}'`,
363
- orderitem: 'id'
364
- }}).then(res=>{
365
- //tag)
366
- let nocheck=''
367
- let ischeck=''
368
- if (res.data[0]){
369
- if (res.data[0].f_circle=='1'){
370
- nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
371
- ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
372
-
373
- }else{
374
- let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
375
- //tag
376
- let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
377
- //tag
378
- nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
379
- ischeck=`ua.f_last_check_date>'${time}'`
380
- }
381
- //tag
382
- this.ischecks=[
383
- {label: '全部', value: ''},
384
- {label: '已检', value: ischeck },
385
- {label: '未检', value: nocheck},
386
- ]
387
- //tag
388
- }else{
389
- this.$showMessage("未配置安检周期")
390
- }
391
-
392
- })
393
- //tag
394
- },
395
- inspectbefor(info){
396
- this.f_source = '搜索查询'
397
- this.inspect(info)
398
- },
399
- inspect (info){
400
- if(info.f_last_check_date){
401
- this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
402
- if(butt=="confirm"){
403
- info.id = ''
404
- info.f_state = '未检'
405
- info.f_no_checkplan = '无计划安检'
406
- //tag
407
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
408
- //tag)
409
- info['f_plan_meters'] = response.data
410
- var pardate = {
411
- _this:this,
412
- tittle:'安检详情',
413
- safe:true
414
- }
415
- this.$dispatch('gotoson',pardate)
416
- this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem',source:this.f_source}, 'self', this.reload)
417
-
418
- })
419
- }
420
- })
421
- }else{
422
- info.id = ''
423
- info.f_state = '未检'
424
- info.f_no_checkplan = '无计划安检'
425
- //tag
426
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
427
- //tag)
428
- info['f_plan_meters'] = response.data
429
- var pardate = {
430
- _this:this,
431
- tittle:'安检详情',
432
- safe:true
433
- }
434
- this.$dispatch('gotoson',pardate)
435
- this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem',source:this.f_source}, 'self', this.reload)
436
-
437
- })
438
- }
439
- },
440
- Mreadibook(){
441
- this.cbc=[]
442
- let http = new HttpResetClass()
443
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
444
- {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
445
- {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
446
- this.cbc = [{label: '全部', value: ''}]
447
- //tag
448
- //tag)
449
- //tag
450
- getMeterReadingBooks.data.meterbooks.forEach((res) => {
451
- this.cbc.push({label: res.f_book_name, value: res.id})
452
- /*if(res.f_book_slice_area){
453
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
454
- this.sliceArea.push(res.f_book_slice_area)
455
- }
456
- }*/
457
- })
458
- })
459
-
460
-
461
- }
462
- }
463
- }
464
- </script>
465
- <style scoped>
466
- .app-row {
467
- background-color: white;
468
- padding: 10px 10px 0 10px;
469
- border-bottom: 1px solid rgba(235, 235, 235, 0.5);
470
- }
471
- .search_input {
472
- border: 0;
473
- outline: none;
474
- }
475
- .font{
476
- font: 15px PingFang-SC-Medium;
477
- color: #666666;
478
- }
479
- .input-font{
480
- font: 15px PingFang-SC-Medium;
481
- color: #333333;
482
- }
483
- .btn-font{
484
- font:600 16px PingFang-SC-Bold;
485
- color: #499EDF;
486
- }
487
- .btn-color{
488
- background-color: #FFFFFF;
489
- border-radius: 10px ;
490
- border: 1px solid #499EDF;
491
- }
492
- .app-text {
493
- font-size: 12px;
494
- }
495
- .panel-self{
496
- border-radius: 10px;
497
- border:1px solid #499EDF;
498
- background-color: #F8F8F8;
499
- }
500
- .yybtn-color{
501
- border-radius: 4px ;
502
- border: 1px solid #499EDF;
503
- }
504
- .qxbtn-color{
505
- background-color: #FFFFFF;
506
- border-radius: 4px ;
507
- border: 1px solid #499EDF;
508
- }
509
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div partial>
6
+ <form>
7
+ <div class="row app-row">
8
+ <div class="col-xs-4">
9
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
10
+ <label class="font text-left">用户编号:</label>
11
+ </div>
12
+ <div class="col-xs-8" >
13
+ <input class="search_input input-font"
14
+ v-model=model.f_userinfo_code condition="ui.f_userinfo_code = '{}'" placeholder="请输入用户编号" />
15
+ </div>
16
+ </div>
17
+ <div class="row app-row">
18
+ <div class="col-xs-4">
19
+ <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
20
+ <label class="font text-left">表 &nbsp;&nbsp; &nbsp;&nbsp; 号:</label>
21
+ </div>
22
+ <div class="col-xs-8" >
23
+ <input class="search_input input-font"
24
+ v-model=model.f_meternumber condition="f_meternumber = '{}'" style="width: 70%" placeholder="请输入表号" />
25
+ <button type="button" name="button" class="btn btn-primary" style="width: 25%" @click="$parent.$parent.scan">扫码</button>
26
+ </div>
27
+ </div>
28
+ <div class="row app-row">
29
+ <div class="col-xs-4">
30
+ <img src="../../../assets/用户姓名.png" style="width: 20px;margin-bottom: 5px" alt="">
31
+ <label class="font text-left">用户名称:</label>
32
+ </div>
33
+ <div class="col-xs-8" >
34
+ <input class="search_input input-font" v-model="model.f_username" placeholder="请输入用户名称(可模糊查询)">
35
+ </div>
36
+ </div>
37
+ <div class="row app-row">
38
+ <div class="col-xs-4">
39
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
40
+ <label class="font text-left">用户类型:</label>
41
+ </div>
42
+ <div class="col-xs-8" >
43
+ <v-select :value.sync="$parent.$parent.model.f_user_type" class="input-font"
44
+ :options='$parent.$parent.user_types' placeholder='请选择用户类型' :value-single="true"
45
+ v-model="$parent.$parent.model.f_user_type" close-on-select clear-button></v-select>
46
+ </div>
47
+ </div>
48
+ <div class="row app-row">
49
+ <div class="col-xs-4">
50
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
51
+ <label class="font text-left">小区名称:</label>
52
+ </div>
53
+ <div class="col-xs-8" >
54
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_districtname" placeholder="请输入用户小区(可模糊查询)">
55
+ </div>
56
+ </div>
57
+ <div class="row app-row">
58
+ <div class="col-xs-4">
59
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
60
+ <label class="font text-left">楼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
61
+ </div>
62
+ <div class="col-xs-8" >
63
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_building" placeholder="请输入用户楼号">
64
+ </div>
65
+ </div>
66
+ <div class="row app-row">
67
+ <div class="col-xs-4">
68
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
69
+ <label class="font text-left">单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;元:</label>
70
+ </div>
71
+ <div class="col-xs-8" >
72
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_unit" placeholder="请输入用户单元">
73
+ </div>
74
+ </div>
75
+ <div class="row app-row">
76
+ <div class="col-xs-4">
77
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
78
+ <label class="font text-left">用户地址:</label>
79
+ </div>
80
+ <div class="col-xs-8" >
81
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_address" placeholder="请输入用户地址(可模糊查询)">
82
+ </div>
83
+ </div>
84
+ <div class="row app-row">
85
+ <div class="col-xs-4">
86
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
87
+ <label class="font text-left">表&nbsp;&nbsp;封&nbsp;&nbsp;号:</label>
88
+ </div>
89
+ <div class="col-xs-8" >
90
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_metertitles" placeholder="请输入表封号" condition="uf.f_metertitles='{}'">
91
+ </div>
92
+ </div>
93
+ <div class="row app-row">
94
+ <div class="col-xs-4">
95
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
96
+ <label class="font text-left">电&nbsp;&nbsp;话&nbsp;&nbsp;号:</label>
97
+ </div>
98
+ <div class="col-xs-8" >
99
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_user_phone" placeholder="请输入电话号" condition="ui.f_user_phone like '%{}%'">
100
+ </div>
101
+ </div>
102
+ <div class="row app-row">
103
+ <div class="col-xs-4">
104
+ <img src="../../../assets/小区.png" style="width: 20px;margin-bottom: 5px" alt="">
105
+ <label class="font text-left">卡&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</label>
106
+ </div>
107
+ <div class="col-xs-8" >
108
+ <input style="width: 100%" class="search_input input-font" v-model="model.f_card_id" placeholder="请输入卡号" condition="uf.f_card_id like '%{}%'">
109
+ </div>
110
+ </div>
111
+ <div class="row app-row">
112
+ <div class="col-xs-4">
113
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
114
+ <label class="font text-left">抄&nbsp;&nbsp;表&nbsp;&nbsp;册:</label>
115
+ </div>
116
+ <div class="col-xs-8" >
117
+ <v-select class="input-font"
118
+ placeholder='请选择抄表册'
119
+ :value.sync="model.f_meter_book_num"
120
+ v-model="model.f_meter_book_num"
121
+ :options='$parent.$parent.cbc'
122
+ condition="uf.f_meter_book_num='{}'"
123
+ close-on-select clear-button></v-select>
124
+ </div>
125
+ </div>
126
+ <!-- <div class="row app-row">
127
+ <div class="col-xs-4">
128
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
129
+ <label class="font text-left">安检情况</label>
130
+ </div>
131
+ <div class="col-xs-8" >
132
+ <v-select class="input-font"
133
+ placeholder='请选择安检情况'
134
+ :value.sync="model.f_ischeck"
135
+ v-model="model.f_ischeck"
136
+ :options='$parent.$parent.ischecks'
137
+ condition="{}"
138
+ close-on-select clear-button></v-select>
139
+ </div>
140
+ </div>
141
+ <div class="row app-row">
142
+ <div class="col-xs-4">
143
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
144
+ <label class="font text-left">档案状态:</label>
145
+ </div>
146
+ <div class="col-xs-8" >
147
+ <v-select class="input-font"
148
+ placeholder='请选择档案状态'
149
+ :value.sync="$parent.$parent.model.f_user_state"
150
+ :options='$parent.$parent.f_user_states'
151
+ close-on-select clear-button></v-select>
152
+ </div>
153
+ </div>-->
154
+
155
+
156
+
157
+ <div class="row text-center" style="margin-top: 20px;">
158
+ <button type="button" style="width: 25%;" class="btn btn-lg btn-font btn-color" @click="search">查询</button>
159
+ <button style="margin-right: 20px;width: 25%;" type="button" class="btn btn-lg btn-font btn-color" @click="$parent.$parent.sealScan">铅封识别</button>
160
+ </div>
161
+ <div style="height:30px;"></div>
162
+ </form>
163
+ </div>
164
+ </criteria>
165
+
166
+ <list :model="model" partial='list'>
167
+ <div partial>
168
+ <div @click="$parent.$parent.$parent.inspectbefor(row)" class="auto app-text" style="margin-top: 5px;">
169
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
170
+ <div class="panel-body panel-self">
171
+ <div class="row">
172
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
173
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
174
+ </div>
175
+ <div class="row">
176
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
177
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
178
+ </div>
179
+ <div class="row">
180
+ <p class="panel-title col-xs-4 text-left font">表号</p>
181
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
182
+ </div>
183
+ <div class="row">
184
+ <p class="panel-title col-xs-4 text-left font">用户类型</p>
185
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
186
+ </div>
187
+ <div class="row">
188
+ <p class="panel-title col-xs-4 text-left font">用户电话</p>
189
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
190
+ </div>
191
+
192
+ <div class="row">
193
+ <p class="panel-title col-xs-4 text-left font">小区名称</p>
194
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
195
+ </div>
196
+ <div class="row">
197
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
198
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
199
+ </div>
200
+ <div class="row">
201
+ <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
202
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
203
+ </div>
204
+ <div class="row">
205
+ <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
206
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
207
+ </div>
208
+ </div>
209
+ </div>
210
+
211
+ </div>
212
+ </div>
213
+ </list>
214
+ </criteria-paged>
215
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
216
+ </div>
217
+ </template>
218
+
219
+ <script>
220
+ import {HttpResetClass, PagedList} from 'vue-client'
221
+ import Vue from 'vue'
222
+ import * as Util from '../../Util'
223
+
224
+ export default {
225
+ title: '安检员B',
226
+ data () {
227
+ let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`, 20, { groupitem: '""', orderitem: '"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room"',f_check_type:'this.f_check_type[0]',
228
+ f_user_name:'this.model.f_username',myCycle: 'this.myCycle',fyCycle: 'this.fyCycle', f_user_type:'this.f_user_type',f_sign: 'this.f_sign[0]', f_residential_area:'this.model.f_districtname', f_address:'this.model.f_address',f_user_state: 'this.f_user_state[0]',f_orgids:'this.f_orgids',f_unit:'this.model.f_unit',f_building:'this.model.f_building',f_filialeid:'this.f_filialeid'})
229
+ model.f_sign = ['']
230
+ model.f_user_type = ''
231
+ model.f_user_state =['']
232
+ model.f_check_type =['']
233
+ model.myCycle = 0
234
+ model.fyCycle = 0
235
+ model.f_filialeid = Vue.user.orgid
236
+ //model.f_filialeid = 287
237
+ return {
238
+ model: model,
239
+ cbc:[],
240
+ showModal:false,
241
+ signs: [
242
+ {label:'请选择录入状态', value:''},
243
+ {label:'录入', value:'1'},
244
+ {label:'非录入', value:'0'},
245
+ ],
246
+ ischecks: [
247
+ ],
248
+ user_types: [
249
+ {label: '请选择用户类型', value: ''},
250
+ {label: '民用', value: '民用'},
251
+ {label: '非民用', value: '非民用'},
252
+ ],
253
+ f_user_states: [
254
+ {label:'请选择档案状态', value:''},
255
+ {label:'正常', value:'正常'},
256
+ {label:'点火', value:'点火'},
257
+ ],
258
+ f_check_types: [
259
+ {label:'请选择安检类型', value:''},
260
+ {label:'应检', value:'应检'},
261
+ {label:'超期', value:'超期'},
262
+ ],
263
+ f_source:'搜索查询'
264
+ }
265
+ },
266
+ ready () {
267
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
268
+ // //tag)
269
+ // if(res.data.code == 200){
270
+ // this.model.myCycle = res.data.civil.value
271
+ // this.model.fyCycle = res.data.civilian.value
272
+ // }else{
273
+ // //this.$showMessage(res.data.msg)
274
+ // }
275
+ //
276
+ // })
277
+ // this.getCheckTime()
278
+ // this.Mreadibook()
279
+ },
280
+ computed: {
281
+ reload(){
282
+ // this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
283
+ },
284
+ selected () {
285
+ return this.$refs.paged.$refs.grid.selected
286
+ }
287
+ },
288
+ methods:{
289
+ sealScan() {
290
+ HostApp.__this__ = this
291
+ HostApp.readNfc({
292
+ 'callback': 'javascript:HostApp.__this__.sealScanCallback()',
293
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
294
+ // 执行回调方法传入key为backresult
295
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
296
+ 'backresult': 1
297
+ })
298
+ },
299
+ sealScanCallback() {
300
+ console.log('sealScanCallback=========')
301
+ let result = HostApp.getNfcUUID()
302
+ console.log('result=', result)
303
+ if (result.code == 200){
304
+ let sealUID = ''
305
+ if (result.data.indexOf('=') > 0) {
306
+ sealUID = result.data.substring(result.data.indexOf('=') + 1)
307
+ }else{
308
+ sealUID = result.data
309
+ }
310
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/提取用户档案`,{"data":{
311
+ "condition":` 1=1 and sr.f_uid = '${sealUID}'`,
312
+ "condValue":[],
313
+ "groupitem":"",
314
+ "orderitem":"f_residential_area,CAST(build as int),f_unit,CAST(floor1 as int),f_room",
315
+ "f_check_type":"",
316
+ "f_user_name":"",
317
+ "myCycle":0,
318
+ "fyCycle":0,
319
+ "f_user_type":"",
320
+ "f_sign":"",
321
+ "f_residential_area":"",
322
+ "f_address":"",
323
+ "f_user_state":"",
324
+ "f_unit":"",
325
+ "f_building":"",
326
+ "f_filialeid": Vue.user.orgid,
327
+ }
328
+ }, ).then(res=> {
329
+ console.log('res=', JSON.stringify(res))
330
+ if (res.data.length){
331
+ this.f_source = 'NFC查询'
332
+ this.inspect(res.data[0])
333
+ return
334
+ }
335
+ this.$showMessage("未找到与该铅封绑定的用户,请输入地址查询!")
336
+ })
337
+ } else {
338
+ this.$showMessage("未识别到铅封信息,请重新尝试!")
339
+ return
340
+ }
341
+ },
342
+ scan(){
343
+ HostApp.__this__=this,
344
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
345
+ },
346
+ getCode(){
347
+ let datapa = HostApp.getCode().data;
348
+ let indexnum = datapa.indexOf("]C1")
349
+ if(indexnum != -1){
350
+ datapa = datapa.substring(indexnum+3,datapa.length)
351
+ }
352
+ if (datapa.startsWith('WL')){
353
+ datapa = datapa.substring(2)
354
+ }
355
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
356
+ },
357
+ getCheckTime(){
358
+ //tag
359
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`,{data: {
360
+ items: 'f_circle,f_start_time',
361
+ tablename: 't_safe_circle',
362
+ condition: `f_filialeid = '${Vue.user.orgid}'`,
363
+ orderitem: 'id'
364
+ }}).then(res=>{
365
+ //tag)
366
+ let nocheck=''
367
+ let ischeck=''
368
+ if (res.data[0]){
369
+ if (res.data[0].f_circle=='1'){
370
+ nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
371
+ ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
372
+
373
+ }else{
374
+ let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
375
+ //tag
376
+ let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
377
+ //tag
378
+ nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
379
+ ischeck=`ua.f_last_check_date>'${time}'`
380
+ }
381
+ //tag
382
+ this.ischecks=[
383
+ {label: '全部', value: ''},
384
+ {label: '已检', value: ischeck },
385
+ {label: '未检', value: nocheck},
386
+ ]
387
+ //tag
388
+ }else{
389
+ this.$showMessage("未配置安检周期")
390
+ }
391
+
392
+ })
393
+ //tag
394
+ },
395
+ inspectbefor(info){
396
+ this.f_source = '搜索查询'
397
+ this.inspect(info)
398
+ },
399
+ inspect (info){
400
+ if(info.f_last_check_date){
401
+ this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
402
+ if(butt=="confirm"){
403
+ info.id = ''
404
+ info.f_state = '未检'
405
+ info.f_no_checkplan = '无计划安检'
406
+ //tag
407
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
408
+ //tag)
409
+ info['f_plan_meters'] = response.data
410
+ var pardate = {
411
+ _this:this,
412
+ tittle:'安检详情',
413
+ safe:true
414
+ }
415
+ this.$dispatch('gotoson',pardate)
416
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem',source:this.f_source}, 'self', this.reload)
417
+
418
+ })
419
+ }
420
+ })
421
+ }else{
422
+ info.id = ''
423
+ info.f_state = '未检'
424
+ info.f_no_checkplan = '无计划安检'
425
+ //tag
426
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
427
+ //tag)
428
+ info['f_plan_meters'] = response.data
429
+ var pardate = {
430
+ _this:this,
431
+ tittle:'安检详情',
432
+ safe:true
433
+ }
434
+ this.$dispatch('gotoson',pardate)
435
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem',source:this.f_source}, 'self', this.reload)
436
+
437
+ })
438
+ }
439
+ },
440
+ Mreadibook(){
441
+ this.cbc=[]
442
+ let http = new HttpResetClass()
443
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/getMeterBooksData`,
444
+ {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
445
+ {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
446
+ this.cbc = [{label: '全部', value: ''}]
447
+ //tag
448
+ //tag)
449
+ //tag
450
+ getMeterReadingBooks.data.meterbooks.forEach((res) => {
451
+ this.cbc.push({label: res.f_book_name, value: res.id})
452
+ /*if(res.f_book_slice_area){
453
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
454
+ this.sliceArea.push(res.f_book_slice_area)
455
+ }
456
+ }*/
457
+ })
458
+ })
459
+
460
+
461
+ }
462
+ }
463
+ }
464
+ </script>
465
+ <style scoped>
466
+ .app-row {
467
+ background-color: white;
468
+ padding: 10px 10px 0 10px;
469
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
470
+ }
471
+ .search_input {
472
+ border: 0;
473
+ outline: none;
474
+ }
475
+ .font{
476
+ font: 15px PingFang-SC-Medium;
477
+ color: #666666;
478
+ }
479
+ .input-font{
480
+ font: 15px PingFang-SC-Medium;
481
+ color: #333333;
482
+ }
483
+ .btn-font{
484
+ font:600 16px PingFang-SC-Bold;
485
+ color: #499EDF;
486
+ }
487
+ .btn-color{
488
+ background-color: #FFFFFF;
489
+ border-radius: 10px ;
490
+ border: 1px solid #499EDF;
491
+ }
492
+ .app-text {
493
+ font-size: 12px;
494
+ }
495
+ .panel-self{
496
+ border-radius: 10px;
497
+ border:1px solid #499EDF;
498
+ background-color: #F8F8F8;
499
+ }
500
+ .yybtn-color{
501
+ border-radius: 4px ;
502
+ border: 1px solid #499EDF;
503
+ }
504
+ .qxbtn-color{
505
+ background-color: #FFFFFF;
506
+ border-radius: 4px ;
507
+ border: 1px solid #499EDF;
508
+ }
509
+ </style>