safecheck-client 4.0.2-60 → 4.0.2-63

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "safecheck-client",
3
3
  "//": "主分支版本别乱升,测试包的版本直接发包(建议使用1.XX.XX-XXX格式作为测试包,不要频繁升级第三位版本号),别提交版本号。切了分支切记把主分支版本升了,保证主分支始终是最高版本!!!!!",
4
- "version": "4.0.2-60",
4
+ "version": "4.0.2-63",
5
5
  "description": "安检模块 前端组件",
6
6
  "author": "丁新 <417755458@qq.com>",
7
7
  "license": "ISC",
@@ -0,0 +1,481 @@
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="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.civill_name"
135
+ v-model="model.civill_name"
136
+ :options='$parent.$parent.civill_names'
137
+ condition="ci.f_user_name = '{}'"
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="model.f_ischeck"
150
+ v-model="model.f_ischeck"
151
+ :options='$parent.$parent.ischecks'
152
+ condition="{}"
153
+ close-on-select clear-button></v-select>
154
+ </div>
155
+ </div>
156
+ <div class="row app-row">
157
+ <div class="col-xs-4">
158
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
159
+ <label class="font text-left">档案状态:</label>
160
+ </div>
161
+ <div class="col-xs-8" >
162
+ <v-select class="input-font"
163
+ placeholder='请选择档案状态'
164
+ :value.sync="$parent.$parent.model.f_user_state"
165
+ :options='$parent.$parent.f_user_states'
166
+ close-on-select clear-button></v-select>
167
+ </div>
168
+ </div>-->
169
+
170
+
171
+
172
+ <div class="row text-center" style="margin-top: 20px;">
173
+ <button type="button" class="btn btn-lg btn-font btn-color" style="width: 45%;" @click="search">查询</button>
174
+ </div>
175
+ <div style="height:30px;"></div>
176
+ </form>
177
+ </div>
178
+ </criteria>
179
+
180
+ <list :model="model" partial='list'>
181
+ <div partial>
182
+ <div @click="$parent.$parent.$parent.inspect(row)" class="auto app-text" style="margin-top: 5px;">
183
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
184
+ <div class="panel-body panel-self">
185
+ <div class="row">
186
+ <p class="panel-title col-xs-4 text-left font">用户编号</p>
187
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_userinfo_code }}</p>
188
+ </div>
189
+ <div class="row">
190
+ <p class="panel-title col-xs-4 text-left font">用户名称</p>
191
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_name }}</p>
192
+ </div>
193
+ <div class="row">
194
+ <p class="panel-title col-xs-4 text-left font">表号</p>
195
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_meternumber }}</p>
196
+ </div>
197
+ <div class="row">
198
+ <p class="panel-title col-xs-4 text-left font">用户类型</p>
199
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_type }}</p>
200
+ </div>
201
+ <div class="row">
202
+ <p class="panel-title col-xs-4 text-left font">用户电话</p>
203
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_user_phone2 ? row.f_user_phone2 : row.f_user_phone }}</p>
204
+ </div>
205
+
206
+ <div class="row">
207
+ <p class="panel-title col-xs-4 text-left font">小区名称</p>
208
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_residential_area }}</p>
209
+ </div>
210
+ <div class="row">
211
+ <p class="panel-title col-xs-4 text-left font">用户地址</p>
212
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_address }}</p>
213
+ </div>
214
+ <div class="row">
215
+ <p class="panel-title col-xs-4 text-left font">最后安检日期</p>
216
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_date }}</p>
217
+ </div>
218
+ <div class="row">
219
+ <p class="panel-title col-xs-4 text-left font">最后安检状态</p>
220
+ <p class="panel-title col-xs-8 text-left input-font">{{ row.f_last_check_state }}</p>
221
+ </div>
222
+ </div>
223
+ </div>
224
+
225
+ </div>
226
+ </div>
227
+ </list>
228
+ </criteria-paged>
229
+ <!--<back-page :need-back='true' @flag="$back()"></back-page>-->
230
+ </div>
231
+ </template>
232
+
233
+ <script>
234
+ import {HttpResetClass, PagedList} from 'vue-client'
235
+ import Vue from 'vue'
236
+ import * as Util from '../../Util'
237
+
238
+ export default {
239
+ title: '安检员B',
240
+ data () {
241
+ let model = new PagedList(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/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]',
242
+ 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'})
243
+ model.f_sign = ['']
244
+ model.f_user_type = ''
245
+ model.f_user_state =['']
246
+ model.f_check_type =['']
247
+ model.myCycle = 0
248
+ model.fyCycle = 0
249
+ model.f_filialeid = Vue.user.orgid
250
+ //model.f_filialeid = 287
251
+ return {
252
+ civill_names:[{label:"全部",value:""}],
253
+ model: model,
254
+ cbc:[],
255
+ showModal:false,
256
+ signs: [
257
+ {label:'请选择录入状态', value:''},
258
+ {label:'录入', value:'1'},
259
+ {label:'非录入', value:'0'},
260
+ ],
261
+ ischecks: [
262
+ ],
263
+ user_types: [
264
+ {label: '请选择用户类型', value: ''},
265
+ {label: '民用', value: '民用'},
266
+ {label: '非民用', value: '非民用'},
267
+ ],
268
+ f_user_states: [
269
+ {label:'请选择档案状态', value:''},
270
+ {label:'正常', value:'正常'},
271
+ {label:'点火', value:'点火'},
272
+ ],
273
+ f_check_types: [
274
+ {label:'请选择安检类型', value:''},
275
+ {label:'应检', value:'应检'},
276
+ {label:'超期', value:'超期'},
277
+ ],
278
+ }
279
+ },
280
+ ready () {
281
+ this.getCivillNames()
282
+ // this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSafeCheckCycle`,{},{resolveMsg: null, rejectMsg: null}).then((res) => {
283
+ // //tag)
284
+ // if(res.data.code == 200){
285
+ // this.model.myCycle = res.data.civil.value
286
+ // this.model.fyCycle = res.data.civilian.value
287
+ // }else{
288
+ // //this.$showMessage(res.data.msg)
289
+ // }
290
+ //
291
+ // })
292
+ // this.getCheckTime()
293
+ // this.Mreadibook()
294
+ },
295
+ computed: {
296
+ reload(){
297
+ this.$refs.paged.loadPage(this.$refs.paged.model.pageIndex)
298
+ },
299
+ selected () {
300
+ return this.$refs.paged.$refs.grid.selected
301
+ }
302
+ },
303
+ methods:{
304
+ getCivillNames(){
305
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=1000`, {
306
+ data: {
307
+ items: 'f_user_name',
308
+ tablename: 't_civill',
309
+ condition: `f_orgid = '${Vue.user.orgid}'`,
310
+ orderitem: 'id desc'
311
+ }
312
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
313
+ res.data.forEach(ress => {
314
+ this.civill_names.push({
315
+ label: ress.f_user_name,
316
+ value: ress.f_user_name
317
+ })
318
+ })
319
+ })
320
+ },
321
+ scan(){
322
+ HostApp.__this__=this,
323
+ HostApp.scanCode({callback:"javascript:HostApp.__this__.getCode();"})
324
+ },
325
+ getCode(){
326
+ let datapa = HostApp.getCode().data;
327
+ let indexnum = datapa.indexOf("]C1")
328
+ if(indexnum != -1){
329
+ datapa = datapa.substring(indexnum+3,datapa.length)
330
+ }
331
+ this.$refs.paged.$refs.cri.model.f_meternumber=datapa
332
+ },
333
+ getCheckTime(){
334
+ //tag
335
+ new HttpResetClass().load('post',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`,{data: {
336
+ items: 'f_circle,f_start_time',
337
+ tablename: 't_safe_circle',
338
+ condition: `f_filialeid = '${Vue.user.orgid}'`,
339
+ orderitem: 'id'
340
+ }}).then(res=>{
341
+ //tag)
342
+ let nocheck=''
343
+ let ischeck=''
344
+ if (res.data[0]){
345
+ if (res.data[0].f_circle=='1'){
346
+ nocheck=`(ua.f_last_check_date<'${res.data[0].f_start_time}' or ua.f_last_check_date is null)`
347
+ ischeck=`ua.f_last_check_date>'${res.data[0].f_start_time}'`
348
+
349
+ }else{
350
+ let addtime= (Util.toStandardTimeString().substring(0,4)-res.data[0].f_start_time.substring(0,4))%res.data[0].f_circle
351
+ //tag
352
+ let time =(Util.toStandardTimeString().substring(0,4)-addtime)+'-01-01 00:00:00'
353
+ //tag
354
+ nocheck=`(ua.f_last_check_date<'${time}' or ua.f_last_check_date is null)`
355
+ ischeck=`ua.f_last_check_date>'${time}'`
356
+ }
357
+ //tag
358
+ this.ischecks=[
359
+ {label: '全部', value: ''},
360
+ {label: '已检', value: ischeck },
361
+ {label: '未检', value: nocheck},
362
+ ]
363
+ //tag
364
+ }else{
365
+ this.$showMessage("未配置安检周期")
366
+ }
367
+
368
+ })
369
+ //tag
370
+ },
371
+ inspect (info){
372
+ if(info.f_last_check_date){
373
+ this.$showMessage("该用户最后一次安检时间为 "+info.f_last_check_date+" 是否继续对该用户进行安检",['confirm', 'cancel']).then((butt)=>{
374
+ if(butt=="confirm"){
375
+ info.id = ''
376
+ info.f_state = '未检'
377
+ info.f_no_checkplan = '无计划安检'
378
+ //tag
379
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
380
+ //tag)
381
+ info['f_plan_meters'] = response.data
382
+ var pardate = {
383
+ _this:this,
384
+ tittle:'安检详情',
385
+ safe:true
386
+ }
387
+ this.$dispatch('gotoson',pardate)
388
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
389
+
390
+ })
391
+ }
392
+ })
393
+ }else{
394
+ info.id = ''
395
+ info.f_state = '未检'
396
+ info.f_no_checkplan = '无计划安检'
397
+ //tag
398
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/查询计划项表信息`,{data:{f_userid:info.f_userinfo_id}}).then((response)=>{
399
+ //tag)
400
+ info['f_plan_meters'] = response.data
401
+ var pardate = {
402
+ _this:this,
403
+ tittle:'安检详情',
404
+ safe:true
405
+ }
406
+ this.$dispatch('gotoson',pardate)
407
+ this.$goto('safecheck-order-v', {item: info, role: 'inspect',parentPage:'AddPlanItem'}, 'self', this.reload)
408
+
409
+ })
410
+ }
411
+ },
412
+ Mreadibook(){
413
+ this.cbc=[]
414
+ let http = new HttpResetClass()
415
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getMeterBooksData`,
416
+ {data: {f_orgid: "('"+Vue.user.orgid+"')"}},
417
+ {resolveMsg: null, rejectMsg: '获取失败!!!'}).then((getMeterReadingBooks)=>{
418
+ this.cbc = [{label: '全部', value: ''}]
419
+ //tag
420
+ //tag)
421
+ //tag
422
+ getMeterReadingBooks.data.meterbooks.forEach((res) => {
423
+ this.cbc.push({label: res.f_book_name, value: res.id})
424
+ /*if(res.f_book_slice_area){
425
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
426
+ this.sliceArea.push(res.f_book_slice_area)
427
+ }
428
+ }*/
429
+ })
430
+ })
431
+
432
+
433
+ }
434
+ }
435
+ }
436
+ </script>
437
+ <style scoped>
438
+ .app-row {
439
+ background-color: white;
440
+ padding: 10px 10px 0 10px;
441
+ border-bottom: 1px solid rgba(235, 235, 235, 0.5);
442
+ }
443
+ .search_input {
444
+ border: 0;
445
+ outline: none;
446
+ }
447
+ .font{
448
+ font: 15px PingFang-SC-Medium;
449
+ color: #666666;
450
+ }
451
+ .input-font{
452
+ font: 15px PingFang-SC-Medium;
453
+ color: #333333;
454
+ }
455
+ .btn-font{
456
+ font:600 16px PingFang-SC-Bold;
457
+ color: #499EDF;
458
+ }
459
+ .btn-color{
460
+ background-color: #FFFFFF;
461
+ border-radius: 10px ;
462
+ border: 1px solid #499EDF;
463
+ }
464
+ .app-text {
465
+ font-size: 12px;
466
+ }
467
+ .panel-self{
468
+ border-radius: 10px;
469
+ border:1px solid #499EDF;
470
+ background-color: #F8F8F8;
471
+ }
472
+ .yybtn-color{
473
+ border-radius: 4px ;
474
+ border: 1px solid #499EDF;
475
+ }
476
+ .qxbtn-color{
477
+ background-color: #FFFFFF;
478
+ border-radius: 4px ;
479
+ border: 1px solid #499EDF;
480
+ }
481
+ </style>
@@ -271,6 +271,15 @@
271
271
  :options='$parent.$parent.user_types' placeholder='请选择用户类型' v-model="model.f_user_type"
