safecheck-client 3.0.34-1 → 3.0.34-100

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 (183) hide show
  1. package/package.json +1 -1
  2. package/src/App-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.vue +55 -0
  3. package/src/assets/123.png +0 -0
  4. package/src/assets/f8632d3c8c4c1cb68e99da754cab1a7.png +0 -0
  5. package/src/components/LoadData.vue +62 -0
  6. package/src/components/NewDefectList/DefectListNew.vue +1 -0
  7. package/src/components/android/AddPlanItemYy.vue +451 -0
  8. package/src/components/android/AndroidDefectDeal.vue +1 -0
  9. package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
  10. package/src/components/android/AreaPlan.vue +1 -7
  11. package/src/components/android/AreaSelect.vue +198 -0
  12. package/src/components/android/BuildingSelect.vue +192 -0
  13. package/src/components/android/CheckPlanSelect.vue +229 -0
  14. package/src/components/android/CurrentCreateYy.vue +1051 -0
  15. package/src/components/android/ImgSelfAndroid.vue +181 -181
  16. package/src/components/android/PaperFeedback.vue +34 -1
  17. package/src/components/android/PaperFeedbackTemp.vue +1 -1
  18. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  19. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  20. package/src/components/android/SafecheckDevices.vue +4 -4
  21. package/src/components/android/SafecheckDevicesTemp.vue +1 -1
  22. package/src/components/android/SafecheckOrderV.vue +8 -12
  23. package/src/components/android/UserinfoSelect.vue +714 -0
  24. package/src/components/android/examples/410.png +0 -0
  25. package/src/components/android/examples/SafeListExamples.vue +296 -0
  26. package/src/components/android/examples/UserExamples.vue +137 -0
  27. package/src/components/android/examples/ViewDetailsExamples.vue +1235 -0
  28. package/src/components/android/examples/touxiang.png +0 -0
  29. package/src/components/android/userinfo/SafecheckUserInfo.vue +1 -1
  30. package/src/components/pc/SafeVisitInfo.vue +261 -0
  31. package/src/components/rongcheng/AddPlanItem.vue +8 -0
  32. package/src/components/rongcheng/AspiratedAreaPlan.vue +574 -464
  33. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  34. package/src/components/rongcheng/CheckSearchUser.vue +46 -16
  35. package/src/components/rongcheng/PaperStatem.vue +6 -1
  36. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  37. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1328
  38. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  39. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  40. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
  41. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  42. package/src/filiale/baiyin/android.js +11 -10
  43. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  44. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  45. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  46. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -63
  47. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  48. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  49. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
  50. package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
  51. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -348
  52. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -160
  53. package/src/filiale/bayan/android/AddPlanItem.vue +8 -0
  54. package/src/filiale/bayan/android/PaperFeedback.vue +68 -50
  55. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +40 -40
  56. package/src/filiale/bayan/android/SafecheckDevices.vue +1 -1
  57. package/src/filiale/bayan/android/SafecheckOrderV.vue +58 -58
  58. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  59. package/src/filiale/bayan/pc/NewCheckpaper.vue +50 -46
  60. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  61. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  62. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  63. package/src/filiale/hanzhong/android/PaperFeedback.vue +1 -1
  64. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1 -1
  65. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +1 -1
  66. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  67. package/src/filiale/huaran/android.js +12 -0
  68. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  69. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  70. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  71. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  72. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  73. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  74. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  75. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  76. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  77. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  78. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  79. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  80. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  81. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  82. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  83. package/src/filiale/huaran/pc.js +27 -0
  84. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  85. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  86. package/src/filiale/jiaxian/android/SafecheckDevices.vue +1298 -1298
  87. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  88. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  89. package/src/filiale/jiaxian/android.js +14 -10
  90. package/src/filiale/jiaxian/pc.js +12 -12
  91. package/src/filiale/jingyang/android/PaperFeedback.vue +1 -1
  92. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -1
  93. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  94. package/src/filiale/pingxiang/android/PaperFeedback.vue +1 -1
  95. package/src/filiale/qianneng/android/SafecheckOrderV.vue +1 -1
  96. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  97. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  98. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  99. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +1 -1
  100. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
  101. package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
  102. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
  103. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
  104. package/src/filiale/qingtongxia/android.js +4 -0
  105. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  106. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  107. package/src/filiale/ruihua/android.js +11 -0
  108. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -0
  109. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  110. package/src/filiale/shanxian/android.js +1 -0
  111. package/src/filiale/shanxian/pc/PaperList.vue +785 -0
  112. package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
  113. package/src/filiale/shanxian/pc.js +2 -2
  114. package/src/filiale/shiquan/android/SafecheckDevices.vue +1 -1
  115. package/src/filiale/siyang/android/AddPlanItem.vue +450 -0
  116. package/src/filiale/siyang/android/AppCheckPlan.vue +246 -0
  117. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -0
  118. package/src/filiale/siyang/android/SafecheckUserInfo.vue +1 -1
  119. package/src/filiale/siyang/android.js +4 -0
  120. package/src/filiale/siyang/pc/CheckBookList.vue +396 -0
  121. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -0
  122. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  123. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -0
  124. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  125. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  126. package/src/filiale/siyang/pc/checkUserList.vue +22 -18
  127. package/src/filiale/siyang/pc.js +6 -0
  128. package/src/filiale/tongchuan/android/SafecheckDevices.vue +2 -2
  129. package/src/filiale/tongchuan/android/Select.vue +421 -0
  130. package/src/filiale/tongchuan/android.js +1 -0
  131. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  132. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  133. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  134. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  135. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
  136. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  137. package/src/filiale/tongchuan/pc/checkUserList.vue +30 -0
  138. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  139. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  140. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  141. package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
  142. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
  143. package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
  144. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  145. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  146. package/src/filiale/weinan/pc/checkUserList.vue +49 -113
  147. package/src/filiale/weinan/pc.js +1 -0
  148. package/src/filiale/wuan/android/SafecheckOrderV.vue +5 -1
  149. package/src/filiale/wuan/android/SafecheckUserInfo.vue +10 -5
  150. package/src/filiale/xilan/android/AddPlanItem.vue +457 -0
  151. package/src/filiale/xilan/android/CurrentCreate.vue +1063 -0
  152. package/src/filiale/xilan/android.js +11 -0
  153. package/src/filiale/xilan/pc/checkUserList.vue +772 -0
  154. package/src/filiale/xilan/pc.js +12 -0
  155. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +8 -11
  156. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +8 -13
  157. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  158. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  159. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  160. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1336 -1332
  161. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2845
  162. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  163. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +8 -13
  164. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +23 -11
  165. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +9 -9
  166. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
  167. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  168. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +54 -3
  169. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -944
  170. package/src/filiale/yangchunboneng/pc/PaperList.vue +29 -0
  171. package/src/filiale/yongzhou/android/PaperFeedback.vue +1 -1
  172. package/src/filiale/yongzhou/android/SafecheckDevices.vue +1 -1
  173. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +1 -1
  174. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  175. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  176. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1 -1
  177. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1 -1
  178. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +1 -1
  179. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  180. package/src/main.js +33 -33
  181. package/src/safecheck-android.js +307 -296
  182. package/src/safecheck-page.js +12 -0
  183. package/src/safecheck.js +3 -0
