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,778 +1,778 @@
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
- </div>
25
- <div class="col-sm-4" style="width: 20%">
26
- <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;地址&nbsp;&nbsp;&nbsp;</label>
27
- <input type="text" class="input_search" v-model="model.f_address" id="f_address" style="width:60%;"
28
- placeholder="地址" condition="f_address like '%{}%'">
29
- </div>
30
- <div class="col-sm-4" style="width: 20%">
31
- <label class="font_normal_body">所属区域</label>
32
- <v-select
33
- placeholder='所属区域'
34
- :value-single="true"
35
- v-model='model.street'
36
- :value.sync="model.street"
37
- class="select select_list"
38
- :options='$parent.$parent.streets'
39
- condition="f_street ='{}'"
40
- close-on-select clear-button> </v-select>
41
- </div>
42
- <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
43
- <!--<label class="control-label">用户类型</label>-->
44
- <!--<v-select id="f_usertype"-->
45
- <!--placeholder='用户类型'-->
46
- <!--:value.sync="model.f_usertype"-->
47
- <!--:value-single="true"-->
48
- <!--:options='$parent.$parent.usertypes'-->
49
- <!--v-model="model.f_usertype"-->
50
- <!--condition="f_user_type = '{}'"-->
51
- <!--close-on-select clear-button> </v-select>-->
52
- <!--</div>-->
53
- <div class="col-sm-4" style="width: 20%">
54
- <label class="font_normal_body" style="color: red;">安检筛选</label>
55
- <v-select
56
- placeholder='安检筛选'
57
- :value-single="true"
58
- class="select select_list"
59
- :value.sync="$parent.$parent.SafeCheckXZ"
60
- :options='$parent.$parent.SafeCheckXZs'
61
- v-model="$parent.$parent.SafeCheckXZ"
62
- close-on-select clear-button> </v-select>
63
- </div>
64
- <div class="col-sm-4" style="width: 20% " v-show="$parent.$parent.SafeCheckXZ=='未入户'">
65
- <label class="font_normal_body">安检状态</label>
66
- <v-select id="f_entry"
67
- placeholder='安检状态'
68
- :value.sync="model.f_check_state"
69
- :value-single="true"
70
- class="select select_list"
71
- :options='$parent.$parent.checkstatus'
72
- v-model="model.f_check_state"
73
- close-on-select clear-button> </v-select>
74
- </div>
75
- <div class="col-sm-4" style="width: 20%">
76
- <label class="font_normal_body">安检起始</label>
77
- <datepicker
78
- :value.sync="model.f_check_start"
79
- placeholder='最后安检时间起始'
80
- :disabled-days-of-week="[]"
81
- class="select select_list"
82
- style="width: 60%"
83
- :format="'yyyy-MM-dd'"
84
- :show-rest-button="reset"
85
- v-model = "model.f_check_start">
86
- </datepicker>
87
- </div>
88
- <div class="col-sm-4" style="width: 20%">
89
- <label class="font_normal_body">安检结束</label>
90
- <datepicker
91
- :value.sync="model.f_check_end"
92
- placeholder='最后安检时间结束'
93
- :disabled-days-of-week="[]"
94
- class="select select_list"
95
- style="width: 60%"
96
- :format="'yyyy-MM-dd'"
97
- :show-rest-button="reset"
98
- v-model = "model.f_check_end">
99
- </datepicker>
100
- </div>
101
-
102
- <!--<div class="col-sm-4" style="width: 20%">
103
- <label class="font_normal_body">安检状态</label>
104
- <v-select id="f_entry"
105
- placeholder='安检状态'
106
- :value.sync="model.f_last_check_state"
107
- :value-single="true"
108
- class="select select_list"
109
- :options='$parent.$parent.checkstatus'
110
- v-model="model.f_last_check_state"
111
- condition="f_last_check_state = '{}'"
112
- close-on-select clear-button> </v-select>
113
- </div>-->
114
- <div class="col-sm-4" style="width: 20%">
115
- <label class="font_normal_body">隐患情况</label>
116
- <v-select
117
- placeholder='隐患情况'
118
- :value-single="true"
119
- v-model='model.f_check_result'
120
- class="select select_list"
121
- :value.sync="model.f_check_result"
122
- :options='$parent.$parent.f_check_results'
123
- condition="f_last_check_result like '%{}%'"
124
- close-on-select clear-button> </v-select>
125
- </div>
126
- <!--<div class="col-sm-4" style="width: 20%" v-if="$parent.$parent.orgstrs.length > 1">
127
- <label class="font_normal_body">县域公司</label>
128
- <v-select
129
- placeholder='县域分公司'
130
- :value-single="true"
131
- v-model='model.f_orgstr'
132
- :value.sync="model.f_orgstr"
133
- class="select select_list"
134
- :options='$parent.$parent.orgstrs'
135
- condition="f_orgstr like '%{}%'"
136
- close-on-select clear-button> </v-select>
137
- </div>-->
138
-
139
- <div class="row">
140
- <div class="col-sm-4" style="width: 20%">
141
- <label class="font_normal_body">开户起始</label>
142
- <datepicker
143
- :value.sync="model.f_createfile_start"
144
- placeholder='开户起始时间'
145
- :disabled-days-of-week="[]"
146
- class="select select_list"
147
- style="width: 60%"
148
- :format="'yyyy-MM-dd'"
149
- :show-rest-button="reset"
150
- condition="f_createfile_date > '{} 00:00:00'"
151
- v-model = "model.f_createfile_start">
152
- </datepicker>
153
- </div>
154
- <div class="col-sm-4" style="width: 20%">
155
- <label class="font_normal_body">开户结束</label>
156
- <datepicker
157
- :value.sync="model.f_createfile_end"
158
- placeholder='开户结束时间'
159
- :disabled-days-of-week="[]"
160
- class="select select_list"
161
- style="width: 60%"
162
- :format="'yyyy-MM-dd'"
163
- condition="f_createfile_date < '{} 23:59:00'"
164
- :show-rest-button="reset"
165
- v-model = "model.f_createfile_end">
166
- </datepicker>
167
- </div>
168
- <div class="col-sm-4" style="width: 20%">
169
- <label class="font_normal_body">是否入户</label>
170
- <v-select
171
- placeholder='今年是否入户'
172
- :value-single="true"
173
- class="select select_list"
174
- :value.sync="$parent.$parent.hasHousehold"
175
- :options='$parent.$parent.safe_rhs'
176
- v-model="$parent.$parent.hasHousehold"
177
- close-on-select clear-button> </v-select>
178
- </div>
179
- <div class="col-sm-8"></div>
180
- <div style="float: right;margin-right: 10px">
181
- <export-excel :data="$parent.$parent.searchData"
182
- :field="$parent.$parent.excelHeaders"
183
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案" template-name='用户安检情况'></export-excel>
184
- <div style="float: right" class="button_spacing"
185
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
186
- @click="$parent.$parent.hiddenr()"></div>
187
- </div>
188
- <div class="span" style = "float:right;margin-right:10px">
189
- <button class="btn btn-primary width-80" @click="search()">查询</button>
190
- </div>
191
- <div class="span" style = "float:right;margin-right:10px">
192
- <button class="btn btn-primary width-80" @click="$parent.$parent.show1()">年度安检率查看</button>
193
- </div>
194
- </div>
195
- </div>
196
- </div>
197
- </criteria>
198
- <data-grid :model="model" partial="list" class="table table-bordered table table-hover" v-ref:grid>
199
- <template partial='head'>
200
- <tr>
201
- <th><nobr>用户编号</nobr></th>
202
- <th><nobr>用户名称</nobr></th>
203
- <th><nobr>用户电话</nobr></th>
204
- <th><nobr>今年入户次数</nobr></th>
205
- <th><nobr>用户类型</nobr></th>
206
- <th><nobr>小区名称</nobr></th>
207
- <th><nobr>地址</nobr></th>
208
- <th><nobr>建档日期</nobr></th>
209
- <th><nobr>安检日期</nobr></th>
210
- <th><nobr>安检状态</nobr></th>
211
- <th><nobr>安检结果</nobr></th>
212
- </tr>
213
- </template>
214
- <template partial='body'>
215
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_userinfo_code}}</td>
216
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_name}}</td>
217
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_phone}}</td>
218
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.rhcon?row.rhcon:0}}</td>
219
- <td v-bind:class="{newcolor:row.code=='1'}" style="text-align: center">{{row.f_user_type}}</td>
220
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_residential_area}}</td>
221
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_address}}</td>
222
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_createfile_date}}</td>
223
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_date}}</td>
224
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_state}}</td>
225
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{$parent.$parent.$parent.getDefect(row.f_last_check_result)}}</td>
226
- </template>
227
- </data-grid>
228
- </criteria-paged>
229
- </div>
230
- <modal :show.sync="showModal" v-ref:modal backdrop="false">
231
- <div slot="modal-header" class="modal-header">
232
- <h4 class="modal-title">
233
- 年度安检率查看
234
- </h4>
235
- </div>
236
- <div slot="modal-body" class="modal-body">
237
- <div>
238
- <form class="form-inline">
239
- <div class="row form-group">
240
- <div class="col-sm-4">
241
- <label class="font_normal_body" >起始时间</label>
242
- <datepicker
243
- :value.sync="y_check_start"
244
- placeholder='安检时间起始'
245
- :disabled-days-of-week="[]"
246
- class="select select_list"
247
- style="width: 60%"
248
- :format="'yyyy-MM-dd'"
249
- :show-rest-button="reset"
250
- v-model = "y_check_start">
251
- </datepicker>
252
- </div>
253
- <div class="col-sm-4">
254
- <label class="font_normal_body" >结束时间</label>
255
- <datepicker
256
- :value.sync="y_check_end"
257
- placeholder='安检时间截止'
258
- :disabled-days-of-week="[]"
259
- class="select select_list"
260
- style="width: 60%"
261
- :format="'yyyy-MM-dd'"
262
- :show-rest-button="reset"
263
- v-model = "y_check_end">
264
- </datepicker>
265
- </div>
266
- <button type="button" style="margin-left: 10px" class="button_search" @click="y_search()">查询</button>
267
- </div>
268
- <div class="row form-group">
269
- <div class="col-sm-4">
270
- <label class="font_normal_body">所属区域</label>
271
- <v-select
272
- placeholder='所属区域'
273
- :value-single="true"
274
- v-model='yearStreet'
275
- :value.sync="yearStreet"
276
- class="select select_list"
277
- :options='streets'
278
- close-on-select clear-button> </v-select>
279
- </div>
280
- </div>
281
-
282
-
283
- <div style="width: 65%;height:100%; display: inline-block">
284
- </div>
285
-
286
- </form>
287
- <hr>
288
- <table class="table table_sy">
289
- <thead>
290
- <tr>
291
- <th></th>
292
- <th>总户数</th>
293
- <th>安检入户数</th>
294
- <th>一次安检率</th>
295
- </tr>
296
- </thead>
297
- <tbody>
298
- <tr v-for="row in yearmodel">
299
- <td></td>
300
- <td style="text-align: center;">{{row.con}}</td>
301
- <td style="text-align: center;">{{row.rhcon}}</td>
302
- <td style="text-align: center;">{{row.f_check_bv}}</td>
303
- </tr>
304
- </tbody>
305
- </table>
306
- </div>
307
- </div>
308
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
309
- <!--<button class="button_search button_spacing" @click="ok()">确认</button>-->
310
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
311
- </div>
312
- </modal>
313
- </template>
314
-
315
- <script>
316
- import { PagedList } from 'vue-client'
317
- import { HttpResetClass } from 'vue-client'
318
- import co from 'co'
319
- import * as Util from './../Util'
320
- import Vue from 'vue'
321
-
322
- // let select = function * (self,userid) {
323
- // let http = new HttpResetClass()
324
- // let getGasman = yield http.load('POST','/rs/search', {
325
- // source: 'this.getChildByName($安检员$).getUsers()',
326
- // userid: userid
327
- // }, {resolveMsg: null, rejectMsg: null})
328
- // console.log('获取安检员', getGasman)
329
- // getGasman.data.forEach((checker)=>{
330
- // self.checkersid.push({label:checker.name,value:checker.id})
331
- // })
332
- // self.checkersid.push({label:'全部',value:''})
333
- // }
334
-
335
-
336
- export default {
337
- title: '非民用用户安检情况',
338
- data() {
339
- let options = []
340
- let year = (new Date()).getFullYear()
341
- for (let i = year; i <= year + 3; i++)
342
- options.push({label: i + '', value: i + ''})
343
- let moptions = []
344
- for (let i = 1; i <= 12; i++)
345
- moptions.push({label: i + '', value: i + ''})
346
-
347
- return {
348
- yearmodel:[],
349
- y_check_start:`${new Date().getFullYear()}-01-01`,
350
- y_check_end:`${new Date().getFullYear()}-12-31`,
351
- searchData: {
352
- condition: '1=1',
353
- orderitem: "f_userinfo_code",
354
-
355
- timetype:"dd" ,
356
- f_filialeids:`(${this.$login.f.orgid})`
357
- },
358
- excelHeaders: {
359
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
360
-
361
- 'f_userinfo_code': '用户编号',
362
- 'f_user_name': '用户名称',
363
- 'f_user_phone': '用户电话',
364
- /*'count_item':'安检次数',*/
365
- 'f_user_type': '用户类型',
366
- 'f_residential_area': '小区名称',
367
- 'f_address':'地址',
368
- 'f_last_check_date':'安检日期',
369
- 'f_last_check_state': '安检状态',
370
- 'f_last_check_result':'安检结果'
371
- },
372
- 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})'`}),
373
- orgstrs:[{label: '全部', value: ''}],
374
- checkersid:[],
375
- SafeCheckXZ:'',
376
- civil:'', //民用安检周期
377
- civilian:'', //非民用安检周期
378
- SafeCheckXZs: [{label: '全部', value: ''},{label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
379
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''},],
380
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
381
- IsShare:'否',
382
- checker: {},
383
- NoBuys:[{label: '是', value: '是'},{label: '否', value: '否'}],
384
- criteriaShow: true,
385
- checkers: [],
386
- chosenOrg: {id: 0},
387
- showModal: false,
388
- checkedAll: false,
389
- streets:[],
390
- checkrows: [],
391
- adjustables: [],
392
- f_plan_year: year + '',
393
- f_plan_month: moptions[new Date().getMonth()].value,
394
- f_effective_start_time:'', //计划有效起始时间
395
- f_effective_end_time:'', //计划有效结束时间
396
- checkboxModel: {},
397
- c_year_list: options,
398
- c_month_list: moptions,
399
- areas: this.areas(),
400
- checkstatus: [{label: '全部', value: ''},{label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'}],
401
- usertypes: this.usertypes(),
402
- userstates: this.userstates(),
403
- sqlname:'',
404
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'},{label: '有隐患', value: '有隐患'}],
405
- creatPlanWay:'',
406
- yearStreet:'',
407
- safe_rhs: [{label: '全部', value: ''},{label: '今年已入户', value: '今年已入户'}, {label: '今年未入户', value: '今年未入户'}], // 安检筛选选项
408
- hasHousehold:'',
409
- check_item:'',
410
- check_itemValue:''
411
- }
412
- },
413
- props: {
414
- checkplan: { // 传入一条安检计划信息
415
- type: Object
416
- },
417
- additemshow:{
418
- type:Boolean,
419
- default:false
420
- }
421
- },
422
- ready() {
423
- // 获取分公司信息
424
- this.getfengongsi()
425
- this.model.chosenOrg = {id: 0}
426
- this.model.f_filialeids = this.$login.f.f_orgids
427
- this.model.f_filiale = this.$login.f.f_fengongsi
428
- this.model.f_OrgStr = this.$login.f.orgpathstr
429
- this.initstreets()
430
- },
431
- methods: {
432
- show1(){
433
- this.showModal=true
434
- },
435
- y_search(){
436
- let condition=''
437
- if(!this.y_check_start || !this.y_check_end){
438
- this.$showMessage("请选择开始和结束时间")
439
- }
440
- condition += `and f_onsite_time > '${this.y_check_start} 00:00:00' and f_onsite_time < '${this.y_check_end} 23:59:59'`
441
- new HttpResetClass().load('POST', 'api/af-safecheck/sql/FetchYearCheckRatio', {
442
- data: {
443
- condition: condition,
444
- usertype:'非民用',
445
- f_createfile_date:this.y_check_end+' 23:59:59',
446
- f_street:this.yearStreet
447
- }
448
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((res)=>{
449
- console.log('---'+JSON.stringify(res))
450
- this.yearmodel=res.data
451
- })
452
- },
453
- //初始化街道 添加小区
454
- async initstreets(){
455
- this.streetslist = []
456
- let HttpReset = new HttpResetClass()
457
- let req = await HttpReset.load('POST', 'api/af-safecheck/sql/address_singleTableOrderBy', {
458
- data: {
459
- items: '*',
460
- tablename: 't_street',
461
- orderitem: 'id',
462
- condition: `f_orgid = '${this.$login.f.orgid}'`
463
- }
464
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
465
- let redata = []
466
- req.data.forEach((row, n) => {
467
- redata[n] = {
468
- label: row.f_street,
469
- value: row.f_street,
470
- data:row,
471
- id:row.id
472
- }
473
- })
474
- this.streets=redata
475
- },
476
- hiddenr() {
477
- this.$parent.showItem = !this.$parent.showItem
478
- },
479
- hidden() {
480
- this.criteriaShow = !this.criteriaShow
481
- },
482
- // 获取县域分公司内容
483
- getfengongsi(){
484
- let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
485
- let http = new HttpResetClass()
486
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
487
- res.data.forEach((item) => {
488
- this.orgstrs.push({label: item.name, value: item.id})
489
- })
490
- console.log(this.orgstrs.length)
491
- })
492
- },
493
- // 县域分公司发生改变
494
- // orgstrchange(val){
495
- // if(val == undefined || val == ''){
496
- // return
497
- // }else {
498
- // this.checkersid = []
499
- // let gen = select(this,val)
500
- // return co(gen)
501
- // }
502
- // },
503
- getDefect(val){
504
- if(val){
505
- try {
506
- var defect = JSON.parse(val)
507
- return defect.result
508
- }catch (e) {
509
- console.log(val)
510
- return '正常'
511
- }
512
- }
513
- return '正常'
514
- },
515
- checkerchange(val) {
516
- this.checkboxModel.f_checker = val.name
517
- this.checkboxModel.f_checker_id = val.id
518
- },
519
- search(args) {
520
- if(this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')){
521
- this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
522
- return
523
- }
524
- let con1='1=1 '
525
- let con2='1=1 '
526
- if(this.SafeCheckXZ == '已入户'){
527
- args.condition += " and r > 0"
528
- con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
529
- con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
530
- //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)"
531
- } else if(this.SafeCheckXZ == '未入户') {
532
- args.condition += " and r < 1"
533
- con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
534
- con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
535
- if(args.model.f_check_state=='到访不遇'){
536
- args.condition += " and d > 0"
537
- }else if(args.model.f_check_state=='拒检'){
538
- args.condition += " and j > 0"
539
- }
540
- }
541
- this.model.check_item=this.check_item
542
- this.model.check_itemValue=this.check_itemValue
543
- args.condition += " and f_filialeid = '" + this.$login.f.orgid + "' and f_user_type='非民用'"
544
- this.searchData.condition=args.condition
545
- this.model.con1=con1
546
- this.model.con2=con2
547
- return this.model.search( args.condition, args.model)
548
- },
549
- checkstatus() {
550
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]
551
- },
552
- usertypes() {
553
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
554
- },
555
- userstates() {
556
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
557
- },
558
- show() {
559
- this.criteriaShow = true
560
- },
561
- hidden() {
562
- this.criteriaShow = false
563
- },
564
- confirm() {
565
- if (!this.checkboxModel.f_plan_name) {
566
- this.$showMessage('请填写安检计划名称!')
567
- return
568
- }
569
- // if(this.f_effective_start_time == ''){
570
- // this.$showMessage('请选择有效起始日期!')
571
- // return
572
- // }
573
- // if(this.f_effective_end_time == ''){
574
- // this.$showMessage('请选择有效结束日期!')
575
- // return
576
- // }
577
- if(this.IsShare == '否'){
578
- if (!this.checkboxModel.f_checker_id) {
579
- this.$showMessage('请选择安检员!')
580
- return
581
- }
582
- }
583
- let gen = saveGen(this)
584
- return co(gen)
585
- },
586
- changeStates() {
587
- if (this.checkedAll) {//实现反选/
588
- this.checkrows = [];
589
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
590
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
591
- }
592
- } else {//实现全选
593
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
594
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
595
- }
596
- let _this = this
597
- let condition = this.$refs.paged.$refs.criteria.condition
598
- let url = this.model.url
599
- this.$resetpost(`${url}?pageSize=9999999`, {
600
- data: {
601
- condition: condition,
602
- groupitem: '',
603
- orderitem: 'f_residential_area',
604
- f_usertype:this.model.f_usertype,
605
- f_filialeids: this.model.f_filialeids,
606
- month: this.model.month,
607
- safeCycle:this.model.safeCycle,
608
- f_checktime_start:this.model.f_checktime_start,
609
- f_checktime_end:this.model.f_checktime_end,
610
- SafeCheckSX: this.model.SafeCheckSX,
611
- f_last_check_state: this.model.f_last_check_state
612
- },
613
- },{resolveMsg: null, rejectMsg: null}, -1).then(
614
- (respanse) => {
615
- if (respanse.data.length >= 5000) {
616
- this.$showMessage("数据量太大,请重新选择")
617
- } else {
618
- _this.checkrows = []
619
- for (let j = 0; j < respanse.data.length; j++) {
620
- _this.checkrows.push(respanse.data[j])
621
- }
622
- console.log(_this.checkrows);
623
- }
624
- })
625
- }
626
- },
627
- addChecked(item) {
628
- console.log(item);
629
- if (!item.checked) {
630
- this.checkrows.push(item);
631
- console.log(this.checkrows);
632
- } else {
633
- for (let i = 0; i < this.checkrows.length; i++) {
634
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
635
- this.checkrows.splice(i, 1)
636
- }
637
- }
638
- }
639
- },
640
- ToshowModal() {
641
- this.creatPlanWay = 'single'
642
- if (this.checkrows.length > 0) {
643
- this.showModal = true
644
- } else {
645
- this.$showMessage("请选择需要安检的用户!")
646
- }
647
- },
648
- FiltrationPlan(){
649
- if(this.model.rows.length == 0){
650
- this.$showMessage("暂无可生成的计划!")
651
- return
652
- }
653
- this.creatPlanWay = 'filtration'
654
- this.showModal = true
655
- },
656
- AllPlan() {
657
- if(this.model.rows.length == 0){
658
- this.$showMessage("暂无可生成的计划!")
659
- return
660
- }
661
- this.creatPlanWay = 'all'
662
- this.showModal = true
663
- },
664
- cancel() {
665
- this.showModal = false
666
- },
667
- areas() {
668
- let rs = []
669
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
670
- let temp = {
671
- label: this.$login.f.f_allArea[i].label,
672
- value: this.$login.f.f_allArea[i].label
673
- }
674
- rs.push(temp)
675
- }
676
- return [{label: '全部', value: ''}, ...rs]
677
- },
678
- initAdjustables() {
679
- console.log('初始化调压箱', this.$GetSaleParam)
680
- let arr = []
681
- let filter = this.$login.f.f_orgids
682
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
683
- let temp = {}
684
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
685
- temp.value = `${item.value.id}`
686
- arr.push(temp)
687
- })
688
- this.adjustables = [{label: '全部', value: ''}, ...arr]
689
- },
690
- },
691
-
692
- watch: {
693
- 'model.f_usertype'(val){
694
- if(val == '民用'){
695
- this.model.safeCycle = this.civil
696
- }else if(val == '非民用'){
697
- this.model.safeCycle = this.civilian
698
- }
699
- },
700
- 'model.SafeCheckXZ'(val) {
701
- this.model.SafeCheckSC = ''
702
- if (val == '已安检') {
703
- this.model.SafeCheckCQ = ''
704
- this.model.SafeCheckSX = {
705
- f_check_end: '', // 安检时间 查询起始条件
706
- f_check_start: ''// 安检时间 查询终止条件
707
- }
708
- } else {
709
- // 当使用筛选条件时,清空不需要的条件选项
710
- this.model.f_issue_start = ''
711
- this.model.f_issue_end = ''
712
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
713
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
714
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
715
- this.model.month = ''
716
- if(val == '应安检'){
717
- this.model.SafeCheckSC = '否'
718
-
719
- this.model.f_issue_start = Util.toStartDateString()
720
- this.model.f_issue_end = Util.toStandardDateString()
721
- }
722
- // this.model.f_checktime_start = ''
723
- // this.model.f_checktime_end = ''
724
- }
725
- },
726
- 'model.SafeCheckSC'(val) {
727
- if (val == '') {
728
- this.model.f_issue_start = ''
729
- this.model.f_issue_end = ''
730
- }
731
- },
732
- // 'checker'(val){
733
- // console.log("checker",this.checker)
734
- // if(val){
735
- // this.checkboxModel.f_checker = this.checker[0].name
736
- // this.checkboxModel.f_checker_id = this.checker[0].id
737
- // }
738
- // },
739
- 'model.rows'() {
740
- // if (!this.checkedAll) {//实现反选/
741
- // this.checkrows = [];
742
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
743
- var k = false
744
- for (let j = 0; j < this.checkrows.length; j++) {
745
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
746
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
747
- k = true
748
- continue
749
- }
750
- }
751
- if (!k) {
752
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
753
- }
754
- }
755
- // } else {//实现全选
756
- // // this.checkboxModel = {};
757
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
758
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
759
- // }
760
- // }
761
- }
762
- },
763
- computed: {
764
- selected() {
765
- return this.$refs.paged.$refs.grid.selected
766
- }
767
- }
768
- }
769
- </script>
770
- <style scoped>
771
- .newcolor{
772
- color:red;
773
- }
774
- .table th{
775
- background-color: #f2f6fa;
776
- color: black;
777
- }
778
- </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
+ </div>
25
+ <div class="col-sm-4" style="width: 20%">
26
+ <label class="font_normal_body"> &nbsp;&nbsp;&nbsp;地址&nbsp;&nbsp;&nbsp;</label>
27
+ <input type="text" class="input_search" v-model="model.f_address" id="f_address" style="width:60%;"
28
+ placeholder="地址" condition="f_address like '%{}%'">
29
+ </div>
30
+ <div class="col-sm-4" style="width: 20%">
31
+ <label class="font_normal_body">所属区域</label>
32
+ <v-select
33
+ placeholder='所属区域'
34
+ :value-single="true"
35
+ v-model='model.street'
36
+ :value.sync="model.street"
37
+ class="select select_list"
38
+ :options='$parent.$parent.streets'
39
+ condition="f_street ='{}'"
40
+ close-on-select clear-button> </v-select>
41
+ </div>
42
+ <!--<div class="col-sm-3 form-group form-input-group" style="width: 20%">-->
43
+ <!--<label class="control-label">用户类型</label>-->
44
+ <!--<v-select id="f_usertype"-->
45
+ <!--placeholder='用户类型'-->
46
+ <!--:value.sync="model.f_usertype"-->
47
+ <!--:value-single="true"-->
48
+ <!--:options='$parent.$parent.usertypes'-->
49
+ <!--v-model="model.f_usertype"-->
50
+ <!--condition="f_user_type = '{}'"-->
51
+ <!--close-on-select clear-button> </v-select>-->
52
+ <!--</div>-->
53
+ <div class="col-sm-4" style="width: 20%">
54
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
55
+ <v-select
56
+ placeholder='安检筛选'
57
+ :value-single="true"
58
+ class="select select_list"
59
+ :value.sync="$parent.$parent.SafeCheckXZ"
60
+ :options='$parent.$parent.SafeCheckXZs'
61
+ v-model="$parent.$parent.SafeCheckXZ"
62
+ close-on-select clear-button> </v-select>
63
+ </div>
64
+ <div class="col-sm-4" style="width: 20% " v-show="$parent.$parent.SafeCheckXZ=='未入户'">
65
+ <label class="font_normal_body">安检状态</label>
66
+ <v-select id="f_entry"
67
+ placeholder='安检状态'
68
+ :value.sync="model.f_check_state"
69
+ :value-single="true"
70
+ class="select select_list"
71
+ :options='$parent.$parent.checkstatus'
72
+ v-model="model.f_check_state"
73
+ close-on-select clear-button> </v-select>
74
+ </div>
75
+ <div class="col-sm-4" style="width: 20%">
76
+ <label class="font_normal_body">安检起始</label>
77
+ <datepicker
78
+ :value.sync="model.f_check_start"
79
+ placeholder='最后安检时间起始'
80
+ :disabled-days-of-week="[]"
81
+ class="select select_list"
82
+ style="width: 60%"
83
+ :format="'yyyy-MM-dd'"
84
+ :show-rest-button="reset"
85
+ v-model = "model.f_check_start">
86
+ </datepicker>
87
+ </div>
88
+ <div class="col-sm-4" style="width: 20%">
89
+ <label class="font_normal_body">安检结束</label>
90
+ <datepicker
91
+ :value.sync="model.f_check_end"
92
+ placeholder='最后安检时间结束'
93
+ :disabled-days-of-week="[]"
94
+ class="select select_list"
95
+ style="width: 60%"
96
+ :format="'yyyy-MM-dd'"
97
+ :show-rest-button="reset"
98
+ v-model = "model.f_check_end">
99
+ </datepicker>
100
+ </div>
101
+
102
+ <!--<div class="col-sm-4" style="width: 20%">
103
+ <label class="font_normal_body">安检状态</label>
104
+ <v-select id="f_entry"
105
+ placeholder='安检状态'
106
+ :value.sync="model.f_last_check_state"
107
+ :value-single="true"
108
+ class="select select_list"
109
+ :options='$parent.$parent.checkstatus'
110
+ v-model="model.f_last_check_state"
111
+ condition="f_last_check_state = '{}'"
112
+ close-on-select clear-button> </v-select>
113
+ </div>-->
114
+ <div class="col-sm-4" style="width: 20%">
115
+ <label class="font_normal_body">隐患情况</label>
116
+ <v-select
117
+ placeholder='隐患情况'
118
+ :value-single="true"
119
+ v-model='model.f_check_result'
120
+ class="select select_list"
121
+ :value.sync="model.f_check_result"
122
+ :options='$parent.$parent.f_check_results'
123
+ condition="f_last_check_result like '%{}%'"
124
+ close-on-select clear-button> </v-select>
125
+ </div>
126
+ <!--<div class="col-sm-4" style="width: 20%" v-if="$parent.$parent.orgstrs.length > 1">
127
+ <label class="font_normal_body">县域公司</label>
128
+ <v-select
129
+ placeholder='县域分公司'
130
+ :value-single="true"
131
+ v-model='model.f_orgstr'
132
+ :value.sync="model.f_orgstr"
133
+ class="select select_list"
134
+ :options='$parent.$parent.orgstrs'
135
+ condition="f_orgstr like '%{}%'"
136
+ close-on-select clear-button> </v-select>
137
+ </div>-->
138
+
139
+ <div class="row">
140
+ <div class="col-sm-4" style="width: 20%">
141
+ <label class="font_normal_body">开户起始</label>
142
+ <datepicker
143
+ :value.sync="model.f_createfile_start"
144
+ placeholder='开户起始时间'
145
+ :disabled-days-of-week="[]"
146
+ class="select select_list"
147
+ style="width: 60%"
148
+ :format="'yyyy-MM-dd'"
149
+ :show-rest-button="reset"
150
+ condition="f_createfile_date > '{} 00:00:00'"
151
+ v-model = "model.f_createfile_start">
152
+ </datepicker>
153
+ </div>
154
+ <div class="col-sm-4" style="width: 20%">
155
+ <label class="font_normal_body">开户结束</label>
156
+ <datepicker
157
+ :value.sync="model.f_createfile_end"
158
+ placeholder='开户结束时间'
159
+ :disabled-days-of-week="[]"
160
+ class="select select_list"
161
+ style="width: 60%"
162
+ :format="'yyyy-MM-dd'"
163
+ condition="f_createfile_date < '{} 23:59:00'"
164
+ :show-rest-button="reset"
165
+ v-model = "model.f_createfile_end">
166
+ </datepicker>
167
+ </div>
168
+ <div class="col-sm-4" style="width: 20%">
169
+ <label class="font_normal_body">是否入户</label>
170
+ <v-select
171
+ placeholder='今年是否入户'
172
+ :value-single="true"
173
+ class="select select_list"
174
+ :value.sync="$parent.$parent.hasHousehold"
175
+ :options='$parent.$parent.safe_rhs'
176
+ v-model="$parent.$parent.hasHousehold"
177
+ close-on-select clear-button> </v-select>
178
+ </div>
179
+ <div class="col-sm-8"></div>
180
+ <div style="float: right;margin-right: 10px">
181
+ <export-excel :data="$parent.$parent.searchData"
182
+ :field="$parent.$parent.excelHeaders"
183
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案" template-name='用户安检情况'></export-excel>
184
+ <div style="float: right" class="button_spacing"
185
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
186
+ @click="$parent.$parent.hiddenr()"></div>
187
+ </div>
188
+ <div class="span" style = "float:right;margin-right:10px">
189
+ <button class="btn btn-primary width-80" @click="search()">查询</button>
190
+ </div>
191
+ <div class="span" style = "float:right;margin-right:10px">
192
+ <button class="btn btn-primary width-80" @click="$parent.$parent.show1()">年度安检率查看</button>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </criteria>
198
+ <data-grid :model="model" partial="list" class="table table-bordered table table-hover" v-ref:grid>
199
+ <template partial='head'>
200
+ <tr>
201
+ <th><nobr>用户编号</nobr></th>
202
+ <th><nobr>用户名称</nobr></th>
203
+ <th><nobr>用户电话</nobr></th>
204
+ <th><nobr>今年入户次数</nobr></th>
205
+ <th><nobr>用户类型</nobr></th>
206
+ <th><nobr>小区名称</nobr></th>
207
+ <th><nobr>地址</nobr></th>
208
+ <th><nobr>建档日期</nobr></th>
209
+ <th><nobr>安检日期</nobr></th>
210
+ <th><nobr>安检状态</nobr></th>
211
+ <th><nobr>安检结果</nobr></th>
212
+ </tr>
213
+ </template>
214
+ <template partial='body'>
215
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_userinfo_code}}</td>
216
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_name}}</td>
217
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_user_phone}}</td>
218
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.rhcon?row.rhcon:0}}</td>
219
+ <td v-bind:class="{newcolor:row.code=='1'}" style="text-align: center">{{row.f_user_type}}</td>
220
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_residential_area}}</td>
221
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_address}}</td>
222
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_createfile_date}}</td>
223
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_date}}</td>
224
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_last_check_state}}</td>
225
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{$parent.$parent.$parent.getDefect(row.f_last_check_result)}}</td>
226
+ </template>
227
+ </data-grid>
228
+ </criteria-paged>
229
+ </div>
230
+ <modal :show.sync="showModal" v-ref:modal backdrop="false">
231
+ <div slot="modal-header" class="modal-header">
232
+ <h4 class="modal-title">
233
+ 年度安检率查看
234
+ </h4>
235
+ </div>
236
+ <div slot="modal-body" class="modal-body">
237
+ <div>
238
+ <form class="form-inline">
239
+ <div class="row form-group">
240
+ <div class="col-sm-4">
241
+ <label class="font_normal_body" >起始时间</label>
242
+ <datepicker
243
+ :value.sync="y_check_start"
244
+ placeholder='安检时间起始'
245
+ :disabled-days-of-week="[]"
246
+ class="select select_list"
247
+ style="width: 60%"
248
+ :format="'yyyy-MM-dd'"
249
+ :show-rest-button="reset"
250
+ v-model = "y_check_start">
251
+ </datepicker>
252
+ </div>
253
+ <div class="col-sm-4">
254
+ <label class="font_normal_body" >结束时间</label>
255
+ <datepicker
256
+ :value.sync="y_check_end"
257
+ placeholder='安检时间截止'
258
+ :disabled-days-of-week="[]"
259
+ class="select select_list"
260
+ style="width: 60%"
261
+ :format="'yyyy-MM-dd'"
262
+ :show-rest-button="reset"
263
+ v-model = "y_check_end">
264
+ </datepicker>
265
+ </div>
266
+ <button type="button" style="margin-left: 10px" class="button_search" @click="y_search()">查询</button>
267
+ </div>
268
+ <div class="row form-group">
269
+ <div class="col-sm-4">
270
+ <label class="font_normal_body">所属区域</label>
271
+ <v-select
272
+ placeholder='所属区域'
273
+ :value-single="true"
274
+ v-model='yearStreet'
275
+ :value.sync="yearStreet"
276
+ class="select select_list"
277
+ :options='streets'
278
+ close-on-select clear-button> </v-select>
279
+ </div>
280
+ </div>
281
+
282
+
283
+ <div style="width: 65%;height:100%; display: inline-block">
284
+ </div>
285
+
286
+ </form>
287
+ <hr>
288
+ <table class="table table_sy">
289
+ <thead>
290
+ <tr>
291
+ <th></th>
292
+ <th>总户数</th>
293
+ <th>安检入户数</th>
294
+ <th>一次安检率</th>
295
+ </tr>
296
+ </thead>
297
+ <tbody>
298
+ <tr v-for="row in yearmodel">
299
+ <td></td>
300
+ <td style="text-align: center;">{{row.con}}</td>
301
+ <td style="text-align: center;">{{row.rhcon}}</td>
302
+ <td style="text-align: center;">{{row.f_check_bv}}</td>
303
+ </tr>
304
+ </tbody>
305
+ </table>
306
+ </div>
307
+ </div>
308
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
309
+ <!--<button class="button_search button_spacing" @click="ok()">确认</button>-->
310
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
311
+ </div>
312
+ </modal>
313
+ </template>
314
+
315
+ <script>
316
+ import { PagedList } from 'vue-client'
317
+ import { HttpResetClass } from 'vue-client'
318
+ import co from 'co'
319
+ import * as Util from './../Util'
320
+ import Vue from 'vue'
321
+
322
+ // let select = function * (self,userid) {
323
+ // let http = new HttpResetClass()
324
+ // let getGasman = yield http.load('POST','/rs/search', {
325
+ // source: 'this.getChildByName($安检员$).getUsers()',
326
+ // userid: userid
327
+ // }, {resolveMsg: null, rejectMsg: null})
328
+ // console.log('获取安检员', getGasman)
329
+ // getGasman.data.forEach((checker)=>{
330
+ // self.checkersid.push({label:checker.name,value:checker.id})
331
+ // })
332
+ // self.checkersid.push({label:'全部',value:''})
333
+ // }
334
+
335
+
336
+ export default {
337
+ title: '非民用用户安检情况',
338
+ data() {
339
+ let options = []
340
+ let year = (new Date()).getFullYear()
341
+ for (let i = year; i <= year + 3; i++)
342
+ options.push({label: i + '', value: i + ''})
343
+ let moptions = []
344
+ for (let i = 1; i <= 12; i++)
345
+ moptions.push({label: i + '', value: i + ''})
346
+
347
+ return {
348
+ yearmodel:[],
349
+ y_check_start:`${new Date().getFullYear()}-01-01`,
350
+ y_check_end:`${new Date().getFullYear()}-12-31`,
351
+ searchData: {
352
+ condition: '1=1',
353
+ orderitem: "f_userinfo_code",
354
+
355
+ timetype:"dd" ,
356
+ f_filialeids:`(${this.$login.f.orgid})`
357
+ },
358
+ excelHeaders: {
359
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
360
+
361
+ 'f_userinfo_code': '用户编号',
362
+ 'f_user_name': '用户名称',
363
+ 'f_user_phone': '用户电话',
364
+ /*'count_item':'安检次数',*/
365
+ 'f_user_type': '用户类型',
366
+ 'f_residential_area': '小区名称',
367
+ 'f_address':'地址',
368
+ 'f_last_check_date':'安检日期',
369
+ 'f_last_check_state': '安检状态',
370
+ 'f_last_check_result':'安检结果'
371
+ },
372
+ 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})'`}),
373
+ orgstrs:[{label: '全部', value: ''}],
374
+ checkersid:[],
375
+ SafeCheckXZ:'',
376
+ civil:'', //民用安检周期
377
+ civilian:'', //非民用安检周期
378
+ SafeCheckXZs: [{label: '全部', value: ''},{label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
379
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''},],
380
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
381
+ IsShare:'否',
382
+ checker: {},
383
+ NoBuys:[{label: '是', value: '是'},{label: '否', value: '否'}],
384
+ criteriaShow: true,
385
+ checkers: [],
386
+ chosenOrg: {id: 0},
387
+ showModal: false,
388
+ checkedAll: false,
389
+ streets:[],
390
+ checkrows: [],
391
+ adjustables: [],
392
+ f_plan_year: year + '',
393
+ f_plan_month: moptions[new Date().getMonth()].value,
394
+ f_effective_start_time:'', //计划有效起始时间
395
+ f_effective_end_time:'', //计划有效结束时间
396
+ checkboxModel: {},
397
+ c_year_list: options,
398
+ c_month_list: moptions,
399
+ areas: this.areas(),
400
+ checkstatus: [{label: '全部', value: ''},{label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'}],
401
+ usertypes: this.usertypes(),
402
+ userstates: this.userstates(),
403
+ sqlname:'',
404
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'},{label: '有隐患', value: '有隐患'}],
405
+ creatPlanWay:'',
406
+ yearStreet:'',
407
+ safe_rhs: [{label: '全部', value: ''},{label: '今年已入户', value: '今年已入户'}, {label: '今年未入户', value: '今年未入户'}], // 安检筛选选项
408
+ hasHousehold:'',
409
+ check_item:'',
410
+ check_itemValue:''
411
+ }
412
+ },
413
+ props: {
414
+ checkplan: { // 传入一条安检计划信息
415
+ type: Object
416
+ },
417
+ additemshow:{
418
+ type:Boolean,
419
+ default:false
420
+ }
421
+ },
422
+ ready() {
423
+ // 获取分公司信息
424
+ this.getfengongsi()
425
+ this.model.chosenOrg = {id: 0}
426
+ this.model.f_filialeids = this.$login.f.f_orgids
427
+ this.model.f_filiale = this.$login.f.f_fengongsi
428
+ this.model.f_OrgStr = this.$login.f.orgpathstr
429
+ this.initstreets()
430
+ },
431
+ methods: {
432
+ show1(){
433
+ this.showModal=true
434
+ },
435
+ y_search(){
436
+ let condition=''
437
+ if(!this.y_check_start || !this.y_check_end){
438
+ this.$showMessage("请选择开始和结束时间")
439
+ }
440
+ condition += `and f_onsite_time > '${this.y_check_start} 00:00:00' and f_onsite_time < '${this.y_check_end} 23:59:59'`
441
+ new HttpResetClass().load('POST', 'api/af-safecheck/sql/FetchYearCheckRatio', {
442
+ data: {
443
+ condition: condition,
444
+ usertype:'非民用',
445
+ f_createfile_date:this.y_check_end+' 23:59:59',
446
+ f_street:this.yearStreet
447
+ }
448
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((res)=>{
449
+ console.log('---'+JSON.stringify(res))
450
+ this.yearmodel=res.data
451
+ })
452
+ },
453
+ //初始化街道 添加小区
454
+ async initstreets(){
455
+ this.streetslist = []
456
+ let HttpReset = new HttpResetClass()
457
+ let req = await HttpReset.load('POST', 'api/af-safecheck/sql/address_singleTableOrderBy', {
458
+ data: {
459
+ items: '*',
460
+ tablename: 't_street',
461
+ orderitem: 'id',
462
+ condition: `f_orgid = '${this.$login.f.orgid}'`
463
+ }
464
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
465
+ let redata = []
466
+ req.data.forEach((row, n) => {
467
+ redata[n] = {
468
+ label: row.f_street,
469
+ value: row.f_street,
470
+ data:row,
471
+ id:row.id
472
+ }
473
+ })
474
+ this.streets=redata
475
+ },
476
+ hiddenr() {
477
+ this.$parent.showItem = !this.$parent.showItem
478
+ },
479
+ hidden() {
480
+ this.criteriaShow = !this.criteriaShow
481
+ },
482
+ // 获取县域分公司内容
483
+ getfengongsi(){
484
+ let val = {source: 'this.getParentByType($organization$).getSpecialResByType($organization$)', userid: `${this.$login.f.id}`}
485
+ let http = new HttpResetClass()
486
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
487
+ res.data.forEach((item) => {
488
+ this.orgstrs.push({label: item.name, value: item.id})
489
+ })
490
+ console.log(this.orgstrs.length)
491
+ })
492
+ },
493
+ // 县域分公司发生改变
494
+ // orgstrchange(val){
495
+ // if(val == undefined || val == ''){
496
+ // return
497
+ // }else {
498
+ // this.checkersid = []
499
+ // let gen = select(this,val)
500
+ // return co(gen)
501
+ // }
502
+ // },
503
+ getDefect(val){
504
+ if(val){
505
+ try {
506
+ var defect = JSON.parse(val)
507
+ return defect.result
508
+ }catch (e) {
509
+ console.log(val)
510
+ return '正常'
511
+ }
512
+ }
513
+ return '正常'
514
+ },
515
+ checkerchange(val) {
516
+ this.checkboxModel.f_checker = val.name
517
+ this.checkboxModel.f_checker_id = val.id
518
+ },
519
+ search(args) {
520
+ if(this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')){
521
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
522
+ return
523
+ }
524
+ let con1='1=1 '
525
+ let con2='1=1 '
526
+ if(this.SafeCheckXZ == '已入户'){
527
+ args.condition += " and r > 0"
528
+ con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
529
+ con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
530
+ //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)"
531
+ } else if(this.SafeCheckXZ == '未入户') {
532
+ args.condition += " and r < 1"
533
+ con1 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
534
+ con2 += ` and f_offsite_time > '${args.model.f_check_start}' and f_offsite_time < '${args.model.f_check_end}'`
535
+ if(args.model.f_check_state=='到访不遇'){
536
+ args.condition += " and d > 0"
537
+ }else if(args.model.f_check_state=='拒检'){
538
+ args.condition += " and j > 0"
539
+ }
540
+ }
541
+ this.model.check_item=this.check_item
542
+ this.model.check_itemValue=this.check_itemValue
543
+ args.condition += " and f_filialeid = '" + this.$login.f.orgid + "' and f_user_type='非民用'"
544
+ this.searchData.condition=args.condition
545
+ this.model.con1=con1
546
+ this.model.con2=con2
547
+ return this.model.search( args.condition, args.model)
548
+ },
549
+ checkstatus() {
550
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]
551
+ },
552
+ usertypes() {
553
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
554
+ },
555
+ userstates() {
556
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
557
+ },
558
+ show() {
559
+ this.criteriaShow = true
560
+ },
561
+ hidden() {
562
+ this.criteriaShow = false
563
+ },
564
+ confirm() {
565
+ if (!this.checkboxModel.f_plan_name) {
566
+ this.$showMessage('请填写安检计划名称!')
567
+ return
568
+ }
569
+ // if(this.f_effective_start_time == ''){
570
+ // this.$showMessage('请选择有效起始日期!')
571
+ // return
572
+ // }
573
+ // if(this.f_effective_end_time == ''){
574
+ // this.$showMessage('请选择有效结束日期!')
575
+ // return
576
+ // }
577
+ if(this.IsShare == '否'){
578
+ if (!this.checkboxModel.f_checker_id) {
579
+ this.$showMessage('请选择安检员!')
580
+ return
581
+ }
582
+ }
583
+ let gen = saveGen(this)
584
+ return co(gen)
585
+ },
586
+ changeStates() {
587
+ if (this.checkedAll) {//实现反选/
588
+ this.checkrows = [];
589
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
590
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
591
+ }
592
+ } else {//实现全选
593
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
594
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
595
+ }
596
+ let _this = this
597
+ let condition = this.$refs.paged.$refs.criteria.condition
598
+ let url = this.model.url
599
+ this.$resetpost(`${url}?pageSize=9999999`, {
600
+ data: {
601
+ condition: condition,
602
+ groupitem: '',
603
+ orderitem: 'f_residential_area',
604
+ f_usertype:this.model.f_usertype,
605
+ f_filialeids: this.model.f_filialeids,
606
+ month: this.model.month,
607
+ safeCycle:this.model.safeCycle,
608
+ f_checktime_start:this.model.f_checktime_start,
609
+ f_checktime_end:this.model.f_checktime_end,
610
+ SafeCheckSX: this.model.SafeCheckSX,
611
+ f_last_check_state: this.model.f_last_check_state
612
+ },
613
+ },{resolveMsg: null, rejectMsg: null}, -1).then(
614
+ (respanse) => {
615
+ if (respanse.data.length >= 5000) {
616
+ this.$showMessage("数据量太大,请重新选择")
617
+ } else {
618
+ _this.checkrows = []
619
+ for (let j = 0; j < respanse.data.length; j++) {
620
+ _this.checkrows.push(respanse.data[j])
621
+ }
622
+ console.log(_this.checkrows);
623
+ }
624
+ })
625
+ }
626
+ },
627
+ addChecked(item) {
628
+ console.log(item);
629
+ if (!item.checked) {
630
+ this.checkrows.push(item);
631
+ console.log(this.checkrows);
632
+ } else {
633
+ for (let i = 0; i < this.checkrows.length; i++) {
634
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
635
+ this.checkrows.splice(i, 1)
636
+ }
637
+ }
638
+ }
639
+ },
640
+ ToshowModal() {
641
+ this.creatPlanWay = 'single'
642
+ if (this.checkrows.length > 0) {
643
+ this.showModal = true
644
+ } else {
645
+ this.$showMessage("请选择需要安检的用户!")
646
+ }
647
+ },
648
+ FiltrationPlan(){
649
+ if(this.model.rows.length == 0){
650
+ this.$showMessage("暂无可生成的计划!")
651
+ return
652
+ }
653
+ this.creatPlanWay = 'filtration'
654
+ this.showModal = true
655
+ },
656
+ AllPlan() {
657
+ if(this.model.rows.length == 0){
658
+ this.$showMessage("暂无可生成的计划!")
659
+ return
660
+ }
661
+ this.creatPlanWay = 'all'
662
+ this.showModal = true
663
+ },
664
+ cancel() {
665
+ this.showModal = false
666
+ },
667
+ areas() {
668
+ let rs = []
669
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
670
+ let temp = {
671
+ label: this.$login.f.f_allArea[i].label,
672
+ value: this.$login.f.f_allArea[i].label
673
+ }
674
+ rs.push(temp)
675
+ }
676
+ return [{label: '全部', value: ''}, ...rs]
677
+ },
678
+ initAdjustables() {
679
+ console.log('初始化调压箱', this.$GetSaleParam)
680
+ let arr = []
681
+ let filter = this.$login.f.f_orgids
682
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
683
+ let temp = {}
684
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
685
+ temp.value = `${item.value.id}`
686
+ arr.push(temp)
687
+ })
688
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
689
+ },
690
+ },
691
+
692
+ watch: {
693
+ 'model.f_usertype'(val){
694
+ if(val == '民用'){
695
+ this.model.safeCycle = this.civil
696
+ }else if(val == '非民用'){
697
+ this.model.safeCycle = this.civilian
698
+ }
699
+ },
700
+ 'model.SafeCheckXZ'(val) {
701
+ this.model.SafeCheckSC = ''
702
+ if (val == '已安检') {
703
+ this.model.SafeCheckCQ = ''
704
+ this.model.SafeCheckSX = {
705
+ f_check_end: '', // 安检时间 查询起始条件
706
+ f_check_start: ''// 安检时间 查询终止条件
707
+ }
708
+ } else {
709
+ // 当使用筛选条件时,清空不需要的条件选项
710
+ this.model.f_issue_start = ''
711
+ this.model.f_issue_end = ''
712
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
713
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
714
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
715
+ this.model.month = ''
716
+ if(val == '应安检'){
717
+ this.model.SafeCheckSC = '否'
718
+
719
+ this.model.f_issue_start = Util.toStartDateString()
720
+ this.model.f_issue_end = Util.toStandardDateString()
721
+ }
722
+ // this.model.f_checktime_start = ''
723
+ // this.model.f_checktime_end = ''
724
+ }
725
+ },
726
+ 'model.SafeCheckSC'(val) {
727
+ if (val == '') {
728
+ this.model.f_issue_start = ''
729
+ this.model.f_issue_end = ''
730
+ }
731
+ },
732
+ // 'checker'(val){
733
+ // console.log("checker",this.checker)
734
+ // if(val){
735
+ // this.checkboxModel.f_checker = this.checker[0].name
736
+ // this.checkboxModel.f_checker_id = this.checker[0].id
737
+ // }
738
+ // },
739
+ 'model.rows'() {
740
+ // if (!this.checkedAll) {//实现反选/
741
+ // this.checkrows = [];
742
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
743
+ var k = false
744
+ for (let j = 0; j < this.checkrows.length; j++) {
745
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
746
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
747
+ k = true
748
+ continue
749
+ }
750
+ }
751
+ if (!k) {
752
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
753
+ }
754
+ }
755
+ // } else {//实现全选
756
+ // // this.checkboxModel = {};
757
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
758
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
759
+ // }
760
+ // }
761
+ }
762
+ },
763
+ computed: {
764
+ selected() {
765
+ return this.$refs.paged.$refs.grid.selected
766
+ }
767
+ }
768
+ }
769
+ </script>
770
+ <style scoped>
771
+ .newcolor{
772
+ color:red;
773
+ }
774
+ .table th{
775
+ background-color: #f2f6fa;
776
+ color: black;
777
+ }
778
+ </style>