safecheck-client 3.0.30-62-t10 → 3.0.30-62-t12

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 (246) hide show
  1. package/examples/SafePlan/comp.js +1527 -1527
  2. package/examples/SafePlan-liaoyuan/comp.js +1432 -1432
  3. package/examples/SafePlan-shaoguan/comp.js +1190 -1190
  4. package/examples/SafePlan-tongchuan/comp.js +1480 -1480
  5. package/examples/SafePlan-wenxi/comp.js +1545 -1545
  6. package/examples/SafePlan-zhoukou/comp.js +1525 -1525
  7. package/examples/SafePlanrongcheng/comp.js +1141 -1141
  8. package/examples/SafePlanrongcheng-gs/comp.js +1140 -1140
  9. package/examples/SafePlanrongcheng-gssq/comp.js +1143 -1143
  10. package/examples/SafePlanrongcheng-mysq/comp.js +1144 -1144
  11. package/package.json +1 -1
  12. package/src/components/CheckerCount/ZhouKouCheckCount.vue +272 -272
  13. package/src/components/DefectDealMain/DefectPaperNew.vue +1052 -1052
  14. package/src/components/NewDefectList/DefectPaperNew.vue +1079 -1079
  15. package/src/components/checkplan/CheckDetail.vue +205 -205
  16. package/src/components/checkplan/SelectCheckPlan.vue +311 -311
  17. package/src/components/createcheckplan/PlanUersList.vue +137 -137
  18. package/src/components/defect/DefectPaper.vue +764 -764
  19. package/src/components/defect/DefectPaperWeiXiu.vue +508 -508
  20. package/src/components/inspections/InspectionList.vue +476 -476
  21. package/src/components/inspections/InspectionLists.vue +478 -478
  22. package/src/components/inspections/InspectionListss.vue +477 -477
  23. package/src/components/noplan/NoPlanSearchUser.vue +300 -300
  24. package/src/components/olddata/OldPaperList.vue +340 -340
  25. package/src/components/paper/PaperList.vue +790 -790
  26. package/src/components/paper/filialeCheckInfo.vue +111 -111
  27. package/src/components/pc/CheckNoDetail.vue +209 -209
  28. package/src/components/pc/DefectDeal.vue +997 -997
  29. package/src/components/pc/NewCheckpaper.vue +16 -60
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +879 -866
  32. package/src/components/pc/PaperEdit.vue +151 -151
  33. package/src/components/pc/PaperVisitMain.vue +179 -179
  34. package/src/components/pc/SafeVisitHistory.vue +208 -208
  35. package/src/components/pc/SafecheckDeviceList.vue +260 -260
  36. package/src/components/pc/SecurityCheckLedger.vue +133 -133
  37. package/src/components/pc/SelectCheckNoPlan.vue +278 -278
  38. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -281
  39. package/src/components/planmanage/checkPlanList.vue +369 -369
  40. package/src/components/planmanage/checkUserList.vue +773 -773
  41. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  42. package/src/components/querycheckpaper/CheckSearchUserNew.vue +1109 -1109
  43. package/src/components/querycheckpaper/ShebeiSearchUser.vue +690 -690
  44. package/src/components/report/CheckPlanAreaList.vue +505 -505
  45. package/src/components/report/CheckPlanUserList.vue +216 -216
  46. package/src/components/report/NoCheckplanSafecheck.vue +212 -212
  47. package/src/components/rongcheng/CheckSearchArea.vue +703 -703
  48. package/src/components/rongcheng/CheckSearchUser.vue +936 -936
  49. package/src/components/rongcheng/CheckSearchUserNo.vue +778 -778
  50. package/src/components/rongcheng/CheckUserList.vue +205 -205
  51. package/src/components/rongcheng/DefectPaper.vue +676 -676
  52. package/src/components/rongcheng/PaperListAJ.vue +434 -434
  53. package/src/components/rongcheng/PaperListNPAJ.vue +431 -431
  54. package/src/components/rongcheng/PaperListNPSQ.vue +455 -455
  55. package/src/components/rongcheng/PaperListSQ.vue +444 -444
  56. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +271 -271
  57. package/src/components/rongcheng/report/CheckPlanUserList.vue +228 -228
  58. package/src/components/safecheckNew/PaperList.vue +785 -785
  59. package/src/components/shaoguan/DefectPaper.vue +217 -217
  60. package/src/components/shaoguan/PaperList.vue +466 -466
  61. package/src/components/userfile/UserInfoAudit.vue +316 -316
  62. package/src/filiale/ALshan/pc/CheckSearchUser.vue +927 -927
  63. package/src/filiale/ALshan/pc/checkUserList.vue +714 -714
  64. package/src/filiale/ancheng/pc/PaperList.vue +659 -659
  65. package/src/filiale/ankangyihua/pc/CheckPlanAreaList.vue +512 -512
  66. package/src/filiale/ankangyihua/pc/CheckSearchUser.vue +1039 -1039
  67. package/src/filiale/ankangyihua/pc/DefectPaperWeiXiu.vue +545 -545
  68. package/src/filiale/ankangyihua/pc/PaperDefectMain.vue +864 -864
  69. package/src/filiale/ankangyihua/pc/PaperList.vue +656 -656
  70. package/src/filiale/ankangyihua/pc/checkUserList.vue +697 -697
  71. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  72. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  73. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  74. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  75. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  76. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1376 -1376
  77. package/src/filiale/bayan/pc/CheckDetail.vue +205 -205
  78. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  79. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  80. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  81. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  82. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  83. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  84. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  85. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  86. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  87. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  88. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  89. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  90. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  91. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  92. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  93. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  94. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  95. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  96. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  97. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  98. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  99. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  100. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  101. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  102. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  103. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  104. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  105. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  106. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  107. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  108. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  109. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  110. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  111. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  112. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  113. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  114. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  115. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  116. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  117. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  118. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  119. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  120. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  121. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  122. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  123. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  124. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  125. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  126. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  127. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  128. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  129. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  130. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  131. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  132. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  133. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  134. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  135. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  136. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  137. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  138. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  139. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  140. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  141. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  142. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  143. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  144. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  145. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  146. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  147. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  148. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  149. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  150. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  151. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  152. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  153. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  154. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  155. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  156. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  157. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  158. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  159. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  160. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  161. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  162. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  163. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  164. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  165. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  166. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  167. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  168. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  169. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  170. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  171. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  172. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  173. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  174. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  175. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  176. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  177. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  178. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  179. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  180. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  181. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  182. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  183. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  184. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  185. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  186. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  187. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  188. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  189. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  190. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  191. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  192. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  193. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  194. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  195. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  196. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  197. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  198. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  199. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  200. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  201. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  202. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  203. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  204. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  205. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  206. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  207. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  208. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  209. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  210. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  211. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  212. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  213. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  214. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  215. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  216. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  217. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  218. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  219. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  220. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  221. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  222. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  223. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  224. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  225. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  226. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  227. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  228. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  229. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  230. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  231. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  232. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  233. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  234. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  235. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  236. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  237. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  238. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  239. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  240. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  241. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  242. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  243. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  244. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  245. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  246. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,936 +1,936 @@
