safecheck-client 3.0.33-8 → 3.0.33-81

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 (91) hide show
  1. package/index.html +6 -2
  2. package/package.json +3 -3
  3. package/src/App.vue +31 -31
  4. package/src/components/Util/ImgSelfSafePlus.vue +12 -10
  5. package/src/components/android/CurrentCreate.vue +1 -1
  6. package/src/components/android/SafecheckOrderV.vue +3 -3
  7. package/src/components/paper/PaperList.vue +5 -4
  8. package/src/components/planmanage/PlanManage.vue +3 -2
  9. package/src/components/planmanage/checkPlanList.vue +2 -1
  10. package/src/components/planmanage/checkUserList.vue +34 -2
  11. package/src/components/report/CheckPlanCountChartArea.vue +5 -0
  12. package/src/components/report/HiddenSituation.vue +3 -3
  13. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
  14. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  15. package/src/components/rongcheng/DefectPaper.vue +1 -1
  16. package/src/components/rongcheng/PaperListNPSQ.vue +35 -1
  17. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  18. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  19. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  20. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  21. package/src/filiale/Util.js +5 -0
  22. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  23. package/src/filiale/bayan/android/SafecheckOrderV.vue +9 -5
  24. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  25. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  26. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  27. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  28. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  29. package/src/filiale/fugou/android.js +2 -1
  30. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  31. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  32. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  33. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  34. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  35. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  36. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  37. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  38. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  39. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  40. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  41. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  42. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  43. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  44. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  45. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  46. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  47. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  48. package/src/filiale/jingyang/pc.js +1 -0
  49. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  50. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  51. package/src/filiale/rongchuang/android.js +1 -0
  52. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  53. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  54. package/src/filiale/rongchuang/pc.js +1 -0
  55. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  56. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  57. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  58. package/src/filiale/weinan/android/SafecheckOrderV.vue +75 -26
  59. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  60. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  61. package/src/filiale/weinan/pc.js +1 -0
  62. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  63. package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
  64. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  65. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
  66. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1 -1
  67. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1230 -0
  68. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2832 -2832
  69. package/src/filiale/yangchunboneng/android.js +1 -0
  70. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +28 -1
  71. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1168 -1018
  72. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  73. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  74. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  75. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  76. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  77. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  78. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  79. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  80. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +55 -125
  81. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  82. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  83. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  84. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  85. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  86. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  87. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  88. package/src/filiale/yongzhou/pc.js +4 -0
  89. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  90. package/src/main.js +2 -2
  91. package/src/rongcheng.js +3 -1
@@ -22,13 +22,13 @@
22
22
  <v-select
23
23
  class="select select_list"
24
24
  :width="'95%'"
25
- :value.sync="model.f_area"
26
- v-model="model.f_area"
25
+ :value.sync="model.f_check_book_id"
26
+ v-model="model.f_check_book_id"
27
27
  :options='$parent.$parent.areaList'
28
28
  :timeout="500"
29
29
  @select-search="$parent.$parent.select_search"
30
30
  placeholder='安检册筛选'
31
- condition="ua.f_residential_area = '{}'"
31
+ condition="ua.f_check_book_id ='{}'"
32
32
  close-on-select
33
33
  value-single
34
34
  >
@@ -81,35 +81,33 @@
81
81
  >
82
82
  </v-select>
83
83
  </div>
84
- <div class="form-group col-sm-4" >
85
- <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
86
- <v-select
87
- class="select select_list"
88
- :value.sync="model.f_book_slice_area"
89
- v-model="model.f_book_slice_area"
90
- :options='$parent.$parent.sliceArea'
91
- @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
92
- placeholder='请选择'
93
- condition="ua.f_slice_area ='{}'"
94
- close-on-select
95
- value-single
96
- >
84
+ <div class="col-sm-3 form-group">
85
+ <label class="font_normal_body">街道/乡镇</label>
86
+ <v-select :value.sync="model.f_street_id" :value-single="true"
87
+ :options='$parent.$parent.streetslist' placeholder='请选择'
88
+ condition=" area.f_street_id = '{}'"
89
+ v-model='model.f_street_id'
90
+ @change="$parent.$parent.streetChange"
91
+ close-on-select :search="true" >
97
92
  </v-select>
98
93
  </div>
