safecheck-client 3.0.33-16 → 3.0.33-160

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 (165) hide show
  1. package/index.html +6 -2
  2. package/package.json +133 -133
  3. package/src/App.vue +2 -2
  4. package/src/components/Util/ImgSelfSafePlus.vue +19 -10
  5. package/src/components/Util.js +7 -0
  6. package/src/components/android/AreaPlan.vue +2 -1
  7. package/src/components/android/CurrentCreate.vue +1 -1
  8. package/src/components/android/ImgSelfAndroid.vue +1 -1
  9. package/src/components/android/SafecheckDevices.vue +5 -1
  10. package/src/components/android/SafecheckOrderV.vue +18 -12
  11. package/src/components/map/checkScreen.vue +27 -21
  12. package/src/components/paper/PlanChooser.vue +4 -2
  13. package/src/components/pc/NewCheckpaper.vue +11 -8
  14. package/src/components/planmanage/PlanManage.vue +14 -4
  15. package/src/components/planmanage/checkPlanList.vue +2 -1
  16. package/src/components/planmanage/checkUserList.vue +2 -0
  17. package/src/components/report/HiddenSituation.vue +3 -3
  18. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -2
  19. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  20. package/src/components/rongcheng/DefectPaper.vue +1 -1
  21. package/src/components/rongcheng/PaperListNPSQ.vue +36 -1
  22. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  23. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  24. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  25. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  26. package/src/components/safecheckNew/PaperList.vue +785 -0
  27. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  28. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  29. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  30. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  31. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  32. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  33. package/src/filiale/Util.js +5 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -0
  35. package/src/filiale/baiyin/android.js +10 -0
  36. package/src/filiale/baiyin/pc/PaperList.vue +790 -0
  37. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -0
  38. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  39. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -0
  40. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -0
  41. package/src/filiale/baiyin/pc.js +17 -0
  42. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  43. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  44. package/src/filiale/bayan/android/SafecheckOrderV.vue +20 -7
  45. package/src/filiale/bayan/android/SafecheckUserInfo.vue +566 -514
  46. package/src/filiale/bayan/android.js +1 -0
  47. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  48. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  49. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  50. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  51. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  52. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  53. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  54. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -0
  55. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  56. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  57. package/src/filiale/bayan/pc/PaperList.vue +119 -12
  58. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  59. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  60. package/src/filiale/bayan/pc.js +7 -0
  61. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  62. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  63. package/src/filiale/fugou/android.js +2 -1
  64. package/src/filiale/fugou/pc/AddToCheckBook.vue +13 -14
  65. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  66. package/src/filiale/fugou/pc/CheckBookEntry.vue +2 -6
  67. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  68. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -18
  69. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  70. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  71. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  72. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  73. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  74. package/src/filiale/fugou/pc/checkUserList.vue +36 -35
  75. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  76. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  77. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  78. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  79. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  80. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  81. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  82. package/src/filiale/jingyang/pc.js +1 -0
  83. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  84. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  85. package/src/filiale/liaoyuan/pc.js +2 -1
  86. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  87. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +7 -5
  88. package/src/filiale/qingjian/android/SafecheckOrderV.vue +66 -1
  89. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  90. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  91. package/src/filiale/rongchuang/android.js +1 -0
  92. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  93. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  94. package/src/filiale/rongchuang/pc.js +1 -0
  95. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  96. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  97. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  98. package/src/filiale/siyang/android.js +11 -0
  99. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  100. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  101. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  102. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  103. package/src/filiale/siyang/pc.js +15 -0
  104. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  105. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +60 -2
  106. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +2 -3
  107. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  108. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  109. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  110. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  111. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  112. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  113. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  114. package/src/filiale/weinan/pc/DefectListNew.vue +617 -0
  115. package/src/filiale/weinan/pc/DefectMainNew.vue +1 -1
  116. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  117. package/src/filiale/weinan/pc.js +2 -0
  118. package/src/filiale/wenxi/android/CurrentCreate.vue +1055 -1055
  119. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1 -1
  120. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +85 -63
  121. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  122. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  123. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  124. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +45 -4
  125. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +2 -2
  126. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +20 -20
  127. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +3 -3
  128. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  129. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +5 -5
  130. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +17 -4
  131. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +30 -12
  132. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +2 -1
  133. package/src/filiale/yangchunboneng/android.js +1 -0
  134. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  135. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  136. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  137. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +187 -13
  138. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +98 -3
  139. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  140. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  141. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  142. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  143. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  144. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  145. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  146. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  147. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  148. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  149. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  150. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  151. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  152. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  153. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  154. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  155. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  156. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  157. package/src/filiale/yongzhou/pc.js +4 -0
  158. package/src/filiale/yuansheng/android/AndroidDefectDeal.vue +652 -0
  159. package/src/filiale/yuansheng/android.js +1 -0
  160. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  161. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  162. package/src/main.js +33 -33
  163. package/src/rongcheng.js +3 -1
  164. package/src/safecheck-android.js +6 -0
  165. package/src/safecheck.js +3 -0