272
272
  condition="f_user_type='{}'" close-on-select clear-button></v-select>
273
273
  </div>
274
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
275
+ <div class="col-xs-4">
276
+ <img src="../../../assets/用户类型.png" style="width: 20px;margin-bottom: 5px" alt="">
277
+ <label for="f_civill_name" class="font text-left">单位名称:</label>
278
+ </div>
279
+ <v-select id="f_civill_name" :value.sync="model.f_civill_name" class="input-font" :width="'60%'"
280
+ :options='$parent.$parent.civill_names' placeholder='请选择单位名称' v-model="model.f_civill_name"
281
+ condition="f_civill_name = '{}'" close-on-select clear-button></v-select>
282
+ </div>
274
283
  <div class="row app-row" v-if="$parent.$parent.criteriaShow">
275
284
  <div class="col-xs-6">
276
285
  <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
@@ -608,6 +617,7 @@ export default {
608
617
  f_filialeids: '(' + Vue.user.orgid + ')',
609
618
  //f_filialeids:'(305)',
610
619
  planparam: [],
620
+ civill_names:[{label:"全部",value:""}],
611
621
  check: '',
612
622
  plan: '',
613
623
  planid: '',
@@ -675,6 +685,7 @@ export default {
675
685
  },
676
686
  ready() {
677
687
  this.getCheckBook()
688
+ this.getCivillNames()
678
689
  this.getAllArea()
679
690
  this.getAllPlanName()
680
691
  this.selfSearch()
@@ -693,6 +704,21 @@ export default {
693
704
  window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
694
705
  },
695
706
  methods: {
707
+ getCivillNames(){
708
+ let criteria = {
709
+ items: 'f_civill_name',
710
+ tablename: 't_check_plan_item',
711
+ condition: `f_civill_name IS NOT NULL`,
712
+ groupitem: 'f_civill_name'
713
+ }
714
+ let result = HostApp._executeTask({
715
+ 'type': 'sql',
716
+ 'data': { 'alias': 'safe_singleTable_GroupBy', 'criteria': criteria }
717
+ })
718
+ if (result.code == 200) {
719
+ result.data.rows.forEach(item => this.civill_names.push({ label: item.f_civill_name, value: item.f_civill_name }))
720
+ }
721
+ },
696
722
  async planNameChange(val){
697
723
  if (val.length > 0 && val[0]){
698
724
  this.checkBooks=[]
@@ -1062,10 +1088,6 @@ export default {
1062
1088
  if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0)
1063
1089
  condition += " and f_plan_name = '" + this.$refs.paged.$refs.cri.model.f_plan_name + "'"
1064
1090
  }
1065
- // if(this.$refs.paged.$refs.cri.model.f_plan_year)
1066
- // condition += " and f_plan_year = '"+this.$refs.paged.$refs.cri.model.f_plan_year +"'"
1067
- // if(this.$refs.paged.$refs.cri.model.f_plan_month)
1068
- // condition += " and f_plan_month = '"+this.$refs.paged.$refs.cri.model.f_plan_month +"'"
1069
1091
  if (this.$refs.paged.$refs.cri.model.f_userinfo_code)
1070
1092
  condition += " and ti.f_userinfo_code like '%" + this.$refs.paged.$refs.cri.model.f_userinfo_code + "%'"
1071
1093
  if (this.$refs.paged.$refs.cri.model.f_keyword)
@@ -1074,14 +1096,12 @@ export default {
1074
1096
  condition += " and ti.f_user_name like '%" + this.$refs.paged.$refs.cri.model.f_user_name + "%'"
1075
1097
  if (this.$refs.paged.$refs.cri.model.f_state[0])
1076
1098
  condition += " and ti.f_state='" + this.$refs.paged.$refs.cri.model.f_state[0] + "'"
1077
- // if(this.$refs.paged.$refs.cri.model.f_last_state[0])
1078
- // condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
1079
1099
  if (this.$refs.paged.$refs.cri.model.f_user_type[0])
1080
1100
  condition += " and ti.f_user_type='" + this.$refs.paged.$refs.cri.model.f_user_type[0] + "'"
1101
+ if (this.$refs.paged.$refs.cri.model.f_civill_name[0])
1102
+ condition += " and ti.f_civill_name='" + this.$refs.paged.$refs.cri.model.f_civill_name[0] + "'"
1081
1103
  if (this.$refs.paged.$refs.cri.model.f_meter_no)
1082
1104
  condition += " and tm.f_meter_no like '%" + this.$refs.paged.$refs.cri.model.f_meter_no + "%'"
1083
- // if(this.$refs.paged.$refs.cri.model.f_flow_direction[0])
1084
- // condition += " and tm.f_flow_direction = '"+this.$refs.paged.$refs.cri.model.f_flow_direction[0]+"'"
1085
1105
  if (this.$refs.paged.$refs.cri.model.f_user_phone) {
1086
1106
  condition += `and ti.f_user_phone like '%${this.$refs.paged.$refs.cri.model.f_user_phone}%'`
1087
1107
  }
@@ -7,6 +7,7 @@ let specialComp = {
7
7
  'phone-insurance-purchase-detail': (resolve) => { require(['./android/PhoneInsurancePurchaseDetail'], resolve) },
8
8
  'safecheck-order-v': (resolve) => { require(['./android/SafecheckOrderV'], resolve) },
9
9
  'current-create': (resolve) => { require(['./android/CurrentCreate'], resolve) },
10
+ 'add-plan-item': (resolve) => { require(['./android/AddPlanItem'], resolve) },
10
11
  'android-defect-deal': (resolve) => { require(['./android/AndroidDefectDeal.vue'], resolve) },
11
12
  'android-notified-deal': (resolve) => { require(['./android/AndroidNotifiedDeal'], resolve) }
12
13
  }
@@ -290,6 +290,21 @@
290
290
  condition="ui.f_uservent_date <= '{} 23:59:59'">
291
291
  </datepicker>
292
292
  </div>
293
+ <div class="form-group col-sm-4">
294
+ <label class="font_normal_body">单位名称:</label>
295
+ <v-select
296
+ class="select select_list"
297
+ :value.sync="model.civill_name"
298
+ v-model="model.civill_name"
299
+ :options='$parent.$parent.civill_names'
300
+ placeholder='请选择'
301
+ condition="ci.f_user_name = '{}'"
302
+ :search="false"
303
+ close-on-select
304
+ value-single
305
+ >
306
+ </v-select>
307
+ </div>
293
308
  </div>
294
309
  </div>
295
310
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -334,6 +349,7 @@
334
349
  <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
335
350
  <th><nobr>首次通气时间</nobr></th>
336
351
  <th><nobr>详细地址</nobr></th>
352
+ <th><nobr>单位名称</nobr></th>
337
353
  </tr>
338
354
  </template>
339
355
  <template partial='body'>
@@ -351,6 +367,7 @@
351
367
  <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
352
368
  <td style="text-align: center"><nobr>{{row.f_uservent_date}}</nobr></td>
353
369
  <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
370
+ <td style="text-align: center"><nobr>{{row.civill_name}}</nobr></td>
354
371
  </template>
355
372
  </data-grid>
356
373
  </criteria-paged>
@@ -382,6 +399,7 @@
382
399
  gasproperties:[],//用气性质
383
400
  meter_classifys:[],//气表类型
384
401
  hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
402
+ civill_names:[{label:"全部",value:""}],
385
403
  yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
386
404
  entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
387
405
  sliceArea:[],
@@ -399,11 +417,29 @@
399
417
  props:["selectplan","userlogin"],
400
418
  ready(){
401
419
  this.getCheckBook()
420
+ this.getCivillNames()
402
421
  this.setConList()
403
422
  this.loadpage()
404
423
  document.addEventListener('keydown', this.handleEnter, true);
405
424
  },
406
425
  methods: {
426
+ getCivillNames(){
427
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=1000`, {
428
+ data: {
429
+ items: 'f_user_name',
430
+ tablename: 't_civill',
431
+ condition: `f_orgid = '${this.userlogin.orgid}'`,
432
+ orderitem: 'id desc'
433
+ }
434
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
435
+ res.data.forEach(ress => {
436
+ this.civill_names.push({
437
+ label: ress.f_user_name,
438
+ value: ress.f_user_name
439
+ })
440
+ })
441
+ })
442
+ },
407
443
  clearcon(){
408
444
  this.$refs.paged.$refs.criteria.model.f_userinfo_code = ''
409
445
  this.$refs.paged.$refs.criteria.model.f_meternumber = ''