99
- <div class="form-group col-sm-4" >
100
- <label class="font_normal_body">区/县:</label>
101
- <input type="text" class="input_search" v-model="model.f_pcd"
102
- style="width: 60%" placeholder="小区名称" condition="f_pcd like '%{}%'">
103
- </div>
104
- <div class="form-group col-sm-4" >
105
- <label class="font_normal_body">街道/乡镇:</label>
106
- <input type="text" class="input_search" v-model="model.f_street"
107
- style="width: 60%" placeholder="街道/乡镇" condition="f_street like '%{}%'">
94
+ <div class="col-sm-3 form-group">
95
+ <label class="font_normal_body">片区/行政村</label>
96
+ <v-select :value.sync="model.f_community_id" v-model='model.f_community_id'
97
+ :options='$parent.$parent.communitylist' placeholder='片区/管理站' filer-key="name"
98
+ condition="ua.f_community_id = '{}'"
99
+ @change="$parent.$parent.communityChange"
100
+ close-on-select v-ref:slice>
101
+ </v-select>
108
102
  </div>
109
- <div class="form-group col-sm-4" >
110
- <label class="font_normal_body">小区名称:</label>
111
- <input type="text" class="input_search" v-model="model.f_residential_area"
112
- style="width: 60%" placeholder="小区名称" condition="f_residential_area like '%{}%'">
103
+ <div class="col-sm-3 form-group">
104
+ <label class="font_normal_body">小区/自然村</label>
105
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
106
+ :options='$parent.$parent.areaslist' placeholder='请选择'
107
+ condition="ua.f_residential_area_id = '{}'"
108
+ v-model='model.f_residential_area_id'
109
+ close-on-select>
110
+ </v-select>
113
111
  </div>
114
112
  <div class="form-group col-sm-4" >
115
113
  <label class="font_normal_body">派发情况:</label>
@@ -381,7 +379,11 @@
381
379
  checkAll:false,
382
380
  checkes:[],
383
381
  excelUserCondtion:false,
384
- uploadCodeCondition:''
382
+ uploadCodeCondition:'',
383
+ streetslist:[],
384
+ communitylist:[],
385
+ areaslist:[],
386
+ f_filialeids: this.$login.f.orgid,
385
387
  }
386
388
  },
387
389
  props:["selectplan","userlogin"],
@@ -394,8 +396,182 @@
394
396
  this.setConList()
395
397
  this.loadpage()
396
398
  this.getCommunity()
399
+ this.initpcds(` f_orgid = '${this.userlogin.orgid}'`)
400
+ this.initstreets(` f_orgid = '${this.userlogin.orgid}' `)
401
+ this.initareas(` f_orgid = '${this.userlogin.orgid}'`)
397
402
  },