@@ -27,7 +27,7 @@
27
27
  v-for="row in checkplan.list.data" @click="selectPlanChange(row)">
28
28
  <table style="width:100%;table-layout:fixed">
29
29
  <tr class="safe-planfont">
30
- <td rowspan="6"><input type="checkbox" style="pointer-events:auto"
30
+ <td rowspan="7"><input type="checkbox" style="pointer-events:auto"
31
31
  v-show="row.plan_count==0 || row.f_issued=='未下发'"
32
32
  onClick="event.cancelBubble = true"
33
33
  :checked="checkplan.check.isChecked(row.f_check_item_id)"
@@ -59,6 +59,18 @@
59
59
  :title="row.f_create_time">{{ row.f_create_time }}
60
60
  </td>
61
61
  </tr>
62
+ <tr class="safe-bodyfont" v-if="row.f_end_time">
63
+ <td colspan="3">结束时间 :</td>
64
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
65
+ :title="row.f_end_time">{{ row.f_end_time }}
66
+ </td>
67
+ </tr>
68
+ <tr class="safe-bodyfont" >
69
+ <td colspan="3">计划状态:</td>
70
+ <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
71
+ >{{ checkState(row.f_end_time,row.unchecked)}}
72
+ </td>
73
+ </tr>
62
74
  <tr class="safe-bodyfont" v-if="row.f_safecheck_type">
63
75
  <td colspan="3">安检类型 :</td>
64
76
  <td colspan="5" style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;"
@@ -66,7 +78,7 @@
66
78
  </td>
67
79
  </tr>
68
80
  <tr class="safe-bodyfont" v-if="row.f_safecheck_type">
69
- <td >
81
+ <td colspan="8">
70
82
  <input type="button" style="pointer-events:auto"
71
83
  @click="showPlanHistory(row)"
72
84
  onClick="event.cancelBubble = true"/>变更记录
@@ -139,18 +151,20 @@
139
151
  <label class="font_normal_body">开始时间</label>
140
152
  <datepicker
141
153
  :value.sync="planCondition.f_start_time"
154
+ style="width: 60%;margin-bottom: 8px"
142
155
  :format="'yyyy-MM-dd HH:mm:ss'"
143
156
  v-model="planCondition.f_start_time"
144
- :show-reset-button="reset" placeholder="请输入开始时间" style="margin-bottom: 8px">
157
+ :show-reset-button="reset" placeholder="请输入开始时间">
145
158
  </datepicker>
146
159
  </div>
147
160
  <div class="form-group col-sm-4">
148
161
  <label class="font_normal_body">结束时间:</label>
149
162
  <datepicker
150
163
  :value.sync="planCondition.f_end_time"
164
+ style="width: 60%;margin-bottom: 8px"
151
165
  :format="'yyyy-MM-dd HH:mm:ss'"
152
166
  v-model="planCondition.f_end_time"
153
- :show-reset-button="reset" placeholder="请输入结束时间" style="margin-bottom: 8px">
167
+ :show-reset-button="reset" placeholder="请输入结束时间">
154
168
  </datepicker>
155
169
  </div>
156
170
  <div class="form-group col-sm-4">
@@ -231,6 +245,21 @@
231
245
  >
232
246
  </v-select>
233
247
  </div>
248
+ <div class="form-group col-sm-4">
249
+ <label class="font_normal_body">计划类型:</label>
250
+ <v-select
251
+ class="select select_list"
252
+ :value.sync="planCondition.f_plan_type"
253
+ v-model="planCondition.f_plan_type"
254
+ @change="setProperty('checkplan','f_plan_type',planCondition.f_plan_type)"
255
+ :search="false"
256
+ :options='planType'
257
+ placeholder='请选择'
258
+ close-on-select
259
+ value-single
260
+ >
261
+ </v-select>
262
+ </div>
234
263
  </div>
235
264
  </div>
236
265
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
@@ -397,7 +426,7 @@
397
426
  value-single>
398
427
  </v-select>
399
428
  </div>
400
- <div class="form-group col-sm-4" v-if="$login.f.rolestr.includes('计划结束时间')==true">
429
+ <div class="form-group col-sm-4" >
401
430
  <label class="font_normal_body">结束时间:</label>
402
431
  <datepicker