@@ -1082,7 +1082,7 @@ export default {
1082
1082
  let msg = ''
1083
1083
  for (let a = 0; a < checkResults.data.length; a++) {
1084
1084
  for (let datumKey in checkResults.data[a]) {
1085
- msg += datumKey + ':' + checkResults.data[a][datumKey] + ';'
1085
+ msg += datumKey + ','
1086
1086
  }
1087
1087
  }
1088
1088
  this.data.f_defect_text = msg
@@ -1664,7 +1664,11 @@ export default {
1664
1664
  if(this.data.f_safecheck_type=='复检') {
1665
1665
  codata.f_is_fujian = '已复检'
1666
1666
  }
1667
- this.showModal3 = true
1667
+ if(codata.f_defect_content.includes('正常')){
1668
+ this.quotaSave('延期生效')
1669
+ }else {
1670
+ this.showModal3 = true
1671
+ }
1668
1672
  $("#savebut").removeClass("noclickbut");
1669
1673
  } else {
1670
1674
  this.$showMessage('保存成功!')
@@ -56,6 +56,10 @@
56
56
  </div>
57
57
  <div class="form-group col-sm-4" >
58
58
  <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
59
+ <export-excel-safe :data="$parent.$parent.searchData"
60
+ :field="$parent.$parent.excelHeaders"
61
+ :choose-col="true"
62
+ sqlurl="rs/logic/SafeExportExcel" sql-name="FetchUserFileByOrgNoRuHuSXQ" template-name='安检筛选用户信息导出'></export-excel-safe>
59
63
  <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
60
64
  <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.createAndSend()">下发</button>
61
65
  </div>
@@ -111,7 +115,7 @@
111
115
  placeholder='请选择'
112
116
  style="width:60%;text-align: center"
113
117
  :disabled-days-of-week="[]"
114
- :format="'yyyy-MM-dd'"
118
+ :format="'yyyy-MM-dd 00:00:00'"
115
119
  :show-rest-button="reset"
116
120
  :value.sync="model.f_check_start"
117
121
  v-model="model.f_check_start">
@@ -123,12 +127,24 @@
123
127
  placeholder='请选择'
124
128
  :disabled-days-of-week="[]"
125
129
  style="width:60%;text-align: center"
126
- :format="'yyyy-MM-dd'"
130
+ :format="'yyyy-MM-dd 23:59:59'"
127
131
  :show-rest-button="reset"
128
132
  :value.sync="model.f_check_end"
129
133
  v-model="model.f_check_end">
130
134
  </datepicker>
131
135
  </div>
136
+ <div class="form-group col-sm-4" >
137
+ <label class="font_normal_body">入户截止:</label>
138
+ <datepicker
139
+ placeholder='请选择'
140
+ :disabled-days-of-week="[]"
141
+ style="width:60%;text-align: center"
142
+ :format="'yyyy-MM-dd 23:59:59'"
143
+ :show-rest-button="reset"
144
+ :value.sync="model.f_ruhu_end"
145
+ v-model="model.f_ruhu_end">
146
+ </datepicker>
147
+ </div>
132
148
 
133
149
  </div>
134
150
  </div>
@@ -269,7 +285,31 @@ import {toStandardDateString} from "../../../components/Util";
269
285
  export default {
270
286
  title: '计划管理',
271
287
  data() {
288
+ let model = new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 20, {
289
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
290
+ "f_usertype": "''",
291
+ "month": "''",
292
+ "SafeCheckSX": 'this.SafeCheckSX',
293
+ "SafeCheckCQ": "''",
294
+ "startday":"''",
295
+ "endday":"''"})
296
+ model.SafeCheckSX = '1 = 1'
272
297
  return {
298
+ searchData: {
299
+ condition: "1=1",
300
+ orderitem: "f_residential_area,f_building,f_unit,f_floor,f_room",
301
+ SafeCheckSX:""
302
+ },
303
+ excelHeaders: {
304
+ 'f_userinfo_code': '用户编号',
305
+ 'f_user_name': '用户姓名',
306
+ 'f_user_type': '用户类型',
307
+ 'f_residential_area': '小区名称',
308
+ 'f_last_check_date': '最后一次安检日期',
309
+ 'f_last_check_state': '最后一次安检状态',
310
+ 'f_address': '详细地址'
311
+ },
312
+ model: model,
273
313
  createPlan:{
274
314
  f_safecheck_type:"年度普检",
275
315
  checker:"",
@@ -285,14 +325,6 @@ export default {
285
325
  yearList:[{label:"2020",value:"2020"},{label:"2021",value:"2021"},{label:"2022",value:"2022"},{label:"2023",value:"2023"},{label:"2024",value:"2024"},{label:"2025",value:"2025"},{label:"2026",value:"2026"},{label:"2027",value:"2027"},{label:"2028",value:"2028"},{label:"2029",value:"2029"},{label:"2030",value:"2030"}],
286
326
  monthList:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"},{label:"8",value:"8"},{label:"9",value:"9"},{label:"10",value:"10"},{label:"11",value:"11"},{label:"12",value:"12"}],
287
327
  showCreatePlan:false,
288
- model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 20, {
289
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
290
- "f_usertype": "''",
291
- "month": "''",
292
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
293
- "SafeCheckCQ": "''",
294
- "startday":"''",
295
- "endday":"''"}),
296
328
  a:'1',
297
329
  opt:[{label:"测试",value:"测试"}],
298
330
  showCondtion:false,
@@ -357,6 +389,7 @@ export default {
357
389
  f_filialeid:this.userlogin.orgid,
358
390
  f_subscribe_date:'',
359
391
  condition:this.model.condition,
392
+ SafeCheckSX: this.model.SafeCheckSX,
360
393
  switchCheckAll:true,
361
394
  checkAll:this.checkAll,
362
395
  param:this.checkes,
@@ -398,66 +431,45 @@ export default {
398
431
  this.excelUserCondtion=true
399
432
  },
400
433
  selfSearch (args) {
401
- console.log(this.bookrow,"6666")
402
- //tag)
403
- // 判断时间和状态匹配条件
404
- let f_last_check_state = ''
405
-
406
- if(args.model.f_last_check_state.length > 0){
434
+ if(args.model.f_last_check_state.length == 1 && args.model.f_last_check_state[0] == '入户' && args.model.f_ruhu_end) {
435
+ args.condition += `and DATEADD(YEAR, 2, CAST(ruhuend.f_offsite_time AS datetime)) < '${args.model.f_ruhu_end}'`
436
+ }
437
+ if(args.model.f_last_check_state.length > 0 && Util.isEmpty(args.model.f_ruhu_end) && (Util.isEmpty(args.model.f_check_start) || Util.isEmpty(args.model.f_check_end))) {
438
+ this.$showMessage("选择安检状态时,需要选择安检时间区间!")
439
+ return
440
+ }
441
+ if(args.model.f_last_check_state.length > 0 && Util.isEmpty(args.model.f_ruhu_end)) {
407
442
  let zzcon = ''
408
- if( Util.isEmpty(args.model.f_check_start) && Util.isEmpty(args.model.f_check_end)){
409
- this.$showMessage("选择安检状态时,需要选择安检时间区间!")
410
- return
411
- }
412
- for(let i = 0;i<args.model.f_last_check_state.length;i++){
413
- if(args.model.f_last_check_state[i] == '未检'){
414
- let lscon = args.model.f_check_start ? ` or ui.f_last_check_date <= '${args.model.f_check_start} 00:00:00'` :''
415
- lscon += lscon ? (args.model.f_check_end ? ` or ui.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :''): (args.model.f_check_end ? `ui.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :'')
416
- if(i == args.model.f_last_check_state.length-1){
417
- zzcon += `( ui.f_last_check_state is null or ua.f_last_check_state ='' ${lscon} ) `
418
- }else{
419
- zzcon += `( ui.f_last_check_state is null or ua.f_last_check_state ='' ${lscon} ) or `
443
+ this.model.SafeCheckSX = ` f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
444
+ for (let i = 0; i < args.model.f_last_check_state.length; i++) {
445
+ if (args.model.f_last_check_state[i] == '未检') {
446
+ zzcon += ' tcp.ruhu is null '
447
+ if (i != args.model.f_last_check_state.length - 1) {
448
+ zzcon += ' or'
420
449
  }
421
- } else{
422
- let lscon = args.model.f_check_start ? ` and ui.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
423
- lscon += lscon ? (args.model.f_check_end ? ` and ui.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ui.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
424
- if(i == args.model.f_last_check_state.length-1){
425
- zzcon += `(ui.f_last_check_state = '${args.model.f_last_check_state[i]}' ${lscon} ) `
426
- }else{
427
- zzcon += `(ui.f_last_check_state = '${args.model.f_last_check_state[i]}' ${lscon} ) or `
450
+ } else if (args.model.f_last_check_state[i] == '入户') {
451
+ zzcon += `tcp.ruhu > 0`
452
+ if (i != args.model.f_last_check_state.length - 1) {
453
+ zzcon += ' or'
454
+ }
455
+ } else if (args.model.f_last_check_state[i] == '拒检') {
456
+ zzcon += `(tcp.jujian > 0 and tcp.ruhu = 0 and tcp.daofang >= 0) `
457
+ if (i != args.model.f_last_check_state.length - 1) {
458
+ zzcon += ' or'
459
+ }
460
+ } else if (args.model.f_last_check_state[i] == '到访不遇') {
461
+ zzcon += `(tcp.daofang > 0 and tcp.ruhu = 0 and tcp.jujian = 0) `
462
+ if (i != args.model.f_last_check_state.length - 1) {
463
+ zzcon += ' or'
428
464
  }
429
465
  }
430
466
  }
431
467
  args.condition += `and ( ${zzcon} )`
432
- }else if(args.model.f_last_check_state.length == 0 && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )){
433
- let lscon = args.model.f_check_start ? ` and ui.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
434
- lscon += lscon ? (args.model.f_check_end ? ` and ui.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ui.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
435
- args.condition += lscon
436
468
  }else{
437
- console.log('这块无条件')
469
+ //无条件
470
+ this.model.SafeCheckSX = ` 1 != 1 `
438
471
  }
439
-
440
- // if (!Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )){
441
- // if (args.model.f_last_check_state == '未检'){
442
- // var lscon = args.model.f_check_start ? ` or ua.f_last_check_date <= '${args.model.f_check_start} 00:00:00'` :''
443
- // lscon += lscon ? (args.model.f_check_end ? ` or ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :''): (args.model.f_check_end ? `ua.f_last_check_date >= '${args.model.f_check_end} 23:59:59'` :'')
444
- // args.condition +=`and (ua.f_last_check_state is null or ua.f_last_check_state ='' ${lscon} ) `
445
- // }else {
446
- // var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
447
- // lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
448
- // args.condition += `and ua.f_last_check_state = '${args.model.f_last_check_state}' ${lscon}`
449
- // }
450
- //
451
- // }else if (Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_check_start) || !Util.isEmpty(args.model.f_check_end) )) {
452
- // var lscon = args.model.f_check_start ? ` and ua.f_last_check_date >= '${args.model.f_check_start} 00:00:00'` :''
453
- // lscon += lscon ? (args.model.f_check_end ? ` and ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'') : (args.model.f_check_end ? ` ua.f_last_check_date <= '${args.model.f_check_end} 23:59:59'` :'')
454
- // args.condition += lscon
455
- // }else if (!Util.isEmpty(args.model.f_last_check_state) && Util.isEmpty(args.model.f_check_start) && Util.isEmpty(args.model.f_check_end)){
456
- // this.$showMessage("选择安检状态时,需要选择安检时间区间!")
457
- // return
458
- // }else{
459
- // console.log('这块无条件')
460
- // }
472
+ this.searchData.SafeCheckSX = this.model.SafeCheckSX
461
473
  let condition1=`(ui.f_last_check_date is null or ui.f_last_check_date ='')`
462
474
  let arge = args.condition.replace('从未安检',condition1)
463
475
  args.condition = arge
@@ -517,6 +529,7 @@ export default {
517
529
  this.cancel()
518
530
  this.checkes=[]
519
531
  this.checkAll=false
532
+ this.searchData.condition = args.condition
520
533
  this.model.search(args.condition, args.model, args.condValue)
521
534
  },
522
535
  showUserCondition(){
@@ -220,42 +220,42 @@ methods:{
220
220
  //
221
221
  if( this.f_state){
222
222
  if(this.f_state=='入户'){
223
- args.condition=args.condition+" and i.f_state='已检' and f_last_check_state='入户'"
223
+ args.condition=args.condition+" and i.f_state='已检' and i.f_last_check_state='入户'"
224
224
  }else if(this.f_state=='未入户'){
225
225
  if(this.f_noruhu && this.f_noruhu.length==1){
226
226
  if(this.f_noruhu[0]=='复访不遇'){
227
- args.condition += "and i.f_state='已检' and f_last_check_state='到访不遇' and f_check_version > 1 "
227
+ args.condition += "and i.f_state='已检' and i.f_last_check_state='到访不遇' and i.f_check_version > 1 "
228
228
  }else{
229
- args.condition += this.f_noruhu[0]=='未检'?" and i.f_state='未检'":` and i.f_state='已检' and f_last_check_state='${this.f_noruhu[0]}'`
229
+ args.condition += this.f_noruhu[0]=='未检'?" and i.f_state='未检'":` and i.f_state='已检' and i.f_last_check_state='${this.f_noruhu[0]}'`
230
230
  }
231
231
  }else if(this.f_noruhu && this.f_noruhu.length==2){
232
232
  if(this.f_noruhu.indexOf('未检')!=-1){
233
233
  //
234
234
  if(this.f_noruhu.indexOf('到访不遇')!=-1){
235
- args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and f_last_check_state='到访不遇'))"
235
+ args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='到访不遇'))"
236
236
  }else if(this.f_noruhu.indexOf('复访不遇')!=-1) {
237
- args.condition=args.condition + " and (i.f_state='未检' or (i.f_state='已检' and f_last_check_state = '到访不遇' AND f_check_version >2))"
237
+ args.condition=args.condition + " and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state = '到访不遇' AND i.f_check_version >2))"
238
238
  }else{
239
- args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and f_last_check_state='拒检'))"
239
+ args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='拒检'))"
240
240
  }
241
241
 
242
242
  }else{
243
243
  if(this.f_noruhu.indexOf('复访不遇')!=-1){
244
244
  if(this.f_noruhu.indexOf('到访不遇')!=-1){
245
- args.condition=args.condition + " and (i.f_state='已检' and (f_last_check_state='到访不遇'))"
245
+ args.condition=args.condition + " and (i.f_state='已检' and (i.f_last_check_state='到访不遇'))"
246
246
  }else{
247
- args.condition=args.condition + " and i.f_state='已检' and ((f_last_check_state='到访不遇' and f_check_version >2) or f_last_check_state='拒检' )"
247
+ args.condition=args.condition + " and i.f_state='已检' and ((i.f_last_check_state='到访不遇' and f_check_version >2) or i.f_last_check_state='拒检' )"
248
248
  }
249
249
  }else{
250
- args.condition=args.condition+" and (i.f_state='已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))"
250
+ args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
251
251
  }
252
252
  }
253
253
  }else{
254
254
  if(this.f_noruhu.indexOf('未检')!=-1){
255
- args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检')))"
255
+ args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检')))"
256
256
  }
257
257
  else{
258
- args.condition=args.condition+" and (i.f_state='已检' and (f_last_check_state='到访不遇' or f_last_check_state='拒检'))"
258
+ args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
259
259
  }
260
260
  }
261
261
 
@@ -175,6 +175,18 @@
175
175
  :multiple="true">
176
176
  </v-select>
177
177
  </div>
178
+ <div :class="$parent.$parent.style">
179
+ <label class="font_normal_body">是否限购</label>
180
+ <v-select style="width:60% "
181
+ class="select select_list"
182
+ :options='$parent.$parent.isOrNo'
183
+ v-model='model.f_is_black'
184
+ :value.sync="model.f_is_black"
185
+ placeholder='是否限购'
186
+ condition="f_is_black = '{}'"
187
+ :multiple="false">
188
+ </v-select>
189
+ </div>
178
190
  </div>
179
191
  <div class="row" v-show="$parent.$parent.$parent.showItem">
180
192
  <div :class="$parent.$parent.style">
@@ -329,6 +341,18 @@
329
341
  placeholder='隐患类型'
330
342
  :multiple="true">
331
343
  </v-select>
344
+ </div>
345
+ <div :class="$parent.$parent.style">
346
+ <label class="font_normal_body">是否限购</label>
347
+ <v-select style="width:60% "
348
+ class="select select_list"
349
+ :options='$parent.$parent.isOrNo'
350
+ v-model='model.f_is_black'
351
+ :value.sync="model.f_is_black"
352
+ placeholder='是否限购'
353
+ condition="f_is_black = '{}'"
354
+ :multiple="false">
355
+ </v-select>
332
356
  </div>
333
357
  <div :class="$parent.$parent.style">
334
358
  <label class="font_normal_body">维&ensp;修&ensp;员</label>
@@ -371,6 +395,7 @@
371
395
  <th><nobr>完成情况</nobr></th>
372
396
  <th><nobr>维修情况</nobr></th>
373
397
  <th><nobr>维修员</nobr></th>
398
+ <th><nobr>限购状态</nobr></th>
374
399
  <th><nobr>隐患明细</nobr></th>
375
400
  </tr>
376
401
  </template>
@@ -392,6 +417,7 @@
392
417
  <td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>
393
418
  <td style="text-align: center;white-space:nowrap;">{{row.f_repaired}}</td>
394
419
  <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>
420
+ <td style="text-align: center;white-space:nowrap;">{{row.f_is_black}}</td>
395
421
  <td style="text-align: center;white-space:nowrap;">{{ $parent.$parent.$parent.trouble(row.f_defect_content)}}</td>
396
422
  </template>
397
423
  </data-grid>
@@ -522,7 +548,9 @@ export default {
522
548
  checker_name:'',
523
549
  defectType:[],
524
550
  defectLeave:'',
551
+ is_black:'',
525
552
  defectLeaveList:[{label:'全部',value:''},{label:'重大',value:'重大'},{label:'一般',value:'一般'}],
553
+ isOrNo:[{label:'全部',value:''},{label:'是',value:'是'},{label:'否',value:'否'}],
526
554
  repaired:[{label: '全部', value: ''},{label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
527
555
  deals:[{label: '全部', value: ''},{label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'}],
528
556
  f: this.$login.f,
@@ -990,6 +1018,9 @@ export default {
990
1018
  }
991
1019
  }
992
1020
  args.condition += ` )`
1021
+ }
1022
+ if (this.is_black){
1023
+
993
1024
  }
994
1025
  this.model.search(args.condition, args.model)
995
1026
  console.log('zzz',args.condition)