398
403
  methods: {
404
+ // 初始化省市区,添加街道
405
+ async initpcds (pconditon) {
406
+ this.pcdslist = []
407
+ let HttpReset = new HttpResetClass()
408
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
409
+ data: {
410
+ items: '*',
411
+ tablename: 't_pcd',
412
+ orderitem: 'id',
413
+ condition: pconditon
414
+ }
415
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
416
+ let redata = []
417
+ req.data.forEach((row, n) => {
418
+ redata[n] = {
419
+ label: row.f_pcd,
420
+ value: row.id,
421
+ data: row,
422
+ id: row.id
423
+ }
424
+ })
425
+ this.pcdslist = redata
426
+ console.log("xxxxxxxxxxxxxx")
427
+ console.log(this.pcdslist)
428
+ console.log("redataxxxxxxxx")
429
+ },
430
+ // 初始化街道 添加小区
431
+ async initstreets (pconditon) {
432
+ this.streetslist = []
433
+ let HttpReset = new HttpResetClass()
434
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
435
+ data: {
436
+ items: '*',
437
+ tablename: 't_street',
438
+ orderitem: 'id',
439
+ condition: pconditon
440
+ }
441
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
442
+ let redata = []
443
+ req.data.forEach((row, n) => {
444
+ redata[n] = {
445
+ label: row.f_street,
446
+ value: row.id,
447
+ data: row,
448
+ id: row.id
449
+ }
450
+ })
451
+ this.streetslist = redata
452
+ console.log("xxxxxxxxxxxxxx")
453
+ console.log(this.streetslist)
454
+ console.log("redataxxxxxxxx")
455
+ },
456
+ // 初始化小区添加小区
457
+ async initareas (pconditon) {
458
+ // if(this.usertype){
459
+ // pconditon=pconditon+` and f_special='1' `
460
+ // }
461
+ this.areaslist = []
462
+ let HttpReset = new HttpResetClass()
463
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
464
+ data: {
465
+ items: '*',
466
+ tablename: 't_area',
467
+ orderitem: 'id',
468
+ condition: pconditon
469
+ }
470
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
471
+ let redata = []
472
+ req.data.forEach((row) => {
473
+ redata.push({
474
+ label: row.f_residential_area,
475
+ value: row.id,
476
+ data: row,
477
+ id: row.id
478
+ })
479
+ })
480
+ this.areaslist = redata
481
+ },
482
+ //小区变化
483
+ areaChange(val){
484
+ console.log("小区变化",val)
485
+ // 选择小区后级联出省市区和街道
486
+ let selectArea // 选中的小区数据
487
+ for (let row of this.areaslist) {
488
+ if (val == row.value) {
489
+ selectArea = row.data
490
+ break
491
+ }
492
+ }
493
+ if (selectArea) {
494
+ this.model.f_street_id = selectArea.f_street_id
495
+ this.model.f_pcd_id = selectArea.f_pcd_id
496
+ this.model.f_community_id = selectArea.f_community_id
497
+ console.log( this.model.f_community_id)
498
+
499
+ this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
500
+ this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
501
+ if(selectArea.f_community_id){
502
+ this.initcommunity(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_community_id}' `)
503
+ }
504
+ // this.model.f_slice_area = selectArea.f_slice_area
505
+ // 拼接地址
506
+ this.model.f_address = `${selectArea.f_street}${selectArea.f_community}${selectArea.f_residential_area}`
507
+ console.log( this.model.f_community_id)
508
+ }
509
+ this.$nextTick(() => {
510
+ this.$resetValidation()
511
+ })
512
+ },
513
+ // 片区变化 f_area_code
514
+ async areasChange (val) {
515
+ console.log('街道变化', val)
516
+ if (this.streetslist[0]) {
517
+ var street = ''
518
+ this.streetslist.forEach((item) => {
519
+ if (item.id === val) {
520
+ street = item.label
521
+ }
522
+ })
523
+ // this.model.f_address = street
524
+ }
525
+ if (val) {
526
+ // 那就把[小区]重新组织一下
527
+ await this.initareas(` f_area_code ='${val}' `)
528
+ if (this.$refs.paged.$refs.criteria.model.f_residential_area_id) {
529
+ if (this.findbyid(this.areaslist, this.$refs.paged.$refs.criteria.model.f_residential_area_id)) {
530
+ let street_id = this.findbyid(this.areaslist,this.$refs.paged.$refs.criteria.model.f_residential_area_id).f_street_id
531
+ if (street_id != val) {
532
+ this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
533
+ }
534
+ } else {
535
+ this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
536
+ }
537
+ }
538
+ }
539
+ },
540
+ //街道变化
541
+ //初始化街道 添加小区
542
+ async initcommunity(pconditon){
543
+ this.communitylist = []
544
+ let HttpReset = new HttpResetClass()
545
+ let req = await HttpReset.load('POST', 'api/af-revenue/sql/address_singleTableOrderBy', {
546
+ data: {
547
+ items: '*',
548
+ tablename: 't_community',
549
+ orderitem: 'id',
550
+ condition: pconditon
551
+ }
552
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
553
+ let redata = []
554
+ req.data.forEach((row, n) => {
555
+ redata[n] = {
556
+ label: row.f_community_name,
557
+ value: row.id,
558
+ data:row,
559
+ id:row.id
560
+ }
561
+ })
562
+ this.communitylist=redata
563
+ },
564
+ async streetChange(val){
565
+ if(val){
566
+ await this.initcommunity(` f_filialeid = '${this.f_filialeids}' and f_street_id ='${val}' `)
567
+ }
568
+ },
569
+ async communityChange(val){
570
+ console.log(val)
571
+ if(val){
572
+ await this.initareas(` f_filialeid = '${this.f_filialeids}' and f_community_id ='${val}' `)
573
+ }
574
+ },
399
575
  getCommunity(){
400
576
  this.community=[]
401
577
  new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
@@ -518,19 +694,23 @@
518
694
  value: ''
519
695
  }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
520
696
  },
521
- select_search(text){
522
- //tag
523
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
524
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
525
- //tag)
526
- if(res.data.length>0){
527
- this.areaList=[]
528
- this.areaList.push({label:"全部",value:""})
529
- res.data.forEach((result)=>{
530
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
531
- })
697
+ select_search(){
698
+ this.areaList = []
699
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
700
+ data: {
701
+ items: 'id,f_check_book_name',
702
+ tablename: 't_check_book',
703
+ condition: `f_orgid = '${this.userlogin.orgid}'`,
704
+ orderitem: 'id desc'
532
705
  }
533
- //tag)
706
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
707
+ this.areaList.push({label: '全部', value: ''})
708
+ res.data.forEach(ress => {
709
+ this.areaList.push({
710
+ label: ress.f_check_book_name,
711
+ value: ress.id
712
+ })
713
+ })
534
714
  })
535
715
  },
536
716
  //获取抄表册
@@ -183,7 +183,7 @@
183
183
  //后台查询数据
184
184
  let getData = function* (self) {
185
185
  let load = new HttpResetClass()
186
- load.load('POST', 'rs/sql/CheckStatusQuery', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type}},
186
+ load.load('POST', 'rs/sql/CheckStatusQuery', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type,f_safecheck_type:self.f_safecheck_type}},
187
187
  {resolveMsg: null, rejectMsg: null})
