safecheck-client 3.0.34-9 → 3.0.34-91

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) 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 +634 -634
  9. package/src/components/android/AndroidDefectDealBeforeSafe.vue +502 -0
  10. package/src/components/android/AreaSelect.vue +198 -0
  11. package/src/components/android/BuildingSelect.vue +192 -0
  12. package/src/components/android/CheckPlanSelect.vue +229 -0
  13. package/src/components/android/CurrentCreateYy.vue +1051 -0
  14. package/src/components/android/PaperFeedback.vue +33 -0
  15. package/src/components/android/QRCode/QRCodeBinding.vue +300 -0
  16. package/src/components/android/QRCode/QRCodePage.vue +212 -0
  17. package/src/components/android/SafecheckDevices.vue +2 -2
  18. package/src/components/android/SafecheckOrderV.vue +8 -12
  19. package/src/components/android/UserinfoSelect.vue +714 -0
  20. package/src/components/android/examples/410.png +0 -0
  21. package/src/components/android/examples/SafeListExamples.vue +283 -0
  22. package/src/components/android/examples/UserExamples.vue +137 -0
  23. package/src/components/android/examples/ViewDetailsExamples.vue +1235 -0
  24. package/src/components/android/examples/touxiang.png +0 -0
  25. package/src/components/pc/SafeVisitInfo.vue +261 -0
  26. package/src/components/rongcheng/AddPlanItem.vue +8 -0
  27. package/src/components/rongcheng/AspiratedUserInfo.vue +1 -1
  28. package/src/components/rongcheng/CheckSearchUser.vue +46 -16
  29. package/src/components/rongcheng/PaperStatem.vue +6 -1
  30. package/src/components/rongcheng/PhoneDevicesInfo.vue +16 -1
  31. package/src/components/rongcheng/PhoneUpUserinfo.vue +0 -92
  32. package/src/components/rongcheng/SafecheckOrderV.vue +12 -3
  33. package/src/components/rongcheng/SafecheckOrderVCli.vue +9 -0
  34. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +4 -4
  35. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -0
  36. package/src/filiale/baiyin/android.js +1 -0
  37. package/src/filiale/baiyin/pc/CheckSearchUser.vue +2 -2
  38. package/src/filiale/baiyin/pc/DefectListNew.vue +3 -3
  39. package/src/filiale/baiyin/pc/PaperList.vue +7 -7
  40. package/src/filiale/bayan/android/AddPlanItem.vue +8 -0
  41. package/src/filiale/bayan/android/PaperFeedback.vue +63 -49
  42. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +40 -40
  43. package/src/filiale/bayan/android/SafecheckOrderV.vue +58 -58
  44. package/src/filiale/bayan/android/SafecheckUserInfo.vue +5 -0
  45. package/src/filiale/bayan/pc/PaperList.vue +1 -0
  46. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +35 -15
  47. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -0
  48. package/src/filiale/huaran/android.js +12 -0
  49. package/src/filiale/huaran/pc/CheckBook.vue +313 -0
  50. package/src/filiale/huaran/pc/CheckBookAll.vue +69 -0
  51. package/src/filiale/huaran/pc/CheckBookArea.vue +170 -0
  52. package/src/filiale/huaran/pc/CheckBookCompany.vue +166 -0
  53. package/src/filiale/huaran/pc/CheckBookDetails.vue +196 -0
  54. package/src/filiale/huaran/pc/CheckBookEntry.vue +61 -0
  55. package/src/filiale/huaran/pc/CheckBookList.vue +386 -0
  56. package/src/filiale/huaran/pc/CheckBookSearchArea.vue +564 -0
  57. package/src/filiale/huaran/pc/CheckBookSearchUnit.vue +229 -0
  58. package/src/filiale/huaran/pc/CheckBookSearchUser.vue +604 -0
  59. package/src/filiale/huaran/pc/CheckBookUser.vue +112 -0
  60. package/src/filiale/huaran/pc/PaperList.vue +822 -0
  61. package/src/filiale/huaran/pc/PlanManage.vue +887 -0
  62. package/src/filiale/huaran/pc/checkPlanList.vue +419 -0
  63. package/src/filiale/huaran/pc/checkUserList.vue +867 -0
  64. package/src/filiale/huaran/pc.js +27 -0
  65. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -0
  66. package/src/filiale/jiaxian/android/PhoneUpUserinfo.vue +1229 -0
  67. package/src/filiale/jiaxian/android/SafecheckDevices.vue +6 -6
  68. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -0
  69. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -0
  70. package/src/filiale/jiaxian/android.js +4 -0
  71. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +15 -7
  72. package/src/filiale/qianneng/android/SafecheckOrderV.vue +1 -1
  73. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -0
  74. package/src/filiale/qingtongxia/android/CurrentCreate.vue +1053 -0
  75. package/src/filiale/qingtongxia/android/PhoneUpUserinfo.vue +1230 -0
  76. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -0
  77. package/src/filiale/qingtongxia/android.js +4 -0
  78. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -0
  79. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -0
  80. package/src/filiale/ruihua/android.js +11 -0
  81. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  82. package/src/filiale/shanxian/pc/checkUserList.vue +4 -4
  83. package/src/filiale/siyang/android/AddPlanItem.vue +450 -0
  84. package/src/filiale/siyang/android/AppCheckPlan.vue +246 -0
  85. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -0
  86. package/src/filiale/siyang/android.js +4 -0
  87. package/src/filiale/siyang/pc/CheckBookList.vue +396 -0
  88. package/src/filiale/siyang/pc/CheckBookSearchArea.vue +667 -0
  89. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -0
  90. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -0
  91. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -0
  92. package/src/filiale/siyang/pc/checkPlanList.vue +367 -0
  93. package/src/filiale/siyang/pc/checkUserList.vue +22 -18
  94. package/src/filiale/siyang/pc.js +6 -0
  95. package/src/filiale/tongchuan/android/Select.vue +421 -0
  96. package/src/filiale/tongchuan/android.js +1 -0
  97. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +3 -1
  98. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +6 -2
  99. package/src/filiale/tongchuan/pc/HiddenSituation.vue +3 -1
  100. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +13 -22
  101. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1 -1
  102. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +5 -2
  103. package/src/filiale/tongchuan/utils/EventListener.js +29 -0
  104. package/src/filiale/tongchuan/utils/coerceBoolean.js +7 -0
  105. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  106. package/src/filiale/weinan/android/SafecheckOrderV.vue +6 -2
  107. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +75 -62
  108. package/src/filiale/weinan/pc/CheckDetail.vue +11 -11
  109. package/src/filiale/weinan/pc/DefectPaperNew.vue +31 -0
  110. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -0
  111. package/src/filiale/weinan/pc/checkUserList.vue +49 -113
  112. package/src/filiale/weinan/pc.js +1 -0
  113. package/src/filiale/wuan/android/SafecheckOrderV.vue +1 -0
  114. package/src/filiale/wuan/android/SafecheckUserInfo.vue +4 -0
  115. package/src/filiale/xilan/android/AddPlanItem.vue +457 -0
  116. package/src/filiale/xilan/android/CurrentCreate.vue +1060 -0
  117. package/src/filiale/xilan/android.js +11 -0
  118. package/src/filiale/xilan/pc/checkUserList.vue +772 -0
  119. package/src/filiale/xilan/pc.js +12 -0
  120. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +10 -6
  121. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +21 -1
  122. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +23 -11
  123. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +6 -6
  124. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +96 -30
  125. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +10 -10
  126. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +10 -10
  127. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +84 -10
  128. package/src/filiale/yangchunboneng/pc/PaperList.vue +6 -6
  129. package/src/filiale/yuansheng/android/SafecheckDevices.vue +11 -1
  130. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +10 -2
  131. package/src/main-/345/215/225/351/241/265/351/235/242/346/211/223/345/214/205/347/224/250.js +24 -0
  132. package/src/safecheck-android.js +307 -296
  133. package/src/safecheck-page.js +12 -0
  134. package/src/safecheck.js +3 -0
@@ -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)