403
432
  :value.sync="upCheckPlan.f_end_time"
@@ -602,6 +631,29 @@ export default {
602
631
 
603
632
  },
604
633
  methods: {
634
+ //判断计划状态
635
+ checkState(time,unchecked) {
636
+ //判断当前时间与time的大小,time格式为 yyyy-MM-dd HH:mm:ss
637
+ let now = new Date()
638
+ let last = new Date(time)
639
+ if(time==undefined || time==''){
640
+ return '无'
641
+ }else{
642
+ if(last.getTime() >now.getTime() ){
643
+ return '安检中'
644
+ }else if(last.getTime() <now.getTime()){
645
+ //结束时间小于当前时间,
646
+ //判断未检数,未检大于0,则逾期
647
+ if(unchecked>0){
648
+ return '逾期'
649
+ }
650
+ if(unchecked<=0){
651
+ return '已完成'
652
+ }
653
+ }
654
+ }
655
+
656
+ },
605
657
  showPlanHistory(row){
606
658
  this.showPlanHistoryButton = true
607
659
  this.planHistory = JSON.parse(row.f_update_check_plan)
@@ -776,7 +828,8 @@ export default {
776
828
  "isAndNot": "f_checker {}",
777
829
  "safechecktype": "f_safecheck_type='{}'",
778
830
  "issude": "f_issued = '{}'",
779
- "f_create_operator": "f_create_operator like '%{}%'"
831
+ "f_create_operator": "f_create_operator like '%{}%'",
832
+ "f_plan_type": "f_plan_type = '{}'"
780
833
  },
781
834
  {
782
835
  orderitem: fieldValue,
@@ -807,10 +860,10 @@ export default {
807
860
  this.showUpPlan = true
808
861
  },
809
862
  async upPlan() {
810
- if (this.upCheckPlan.f_issued == '已下发') {
863
+ /*if (this.upCheckPlan.f_issued == '已下发') {
811
864
  this.$showMessage("该计划已下发,无法进行修改!")
812
865
  return
813
- }
866
+ }*/
814
867
  if (!this.upCheckPlan.f_plan_name) {
815
868
  Vue.showMessage("请输入安检计划名称!")
816
869
  return false
@@ -849,6 +902,7 @@ export default {
849
902
  f_end_time: this.upCheckPlan.f_end_time,
850
903
  f_operetiom_name:this.upCheckPlan.f_operetiom_name,
851
904
  f_update_message:this.upCheckPlan.f_update_message,
905
+ issued: '是' // 修改已下发计划
852
906
  }
853
907
  }, {resolveMsg: null, rejectMsg: null})
854
908
  if (res.data.code == 200) {
@@ -28,7 +28,7 @@
28
28
  :timeout="500"
29
29
  @select-search="$parent.$parent.select_search"
30
30
  placeholder='安检册筛选'
31
- condition="f_check_book_id ='{}'"
31
+ condition="ua.f_check_book_id ='{}'"
32
32
  close-on-select
33
33
  value-single
34
34
  >
@@ -81,32 +81,32 @@
81
81
  >
82
82
  </v-select>
83
83
  </div>
84
- <div class="form-group col-sm-4">
84
+ <div class="col-sm-3 form-group">
85
85
  <label class="font_normal_body">街道/乡镇</label>
86
- <v-select :value.sync="model.f_street" :value-single="true"
86
+ <v-select :value.sync="model.f_street_id" :value-single="true"
87
87
  :options='$parent.$parent.streetslist' placeholder='请选择'
88
- condition="f_street = '{}'"
89
- v-model='model.f_street'
88
+ condition=" area.f_street_id = '{}'"
89
+ v-model='model.f_street_id'
90
90
  @change="$parent.$parent.streetChange"
91
91
  close-on-select :search="true" >
92
92
  </v-select>
93
93
  </div>
94
- <div class="form-group col-sm-4">
94
+ <div class="col-sm-3 form-group">
95
95
  <label class="font_normal_body">片区/行政村</label>
96
- <v-select :value.sync="model.f_community" v-model='model.f_community'
96
+ <v-select :value.sync="model.f_community_id" v-model='model.f_community_id'
97
97
  :options='$parent.$parent.communitylist' placeholder='片区/管理站' filer-key="name"
98
- condition="f_community = '{}'"
98
+ condition="ua.f_community_id = '{}'"
99
99
  @change="$parent.$parent.communityChange"
100
- close-on-select >
100
+ close-on-select v-ref:slice>
101
101
  </v-select>
102
102
  </div>
103
- <div class="form-group col-sm-4">
103
+ <div class="col-sm-3 form-group">
104
104
  <label class="font_normal_body">小区/自然村</label>
105
- <v-select :value.sync="model.f_residential_area" :value-single="true"
105
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
106
106
  :options='$parent.$parent.areaslist' placeholder='请选择'
107
- condition="f_residential_area = '{}'"
108
- v-model='model.f_residential_area'
109
- close-on-select >
107
+ condition="ua.f_residential_area_id = '{}'"
108
+ v-model='model.f_residential_area_id'
109
+ close-on-select>
110
110
  </v-select>
111
111
  </div>
112
112
  <div class="form-group col-sm-4" >
@@ -382,7 +382,8 @@
382
382
  uploadCodeCondition:'',
383
383
  streetslist:[],
384
384
  communitylist:[],
385
- areaslist:[]
385
+ areaslist:[],
386
+ f_filialeids: this.$login.f.orgid,
386
387
  }
387
388
  },
388
389
  props:["selectplan","userlogin"],
@@ -416,7 +417,7 @@
416
417
  req.data.forEach((row, n) => {
417
418
  redata[n] = {
418
419
  label: row.f_pcd,
419
- value: row.f_pcd,
420
+ value: row.id,
420
421
  data: row,
421
422
  id: row.id
422
423
  }
@@ -442,7 +443,7 @@
442
443
  req.data.forEach((row, n) => {
443
444
  redata[n] = {
444
445
  label: row.f_street,
445
- value: row.f_street,
446
+ value: row.id,
446
447
  data: row,
447
448
  id: row.id
448
449
  }
@@ -471,7 +472,7 @@
471
472
  req.data.forEach((row) => {
472
473
  redata.push({
473
474
  label: row.f_residential_area,
474
- value: row.f_residential_area,
475
+ value: row.id,
475
476
  data: row,
476
477
  id: row.id
477
478
  })
@@ -490,20 +491,20 @@
490
491
  }
491
492
  }
492
493
  if (selectArea) {
493
- this.model.f_street = selectArea.f_street
494
- this.model.f_pcd = selectArea.f_pcd
495
- this.model.f_community = selectArea.f_community
496
- console.log( this.model.f_community)
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)
497
498
 
498
- this.initstreets(` f_filialeid = '${this.userlogin.orgid}' and id ='${selectArea.f_street}' `)
499
- this.initpcds(` f_filialeid = '${this.userlogin.orgid}' and id ='${selectArea.f_pcd}' `)
500
- if(selectArea.f_community){
501
- this.initcommunity(` f_filialeid = '${this.userlogin.orgid}' and id ='${selectArea.f_community}' `)
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}' `)
502
503
  }
503
504
  // this.model.f_slice_area = selectArea.f_slice_area
504
505
  // 拼接地址
505
506
  this.model.f_address = `${selectArea.f_street}${selectArea.f_community}${selectArea.f_residential_area}`
506
- console.log( this.model.f_community)
507
+ console.log( this.model.f_community_id)
507
508
  }
508
509
  this.$nextTick(() => {
509
510
  this.$resetValidation()
@@ -524,14 +525,14 @@
524
525
  if (val) {
525
526
  // 那就把[小区]重新组织一下
526
527
  await this.initareas(` f_area_code ='${val}' `)
527
- if (this.$refs.paged.$refs.criteria.model.f_residential_area) {
528
- if (this.findbyid(this.areaslist, this.$refs.paged.$refs.criteria.model.f_residential_area)) {
529
- let street = this.findbyid(this.areaslist,this.$refs.paged.$refs.criteria.model.f_residential_area).f_street
530
- if (street != val) {
531
- this.$refs.paged.$refs.criteria.model.f_residential_area = ''
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 = ''
532
533
  }
533
534
  } else {
534
- this.$refs.paged.$refs.criteria.model.f_residential_area = ''
535
+ this.$refs.paged.$refs.criteria.model.f_residential_area_id = ''
535
536
  }
536
537
  }
537
538
  }
@@ -562,13 +563,13 @@
562
563
  },
563
564
  async streetChange(val){
564
565
  if(val){
565
- await this.initcommunity(` f_filialeid = '${this.userlogin.orgid}' and f_street ='${val}' `)
566
+ await this.initcommunity(` f_filialeid = '${this.f_filialeids}' and f_street_id ='${val}' `)
566
567
  }
567
568
  },
568
569
  async communityChange(val){
569
570
  console.log(val)
570
571
  if(val){
571
- await this.initareas(` f_filialeid = '${this.userlogin.orgid}' and f_community ='${val}' `)
572
+ await this.initareas(` f_filialeid = '${this.f_filialeids}' and f_community_id ='${val}' `)
572
573
  }
573
574
  },
574
575
  getCommunity(){
@@ -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'(){