188
188
  .then((res) => {
189
189
  let echartData = res.data
@@ -202,7 +202,7 @@
202
202
 
203
203
  let getData1 = function* (self) {
204
204
  let Http = new HttpResetClass()
205
- Http.load('POST','rs/sql/HiddenLevel', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type}},
205
+ Http.load('POST','rs/sql/HiddenLevel', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type,f_safecheck_type:self.f_safecheck_type}},
206
206
  {resolveMsg: null, rejectMsg: null})
207
207
  .then((res) => {
208
208
  let legendname = [] //分类名,横坐标分类,隐患级别
@@ -259,7 +259,8 @@
259
259
  endDate: Util.toStandardDateString(),
260
260
  xc: '',
261
261
  plan_types:[{label:'全部',value:''},{label:'年度安检单',value:'false'},{label:'首次通气单',value:'true'}],
262
- plan_type:''
262
+ plan_type:'',
263
+ f_safecheck_type:''
263
264
  }
264
265
  },
265
266
  props:{
@@ -304,19 +305,21 @@
304
305
  this.$emit('echarts-changed', this.echarts)
305
306
  },
306
307
  setstatustable() {
307
- this.model = new PagedList('rs/sql/QueryCheckStatus', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type'},{rh:'',dfby:'',wsy:'',jj:''})
308
+ this.model = new PagedList('rs/sql/QueryCheckStatus', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type',f_safecheck_type: 'this.f_safecheck_type'},{rh:'',dfby:'',wsy:'',jj:''})
308
309
  this.model.startDate = this.startDate
309
310
  this.model.endDate = this.endDate
310
311
  this.model.orgid = this.orgid
311
312
  this.model.plan_type = this.plan_type
313
+ this.model.f_safecheck_type = this.f_safecheck_type
312
314
  this.model.search('1=1')
313
315
  },
314
316
  setleveltable() {
315
- this.model1 = new PagedList('rs/sql/QueryHiddenLevel', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type'},{a:'',b:'',c:'',ac:'',bc:'',cc:''})
317
+ this.model1 = new PagedList('rs/sql/QueryHiddenLevel', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type',f_safecheck_type: 'this.f_safecheck_type'},{a:'',b:'',c:'',ac:'',bc:'',cc:''})
316
318
  this.model1.startDate = this.startDate
317
319
  this.model1.endDate = this.endDate
318
320
  this.model1.orgid = this.orgid
319
321
  this.model1.plan_type = this.plan_type
322
+ this.model1.f_safecheck_type = this.f_safecheck_type
320
323
  this.model1.search('1=1')
321
324
  },
322
325
  //隐患饼状图
@@ -575,6 +578,13 @@
575
578
  },
576
579
  'plan_type' (val) {
577
580
  console.log("我是watch")
581
+ this.f_safecheck_type = ''
582
+ if (this.plan_type == 'false') {
583
+ this.f_safecheck_type = '年度普检'
584
+ }
585
+ if (this.plan_type == 'true') {
586
+ this.f_safecheck_type = '首次通气'
587
+ }
578
588
  this.searchdata()
579
589
  this.searchdata1()
580
590
  },
@@ -149,7 +149,7 @@ let getData = function* (self) {
149
149
  console.log('self.plan_type', self.plan_type)
150
150
  console.log('self.orgid', self.orgid)
151
151
  self.set()
152
- load.load('POST', 'rs/sql/YearCountRate', {data: {year: self.year, orgid: self.orgid, plan_type: self.plan_type}},
152
+ load.load('POST', 'rs/sql/YearCountRate', {data: {year: self.year, orgid: self.orgid, plan_type: self.plan_type,f_safecheck_type:self.f_safecheck_type}},
153
153
  {resolveMsg: null, rejectMsg: null})
154
154
  .then((res) => {
155
155
  let legendname = []
@@ -222,6 +222,7 @@ export default {
222
222
  // orgid:'2586252.6314787',
223
223
  year: (new Date()).getFullYear(),
224
224
  plan_type: '',
225
+ f_safecheck_type:'',
225
226
  xc: '',
226
227
  plan_types: [{label: '全部', value: ''}, {label: '年度安检单', value: 'false'}, {label: '首次通气单', value: 'true'}]
227
228
  }
@@ -271,11 +272,13 @@ export default {
271
272
  this.model = new PagedList('rs/sql/YearCountRate', 20, {
272
273
  year: 'this.year',
273
274
  orgid: 'this.orgid',
274
- plan_type: 'this.plan_type'
275
+ plan_type: 'this.plan_type',
276
+ f_safecheck_type: 'this.f_safecheck_type'
275
277
  })
276
278
  this.model.year = this.year
277
279
  this.model.orgid = this.orgid
278
280
  this.model.plan_type = this.plan_type
281
+ this.model.f_safecheck_type = this.f_safecheck_type
279
282
  this.model.search('1=1')
280
283
  },
281
284
  set(legendname, zongliangArray, yijianArray) {
@@ -435,6 +438,13 @@ export default {
435
438
  },
436
439
  'plan_type'(val) {
437
440
  console.log("我是plan_type")
441
+ this.f_safecheck_type = ''
442
+ if (this.plan_type == 'false') {
443
+ this.f_safecheck_type = '年度普检'
444
+ }
445
+ if (this.plan_type == 'true') {
446
+ this.f_safecheck_type = '首次通气'
447
+ }
438
448
  this.searchdata()
439
449
  },
440
450
  'f_filialeids'(){
@@ -92,7 +92,7 @@
92
92
  let getData = function * (self) {
93
93
  let load = new HttpResetClass()
94
94
  self.set()
95
- load.load('POST','rs/sql/CheckComplete', {data: {year:self.year,orgid:self.orgid,plan_type:self.plan_type}},
95
+ load.load('POST','rs/sql/CheckComplete', {data: {year:self.year,orgid:self.orgid,plan_type:self.plan_type,f_safecheck_type:self.f_safecheck_type}},
96
96
  {resolveMsg: null, rejectMsg: null})
97
97
  .then((res) => {
98
98
  let legendname = []
@@ -158,7 +158,8 @@
158
158
  year:(new Date()).getFullYear(),
159
159
  xc: '',
160
160
  plan_types:[{label:'全部',value:''},{label:'年度安检单',value:'false'},{label:'首次通气单',value:'true'}],
161
- plan_type:''
161
+ plan_type:'',
162
+ f_safecheck_type:''
162
163
  }
163
164
  },
164
165
  props:{
@@ -203,10 +204,11 @@
203
204
  this.$emit('echarts-changed', this.echarts)
204
205
  },
205
206
  settable() {
206
- this.model= new PagedList('rs/sql/CheckComplete',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type'})
207
+ this.model= new PagedList('rs/sql/CheckComplete',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_safecheck_type: 'this.f_safecheck_type'})
207
208
  this.model.year = this.year
208
209
  this.model.orgid = this.orgid
209
210
  this.model.plan_type = this.plan_type
211
+ this.model.f_safecheck_type = this.f_safecheck_type
210
212
  this.model.search('1=1')
211
213
  },
212
214
  set(scaledata,legendname,zongliangArray,yijianArray) {
@@ -370,6 +372,13 @@
370
372
  this.searchdata()
371
373
  },
372
374
  'plan_type' (val) {
375
+ this.f_safecheck_type = ''
376
+ if (this.plan_type == 'false') {
377
+ this.f_safecheck_type = '年度普检'
378
+ }
379
+ if (this.plan_type == 'true') {
380
+ this.f_safecheck_type = '首次通气'
381
+ }
373
382
  console.log("我是plan_type")
374
383
  this.searchdata()
375
384
  },
@@ -218,6 +218,18 @@
218
218
  :options='$parent.$parent.entry_status'
219
219
  ></v-select>
220
220
  </div>
221
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
222
+ <label class="font_normal_body">计划类型</label>
223
+ <v-select class="select_list select"
224
+ placeholder='请选择'
225
+ :value.sync="model.f_safe_type" v-model="model.f_safe_type"
226
+ :options='$parent.$parent.safe_types'
227
+ filer-key="name"
228
+ condition="f_safe_type = '{}'"
229
+ close-on-select clear-button
230
+ :value-single="true">
231
+ </v-select>
232
+ </div>
221
233
  </div>
222
234
 
223
235
  <div class="row" v-show="$parent.$parent.$parent.showItem">
@@ -520,6 +532,7 @@ export default {
520
532
  f_defect_content: 'this.f_defect_content'
521
533
  }),
522
534
  entry_status:[{label: '入户', value: '入户'}, {label: '拒检', value: '拒检'}, {label: '到访不遇', value: '到访不遇'}],
535
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
523
536
  f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
524
537
  orgstrs: [{label: '全部', value: ''}],
525
538
  checkersid: [],
@@ -221,7 +221,7 @@
221
221
  :show-rest-button="reset"
222
222
  :value.sync="model.f_start_time"
223
223
  v-model="model.f_start_time"
224
- condition="ui.f_last_check_date >='{} 00:00:00'">
224
+
225
225
  </datepicker>
226
226
  </div>
227
227
  <div class="form-group col-sm-4" >
@@ -234,7 +234,7 @@
234
234
  :show-rest-button="reset"
235
235
  :value.sync="model.f_end_time"
236
236
  v-model="model.f_end_time"
237
- condition="ui.f_last_check_date <='{} 23:59:59'">
237
+
238
238
  </datepicker>
239
239
  </div>
240
240
  <div class="form-group col-sm-4">
@@ -246,7 +246,6 @@
246
246
  v-model="model.f_last_check_state"
247
247
  :options='$parent.$parent.entry_status'
248
248
  placeholder='请选择'
249
- condition="ui.f_last_check_state = '{}'"
250
249
  :search="false"
251
250
  close-on-select
252
251
  value-single
@@ -485,13 +484,7 @@
485
484
  this.excelUserCondtion=true
486
485
  },
487
486
  selfSearch (args) {
488
- //tag)
489
487
  args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
490
- /*if(args.model.f_hasHousehold=='已入户'){
491
- args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
492
- }else if(args.model.f_hasHousehold=='未入户'){
493
- args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
494
- }*/
495
488
  if(args.model.checkBook){
496
489
  let arr=args.model.checkBook.split('-')
497
490
  if(arr[1] == '用户'){
@@ -500,8 +493,34 @@
500
493
  args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
501
494
  }
502
495
  }
503
- if (args.model.f_last_check_state == '未检'){
504
- args.condition = args.condition.replace("ui.f_last_check_state = '未检'"," ui.f_last_check_state is null or ui.f_last_check_date is null ")
496
+ // if (args.model.f_last_check_state == '未检'){
497
+ // args.condition += ` and ui.f_last_check_date <='${args.model.f_start_time}' or ui.f_last_check_date >='${args.model.f_start_time}' and ( ui.f_last_check_date is null or ui.f_last_check_state is null or ui.f_last_check_date ='' ) `
498
+ // }else if(args.model.f_last_check_state == '') {
499
+ // args.model.f_start_time ==''?
500
+ // args.condition +=` and ui.f_last_check_date >='${args.model.f_start_time}' and ui.f_last_check_date <='${args.model.f_start_time}' `
501
+ // }else {
502
+ // args.condition +=` and ui.f_last_check_state = ${args.model.f_last_check_state?args.model.f_last_check_state:''} and ui.f_last_check_date >='${args.model.f_start_time}' and ui.f_last_check_date <='${args.model.f_start_time}' `
503
+ // }
504
+ if (!Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_start_time) || !Util.isEmpty(args.model.f_end_time) )){
505
+ if (args.model.f_last_check_state == '未检'){
506
+ var lscon = args.model.f_start_time ? ` or ui.f_last_check_date <= '${args.model.f_start_time} 00:00:00'` :''
507
+ lscon += lscon ? (args.model.f_end_time ? ` or ui.f_last_check_date >= '${args.model.f_end_time} 23:59:59'` :''): (args.model.f_end_time ? `ui.f_last_check_date >= '${args.model.f_end_time} 23:59:59'` :'')
508
+ args.condition +=`and (ui.f_last_check_state is null or ui.f_last_check_state ='' ${lscon} ) `
509
+ }else {
510
+ var lscon = args.model.f_start_time ? ` and ui.f_last_check_date >= '${args.model.f_start_time} 00:00:00'` :''
511
+ lscon += lscon ? (args.model.f_end_time ? ` and ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'') : (args.model.f_end_time ? ` ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'')
512
+ args.condition += `and ui.f_last_check_state = '${args.model.f_last_check_state}' ${lscon}`
513
+ }
514
+
515
+ }else if (Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_start_time) || !Util.isEmpty(args.model.f_end_time) )) {
516
+ var lscon = args.model.f_start_time ? ` and ui.f_last_check_date >= '${args.model.f_start_time} 00:00:00'` :''
517
+ lscon += lscon ? (args.model.f_end_time ? ` and ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'') : (args.model.f_end_time ? ` ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'')
518
+ args.condition += lscon
519
+ }else if (!Util.isEmpty(args.model.f_last_check_state) && Util.isEmpty(args.model.f_start_time) && Util.isEmpty(args.model.f_end_time)){
520
+ this.$showMessage("选择安检状态时,需要选择安检时间区间!")
521
+ return
522
+ }else{
523
+ console.log('这块无条件')
505
524
  }
506
525
  if(this.uploadCodeCondition){
507
526
  args.condition +=` and ${this.uploadCodeCondition}`
@@ -129,7 +129,7 @@
129
129
  console.log('self.plan_type',self.plan_type)
130
130
  console.log('self.orgid',self.orgid)
131
131
  self.set()
132
- load.load('POST','rs/sql/YearCheckerCountRate', {data: {orgid:self.orgid,plan_type:self.plan_type,f_start_time:self.f_start_time,f_end_time:self.f_end_time}},
132
+ load.load('POST','rs/sql/YearCheckerCountRate', {data: {orgid:self.orgid,plan_type:self.plan_type,f_start_time:self.f_start_time,f_end_time:self.f_end_time,f_safecheck_type:self.f_safecheck_type}},
133
133
  {resolveMsg: null, rejectMsg: null})
134
134
  .then((res) => {
135
135
  let checkerArrray = []
@@ -202,6 +202,7 @@
202
202
  // orgid:'2586252.6314787',
203
203
  year:(new Date()).getFullYear(),
204
204
  plan_type:'',
205
+ f_safecheck_type:'',
205
206
  f_start_time:'',
206
207
  f_end_time:'',
207
208
  xc: '',
@@ -250,12 +251,13 @@
250
251
  this.$emit('echarts-changed', this.echarts)
251
252
  },
252
253
  settable() {
253
- this.model= new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time'})
254
+ this.model= new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time',f_safecheck_type: 'this.f_safecheck_type'})
254
255
  this.model.year = this.year
255
256
  this.model.orgid = this.orgid
256
257
  this.model.f_start_time = this.f_start_time
257
258
  this.model.f_end_time = this.f_end_time
258
259
  this.model.plan_type = this.plan_type
260
+ this.model.f_safecheck_type = this.f_safecheck_type
259
261
  this.model.search('1=1')
260
262
  },
261
263
  set(checkerArrray,ruhuArray,dfbyArray,jjArray,wsytrqArray) {
@@ -458,6 +460,13 @@
458
460
  },
459
461
  'plan_type' (val) {
460
462
  console.log("我是plan_type")
463
+ this.f_safecheck_type = ''
464
+ if (this.plan_type == 'false') {
465
+ this.f_safecheck_type = '年度普检'
466
+ }
467
+ if (this.plan_type == 'true') {
468
+ this.f_safecheck_type = '首次通气'
469
+ }
461
470
  this.searchdata()
462
471
  },
463
472
  'f_filialeids'(){