1
- <template>
2
- <div style="flex:1;" class="flex">
3
- <button class="btn btn-xs" v-show="!criteriaShow" @click="show()">
4
- <span class="glyphicon glyphicon-chevron-down" style="color: #000;"></span>
5
- </button>
6
- <criteria-paged :model="model" v-ref:paged>
7
- <criteria partial='criteria' v-show="$parent.criteriaShow" @condition-changed='$parent.search' v-ref:criteria>
8
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
- <div class="row">
10
- <div class="col-sm-4" style="width: 20%">
11
- <label class="font_normal_body">用户编号</label>
12
- <input type="text" class="input_search" v-model="model.f_userinfo_code" id="f_userinfo_code" style="width:60%;"
13
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
14
- </div>
15
- <div class="col-sm-4" style="width: 20%">
16
- <label class="font_normal_body">用户姓名</label>
17
- <input type="text" class="input_search" v-model="model.f_user_name" id="f_user_name" style="width:60%;"
18
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
19
- </div>
20
- <div class="col-sm-4" style="width: 20%">
21
- <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
22
- <!-- <input type="text" class="input_search" v-model="model.f_residential_area" id="f_residential_area" style="width:60%;"
23
- placeholder="小区" condition="f_residential_area like '%{}%'">-->
24
- <v-select
25
- placeholder='小区选择'
26
- :value-single="true"
27
- v-model='model.f_residential_area'
28
- :value.sync="model.f_residential_area"
29
- class="select select_list"
30
- :options='$parent.$parent.villagesChick'
31
- condition="f_residential_area like '%{}%'"
32
- close-on-select clear-button search valueSingle="true"> </v-select>
33
- </div>
34
-
35
- <div class="col-sm-4" style="width: 20%">
36
- <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
37
- <v-select
38
- placeholder='楼栋选择'
39
- v-model='model.f_building'
40
- :value.sync="model.f_building"
41
- class="select select_list"
42
- :options='$parent.$parent.buildingChick'
43
- condition="f_building in {}"
44
- clear-button search :multiple="true"> </v-select>
45
- </div>
46
-
47
- <div class="col-sm-4" style="width: 20%">
48
- <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;地址&nbsp;&nbsp;&nbsp;</label>
49
- <input type="text" class="input_search" v-model="model.f_address" id="f_address" style="width:60%;"
50
- placeholder="地址" condition="f_address like '%{}%'">
51
- </div>
52
- <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
53
- <!--<label class="control-label">用户类型</label>-->
54
- <!--<v-select id="f_usertype"-->
55
- <!--placeholder='用户类型'-->
56
- <!--:value.sync="model.f_usertype"-->
57
- <!--:value-single="true"-->
58
- <!--:options='$parent.$parent.usertypes'-->
59
- <!--v-model="model.f_usertype"-->
60
- <!--condition="f_user_type = '{}'"-->
61
- <!--close-on-select clear-button> </v-select>-->
62
- <!--</div>-->
63
- <!--<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
- <label class="font_normal_body" style="color: red;">安检筛选</label>
65
- <v-select
66
- placeholder='安检筛选'
67
- :value-single="true"
68
- class="select select_list"
69
- :value.sync="$parent.$parent.SafeCheckXZ"
70
- :options='$parent.$parent.SafeCheckXZs'
71
- v-model="$parent.$parent.SafeCheckXZ"
72
- close-on-select clear-button></v-select>
73
- </div>
74
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow && $parent.$parent.SafeCheckXZ=='未入户'">
75
- <label class="font_normal_body">安检状态</label>
76
- <v-select id="f_entry"
77
- placeholder='安检状态'
78
- class="select select_list"
79
- :value.sync="model.f_check_state"
80
- :value-single="true"
81
- :options='$parent.$parent.checkstatus'
82
- v-model="model.f_check_state"
83
- close-on-select clear-button></v-select>
84
- </div>-->
85
- <div class="col-sm-4" style="width: 20%">
86
- <label class="font_normal_body" style="color: red;">安检筛选</label>
87
- <v-select
88
- placeholder='安检筛选'
89
- :value-single="true"
90
- class="select select_list"
91
- :value.sync="$parent.$parent.SafeCheckXZ"
92
- :options='$parent.$parent.SafeCheckXZs'
93
- v-model="$parent.$parent.SafeCheckXZ"
94
- close-on-select clear-button> </v-select>
95
- </div>
96
- <div class="col-sm-4" style="width: 20% " v-show="$parent.$parent.SafeCheckXZ=='未入户'">
97
- <label class="font_normal_body">安检状态</label>
98
- <v-select id="f_entry"
99
- placeholder='安检状态'
100
- :value.sync="model.f_check_state"
101
- :value-single="true"
102
- class="select select_list"
103
- :options='$parent.$parent.checkstatus'
104
- v-model="model.f_check_state"
105
- close-on-select clear-button> </v-select>
106
- </div>
107
- <div class="col-sm-4" style="width: 20%">
108
- <label class="font_normal_body">安检起始</label>
109
- <datepicker
110
- :value.sync="model.f_check_start"
111
- placeholder='最后安检时间起始'
112
- :disabled-days-of-week="[]"
113
- class="select select_list"
114
- style="width: 60%"
115
- :format="'yyyy-MM-dd'"
116
- :show-rest-button="reset"
117
- v-model = "model.f_check_start">
118
- </datepicker>
119
- </div>
120
- <div class="col-sm-4" style="width: 20%">
121
- <label class="font_normal_body">安检结束</label>
122
- <datepicker
123
- :value.sync="model.f_check_end"
124
- placeholder='最后安检时间结束'
125
- :disabled-days-of-week="[]"
126
- class="select select_list"
127
- style="width: 60%"
128
- :format="'yyyy-MM-dd'"
129
- :show-rest-button="reset"
130
- v-model = "model.f_check_end">
131
- </datepicker>
132
- </div>
133
-
134
-
135
- <div class="col-sm-4" style="width: 20%">
136
- <label class="font_normal_body">隐患情况</label>
137
- <v-select
138
- placeholder='隐患情况'
139
- :value-single="true"
140
- v-model='model.f_check_result'
141
- class="select select_list"
142
- :value.sync="model.f_check_result"
143
- :options='$parent.$parent.f_check_results'
144
- condition="f_last_check_result like '%{}%'"
145
- close-on-select clear-button> </v-select>
146
- </div>
147
- <!--<div class="col-sm-4" style="width: 20%" v-if="$parent.$parent.orgstrs.length > 1">
148
- <label class="font_normal_body">县域公司</label>
149
- <v-select
150
- placeholder='县域分公司'
151
- :value-single="true"
152
- v-model='model.f_orgstr'
153
- :value.sync="model.f_orgstr"
154
- class="select select_list"
155
- :options='$parent.$parent.orgstrs'
156
- condition="f_orgstr like '%{}%'"
157
- close-on-select clear-button> </v-select>
158
- </div>-->
159
- <div class="col-sm-4" style="width: 20%">
160
- <label class="font_normal_body">所属区域</label>
161
- <v-select
162
- placeholder='所属区域'
163
- :value-single="true"
164
- v-model='model.street'
165
- :value.sync="model.street"
166
- class="select select_list"
167
- :options='$parent.$parent.streets'
168
- condition="f_street ='{}'"
169
- close-on-select clear-button> </v-select>
170
- </div>
171
- <div class="row">
172
- <div class="col-sm-4" style="width: 20%">
173
- <label class="font_normal_body">开户起始</label>
174
- <datepicker
175
- :value.sync="model.f_createfile_start"
176
- placeholder='开户起始时间'
177
- :disabled-days-of-week="[]"
178
- class="select select_list"
179
- style="width: 60%"
180
- :format="'yyyy-MM-dd'"
181
- :show-rest-button="reset"
182
- condition="f_createfile_date > '{} 00:00:00'"
183
- v-model = "model.f_createfile_start">
184
- </datepicker>
185
- </div>
186
- <div class="col-sm-4" style="width: 20%">
187
- <label class="font_normal_body">开户结束</label>
188
- <datepicker
189
- :value.sync="model.f_createfile_end"
190
- placeholder='开户结束时间'
191
- :disabled-days-of-week="[]"
192
- class="select select_list"
193
- style="width: 60%"
194
- :format="'yyyy-MM-dd'"
195
- condition="f_createfile_date < '{} 23:59:00'"
196
- :show-rest-button="reset"
197
- v-model = "model.f_createfile_end">
198
- </datepicker>
199
- </div>
200
- <!--<div class="col-sm-4" style="width: 20%">
201
- <label class="font_normal_body">是否入户</label>
202
- <v-select
203
- placeholder='今年是否入户'
204
- :value-single="true"
205
- class="select select_list"
206
- :value.sync="$parent.$parent.hasHousehold"
207
- :options='$parent.$parent.safe_rhs'
208
- v-model="$parent.$parent.hasHousehold"
209
- close-on-select clear-button> </v-select>
210
- </div>-->
211
- <div class="col-sm-4" style="width: 20%">
212
- <label class="font_normal_body">安检项名</label>
213
- <v-select
214
- placeholder='安检项名'
215
- :value-single="true"
216
- class="select select_list"
217
- :value.sync="$parent.$parent.check_item"
218
- :options='$parent.$parent.check_items'
219
- v-model="$parent.$parent.check_item"
220
- close-on-select clear-button> </v-select>
221
- </div>
222
- <div class="col-sm-4" style="width: 20%">
223
- <label class="font_normal_body">安检内容</label>
224
- <v-select
225
- placeholder='安检内容'
226
- :value-single="true"
227
- class="select select_list"
228
- :value.sync="$parent.$parent.check_itemValue"
229
- :options='$parent.$parent.check_itemValues'
230
- v-model="$parent.$parent.check_itemValue"
231
- close-on-select clear-button> </v-select>
232
- </div>
233
- <div class="col-sm-4" style="width: 20%">
234
- <label class="font_normal_body">安检员</label>
235
- <v-select
236
- placeholder='安检员'
237
- :value-single="true"
238
- class="select select_list"
239
- :value.sync="model.f_checker_id"
240
- :options='$parent.$parent.checkersid'
241
- v-model="model.f_checker_id"
242
- condition="f_checker_id = '{}'"
243
- close-on-select clear-button> </v-select>
244
- </div>
245
- <!-- <div class="col-sm-4" style="width: 20%">-->
246
- <!-- <label class="font_normal_body">安检状态</label>-->
247
- <!-- <v-select-->
248
- <!-- placeholder='安检状态'-->
249
- <!-- :value-single="true"-->
250
- <!-- class="select select_list"-->
251
- <!-- :value.sync="model.f_entry"-->
252
- <!-- :options='$parent.$parent.f_entry_status'-->
253
- <!-- v-model="model.f_entry"-->
254
- <!-- condition="f_last_check_state= '{}'"-->
255
- <!-- close-on-select clear-button> </v-select>-->
256
- <!-- </div>-->
257
- <div class="col-sm-8"></div>
258
- <div style="float: right;margin-right: 10px">
259
- <export-excel :data="$parent.$parent.searchData"
260
- :field="$parent.$parent.excelHeaders"
261
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案" template-name='用户安检情况'></export-excel>
262
- <div style="float: right" class="button_spacing"
263
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
264
- @click="$parent.$parent.hiddenr()"></div>
265
- </div>
266
- <div class="span" style = "float:right;margin-right:10px">
267
- <button class="btn btn-primary width-80" @click="search()">查询</button>
268
- </div>
269
- <div class="span" style = "float:right;margin-right:10px">
270
- <button class="btn btn-primary width-80" @click="$parent.$parent.show1()">年度安检率查看</button>
271
- </div>
272
- </div>
273
- </div>
274
- </div>
275
- </criteria>
276
- <data-grid :model="model" partial="list" class="table table-bordered table table-hover" v-ref:grid>
277
- <template partial='head'>
278
- <tr>
279
- <th><nobr>用户编号</nobr></th>
280
- <th><nobr>用户名称</nobr></th>
281
- <th><nobr>用户电话</nobr></th>
282
- <!--<th><nobr>今年入户次数</nobr></th>-->
283
- <th><nobr>用户类型</nobr></th>
284
- <th><nobr>小区名称</nobr></th>
285
- <th><nobr>地址</nobr></th>
286
- <th><nobr>建档日期</nobr></th>
287
- <th><nobr>安检日期</nobr></th>
288
- <th><nobr>安检状态</nobr></th>
289
- <th><nobr>安检结果</nobr></th>
290
- </tr>
291
- </template>
292
- <template partial='body'>
293
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_userinfo_code}}</td>
294
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_name}}</td>
295
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_phone}}</td>
296
- <!--<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.r}}</td>-->
297
- <td v-bind:class="{newcolor:row.code=='1'}" style="text-align: center">{{row.f_user_type}}</td>
298
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_residential_area}}</td>
299
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_address}}</td>
300
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_createfile_date}}</td>
301
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_date}}</td>
302
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_state}}</td>
303
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{$parent.$parent.$parent.getDefect(row.f_last_check_result)}}</td>
304
- </template>
305
- </data-grid>
306
- </criteria-paged>
307
- </div>
308
- <modal :show.sync="showModal" v-ref:modal backdrop="false">
309
- <div slot="modal-header" class="modal-header">
310
- <h4 class="modal-title">
311
- 年度安检率查看
312
- </h4>
313
- </div>
314
- <div slot="modal-body" class="modal-body">
315
- <div>
316
- <form class="form-inline">
317
- <div class="row form-group">
318
- <div class="col-sm-4">
319
- <label class="font_normal_body" >起始时间</label>
320
- <datepicker
321
- :value.sync="y_check_start"
322
- placeholder='安检时间起始'
323
- :disabled-days-of-week="[]"
324
- class="select select_list"
325
- style="width: 60%"
326
- :format="'yyyy-MM-dd'"
327
- :show-rest-button="reset"
328
- v-model = "y_check_start">
329
- </datepicker>
330
- </div>
331
- <div class="col-sm-4">
332
- <label class="font_normal_body" >结束时间</label>
333
- <datepicker
334
- :value.sync="y_check_end"
335
- placeholder='安检时间截止'
336
- :disabled-days-of-week="[]"
337
- class="select select_list"
338
- style="width: 60%"
339
- :format="'yyyy-MM-dd'"
340
- :show-rest-button="reset"
341
- v-model = "y_check_end">
342
- </datepicker>
343
- </div>
344
- <button type="button" style="margin-left: 10px" class="button_search" @click="y_search()">查询</button>
345
- </div>
346
- <div class="row form-group">
347
- <div class="col-sm-4">
348
- <label class="font_normal_body">所属区域</label>
349
- <v-select
350
- placeholder='所属区域'
351
- :value-single="true"
352
- v-model='yearStreet'
353
- :value.sync="yearStreet"
354
- class="select select_list"
355
- :options='streets'
356
- close-on-select clear-button> </v-select>
357
- </div>
358
- </div>
359
-
360
-
361
- <div style="width: 65%;height:100%; display: inline-block">
362
- </div>
363
-
364
- </form>
365
- <hr>
366
- <table class="table table_sy">
367
- <thead>
368
- <tr>
369
- <th></th>
370
- <th>总户数</th>
371
- <th>安检入户数</th>
372
- <th>一次安检率</th>
373
- </tr>
374
- </thead>
375
- <tbody>
376
- <tr v-for="row in yearmodel">
377
- <td></td>
378
- <td style="text-align: center;">{{row.con}}</td>
379
- <td style="text-align: center;">{{row.rhcon}}</td>
380
- <td style="text-align: center;">{{row.f_check_bv}}</td>
381
- </tr>
382
- </tbody>
383
- </table>
384
- </div>
385
- </div>
386
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
387
- <!--<button class="button_search button_spacing" @click="ok()">确认</button>-->
388
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
389
- </div>
390
- </modal>
391
- </template>
392
-
393
- <script>
394
- import { PagedList } from 'vue-client'
395
- import { HttpResetClass } from 'vue-client'
396
- import co from 'co'
397
- import * as Util from './../Util'
398
- import Vue from 'vue'
399
- import {toStandardDateString} from "./../Util";
400
-
401
- let select = function* (self) {
402
- let http = new HttpResetClass()
403
- let getGasman = yield http.load('POST','/rs/search', {
404
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
405
- userid: self.$login.f.id
406
- }, {resolveMsg: null, rejectMsg: null})
407
- //tag
408
- self.checkersid.push({label: '全部', value: ''})
409
- getGasman.data.forEach((checker) => {
410
- self.checkersid.push({label: checker.name, value: checker.id})
411
- })
412
- }
413
-
414
- export default {
415
- title: '民用用户安检情况',
416
- data() {
417
- let options = []
418
- let year = (new Date()).getFullYear()
419
- for (let i = year; i <= year + 3; i++)
420
- options.push({label: i + '', value: i + ''})
421
- let moptions = []
422
- for (let i = 1; i <= 12; i++)
423
- moptions.push({label: i + '', value: i + ''})
424
-
425
- return {
426
- y_check_start:`${new Date().getFullYear()}-01-01`,
427
- y_check_end:`${new Date().getFullYear()}-12-31`,
428
- searchData: {
429
- condition: '1=1',
430
- con1: '1=1',
431
- con2: '1=1',
432
- f_itemvalue:'',
433
- f_itemname:'',
434
- orderitem: "f_userinfo_code",
435
- timetype:"dd" ,
436
- f_filialeids:`(${this.$login.f.orgid})`
437
- },
438
- excelHeaders: {
439
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
440
-
441
- 'f_userinfo_code': '用户编号',
442
- 'f_user_name': '用户名称',
443
- 'f_user_phone': '用户电话',
444
- //'count_item':'安检次数',
445
- 'f_user_type': '用户类型',
446
- 'f_residential_area': '小区名称',
447
- 'f_address':'地址',
448
- 'f_last_check_date':'安检日期',
449
- 'f_last_check_state': '安检状态',
450
- 'f_last_check_result':'安检结果'
451
- },
452
- model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {orderitem: "'f_userinfo_code'",timetype:"'dd'" ,con1:"this.con1",con2:"this.con2",f_itemname:'this.check_item',f_itemvalue:'this.check_itemValue',f_filialeids:`'(${this.$login.f.orgid})'`}),
453
- orgstrs:[{label: '全部', value: ''}],
454
- checkersid:[],
455
- SafeCheckXZ:'',
456
- civil:'', //民用安检周期
457
- civilian:'', //非民用安检周期
458
- SafeCheckXZs: [{label: '全部', value: ''},{label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
459
- safe_rhs: [{label: '全部', value: ''},{label: '今年已入户', value: '今年已入户'}, {label: '今年未入户', value: '今年未入户'}], // 安检筛选选项
460
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''},],
461
- checkstatus:[{label: '全部', value: ''},{label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'},{label: '激光检漏', value: '激光检漏'},{label: '立杠保压', value: '立杠保压'},{label: '室外关阀', value: '室外关阀'}],
462
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
463
- IsShare:'否',
464
- checker: {},
465
- NoBuys:[{label: '是', value: '是'},{label: '否', value: '否'}],
466
- criteriaShow: true,
467
- checkers: [],
468
- chosenOrg: {id: 0},
469
- checkedAll: false,
470
- checkrows: [],
471
- yearmodel:[],
472
- streets:[],
473
- adjustables: [],
474
- f_plan_year: year + '',
475
- f_plan_month: moptions[new Date().getMonth()].value,
476
- f_effective_start_time:'', //计划有效起始时间
477
- f_effective_end_time:'', //计划有效结束时间
478
- checkboxModel: {},
479
- c_year_list: options,
480
- c_month_list: moptions,
481
- areas: this.areas(),
482
- //checkstatus: this.checkstatus(),
483
- usertypes: this.usertypes(),
484
- userstates: this.userstates(),
485
- sqlname:'',
486
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'},{label: '有隐患', value: '有隐患'}],
487
- creatPlanWay:'',
488
- showModal:false,
489
- yearStreet:'',
490
- villagesModel:'', //小区绑定值
491
- villagesChick:[], //小区选择值
492
- buildingModel:'', //地址绑定值
493
- buildingChick:[], //地址选择值
494
- hasHousehold:'',
495
- check_items:[{label: '全部', value: ''}, ...this.$appdata.getParam('安检项名')],
496
- check_item:'',
497
- check_itemValue:'',
498
- // f_entry_status: this.$appdata.getParam('安检状态'),
499
- }
500
- },
501
- props: {
502
- checkplan: { // 传入一条安检计划信息
503
- type: Object
504
- },
505
- additemshow:{
506
- type:Boolean,
507
- default:false
508
- }
509
- },
510
- ready() {
511
- // 获取分公司信息
512
- this.getfengongsi()
513
- this.model.chosenOrg = {id: 0}
514
- this.model.f_filialeids = this.$login.f.f_orgids
515
- this.model.f_filiale = this.$login.f.f_fengongsi
516
- this.model.f_OrgStr = this.$login.f.orgpathstr
517
- this.initstreets()
518
-
519
- //小区初始化
520
- this.initVillage()
521
- this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStandardDateString()
522
- this.$refs.paged.$refs.criteria.model.f_check_end = Util.toStandardDateString()
523
- let gen = select(this)
524
- co(gen)
525
- // this.$refs.paged.$refs.criteria.search();
526
- },
527
- methods: {
528
- show1(){
529
- this.showModal=true
530
- },
531
- y_search(){
532
- let condition=''
533
- if(!this.y_check_start || !this.y_check_end){
534
- this.$showMessage("请选择开始和结束时间")
535
- }
536
- condition += `and f_onsite_time > '${this.y_check_start} 00:00:00' and f_onsite_time < '${this.y_check_end} 23:59:59'`
537
- new HttpResetClass().load('POST', 'api/af-safecheck/sql/FetchYearCheckRatio', {
538
- data: {
539
- condition: condition,
540
- f_createfile_date:this.y_check_end+' 23:59:59',
541
- usertype:'民用',
542
- f_street:this.yearStreet
543
- }
544
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((res)=>{
545
- console.log('---'+JSON.stringify(res))
546
- this.yearmodel=res.data
547
- })
548
- },
549
- //初始化小区
550
- async initVillage(){
551
- this.villagesChick = []
552
- let HttpReset = new HttpResetClass()
553
- let req = await HttpReset.load('POST', 'api/af-safecheck/sql/safe_singleTable_GroupBy', {
554
- data: {
555
- items: 'f_residential_area',
556
- tablename: 't_area',
557
- condition: '1 = 1',
558
- groupitem: 'f_residential_area'
559
- }
560
- }, {resolveMsg: null, rejectMsg: '获取小区列表失败!'})
561
- let redata = []
562
- req.data.forEach((row, n) => {
563
- redata.push({label: row.f_residential_area,value: row.f_residential_area,data:row})
564
- })
565
- redata.unshift({label: '全部', value: '', data: ''})
566
- this.villagesChick=redata
567
- },
568
- //初始化街道 添加小区
569
- async initstreets(){
570
- this.streetslist = []
571
- let HttpReset = new HttpResetClass()
572
- let req = await HttpReset.load('POST', 'api/af-safecheck/sql/address_singleTableOrderBy', {
573
- data: {
574
- items: '*',
575
- tablename: 't_street',
576
- orderitem: 'id',
577
- condition: `f_orgid = '${this.$login.f.orgid}'`
578
- }
579
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
580
- let redata = []
581
- req.data.forEach((row, n) => {
582
- redata.push({label: row.f_street,value: row.f_street,data:row,id:row.id})
583
- })
584
- this.streets=redata
585
- },
586
- hiddenr() {
587
- this.$parent.showItem = !this.$parent.showItem
588
- },
589
- hidden() {
590
- this.criteriaShow = !this.criteriaShow
591
- },
592
- // 获取县域分公司内容
593
- getfengongsi(){
594
- let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
595
- let http = new HttpResetClass()
596
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
597
- res.data.forEach((item) => {
598
- this.orgstrs.push({label: item.name, value: item.id})
599
- })
600
- console.log(this.orgstrs.length)
601
- })
602
- },
603
- // 县域分公司发生改变
604
- // orgstrchange(val){
605
- // if(val == undefined || val == ''){
606
- // return
607
- // }else {
608
- // this.checkersid = []
609
- // let gen = select(this,val)
610
- // return co(gen)
611
- // }
612
- // },
613
- getDefect(val){
614
- if(val){
615
- try {
616
- var defect = JSON.parse(val)
617
- return defect.result
618
- }catch (e) {
619
- console.log(val)
620
- return '正常'
621
- }
622
- }
623
- return '正常'
624
- },
625
- checkerchange(val) {
626
- this.checkboxModel.f_checker = val.name
627
- this.checkboxModel.f_checker_id = val.id
628
- },
629
- search(args) {
630
- if(this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')){
631
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始和结束时间!')
632
- return
633
- }
634
- if((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ ){
635
- this.$showMessage('如果录入安检起始结束时间,需要选择 安检筛选 选项!')
636
- return
637
- }
638
- let con1='1=1 '
639
- let con2='1=1 '
640
- if(this.SafeCheckXZ == '已入户'){
641
- args.condition += " and r > 0 and f_last_check_state = '入户'"
642
- con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
643
- con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
644
- //args.condition += " and ( f_last_check_date > '"+ args.model.f_check_end + " 23:59:00' or f_last_check_date < '"+ args.model.f_check_start + " 00:00:00' or f_last_check_date is null)"
645
- } else if(this.SafeCheckXZ == '未入户') {
646
- args.condition += " and r < 1"
647
- // args.condition += " and f_last_check_state != '入户'"
648
- con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
649
- con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
650
- if(args.model.f_check_state=='到访不遇'){
651
- args.condition += " and d > 0"
652
- }else if(args.model.f_check_state=='拒检'){
653
- args.condition += " and j > 0"
654
- }
655
- }
656
- if (args.model.f_check_state){
657
- args.condition += ` and f_last_check_state = '${args.model.f_check_state}'`
658
- }
659
- this.model.check_item=this.check_item
660
- this.model.check_itemValue=this.check_itemValue
661
- /*if(this.hasHousehold=='今年已入户'){
662
- args.condition += " and rhcon is not null"
663
- }else if(this.hasHousehold=='今年未入户'){
664
- args.condition += " and rhcon is null"
665
- }*/
666
- args.condition += " and f_filialeid = '" + this.$login.f.orgid + "' and f_user_type='民用'"
667
- this.searchData.condition=args.condition
668
- this.searchData.con1=con1
669
- this.searchData.con2=con2
670
- this.searchData.f_itemvalue=this.check_item
671
- this.searchData.f_itemname=this.check_itemValue
672
- this.model.con1=con1
673
- this.model.con2=con2
674
- return this.model.search( args.condition, args.model)
675
- },
676
- /*checkstatus() {
677
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]
678
- },*/
679
- usertypes() {
680
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
681
- },
682
- userstates() {
683
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
684
- },
685
- show() {
686
- this.criteriaShow = true
687
- },
688
- hidden() {
689
- this.criteriaShow = false
690
- },
691
- confirm() {
692
- if (!this.checkboxModel.f_plan_name) {
693
- this.$showMessage('请填写安检计划名称!')
694
- return
695
- }
696
- // if(this.f_effective_start_time == ''){
697
- // this.$showMessage('请选择有效起始日期!')
698
- // return
699
- // }
700
- // if(this.f_effective_end_time == ''){
701
- // this.$showMessage('请选择有效结束日期!')
702
- // return
703
- // }
704
- if(this.IsShare == '否'){
705
- if (!this.checkboxModel.f_checker_id) {
706
- this.$showMessage('请选择安检员!')
707
- return
708
- }
709
- }
710
- let gen = saveGen(this)
711
- return co(gen)
712
- },
713
- changeStates() {
714
- if (this.checkedAll) {//实现反选/
715
- this.checkrows = [];
716
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
717
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
718
- }
719
- } else {//实现全选
720
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
721
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
722
- }
723
- let _this = this
724
- let condition = this.$refs.paged.$refs.criteria.condition
725
- let url = this.model.url
726
- this.$resetpost(`${url}?pageSize=9999999`, {
727
- data: {
728
- condition: condition,
729
- groupitem: '',
730
- orderitem: 'f_residential_area',
731
- f_usertype:this.model.f_usertype,
732
- f_filialeids: this.model.f_filialeids,
733
- month: this.model.month,
734
- safeCycle:this.model.safeCycle,
735
- f_checktime_start:this.model.f_checktime_start,
736
- f_checktime_end:this.model.f_checktime_end,
737
- SafeCheckSX: this.model.SafeCheckSX,
738
- f_last_check_state: this.model.f_last_check_state
739
- },
740
- },{resolveMsg: null, rejectMsg: null}, -1).then(
741
- (respanse) => {
742
- if (respanse.data.length >= 5000) {
743
- this.$showMessage("数据量太大,请重新选择")
744
- } else {
745
- _this.checkrows = []
746
- for (let j = 0; j < respanse.data.length; j++) {
747
- _this.checkrows.push(respanse.data[j])
748
- }
749
- console.log(_this.checkrows);
750
- }
751
- })
752
- }
753
- },
754
- addChecked(item) {
755
- console.log(item);
756
- if (!item.checked) {
757
- this.checkrows.push(item);
758
- console.log(this.checkrows);
759
- } else {
760
- for (let i = 0; i < this.checkrows.length; i++) {
761
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
762
- this.checkrows.splice(i, 1)
763
- }
764
- }
765
- }
766
- },
767
- ToshowModal() {
768
- this.creatPlanWay = 'single'
769
- if (this.checkrows.length > 0) {
770
- this.showModal = true
771
- } else {
772
- this.$showMessage("请选择需要安检的用户!")
773
- }
774
- },
775
- FiltrationPlan(){
776
- if(this.model.rows.length == 0){
777
- this.$showMessage("暂无可生成的计划!")
778
- return
779
- }
780
- this.creatPlanWay = 'filtration'
781
- this.showModal = true
782
- },
783
- AllPlan() {
784
- if(this.model.rows.length == 0){
785
- this.$showMessage("暂无可生成的计划!")
786
- return
787
- }
788
- this.creatPlanWay = 'all'
789
- this.showModal = true
790
- },
791
- cancel() {
792
- this.showModal = false
793
- },
794
- areas() {
795
- let rs = []
796
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
797
- let temp = {
798
- label: this.$login.f.f_allArea[i].label,
799
- value: this.$login.f.f_allArea[i].label
800
- }
801
- rs.push(temp)
802
- }
803
- return [{label: '全部', value: ''}, ...rs]
804
- },
805
- initAdjustables() {
806
- console.log('初始化调压箱', this.$GetSaleParam)
807
- let arr = []
808
- let filter = this.$login.f.f_orgids
809
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
810
- let temp = {}
811
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
812
- temp.value = `${item.value.id}`
813
- arr.push(temp)
814
- })
815
- this.adjustables = [{label: '全部', value: ''}, ...arr]
816
- },
817
- },
818
-
819
- watch: {
820
- 'check_item'(){
821
- this.check_itemValue=''
822
- },
823
- 'model.model.f_residential_area'(){
824
- this.model.model.f_building = []
825
- this.buildingChick = []
826
- if (!this.model.model){
827
- return
828
- }
829
- if (!this.model.model.f_residential_area){
830
- return
831
- }
832
- let HttpReset = new HttpResetClass()
833
- let redata = []
834
- HttpReset.load('POST', '/api/af-safecheck/sql/safe_singleTable_GroupBy', {
835
- data: {
836
- items: "f_building",
837
- tablename: "t_user_address",
838
- condition: `f_filialeid = ${this.$login.f.orgid} and f_residential_area= '${this.model.model.f_residential_area}'`,
839
- groupitem: "f_building order by cast((case PATINDEX('%[^0-9]%', f_building) when 0 then f_building else 999 end) as int)"
840
- }
841
- }, {resolveMsg: null, rejectMsg: '获取楼栋列表失败!'}).then(res=>{
842
- res.data.forEach((row, n) => {
843
- redata.push({ label: row.f_building,value: row.f_building,data:row})
844
- })
845
- this.buildingChick = redata;
846
- })
847
- },
848
- 'model.f_usertype'(val){
849
- if(val == '民用'){
850
- this.model.safeCycle = this.civil
851
- }else if(val == '非民用'){
852
- this.model.safeCycle = this.civilian
853
- }
854
- },
855
- 'model.SafeCheckXZ'(val) {
856
- this.model.SafeCheckSC = ''
857
- if (val == '已安检') {
858
- this.model.SafeCheckCQ = ''
859
- this.model.SafeCheckSX = {
860
- f_check_end: '', // 安检时间 查询起始条件
861
- f_check_start: ''// 安检时间 查询终止条件
862
- }
863
- } else {
864
- // 当使用筛选条件时,清空不需要的条件选项
865
- this.model.f_issue_start = ''
866
- this.model.f_issue_end = ''
867
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
868
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
869
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
870
- this.model.month = ''
871
- if(val == '应安检'){
872
- this.model.SafeCheckSC = '否'
873
-
874
- this.model.f_issue_start = Util.toStartDateString()
875
- this.model.f_issue_end = Util.toStandardDateString()
876
- }
877
- // this.model.f_checktime_start = ''
878
- // this.model.f_checktime_end = ''
879
- }
880
- },
881
- 'model.SafeCheckSC'(val) {
882
- if (val == '') {
883
- this.model.f_issue_start = ''
884
- this.model.f_issue_end = ''
885
- }
886
- },
887
- // 'checker'(val){
888
- // console.log("checker",this.checker)
889
- // if(val){
890
- // this.checkboxModel.f_checker = this.checker[0].name
891
- // this.checkboxModel.f_checker_id = this.checker[0].id
892
- // }
893
- // },
894
- 'model.rows'() {
895
- // if (!this.checkedAll) {//实现反选/
896
- // this.checkrows = [];
897
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
898
- var k = false
899
- for (let j = 0; j < this.checkrows.length; j++) {
900
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
901
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
902
- k = true
903
- continue
904
- }
905
- }
906
- if (!k) {
907
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
908
- }
909
- }
910
- // } else {//实现全选
911
- // // this.checkboxModel = {};
912
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
913
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
914
- // }
915
- // }
916
- }
917
- },
918
- computed: {
919
- selected() {
920
- return this.$refs.paged.$refs.grid.selected
921
- },
922
- check_itemValues(){
923
- return [ ...this.$appdata.getParam(this.check_item)]
924
- }
925
- }
926
- }
927
- </script>
928
- <style scoped>
929
- .newcolor{
930
- color:red;
931
- }
932
- .table th{
933
- background-color: #f2f6fa;
934
- color: black;
935
- }
936
- </style>
1
+ <template>
2
+ <div style="flex:1;" class="flex">
3
+ <button class="btn btn-xs" v-show="!criteriaShow" @click="show()">
4
+ <span class="glyphicon glyphicon-chevron-down" style="color: #000;"></span>
5
+ </button>
6
+ <criteria-paged :model="model" v-ref:paged>
7
+ <criteria partial='criteria' v-show="$parent.criteriaShow" @condition-changed='$parent.search' v-ref:criteria>
8
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
9
+ <div class="row">
10
+ <div class="col-sm-4" style="width: 20%">
11
+ <label class="font_normal_body">用户编号</label>
12
+ <input type="text" class="input_search" v-model="model.f_userinfo_code" id="f_userinfo_code" style="width:60%;"
13
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
14
+ </div>
15
+ <div class="col-sm-4" style="width: 20%">
16
+ <label class="font_normal_body">用户姓名</label>
17
+ <input type="text" class="input_search" v-model="model.f_user_name" id="f_user_name" style="width:60%;"
18
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
19
+ </div>
20
+ <div class="col-sm-4" style="width: 20%">
21
+ <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
22
+ <!-- <input type="text" class="input_search" v-model="model.f_residential_area" id="f_residential_area" style="width:60%;"
23
+ placeholder="小区" condition="f_residential_area like '%{}%'">-->
24
+ <v-select
25
+ placeholder='小区选择'
26
+ :value-single="true"
27
+ v-model='model.f_residential_area'
28
+ :value.sync="model.f_residential_area"
29
+ class="select select_list"
30
+ :options='$parent.$parent.villagesChick'
31
+ condition="f_residential_area like '%{}%'"
32
+ close-on-select clear-button search valueSingle="true"> </v-select>
33
+ </div>
34
+
35
+ <div class="col-sm-4" style="width: 20%">
36
+ <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;楼栋&nbsp;&nbsp;&nbsp;</label>
37
+ <v-select
38
+ placeholder='楼栋选择'
39
+ v-model='model.f_building'
40
+ :value.sync="model.f_building"
41
+ class="select select_list"
42
+ :options='$parent.$parent.buildingChick'
43
+ condition="f_building in {}"
44
+ clear-button search :multiple="true"> </v-select>
45
+ </div>
46
+
47
+ <div class="col-sm-4" style="width: 20%">
48
+ <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;地址&nbsp;&nbsp;&nbsp;</label>
49
+ <input type="text" class="input_search" v-model="model.f_address" id="f_address" style="width:60%;"
50
+ placeholder="地址" condition="f_address like '%{}%'">
51
+ </div>
52
+ <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
53
+ <!--<label class="control-label">用户类型</label>-->
54
+ <!--<v-select id="f_usertype"-->
55
+ <!--placeholder='用户类型'-->
56
+ <!--:value.sync="model.f_usertype"-->
57
+ <!--:value-single="true"-->
58
+ <!--:options='$parent.$parent.usertypes'-->
59
+ <!--v-model="model.f_usertype"-->
60
+ <!--condition="f_user_type = '{}'"-->
61
+ <!--close-on-select clear-button> </v-select>-->
62
+ <!--</div>-->
63
+ <!--<div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
65
+ <v-select
66
+ placeholder='安检筛选'
67
+ :value-single="true"
68
+ class="select select_list"
69
+ :value.sync="$parent.$parent.SafeCheckXZ"
70
+ :options='$parent.$parent.SafeCheckXZs'
71
+ v-model="$parent.$parent.SafeCheckXZ"
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow && $parent.$parent.SafeCheckXZ=='未入户'">
75
+ <label class="font_normal_body">安检状态</label>
76
+ <v-select id="f_entry"
77
+ placeholder='安检状态'
78
+ class="select select_list"
79
+ :value.sync="model.f_check_state"
80
+ :value-single="true"
81
+ :options='$parent.$parent.checkstatus'
82
+ v-model="model.f_check_state"
83
+ close-on-select clear-button></v-select>
84
+ </div>-->
85
+ <div class="col-sm-4" style="width: 20%">
86
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
87
+ <v-select
88
+ placeholder='安检筛选'
89
+ :value-single="true"
90
+ class="select select_list"
91
+ :value.sync="$parent.$parent.SafeCheckXZ"
92
+ :options='$parent.$parent.SafeCheckXZs'
93
+ v-model="$parent.$parent.SafeCheckXZ"
94
+ close-on-select clear-button> </v-select>
95
+ </div>
96
+ <div class="col-sm-4" style="width: 20% " v-show="$parent.$parent.SafeCheckXZ=='未入户'">
97
+ <label class="font_normal_body">安检状态</label>
98
+ <v-select id="f_entry"
99
+ placeholder='安检状态'
100
+ :value.sync="model.f_check_state"
101
+ :value-single="true"
102
+ class="select select_list"
103
+ :options='$parent.$parent.checkstatus'
104
+ v-model="model.f_check_state"
105
+ close-on-select clear-button> </v-select>
106
+ </div>
107
+ <div class="col-sm-4" style="width: 20%">
108
+ <label class="font_normal_body">安检起始</label>
109
+ <datepicker
110
+ :value.sync="model.f_check_start"
111
+ placeholder='最后安检时间起始'
112
+ :disabled-days-of-week="[]"
113
+ class="select select_list"
114
+ style="width: 60%"
115
+ :format="'yyyy-MM-dd'"
116
+ :show-rest-button="reset"
117
+ v-model = "model.f_check_start">
118
+ </datepicker>
119
+ </div>
120
+ <div class="col-sm-4" style="width: 20%">
121
+ <label class="font_normal_body">安检结束</label>
122
+ <datepicker
123
+ :value.sync="model.f_check_end"
124
+ placeholder='最后安检时间结束'
125
+ :disabled-days-of-week="[]"
126
+ class="select select_list"
127
+ style="width: 60%"
128
+ :format="'yyyy-MM-dd'"
129
+ :show-rest-button="reset"
130
+ v-model = "model.f_check_end">
131
+ </datepicker>
132
+ </div>
133
+
134
+
135
+ <div class="col-sm-4" style="width: 20%">
136
+ <label class="font_normal_body">隐患情况</label>
137
+ <v-select
138
+ placeholder='隐患情况'
139
+ :value-single="true"
140
+ v-model='model.f_check_result'
141
+ class="select select_list"
142
+ :value.sync="model.f_check_result"
143
+ :options='$parent.$parent.f_check_results'
144
+ condition="f_last_check_result like '%{}%'"
145
+ close-on-select clear-button> </v-select>
146
+ </div>
147
+ <!--<div class="col-sm-4" style="width: 20%" v-if="$parent.$parent.orgstrs.length > 1">
148
+ <label class="font_normal_body">县域公司</label>
149
+ <v-select
150
+ placeholder='县域分公司'
151
+ :value-single="true"
152
+ v-model='model.f_orgstr'
153
+ :value.sync="model.f_orgstr"
154
+ class="select select_list"
155
+ :options='$parent.$parent.orgstrs'
156
+ condition="f_orgstr like '%{}%'"
157
+ close-on-select clear-button> </v-select>
158
+ </div>-->
159
+ <div class="col-sm-4" style="width: 20%">
160
+ <label class="font_normal_body">所属区域</label>
161
+ <v-select
162
+ placeholder='所属区域'
163
+ :value-single="true"
164
+ v-model='model.street'
165
+ :value.sync="model.street"
166
+ class="select select_list"
167
+ :options='$parent.$parent.streets'
168
+ condition="f_street ='{}'"
169
+ close-on-select clear-button> </v-select>
170
+ </div>
171
+ <div class="row">
172
+ <div class="col-sm-4" style="width: 20%">
173
+ <label class="font_normal_body">开户起始</label>
174
+ <datepicker
175
+ :value.sync="model.f_createfile_start"
176
+ placeholder='开户起始时间'
177
+ :disabled-days-of-week="[]"
178
+ class="select select_list"
179
+ style="width: 60%"
180
+ :format="'yyyy-MM-dd'"
181
+ :show-rest-button="reset"
182
+ condition="f_createfile_date > '{} 00:00:00'"
183
+ v-model = "model.f_createfile_start">
184
+ </datepicker>
185
+ </div>
186
+ <div class="col-sm-4" style="width: 20%">
187
+ <label class="font_normal_body">开户结束</label>
188
+ <datepicker
189
+ :value.sync="model.f_createfile_end"
190
+ placeholder='开户结束时间'
191
+ :disabled-days-of-week="[]"
192
+ class="select select_list"
193
+ style="width: 60%"
194
+ :format="'yyyy-MM-dd'"
195
+ condition="f_createfile_date < '{} 23:59:00'"
196
+ :show-rest-button="reset"
197
+ v-model = "model.f_createfile_end">
198
+ </datepicker>
199
+ </div>
200
+ <!--<div class="col-sm-4" style="width: 20%">
201
+ <label class="font_normal_body">是否入户</label>
202
+ <v-select
203
+ placeholder='今年是否入户'
204
+ :value-single="true"
205
+ class="select select_list"
206
+ :value.sync="$parent.$parent.hasHousehold"
207
+ :options='$parent.$parent.safe_rhs'
208
+ v-model="$parent.$parent.hasHousehold"
209
+ close-on-select clear-button> </v-select>
210
+ </div>-->
211
+ <div class="col-sm-4" style="width: 20%">
212
+ <label class="font_normal_body">安检项名</label>
213
+ <v-select
214
+ placeholder='安检项名'
215
+ :value-single="true"
216
+ class="select select_list"
217
+ :value.sync="$parent.$parent.check_item"
218
+ :options='$parent.$parent.check_items'
219
+ v-model="$parent.$parent.check_item"
220
+ close-on-select clear-button> </v-select>
221
+ </div>
222
+ <div class="col-sm-4" style="width: 20%">
223
+ <label class="font_normal_body">安检内容</label>
224
+ <v-select
225
+ placeholder='安检内容'
226
+ :value-single="true"
227
+ class="select select_list"
228
+ :value.sync="$parent.$parent.check_itemValue"
229
+ :options='$parent.$parent.check_itemValues'
230
+ v-model="$parent.$parent.check_itemValue"
231
+ close-on-select clear-button> </v-select>
232
+ </div>
233
+ <div class="col-sm-4" style="width: 20%">
234
+ <label class="font_normal_body">安检员</label>
235
+ <v-select
236
+ placeholder='安检员'
237
+ :value-single="true"
238
+ class="select select_list"
239
+ :value.sync="model.f_checker_id"
240
+ :options='$parent.$parent.checkersid'
241
+ v-model="model.f_checker_id"
242
+ condition="f_checker_id = '{}'"
243
+ close-on-select clear-button> </v-select>
244
+ </div>
245
+ <!-- <div class="col-sm-4" style="width: 20%">-->
246
+ <!-- <label class="font_normal_body">安检状态</label>-->
247
+ <!-- <v-select-->
248
+ <!-- placeholder='安检状态'-->
249
+ <!-- :value-single="true"-->
250
+ <!-- class="select select_list"-->
251
+ <!-- :value.sync="model.f_entry"-->
252
+ <!-- :options='$parent.$parent.f_entry_status'-->
253
+ <!-- v-model="model.f_entry"-->
254
+ <!-- condition="f_last_check_state= '{}'"-->
255
+ <!-- close-on-select clear-button> </v-select>-->
256
+ <!-- </div>-->
257
+ <div class="col-sm-8"></div>
258
+ <div style="float: right;margin-right: 10px">
259
+ <export-excel :data="$parent.$parent.searchData"
260
+ :field="$parent.$parent.excelHeaders"
261
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案" template-name='用户安检情况'></export-excel>
262
+ <div style="float: right" class="button_spacing"
263
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
264
+ @click="$parent.$parent.hiddenr()"></div>
265
+ </div>
266
+ <div class="span" style = "float:right;margin-right:10px">
267
+ <button class="btn btn-primary width-80" @click="search()">查询</button>
268
+ </div>
269
+ <div class="span" style = "float:right;margin-right:10px">
270
+ <button class="btn btn-primary width-80" @click="$parent.$parent.show1()">年度安检率查看</button>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ </criteria>
276
+ <data-grid :model="model" partial="list" class="table table-bordered table table-hover" v-ref:grid>
277
+ <template partial='head'>
278
+ <tr>
279
+ <th><nobr>用户编号</nobr></th>
280
+ <th><nobr>用户名称</nobr></th>
281
+ <th><nobr>用户电话</nobr></th>
282
+ <!--<th><nobr>今年入户次数</nobr></th>-->
283
+ <th><nobr>用户类型</nobr></th>
284
+ <th><nobr>小区名称</nobr></th>
285
+ <th><nobr>地址</nobr></th>
286
+ <th><nobr>建档日期</nobr></th>
287
+ <th><nobr>安检日期</nobr></th>
288
+ <th><nobr>安检状态</nobr></th>
289
+ <th><nobr>安检结果</nobr></th>
290
+ </tr>
291
+ </template>
292
+ <template partial='body'>
293
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_userinfo_code}}</td>
294
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_name}}</td>
295
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_phone}}</td>
296
+ <!--<td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.r}}</td>-->
297
+ <td v-bind:class="{newcolor:row.code=='1'}" style="text-align: center">{{row.f_user_type}}</td>
298
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_residential_area}}</td>
299
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_address}}</td>
300
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_createfile_date}}</td>
301
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_date}}</td>
302
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_state}}</td>
303
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{$parent.$parent.$parent.getDefect(row.f_last_check_result)}}</td>
304
+ </template>
305
+ </data-grid>
306
+ </criteria-paged>
307
+ </div>
308
+ <modal :show.sync="showModal" v-ref:modal backdrop="false">
309
+ <div slot="modal-header" class="modal-header">
310
+ <h4 class="modal-title">
311
+ 年度安检率查看
312
+ </h4>
313
+ </div>
314
+ <div slot="modal-body" class="modal-body">
315
+ <div>
316
+ <form class="form-inline">
317
+ <div class="row form-group">
318
+ <div class="col-sm-4">
319
+ <label class="font_normal_body" >起始时间</label>
320
+ <datepicker
321
+ :value.sync="y_check_start"
322
+ placeholder='安检时间起始'
323
+ :disabled-days-of-week="[]"
324
+ class="select select_list"
325
+ style="width: 60%"
326
+ :format="'yyyy-MM-dd'"
327
+ :show-rest-button="reset"
328
+ v-model = "y_check_start">
329
+ </datepicker>
330
+ </div>
331
+ <div class="col-sm-4">
332
+ <label class="font_normal_body" >结束时间</label>
333
+ <datepicker
334
+ :value.sync="y_check_end"
335
+ placeholder='安检时间截止'
336
+ :disabled-days-of-week="[]"
337
+ class="select select_list"
338
+ style="width: 60%"
339
+ :format="'yyyy-MM-dd'"
340
+ :show-rest-button="reset"
341
+ v-model = "y_check_end">
342
+ </datepicker>
343
+ </div>
344
+ <button type="button" style="margin-left: 10px" class="button_search" @click="y_search()">查询</button>
345
+ </div>
346
+ <div class="row form-group">
347
+ <div class="col-sm-4">
348
+ <label class="font_normal_body">所属区域</label>
349
+ <v-select
350
+ placeholder='所属区域'
351
+ :value-single="true"
352
+ v-model='yearStreet'
353
+ :value.sync="yearStreet"
354
+ class="select select_list"
355
+ :options='streets'
356
+ close-on-select clear-button> </v-select>
357
+ </div>
358
+ </div>
359
+
360
+
361
+ <div style="width: 65%;height:100%; display: inline-block">
362
+ </div>
363
+
364
+ </form>
365
+ <hr>
366
+ <table class="table table_sy">
367
+ <thead>
368
+ <tr>
369
+ <th></th>
370
+ <th>总户数</th>
371
+ <th>安检入户数</th>
372
+ <th>一次安检率</th>
373
+ </tr>
374
+ </thead>
375
+ <tbody>
376
+ <tr v-for="row in yearmodel">
377
+ <td></td>
378
+ <td style="text-align: center;">{{row.con}}</td>
379
+ <td style="text-align: center;">{{row.rhcon}}</td>
380
+ <td style="text-align: center;">{{row.f_check_bv}}</td>
381
+ </tr>
382
+ </tbody>
383
+ </table>
384
+ </div>
385
+ </div>
386
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
387
+ <!--<button class="button_search button_spacing" @click="ok()">确认</button>-->
388
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
389
+ </div>
390
+ </modal>
391
+ </template>
392
+
393
+ <script>
394
+ import { PagedList } from 'vue-client'
395
+ import { HttpResetClass } from 'vue-client'
396
+ import co from 'co'
397
+ import * as Util from './../Util'
398
+ import Vue from 'vue'
399
+ import {toStandardDateString} from "./../Util";
400
+
401
+ let select = function* (self) {
402
+ let http = new HttpResetClass()
403
+ let getGasman = yield http.load('POST','/rs/search', {
404
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
405
+ userid: self.$login.f.id
406
+ }, {resolveMsg: null, rejectMsg: null})
407
+ //tag
408
+ self.checkersid.push({label: '全部', value: ''})
409
+ getGasman.data.forEach((checker) => {
410
+ self.checkersid.push({label: checker.name, value: checker.id})
411
+ })
412
+ }
413
+
414
+ export default {
415
+ title: '民用用户安检情况',
416
+ data() {
417
+ let options = []
418
+ let year = (new Date()).getFullYear()
419
+ for (let i = year; i <= year + 3; i++)
420
+ options.push({label: i + '', value: i + ''})
421
+ let moptions = []
422
+ for (let i = 1; i <= 12; i++)
423
+ moptions.push({label: i + '', value: i + ''})
424
+
425
+ return {
426
+ y_check_start:`${new Date().getFullYear()}-01-01`,
427
+ y_check_end:`${new Date().getFullYear()}-12-31`,
428
+ searchData: {
429
+ condition: '1=1',
430
+ con1: '1=1',
431
+ con2: '1=1',
432
+ f_itemvalue:'',
433
+ f_itemname:'',
434
+ orderitem: "f_userinfo_code",
435
+ timetype:"dd" ,
436
+ f_filialeids:`(${this.$login.f.orgid})`
437
+ },
438
+ excelHeaders: {
439
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
440
+
441
+ 'f_userinfo_code': '用户编号',
442
+ 'f_user_name': '用户名称',
443
+ 'f_user_phone': '用户电话',
444
+ //'count_item':'安检次数',
445
+ 'f_user_type': '用户类型',
446
+ 'f_residential_area': '小区名称',
447
+ 'f_address':'地址',
448
+ 'f_last_check_date':'安检日期',
449
+ 'f_last_check_state': '安检状态',
450
+ 'f_last_check_result':'安检结果'
451
+ },
452
+ model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {orderitem: "'f_userinfo_code'",timetype:"'dd'" ,con1:"this.con1",con2:"this.con2",f_itemname:'this.check_item',f_itemvalue:'this.check_itemValue',f_filialeids:`'(${this.$login.f.orgid})'`}),
453
+ orgstrs:[{label: '全部', value: ''}],
454
+ checkersid:[],
455
+ SafeCheckXZ:'',
456
+ civil:'', //民用安检周期
457
+ civilian:'', //非民用安检周期
458
+ SafeCheckXZs: [{label: '全部', value: ''},{label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
459
+ safe_rhs: [{label: '全部', value: ''},{label: '今年已入户', value: '今年已入户'}, {label: '今年未入户', value: '今年未入户'}], // 安检筛选选项
460
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''},],
461
+ checkstatus:[{label: '全部', value: ''},{label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'},{label: '激光检漏', value: '激光检漏'},{label: '立杠保压', value: '立杠保压'},{label: '室外关阀', value: '室外关阀'}],
462
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
463
+ IsShare:'否',
464
+ checker: {},
465
+ NoBuys:[{label: '是', value: '是'},{label: '否', value: '否'}],
466
+ criteriaShow: true,
467
+ checkers: [],
468
+ chosenOrg: {id: 0},
469
+ checkedAll: false,
470
+ checkrows: [],
471
+ yearmodel:[],
472
+ streets:[],
473
+ adjustables: [],
474
+ f_plan_year: year + '',
475
+ f_plan_month: moptions[new Date().getMonth()].value,
476
+ f_effective_start_time:'', //计划有效起始时间
477
+ f_effective_end_time:'', //计划有效结束时间
478
+ checkboxModel: {},
479
+ c_year_list: options,
480
+ c_month_list: moptions,
481
+ areas: this.areas(),
482
+ //checkstatus: this.checkstatus(),
483
+ usertypes: this.usertypes(),
484
+ userstates: this.userstates(),
485
+ sqlname:'',
486
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'},{label: '有隐患', value: '有隐患'}],
487
+ creatPlanWay:'',
488
+ showModal:false,
489
+ yearStreet:'',
490
+ villagesModel:'', //小区绑定值
491
+ villagesChick:[], //小区选择值
492
+ buildingModel:'', //地址绑定值
493
+ buildingChick:[], //地址选择值
494
+ hasHousehold:'',
495
+ check_items:[{label: '全部', value: ''}, ...this.$appdata.getParam('安检项名')],
496
+ check_item:'',
497
+ check_itemValue:'',
498
+ // f_entry_status: this.$appdata.getParam('安检状态'),
499
+ }
500
+ },
501
+ props: {
502
+ checkplan: { // 传入一条安检计划信息
503
+ type: Object
504
+ },
505
+ additemshow:{
506
+ type:Boolean,
507
+ default:false
508
+ }
509
+ },
510
+ ready() {
511
+ // 获取分公司信息
512
+ this.getfengongsi()
513
+ this.model.chosenOrg = {id: 0}
514
+ this.model.f_filialeids = this.$login.f.f_orgids
515
+ this.model.f_filiale = this.$login.f.f_fengongsi
516
+ this.model.f_OrgStr = this.$login.f.orgpathstr
517
+ this.initstreets()
518
+
519
+ //小区初始化
520
+ this.initVillage()
521
+ this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStandardDateString()
522
+ this.$refs.paged.$refs.criteria.model.f_check_end = Util.toStandardDateString()
523
+ let gen = select(this)
524
+ co(gen)
525
+ // this.$refs.paged.$refs.criteria.search();
526
+ },
527
+ methods: {
528
+ show1(){
529
+ this.showModal=true
530
+ },
531
+ y_search(){
532
+ let condition=''
533
+ if(!this.y_check_start || !this.y_check_end){
534
+ this.$showMessage("请选择开始和结束时间")
535
+ }
536
+ condition += `and f_onsite_time > '${this.y_check_start} 00:00:00' and f_onsite_time < '${this.y_check_end} 23:59:59'`
537
+ new HttpResetClass().load('POST', 'api/af-safecheck/sql/FetchYearCheckRatio', {
538
+ data: {
539
+ condition: condition,
540
+ f_createfile_date:this.y_check_end+' 23:59:59',
541
+ usertype:'民用',
542
+ f_street:this.yearStreet
543
+ }
544
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((res)=>{
545
+ console.log('---'+JSON.stringify(res))
546
+ this.yearmodel=res.data
547
+ })
548
+ },
549
+ //初始化小区
550
+ async initVillage(){
551
+ this.villagesChick = []
552
+ let HttpReset = new HttpResetClass()
553
+ let req = await HttpReset.load('POST', 'api/af-safecheck/sql/safe_singleTable_GroupBy', {
554
+ data: {
555
+ items: 'f_residential_area',
556
+ tablename: 't_area',
557
+ condition: '1 = 1',
558
+ groupitem: 'f_residential_area'
559
+ }
560
+ }, {resolveMsg: null, rejectMsg: '获取小区列表失败!'})
561
+ let redata = []
562
+ req.data.forEach((row, n) => {
563
+ redata.push({label: row.f_residential_area,value: row.f_residential_area,data:row})
564
+ })
565
+ redata.unshift({label: '全部', value: '', data: ''})
566
+ this.villagesChick=redata
567
+ },
568
+ //初始化街道 添加小区
569
+ async initstreets(){
570
+ this.streetslist = []
571
+ let HttpReset = new HttpResetClass()
572
+ let req = await HttpReset.load('POST', 'api/af-safecheck/sql/address_singleTableOrderBy', {
573
+ data: {
574
+ items: '*',
575
+ tablename: 't_street',
576
+ orderitem: 'id',
577
+ condition: `f_orgid = '${this.$login.f.orgid}'`
578
+ }
579
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
580
+ let redata = []
581
+ req.data.forEach((row, n) => {
582
+ redata.push({label: row.f_street,value: row.f_street,data:row,id:row.id})
583
+ })
584
+ this.streets=redata
585
+ },
586
+ hiddenr() {
587
+ this.$parent.showItem = !this.$parent.showItem
588
+ },
589
+ hidden() {
590
+ this.criteriaShow = !this.criteriaShow
591
+ },
592
+ // 获取县域分公司内容
593
+ getfengongsi(){
594
+ let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
595
+ let http = new HttpResetClass()
596
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
597
+ res.data.forEach((item) => {
598
+ this.orgstrs.push({label: item.name, value: item.id})
599
+ })
600
+ console.log(this.orgstrs.length)
601
+ })
602
+ },
603
+ // 县域分公司发生改变
604
+ // orgstrchange(val){
605
+ // if(val == undefined || val == ''){
606
+ // return
607
+ // }else {
608
+ // this.checkersid = []
609
+ // let gen = select(this,val)
610
+ // return co(gen)
611
+ // }
612
+ // },
613
+ getDefect(val){
614
+ if(val){
615
+ try {
616
+ var defect = JSON.parse(val)
617
+ return defect.result
618
+ }catch (e) {
619
+ console.log(val)
620
+ return '正常'
621
+ }
622
+ }
623
+ return '正常'
624
+ },
625
+ checkerchange(val) {
626
+ this.checkboxModel.f_checker = val.name
627
+ this.checkboxModel.f_checker_id = val.id
628
+ },
629
+ search(args) {
630
+ if(this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')){
631
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始和结束时间!')
632
+ return
633
+ }
634
+ if((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ ){
635
+ this.$showMessage('如果录入安检起始结束时间,需要选择 安检筛选 选项!')
636
+ return
637
+ }
638
+ let con1='1=1 '
639
+ let con2='1=1 '
640
+ if(this.SafeCheckXZ == '已入户'){
641
+ args.condition += " and r > 0 and f_last_check_state = '入户'"
642
+ con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
643
+ con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
644
+ //args.condition += " and ( f_last_check_date > '"+ args.model.f_check_end + " 23:59:00' or f_last_check_date < '"+ args.model.f_check_start + " 00:00:00' or f_last_check_date is null)"
645
+ } else if(this.SafeCheckXZ == '未入户') {
646
+ args.condition += " and r < 1"
647
+ // args.condition += " and f_last_check_state != '入户'"
648
+ con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
649
+ con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
650
+ if(args.model.f_check_state=='到访不遇'){
651
+ args.condition += " and d > 0"
652
+ }else if(args.model.f_check_state=='拒检'){
653
+ args.condition += " and j > 0"
654
+ }
655
+ }
656
+ if (args.model.f_check_state){
657
+ args.condition += ` and f_last_check_state = '${args.model.f_check_state}'`
658
+ }
659
+ this.model.check_item=this.check_item
660
+ this.model.check_itemValue=this.check_itemValue
661
+ /*if(this.hasHousehold=='今年已入户'){
662
+ args.condition += " and rhcon is not null"
663
+ }else if(this.hasHousehold=='今年未入户'){
664
+ args.condition += " and rhcon is null"
665
+ }*/
666
+ args.condition += " and f_filialeid = '" + this.$login.f.orgid + "' and f_user_type='民用'"
667
+ this.searchData.condition=args.condition
668
+ this.searchData.con1=con1
669
+ this.searchData.con2=con2
670
+ this.searchData.f_itemvalue=this.check_item
671
+ this.searchData.f_itemname=this.check_itemValue
672
+ this.model.con1=con1
673
+ this.model.con2=con2
674
+ return this.model.search( args.condition, args.model)
675
+ },
676
+ /*checkstatus() {
677
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]
678
+ },*/
679
+ usertypes() {
680
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
681
+ },
682
+ userstates() {
683
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
684
+ },
685
+ show() {
686
+ this.criteriaShow = true
687
+ },
688
+ hidden() {
689
+ this.criteriaShow = false
690
+ },
691
+ confirm() {
692
+ if (!this.checkboxModel.f_plan_name) {
693
+ this.$showMessage('请填写安检计划名称!')
694
+ return
695
+ }
696
+ // if(this.f_effective_start_time == ''){
697
+ // this.$showMessage('请选择有效起始日期!')
698
+ // return
699
+ // }
700
+ // if(this.f_effective_end_time == ''){
701
+ // this.$showMessage('请选择有效结束日期!')
702
+ // return
703
+ // }
704
+ if(this.IsShare == '否'){
705
+ if (!this.checkboxModel.f_checker_id) {
706
+ this.$showMessage('请选择安检员!')
707
+ return
708
+ }
709
+ }
710
+ let gen = saveGen(this)
711
+ return co(gen)
712
+ },
713
+ changeStates() {
714
+ if (this.checkedAll) {//实现反选/
715
+ this.checkrows = [];
716
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
717
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
718
+ }
719
+ } else {//实现全选
720
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
721
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
722
+ }
723
+ let _this = this
724
+ let condition = this.$refs.paged.$refs.criteria.condition
725
+ let url = this.model.url
726
+ this.$resetpost(`${url}?pageSize=9999999`, {
727
+ data: {
728
+ condition: condition,
729
+ groupitem: '',
730
+ orderitem: 'f_residential_area',
731
+ f_usertype:this.model.f_usertype,
732
+ f_filialeids: this.model.f_filialeids,
733
+ month: this.model.month,
734
+ safeCycle:this.model.safeCycle,
735
+ f_checktime_start:this.model.f_checktime_start,
736
+ f_checktime_end:this.model.f_checktime_end,
737
+ SafeCheckSX: this.model.SafeCheckSX,
738
+ f_last_check_state: this.model.f_last_check_state
739
+ },
740
+ },{resolveMsg: null, rejectMsg: null}, -1).then(
741
+ (respanse) => {
742
+ if (respanse.data.length >= 5000) {
743
+ this.$showMessage("数据量太大,请重新选择")
744
+ } else {
745
+ _this.checkrows = []
746
+ for (let j = 0; j < respanse.data.length; j++) {
747
+ _this.checkrows.push(respanse.data[j])
748
+ }
749
+ console.log(_this.checkrows);
750
+ }
751
+ })
752
+ }
753
+ },
754
+ addChecked(item) {
755
+ console.log(item);
756
+ if (!item.checked) {
757
+ this.checkrows.push(item);
758
+ console.log(this.checkrows);
759
+ } else {
760
+ for (let i = 0; i < this.checkrows.length; i++) {
761
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
762
+ this.checkrows.splice(i, 1)
763
+ }
764
+ }
765
+ }
766
+ },
767
+ ToshowModal() {
768
+ this.creatPlanWay = 'single'
769
+ if (this.checkrows.length > 0) {
770
+ this.showModal = true
771
+ } else {
772
+ this.$showMessage("请选择需要安检的用户!")
773
+ }
774
+ },
775
+ FiltrationPlan(){
776
+ if(this.model.rows.length == 0){
777
+ this.$showMessage("暂无可生成的计划!")
778
+ return
779
+ }
780
+ this.creatPlanWay = 'filtration'
781
+ this.showModal = true
782
+ },
783
+ AllPlan() {
784
+ if(this.model.rows.length == 0){
785
+ this.$showMessage("暂无可生成的计划!")
786
+ return
787
+ }
788
+ this.creatPlanWay = 'all'
789
+ this.showModal = true
790
+ },
791
+ cancel() {
792
+ this.showModal = false
793
+ },
794
+ areas() {
795
+ let rs = []
796
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
797
+ let temp = {
798
+ label: this.$login.f.f_allArea[i].label,
799
+ value: this.$login.f.f_allArea[i].label
800
+ }
801
+ rs.push(temp)
802
+ }
803
+ return [{label: '全部', value: ''}, ...rs]
804
+ },
805
+ initAdjustables() {
806
+ console.log('初始化调压箱', this.$GetSaleParam)
807
+ let arr = []
808
+ let filter = this.$login.f.f_orgids
809
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
810
+ let temp = {}
811
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
812
+ temp.value = `${item.value.id}`
813
+ arr.push(temp)
814
+ })
815
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
816
+ },
817
+ },
818
+
819
+ watch: {
820
+ 'check_item'(){
821
+ this.check_itemValue=''
822
+ },
823
+ 'model.model.f_residential_area'(){
824
+ this.model.model.f_building = []
825
+ this.buildingChick = []
826
+ if (!this.model.model){
827
+ return
828
+ }
829
+ if (!this.model.model.f_residential_area){
830
+ return
831
+ }
832
+ let HttpReset = new HttpResetClass()
833
+ let redata = []
834
+ HttpReset.load('POST', '/api/af-safecheck/sql/safe_singleTable_GroupBy', {
835
+ data: {
836
+ items: "f_building",
837
+ tablename: "t_user_address",
838
+ condition: `f_filialeid = ${this.$login.f.orgid} and f_residential_area= '${this.model.model.f_residential_area}'`,
839
+ groupitem: "f_building order by cast((case PATINDEX('%[^0-9]%', f_building) when 0 then f_building else 999 end) as int)"
840
+ }
841
+ }, {resolveMsg: null, rejectMsg: '获取楼栋列表失败!'}).then(res=>{
842
+ res.data.forEach((row, n) => {
843
+ redata.push({ label: row.f_building,value: row.f_building,data:row})
844
+ })
845
+ this.buildingChick = redata;
846
+ })
847
+ },
848
+ 'model.f_usertype'(val){
849
+ if(val == '民用'){
850
+ this.model.safeCycle = this.civil
851
+ }else if(val == '非民用'){
852
+ this.model.safeCycle = this.civilian
853
+ }
854
+ },
855
+ 'model.SafeCheckXZ'(val) {
856
+ this.model.SafeCheckSC = ''
857
+ if (val == '已安检') {
858
+ this.model.SafeCheckCQ = ''
859
+ this.model.SafeCheckSX = {
860
+ f_check_end: '', // 安检时间 查询起始条件
861
+ f_check_start: ''// 安检时间 查询终止条件
862
+ }
863
+ } else {
864
+ // 当使用筛选条件时,清空不需要的条件选项
865
+ this.model.f_issue_start = ''
866
+ this.model.f_issue_end = ''
867
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
868
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
869
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
870
+ this.model.month = ''
871
+ if(val == '应安检'){
872
+ this.model.SafeCheckSC = '否'
873
+
874
+ this.model.f_issue_start = Util.toStartDateString()
875
+ this.model.f_issue_end = Util.toStandardDateString()
876
+ }
877
+ // this.model.f_checktime_start = ''
878
+ // this.model.f_checktime_end = ''
879
+ }
880
+ },
881
+ 'model.SafeCheckSC'(val) {
882
+ if (val == '') {
883
+ this.model.f_issue_start = ''
884
+ this.model.f_issue_end = ''
885
+ }
886
+ },
887
+ // 'checker'(val){
888
+ // console.log("checker",this.checker)
889
+ // if(val){
890
+ // this.checkboxModel.f_checker = this.checker[0].name
891
+ // this.checkboxModel.f_checker_id = this.checker[0].id
892
+ // }
893
+ // },
894
+ 'model.rows'() {
895
+ // if (!this.checkedAll) {//实现反选/
896
+ // this.checkrows = [];
897
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
898
+ var k = false
899
+ for (let j = 0; j < this.checkrows.length; j++) {
900
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
901
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
902
+ k = true
903
+ continue
904
+ }
905
+ }
906
+ if (!k) {
907
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
908
+ }
909
+ }
910
+ // } else {//实现全选
911
+ // // this.checkboxModel = {};
912
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
913
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
914
+ // }
915
+ // }
916
+ }
917
+ },
918
+ computed: {
919
+ selected() {
920
+ return this.$refs.paged.$refs.grid.selected
921
+ },
922
+ check_itemValues(){
923
+ return [ ...this.$appdata.getParam(this.check_item)]
924
+ }
925
+ }
926
+ }
927
+ </script>
928
+ <style scoped>
929
+ .newcolor{
930
+ color:red;
931
+ }
932
+ .table th{
933
+ background-color: #f2f6fa;
934
+ color: black;
935
+ }
936
+ </style>