safecheck-client 3.0.30-62-t11 → 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 (244) 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 +1957 -1957
  30. package/src/components/pc/PaperChazhiMain.vue +504 -504
  31. package/src/components/pc/PaperDefectMain.vue +1 -1
  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/pc/CheckDetail.vue +205 -205
  77. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -1110
  78. package/src/filiale/bayan/pc/DefectPaperNew.vue +1239 -1239
  79. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  80. package/src/filiale/bayan/pc/SelectCheckPlan.vue +396 -396
  81. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -1066
  82. package/src/filiale/dexin/pc/PaperList.vue +805 -805
  83. package/src/filiale/fugou/pc/DefectPaperNew.vue +1085 -1085
  84. package/src/filiale/fugou/pc/PaperDefectMain.vue +928 -928
  85. package/src/filiale/fugou/pc/PaperList.vue +911 -911
  86. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  87. package/src/filiale/fugou/pc/checkUserList.vue +904 -904
  88. package/src/filiale/fugu/pc/CheckSearchUser.vue +977 -977
  89. package/src/filiale/fugu/pc/SelectCheckPlan.vue +273 -273
  90. package/src/filiale/fugu/pc/planmanage/checkUserList.vue +688 -688
  91. package/src/filiale/ganquan/pc/DefectPaperNew.vue +1009 -1009
  92. package/src/filiale/ganquan/pc/PaperList.vue +654 -654
  93. package/src/filiale/ganquan/pc/PaperVisitMain.vue +166 -166
  94. package/src/filiale/ganquan/pc/SelectCheckPlan.vue +234 -234
  95. package/src/filiale/ganquan/pc/checkUserList.vue +681 -681
  96. package/src/filiale/gehua/pc/PaperList.vue +558 -558
  97. package/src/filiale/gehua/pc/checkUserList.vue +720 -720
  98. package/src/filiale/guangxi/pc/CheckPlanAreaList.vue +471 -471
  99. package/src/filiale/guangxi/pc/DefectPaperNew.vue +988 -988
  100. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +1127 -1127
  101. package/src/filiale/hanzhong/pc/CheckUserList.vue +755 -755
  102. package/src/filiale/hanzhong/pc/PaperList.vue +702 -702
  103. package/src/filiale/huaran/pc/PaperList.vue +843 -843
  104. package/src/filiale/huaran/pc/checkPlanList.vue +419 -419
  105. package/src/filiale/huaran/pc/checkUserList.vue +900 -900
  106. package/src/filiale/huatong/pc/PaperDefectMain.vue +800 -800
  107. package/src/filiale/huatong/pc/PaperList.vue +789 -789
  108. package/src/filiale/huayin/pc/PaperList.vue +621 -621
  109. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +1011 -1011
  110. package/src/filiale/jinbin/pc/CheckPlanAreaList.vue +479 -479
  111. package/src/filiale/jingyang/pc/CheckSearchUser.vue +1062 -1062
  112. package/src/filiale/jingyang/pc/PaperList.vue +793 -793
  113. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -543
  114. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +476 -476
  115. package/src/filiale/kelai/pc/CheckSearchUser.vue +1011 -1011
  116. package/src/filiale/kelai/pc/DefectPaperNew.vue +1090 -1090
  117. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasPaper.vue +897 -897
  118. package/src/filiale/kelai/pc/PaperList.vue +596 -596
  119. package/src/filiale/kelai/pc/checkUserList.vue +698 -698
  120. package/src/filiale/liaoyuan/pc/CheckSearchUser.vue +963 -963
  121. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +1011 -1011
  122. package/src/filiale/liaoyuan/pc/PaperList.vue +637 -637
  123. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -373
  124. package/src/filiale/lixian/pc/CheckPlanAreaList.vue +467 -467
  125. package/src/filiale/lixian/pc/CheckSearchUser.vue +927 -927
  126. package/src/filiale/lixian/pc/PaperChazhiMain.vue +540 -540
  127. package/src/filiale/lixian/pc/PaperDefectMain.vue +551 -551
  128. package/src/filiale/lixian/pc/PaperList.vue +620 -620
  129. package/src/filiale/lixian/pc/checkPlanList.vue +366 -366
  130. package/src/filiale/lixian/pc/checkUserList.vue +761 -761
  131. package/src/filiale/minsheng/pc/CheckSearchUser.vue +976 -976
  132. package/src/filiale/minsheng/pc/checkUserList.vue +806 -806
  133. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1012 -1012
  134. package/src/filiale/pingxiang/pc/PaperList.vue +595 -595
  135. package/src/filiale/qianneng/pc/DefectPaperNew.vue +1072 -1072
  136. package/src/filiale/qianneng/pc/NoCheckplanSafecheck.vue +220 -220
  137. package/src/filiale/qianneng/pc/PaperList.vue +777 -777
  138. package/src/filiale/qianneng/pc/checkPlanList.vue +429 -429
  139. package/src/filiale/qianneng/pc/checkUserList.vue +871 -871
  140. package/src/filiale/qingjian/pc/PaperDefectMain.vue +895 -895
  141. package/src/filiale/qingtongxia/pc/PaperDefectMain.vue +858 -858
  142. package/src/filiale/rizhao/pc/PaperList.vue +714 -714
  143. package/src/filiale/rongchuang/pc/PaperList.vue +812 -812
  144. package/src/filiale/rongchuang/pc/checkUserList.vue +621 -621
  145. package/src/filiale/shanxian/pc/CheckDetail.vue +205 -205
  146. package/src/filiale/shanxian/pc/CheckSearchUser.vue +1114 -1114
  147. package/src/filiale/shanxian/pc/DefectPaperNew.vue +1096 -1096
  148. package/src/filiale/shanxian/pc/PaperList.vue +785 -785
  149. package/src/filiale/shanxian/pc/SelectCheckPlan.vue +324 -324
  150. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  151. package/src/filiale/shaoguan/pc/PaperList.vue +589 -589
  152. package/src/filiale/shexian/pc/DefectPaperNew.vue +1161 -1161
  153. package/src/filiale/shexian/pc/PaperDefectMain.vue +893 -893
  154. package/src/filiale/shexian/pc/PaperList.vue +822 -822
  155. package/src/filiale/shimen/pc/CheckPlanAreaList.vue +463 -463
  156. package/src/filiale/shimen/pc/CheckSearchUser.vue +927 -927
  157. package/src/filiale/shimen/pc/PaperDefectMain.vue +589 -589
  158. package/src/filiale/shimen/pc/PaperList.vue +547 -547
  159. package/src/filiale/shiquan/pc/checkUserList.vue +755 -755
  160. package/src/filiale/siyang/pc/CheckPlanAreaList.vue +512 -512
  161. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  162. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -864
  163. package/src/filiale/siyang/pc/PaperList.vue +834 -834
  164. package/src/filiale/siyang/pc/checkPlanList.vue +367 -367
  165. package/src/filiale/siyang/pc/checkUserList.vue +765 -765
  166. package/src/filiale/tianke/pc/PaperDefectMain.vue +891 -891
  167. package/src/filiale/tongchuan/pc/CheckDetail.vue +205 -205
  168. package/src/filiale/tongchuan/pc/CheckPlanAreaList.vue +502 -502
  169. package/src/filiale/tongchuan/pc/CheckPlanUserList.vue +246 -246
  170. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1045 -1045
  171. package/src/filiale/tongchuan/pc/DefectPaper.vue +764 -764
  172. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +593 -593
  173. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +213 -213
  174. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  175. package/src/filiale/tongchuan/pc/PaperList.vue +670 -670
  176. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +296 -296
  177. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  178. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  179. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  180. package/src/filiale/weinan/pc/CheckDetailOutHelp.vue +297 -297
  181. package/src/filiale/weinan/pc/CheckNoDetail.vue +259 -259
  182. package/src/filiale/weinan/pc/CheckPlanUserList.vue +338 -338
  183. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -1078
  184. package/src/filiale/weinan/pc/DefectPaperNew.vue +1096 -1096
  185. package/src/filiale/weinan/pc/PaperDefectMain.vue +576 -576
  186. package/src/filiale/weinan/pc/PaperList.vue +674 -674
  187. package/src/filiale/weinan/pc/SelectCheckNoPlan.vue +299 -299
  188. package/src/filiale/weinan/pc/SelectCheckPlan.vue +389 -389
  189. package/src/filiale/weinan/pc/SelectCheckPlanOutHelp.vue +446 -446
  190. package/src/filiale/weinan/pc/checkPlanList.vue +456 -456
  191. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  192. package/src/filiale/weinanct/pc/PaperList.vue +593 -593
  193. package/src/filiale/wensu/pc/CheckDetail.vue +205 -205
  194. package/src/filiale/wensu/pc/CheckSearchUser.vue +1238 -1238
  195. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  196. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  197. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  198. package/src/filiale/wenxi/pc/CheckPlanAreaList.vue +456 -456
  199. package/src/filiale/wenxi/pc/CheckPlanUserList.vue +217 -217
  200. package/src/filiale/wenxi/pc/CheckSearchUser.vue +991 -991
  201. package/src/filiale/wenxi/pc/DefectPaper.vue +663 -663
  202. package/src/filiale/wenxi/pc/PaperDefectMain.vue +790 -790
  203. package/src/filiale/wenxi/pc/PaperList.vue +949 -949
  204. package/src/filiale/wenxi/pc/checkPlanList.vue +517 -517
  205. package/src/filiale/wenxi/pc/checkUserList.vue +695 -695
  206. package/src/filiale/wuan/pc/DefectPaperWeiXiu.vue +515 -515
  207. package/src/filiale/wuan/pc/PaperList.vue +562 -562
  208. package/src/filiale/wuhai/pc/CheckSearchUser.vue +959 -959
  209. package/src/filiale/wuhai/pc/PaperList.vue +785 -785
  210. package/src/filiale/wuhai/pc/checkUserList.vue +611 -611
  211. package/src/filiale/xilan/pc/PaperList.vue +795 -795
  212. package/src/filiale/xilan/pc/checkUserList.vue +772 -772
  213. package/src/filiale/xinkang/pc/CheckPlanAreaList.vue +425 -425
  214. package/src/filiale/xinkang/pc/CheckPlanUserList.vue +216 -216
  215. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  216. package/src/filiale/xinkang/pc/DefectPaperWeiXiu.vue +538 -538
  217. package/src/filiale/xinkang/pc/PaperDefectMain.vue +525 -525
  218. package/src/filiale/xinkang/pc/PaperList.vue +603 -603
  219. package/src/filiale/xinkang/pc/checkUserList.vue +639 -639
  220. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  221. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  222. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  223. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  224. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1046 -1046
  225. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  226. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -1092
  227. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -1105
  228. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +557 -557
  229. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -872
  230. package/src/filiale/yongzhou/pc/PaperList.vue +798 -798
  231. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -364
  232. package/src/filiale/yongzhou/pc/checkUserList.vue +752 -752
  233. package/src/filiale/yongzhou/pc/communityDetail.vue +194 -194
  234. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +138 -138
  235. package/src/filiale/yongzhou/pc/safeDetail.vue +539 -539
  236. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +455 -455
  237. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +267 -267
  238. package/src/filiale/yuansheng/pc/PaperList.vue +621 -621
  239. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  240. package/src/filiale/zhongsheng/pc/CheckPlanAreaList.vue +495 -495
  241. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +515 -515
  242. package/src/filiale/zhongsheng/pc/PaperList.vue +644 -644
  243. package/src/filiale/zhoukou/pc/CheckSearchUser.vue +923 -923
  244. package/src/filiale/zhoukou/pc/PaperDefectMain.vue +465 -465
@@ -1,703 +1,703 @@
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"> &nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
12
- <v-select
13
- placeholder='小区选择'
14
- :value-single="true"
15
- v-model='model.f_residential_area'
16
- :value.sync="model.f_residential_area"
17
- class="select select_list"
18
- :options='$parent.$parent.villagesChick'
19
- condition="f_residential_area like '%{}%'"
20
- close-on-select clear-button search valueSingle="true"></v-select>
21
- </div>
22
- <div class="col-sm-4" style="width: 20%">
23
- <label class="font_normal_body">所属区域</label>
24
- <v-select
25
- placeholder='所属区域'
26
- :value-single="true"
27
- v-model='model.street'
28
- :value.sync="model.street"
29
- class="select select_list"
30
- :options='$parent.$parent.streets'
31
- condition="tui.f_street ='{}'"
32
- close-on-select clear-button></v-select>
33
- </div>
34
-
35
- <div class="col-sm-4" style="width: 12%;margin-left: 2%">
36
- <datepicker id="startyear"
37
- v-model='model.startyear'
38
- :value.sync="model.startyear"
39
- placeholder="下发开始年"
40
- :disabled-days-of-Week="[]"
41
- :format="'yyyy'"
42
- :show-reset-button="reset">
43
- </datepicker>
44
- </div>
45
- <div class="col-sm-4" style="width: 12%;margin-left: 2%">
46
- <datepicker id="startmon"
47
- v-model='model.startmon'
48
- :value.sync="model.startmon"
49
- placeholder="下发开始月"
50
- :disabled-days-of-Week="[]"
51
- :format="'MM'"
52
- :show-reset-button="reset">
53
- </datepicker>
54
- </div>
55
- <div class="col-sm-4" style="width: 12% ;margin-left: 2%">
56
- <datepicker id="endyear"
57
- v-model='model.endyear'
58
- :value.sync="model.endyear"
59
- placeholder="下发结束年"
60
- :disabled-days-of-Week="[]"
61
- :format="'yyyy'"
62
- :show-reset-button="reset">
63
- </datepicker>
64
- </div>
65
- <div class="col-sm-4" style="width: 12% ;margin-left: 2%">
66
- <datepicker id="endmon"
67
- v-model='model.endmon'
68
- :value.sync="model.endmon"
69
- placeholder="下发结束月"
70
- :disabled-days-of-Week="[]"
71
- :format="'MM'"
72
- :show-reset-button="reset">
73
- </datepicker>
74
- </div>
75
-
76
- </div>
77
- <div class="row">
78
- <div class="col-sm-4" style="width: 12%;margin-left: 2%">
79
- <datepicker id="startdate1"
80
- v-model='model.date3'
81
- :value.sync="model.date3"
82
- placeholder="安检开始时间"
83
- :disabled-days-of-Week="[]"
84
- :format="'yyyy-MM-dd'"
85
- :show-reset-button="reset">
86
- </datepicker>
87
- </div>
88
- <div class="col-sm-4" style="width: 12%;margin-left: 2%">
89
- <datepicker id="enddate1"
90
- v-model='model.date4'
91
- :value.sync="model.date4"
92
- placeholder="安检结束时间"
93
- :disabled-days-of-Week="[]"
94
- :format="'yyyy-MM-dd'"
95
- :show-reset-button="reset">
96
- </datepicker>
97
- </div>
98
- <div class="col-sm-4" style="width: 20%">
99
- <label class="font_normal_body">是否派发</label>
100
- <v-select
101
- placeholder='是否派发'
102
- :value-single="true"
103
- v-model='model.is_sell'
104
- :value.sync="model.is_sell"
105
- class="select select_list"
106
- :options='$parent.$parent.is_sells'
107
- close-on-select clear-button></v-select>
108
- </div>
109
- <div class="col-sm-4" style="width: 20%">
110
- <label class="font_normal_body">用户类型</label>
111
- <v-select
112
- placeholder='用户类型'
113
- :value-single="true"
114
- v-model='model.f_user_type'
115
- :value.sync="model.f_user_type"
116
- class="select select_list"
117
- :options='$parent.$parent.user_types'
118
- close-on-select clear-button></v-select>
119
- </div>
120
- <div class="col-sm-8"></div>
121
- <div style="float: right;margin-right: 10px">
122
- <export-excel :data="$parent.$parent.searchData"
123
- :field="$parent.$parent.excelHeaders"
124
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="getAreaSafeRatioList"
125
- template-name='小区安检率汇总'></export-excel>
126
- <div style="float: right" class="button_spacing"
127
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
128
- @click="$parent.$parent.hiddenr()"></div>
129
- </div>
130
- <div class="span" style="float:right;margin-right:10px">
131
- <button class="btn btn-primary width-80" @click="search()">查询</button>
132
- </div>
133
- </div>
134
- </div>
135
- </criteria>
136
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
137
- <template partial='head'>
138
- <tr>
139
- <th>
140
- <nobr>小区名称</nobr>
141
- </th>
142
- <th>
143
- <nobr>小区总户数</nobr>
144
- </th>
145
- <th>
146
- <nobr>应派发户数</nobr>
147
- </th>
148
- <th>
149
- <nobr>已派发户数</nobr>
150
- </th>
151
- <th>
152
- <nobr>未派发户数</nobr>
153
- </th>
154
- <th>
155
- <nobr>入户数</nobr>
156
- </th>
157
- <th>
158
- <nobr>不遇数</nobr>
159
- </th>
160
- <th>
161
- <nobr>拒检数</nobr>
162
- </th>
163
- <th>
164
- <nobr>未检数</nobr>
165
- </th>
166
- <th>
167
- <nobr>安检率</nobr>
168
- </th>
169
- </tr>
170
- </template>
171
- <template partial='body'>
172
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_residential_area}}</td>
173
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.allhushu}}</td>
174
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.needxiafa}}</td>
175
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.yxiafa}}</td>
176
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.wxiafa}}</td>
177
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.ruhu}}</td>
178
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.buyu}}</td>
179
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.jujian}}</td>
180
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.weijian}}</td>
181
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_check_bv}}</td>
182
- </template>
183
- </data-grid>
184
- </criteria-paged>
185
- </div>
186
- </template>
187
-
188
- <script>
189
- import {PagedList} from 'vue-client'
190
- import {HttpResetClass} from 'vue-client'
191
- import co from 'co'
192
- import * as Util from './../Util'
193
- import Vue from 'vue'
194
-
195
- export default {
196
- title: '小区安检率统计页面',
197
- data() {
198
- let options = []
199
- let year = (new Date()).getFullYear()
200
- for (let i = year; i <= year + 3; i++)
201
- options.push({label: i + '', value: i + ''})
202
- let moptions = []
203
- for (let i = 1; i <= 12; i++)
204
- moptions.push({label: i + '', value: i + ''})
205
-
206
- return {
207
- model: new PagedList('api/af-safecheck/sql/getAreaSafeRatioList', 20, {
208
- orderitem: "'f_userinfo_code'",
209
- startyear: 'this.startyear',
210
- startmon: 'this.startmon',
211
- endyear: 'this.endyear',
212
- endmon: 'this.endmon',
213
- timetype: "'dd'",
214
- con1: "this.con1",
215
- f_itemname: 'this.check_item',
216
- f_itemvalue: 'this.check_itemValue',
217
- f_filialeids: `'(${this.$login.f.orgid})'`
218
- }),
219
- date1: '',
220
- date2: '',
221
- startyear: `${new Date().getFullYear()}`,
222
- startmon: '01',
223
- is_sells:[{label: '全部', value: ''}, {label: '已下发', value: '已下发'}, {label: '未下发', value: '未下发'}],
224
- endyear: `${new Date().getFullYear()}`,
225
- endmon: `${new Date().getMonth() + 1}`,
226
- f_check_start: `${new Date().getFullYear()}-01-01`,
227
- y_check_end: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
228
- searchData: {
229
- condition: '1=1',
230
- con1: '1=1',
231
- f_itemvalue: '',
232
- f_itemname: '',
233
- orderitem: "f_userinfo_code",
234
- timetype: "dd",
235
- f_filialeids: `(${this.$login.f.orgid})`,
236
- startyear: '',
237
- startmon: '',
238
- endyear: '',
239
- endmon: '',
240
- },
241
- excelHeaders: {
242
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
243
- 'f_residential_area': '小区名称',
244
- 'allhushu': '小区总户数',
245
- 'needxiafa': '应派发户数',
246
- 'yxiafa': '已派发户数',
247
- 'wxiafa': '未派发户数',
248
- 'ruhu': '入户数',
249
- 'buyu': '不遇数',
250
- 'jujian': '拒检数',
251
- 'weijian': '未检数',
252
- 'f_check_bv': '安检率'
253
- },
254
- orgstrs: [{label: '全部', value: ''}],
255
- user_types:[{label: '全部', value: ''},{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],
256
- checkersid: [],
257
- SafeCheckXZ: '',
258
- civil: '', //民用安检周期
259
- civilian: '', //非民用安检周期
260
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
261
- safe_rhs: [{label: '全部', value: ''}, {label: '今年已入户', value: '今年已入户'}, {label: '今年未入户', value: '今年未入户'}], // 安检筛选选项
262
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''},],
263
- checkstatus: [{label: '全部', value: ''}, {label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'}],
264
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
265
- IsShare: '否',
266
- checker: {},
267
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
268
- criteriaShow: true,
269
- checkers: [],
270
- chosenOrg: {id: 0},
271
- checkedAll: false,
272
- checkrows: [],
273
- yearmodel: [],
274
- streets: [],
275
- adjustables: [],
276
- f_plan_year: year + '',
277
- f_plan_month: moptions[new Date().getMonth()].value,
278
- f_effective_start_time: '', //计划有效起始时间
279
- f_effective_end_time: '', //计划有效结束时间
280
- checkboxModel: {},
281
- c_year_list: options,
282
- c_month_list: moptions,
283
- areas: this.areas(),
284
- //checkstatus: this.checkstatus(),
285
- // usertypes: this.usertypes(),
286
- // userstates: this.userstates(),
287
- sqlname: '',
288
- creatPlanWay: '',
289
- showModal: false,
290
- yearStreet: '',
291
- villagesModel: '', //小区绑定值
292
- villagesChick: [], //小区选择值
293
- buildingModel: '', //地址绑定值
294
- buildingChick: [], //地址选择值
295
- hasHousehold: '',
296
- // check_items: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检项名')],
297
- check_item: '',
298
- check_itemValue: ''
299
- }
300
- },
301
- props: {
302
- checkplan: { // 传入一条安检计划信息
303
- type: Object
304
- },
305
- additemshow: {
306
- type: Boolean,
307
- default: false
308
- }
309
- },
310
- ready() {
311
- // 获取分公司信息
312
- this.getfengongsi()
313
- this.model.chosenOrg = {id: 0}
314
- this.model.f_filialeids = this.$login.f.f_orgids
315
- this.model.f_filiale = this.$login.f.f_fengongsi
316
- this.model.f_OrgStr = this.$login.f.orgpathstr
317
- this.initstreets()
318
-
319
- //小区初始化
320
- this.initVillage()
321
- this.$refs.paged.$refs.criteria.model.f_user_type = '民用'
322
- this.$refs.paged.$refs.criteria.search();
323
- },
324
- methods: {
325
- show1() {
326
- this.showModal = true
327
- },
328
- y_search() {
329
- let condition = ''
330
- if (!this.y_check_start || !this.y_check_end) {
331
- this.$showMessage("请选择开始和结束时间")
332
- }
333
- condition += `and f_onsite_time > '${this.y_check_start} 00:00:00' and f_onsite_time < '${this.y_check_end} 23:59:59'`
334
- new HttpResetClass().load('POST', 'api/af-safecheck/sql/FetchYearCheckRatio', {
335
- data: {
336
- condition: condition,
337
- f_createfile_date: this.y_check_end + ' 23:59:59',
338
- usertype: '民用',
339
- f_street: this.yearStreet
340
- }
341
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((res) => {
342
- console.log('---' + JSON.stringify(res))
343
- this.yearmodel = res.data
344
- })
345
- },
346
- //初始化小区
347
- async initVillage() {
348
- this.villagesChick = []
349
- let HttpReset = new HttpResetClass()
350
- let req = await HttpReset.load('POST', 'api/af-safecheck/sql/safe_singleTable_GroupBy', {
351
- data: {
352
- items: 'f_residential_area',
353
- tablename: 't_area',
354
- condition: '1 = 1',
355
- groupitem: 'f_residential_area'
356
- }
357
- }, {resolveMsg: null, rejectMsg: '获取小区列表失败!'})
358
- let redata = []
359
- req.data.forEach((row, n) => {
360
- redata.push({label: row.f_residential_area, value: row.f_residential_area, data: row})
361
- })
362
- redata.push({label: '非民用小区', value: '非民用小区'})
363
- redata.unshift({label: '全部', value: '', data: ''})
364
- this.villagesChick = redata
365
- },
366
- //初始化街道 添加小区
367
- async initstreets() {
368
- this.streetslist = []
369
- let HttpReset = new HttpResetClass()
370
- let req = await HttpReset.load('POST', 'api/af-safecheck/sql/address_singleTableOrderBy', {
371
- data: {
372
- items: '*',
373
- tablename: 't_street',
374
- orderitem: 'id',
375
- condition: `f_orgid = '${this.$login.f.orgid}'`
376
- }
377
- }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
378
- let redata = []
379
- req.data.forEach((row, n) => {
380
- redata.push({label: row.f_street, value: row.f_street, data: row, id: row.id})
381
- })
382
- this.streets = redata
383
- },
384
- hiddenr() {
385
- this.$parent.showItem = !this.$parent.showItem
386
- },
387
- hidden() {
388
- this.criteriaShow = !this.criteriaShow
389
- },
390
- // 获取县域分公司内容
391
- getfengongsi() {
392
- let val = {
393
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
394
- userid: `${this.$login.f.id}`
395
- }
396
- let http = new HttpResetClass()
397
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
398
- res.data.forEach((item) => {
399
- this.orgstrs.push({label: item.name, value: item.id})
400
- })
401
- console.log(this.orgstrs.length)
402
- })
403
- },
404
- getDefect(val) {
405
- if (val) {
406
- try {
407
- var defect = JSON.parse(val)
408
- return defect.result
409
- } catch (e) {
410
- console.log(val)
411
- return '正常'
412
- }
413
- }
414
- return '正常'
415
- },
416
- checkerchange(val) {
417
- this.checkboxModel.f_checker = val.name
418
- this.checkboxModel.f_checker_id = val.id
419
- },
420
- search(args) {
421
- let con1 = '1=1 and'
422
- if (args.model.date3 && args.model.date4) {
423
- con1 += ` f_onsite_time >= '${args.model.date3}' and f_onsite_time <= '${args.model.date4}'`
424
- } else if (args.model.date3 && (args.model.date4 ==''|| args.model.date4 ==null )){
425
- this.$showMessage('需要选择安检结束时间!')
426
- return
427
- }else if(args.model.date4 && (args.model.date3 ==''|| args.model.date3 ==null )){
428
- this.$showMessage('需要选择安检开始时间!')
429
- return
430
- }else{
431
- con1 += ` f_onsite_time >= '${this.f_check_start}' and f_onsite_time <= '${this.y_check_end}'`
432
- }
433
- if (this.$refs.paged.$refs.criteria.model.is_sell == '已下发'){
434
- args.condition += ` and xfqk.f_userinfoid is not null `
435
- }else if(this.$refs.paged.$refs.criteria.model.is_sell == '未下发'){
436
- args.condition += ` and xfqk.f_userinfoid is null `
437
- }
438
- if (this.$refs.paged.$refs.criteria.model.f_user_type){
439
- args.condition += ` and tui.f_user_type = '${this.$refs.paged.$refs.criteria.model.f_user_type}'`
440
- }
441
- if (args.model.startyear && args.model.startmon && args.model.endyear && args.model.endmon) {
442
- this.model.startyear = args.model.startyear
443
- this.model.startmon = args.model.startmon
444
- this.model.endyear = args.model.endyear
445
- this.model.endmon = args.model.endmon
446
- } else if (!args.model.startyear && !args.model.startmon && !args.model.endyear && !args.model.endmon) {
447
- this.model.startyear = this.startyear
448
- this.model.startmon = this.startmon
449
- this.model.endyear = this.endyear
450
- this.model.endmon = this.endmon
451
- } else {
452
- this.$showMessage('需要选择 开始年月/结束年月!!!')
453
- return
454
- }
455
- this.model.check_item = this.check_item
456
- this.model.check_itemValue = this.check_itemValue
457
- args.condition += " and tui.f_filialeid = '" + this.$login.f.orgid + "'"
458
- this.searchData.condition = args.condition
459
- this.searchData.con1 = con1
460
- this.searchData.f_itemvalue = this.check_item
461
- this.searchData.f_itemname = this.check_itemValue
462
-
463
- this.searchData.startyear = this.$refs.paged.$refs.criteria.model.startyear
464
- this.searchData.startmon = this.$refs.paged.$refs.criteria.model.startmon
465
- this.searchData.endyear = this.$refs.paged.$refs.criteria.model.endyear
466
- this.searchData.endmon = this.$refs.paged.$refs.criteria.model.endmon
467
-
468
- this.model.con1 = con1
469
- return this.model.search(args.condition, args.model)
470
- },
471
- usertypes() {
472
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
473
- },
474
- userstates() {
475
- // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
476
- },
477
- show() {
478
- this.criteriaShow = true
479
- },
480
- hidden() {
481
- this.criteriaShow = false
482
- },
483
- confirm() {
484
- if (!this.checkboxModel.f_plan_name) {
485
- this.$showMessage('请填写安检计划名称!')
486
- return
487
- }
488
- if (this.IsShare == '否') {
489
- if (!this.checkboxModel.f_checker_id) {
490
- this.$showMessage('请选择安检员!')
491
- return
492
- }
493
- }
494
- let gen = saveGen(this)
495
- return co(gen)
496
- },
497
- changeStates() {
498
- if (this.checkedAll) {//实现反选/
499
- this.checkrows = [];
500
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
501
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
502
- }
503
- } else {//实现全选
504
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
505
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
506
- }
507
- let _this = this
508
- let condition = this.$refs.paged.$refs.criteria.condition
509
- let url = this.model.url
510
- this.$resetpost(`${url}?pageSize=9999999`, {
511
- data: {
512
- condition: condition,
513
- groupitem: '',
514
- orderitem: 'f_residential_area',
515
- f_usertype: this.model.f_usertype,
516
- f_filialeids: this.model.f_filialeids,
517
- month: this.model.month,
518
- safeCycle: this.model.safeCycle,
519
- f_checktime_start: this.model.f_checktime_start,
520
- f_checktime_end: this.model.f_checktime_end,
521
- SafeCheckSX: this.model.SafeCheckSX,
522
- f_last_check_state: this.model.f_last_check_state
523
- },
524
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
525
- (respanse) => {
526
- if (respanse.data.length >= 5000) {
527
- this.$showMessage("数据量太大,请重新选择")
528
- } else {
529
- _this.checkrows = []
530
- for (let j = 0; j < respanse.data.length; j++) {
531
- _this.checkrows.push(respanse.data[j])
532
- }
533
- console.log(_this.checkrows);
534
- }
535
- })
536
- }
537
- },
538
- addChecked(item) {
539
- console.log(item);
540
- if (!item.checked) {
541
- this.checkrows.push(item);
542
- console.log(this.checkrows);
543
- } else {
544
- for (let i = 0; i < this.checkrows.length; i++) {
545
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
546
- this.checkrows.splice(i, 1)
547
- }
548
- }
549
- }
550
- },
551
- ToshowModal() {
552
- this.creatPlanWay = 'single'
553
- if (this.checkrows.length > 0) {
554
- this.showModal = true
555
- } else {
556
- this.$showMessage("请选择需要安检的用户!")
557
- }
558
- },
559
- FiltrationPlan() {
560
- if (this.model.rows.length == 0) {
561
- this.$showMessage("暂无可生成的计划!")
562
- return
563
- }
564
- this.creatPlanWay = 'filtration'
565
- this.showModal = true
566
- },
567
- AllPlan() {
568
- if (this.model.rows.length == 0) {
569
- this.$showMessage("暂无可生成的计划!")
570
- return
571
- }
572
- this.creatPlanWay = 'all'
573
- this.showModal = true
574
- },
575
- cancel() {
576
- this.showModal = false
577
- },
578
- areas() {
579
- let rs = []
580
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
581
- let temp = {
582
- label: this.$login.f.f_allArea[i].label,
583
- value: this.$login.f.f_allArea[i].label
584
- }
585
- rs.push(temp)
586
- }
587
- return [{label: '全部', value: ''}, ...rs]
588
- },
589
- },
590
-
591
- watch: {
592
- 'check_item'() {
593
- this.check_itemValue = ''
594
- },
595
- 'model.model.f_residential_area'() {
596
- this.model.model.f_building = []
597
- this.buildingChick = []
598
- if (!this.model.model) {
599
- return
600
- }
601
- if (!this.model.model.f_residential_area) {
602
- return
603
- }
604
- let HttpReset = new HttpResetClass()
605
- let redata = []
606
- HttpReset.load('POST', '/api/af-safecheck/sql/safe_singleTable_GroupBy', {
607
- data: {
608
- items: "f_building",
609
- tablename: "t_user_address",
610
- condition: `f_filialeid = ${this.$login.f.orgid} and f_residential_area= '${this.model.model.f_residential_area}'`,
611
- groupitem: "f_building order by cast((case PATINDEX('%[^0-9]%', f_building) when 0 then f_building else 999 end) as int)"
612
- }
613
- }, {resolveMsg: null, rejectMsg: '获取楼栋列表失败!'}).then(res => {
614
- res.data.forEach((row, n) => {
615
- redata.push({label: row.f_building, value: row.f_building, data: row})
616
- })
617
- this.buildingChick = redata;
618
- })
619
- },
620
- 'model.f_usertype'(val) {
621
- if (val == '民用') {
622
- this.model.safeCycle = this.civil
623
- } else if (val == '非民用') {
624
- this.model.safeCycle = this.civilian
625
- }
626
- },
627
- 'model.SafeCheckXZ'(val) {
628
- this.model.SafeCheckSC = ''
629
- if (val == '已安检') {
630
- this.model.SafeCheckCQ = ''
631
- this.model.SafeCheckSX = {
632
- f_check_end: '', // 安检时间 查询起始条件
633
- f_check_start: ''// 安检时间 查询终止条件
634
- }
635
- } else {
636
- // 当使用筛选条件时,清空不需要的条件选项
637
- this.model.f_issue_start = ''
638
- this.model.f_issue_end = ''
639
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
640
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
641
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
642
- this.model.month = ''
643
- if (val == '应安检') {
644
- this.model.SafeCheckSC = '否'
645
-
646
- this.model.f_issue_start = Util.toStartDateString()
647
- this.model.f_issue_end = Util.toStandardDateString()
648
- }
649
- // this.model.f_checktime_start = ''
650
- // this.model.f_checktime_end = ''
651
- }
652
- },
653
- 'model.SafeCheckSC'(val) {
654
- if (val == '') {
655
- this.model.f_issue_start = ''
656
- this.model.f_issue_end = ''
657
- }
658
- },
659
- // 'checker'(val){
660
- // console.log("checker",this.checker)
661
- // if(val){
662
- // this.checkboxModel.f_checker = this.checker[0].name
663
- // this.checkboxModel.f_checker_id = this.checker[0].id
664
- // }
665
- // },
666
- 'model.rows'() {
667
- // if (!this.checkedAll) {//实现反选/
668
- // this.checkrows = [];
669
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
670
- var k = false
671
- for (let j = 0; j < this.checkrows.length; j++) {
672
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
673
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
674
- k = true
675
- continue
676
- }
677
- }
678
- if (!k) {
679
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
680
- }
681
- }
682
- }
683
- },
684
- computed: {
685
- selected() {
686
- return this.$refs.paged.$refs.grid.selected
687
- },
688
- check_itemValues() {
689
- // return [...this.$appdata.getParam(this.check_item)]
690
- }
691
- }
692
- }
693
- </script>
694
- <style scoped>
695
- .newcolor {
696
- color: red;
697
- }
698
-
699
- .table th {
700
- background-color: #f2f6fa;
701
- color: black;
702
- }
703
- </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"> &nbsp;&nbsp;&nbsp;小区&nbsp;&nbsp;&nbsp;</label>
12
+ <v-select
13
+ placeholder='小区选择'
14
+ :value-single="true"
15
+ v-model='model.f_residential_area'
16
+ :value.sync="model.f_residential_area"
17
+ class="select select_list"
18
+ :options='$parent.$parent.villagesChick'
19
+ condition="f_residential_area like '%{}%'"
20
+ close-on-select clear-button search valueSingle="true"></v-select>
21
+ </div>
22
+ <div class="col-sm-4" style="width: 20%">
23
+ <label class="font_normal_body">所属区域</label>
24
+ <v-select
25
+ placeholder='所属区域'
26
+ :value-single="true"
27
+ v-model='model.street'
28
+ :value.sync="model.street"
29
+ class="select select_list"
30
+ :options='$parent.$parent.streets'
31
+ condition="tui.f_street ='{}'"
32
+ close-on-select clear-button></v-select>
33
+ </div>
34
+
35
+ <div class="col-sm-4" style="width: 12%;margin-left: 2%">
36
+ <datepicker id="startyear"
37
+ v-model='model.startyear'
38
+ :value.sync="model.startyear"
39
+ placeholder="下发开始年"
40
+ :disabled-days-of-Week="[]"
41
+ :format="'yyyy'"
42
+ :show-reset-button="reset">
43
+ </datepicker>
44
+ </div>
45
+ <div class="col-sm-4" style="width: 12%;margin-left: 2%">
46
+ <datepicker id="startmon"
47
+ v-model='model.startmon'
48
+ :value.sync="model.startmon"
49
+ placeholder="下发开始月"
50
+ :disabled-days-of-Week="[]"
51
+ :format="'MM'"
52
+ :show-reset-button="reset">
53
+ </datepicker>
54
+ </div>
55
+ <div class="col-sm-4" style="width: 12% ;margin-left: 2%">
56
+ <datepicker id="endyear"
57
+ v-model='model.endyear'
58
+ :value.sync="model.endyear"
59
+ placeholder="下发结束年"
60
+ :disabled-days-of-Week="[]"
61
+ :format="'yyyy'"
62
+ :show-reset-button="reset">
63
+ </datepicker>
64
+ </div>
65
+ <div class="col-sm-4" style="width: 12% ;margin-left: 2%">
66
+ <datepicker id="endmon"
67
+ v-model='model.endmon'
68
+ :value.sync="model.endmon"
69
+ placeholder="下发结束月"
70
+ :disabled-days-of-Week="[]"
71
+ :format="'MM'"
72
+ :show-reset-button="reset">
73
+ </datepicker>
74
+ </div>
75
+
76
+ </div>
77
+ <div class="row">
78
+ <div class="col-sm-4" style="width: 12%;margin-left: 2%">
79
+ <datepicker id="startdate1"
80
+ v-model='model.date3'
81
+ :value.sync="model.date3"
82
+ placeholder="安检开始时间"
83
+ :disabled-days-of-Week="[]"
84
+ :format="'yyyy-MM-dd'"
85
+ :show-reset-button="reset">
86
+ </datepicker>
87
+ </div>
88
+ <div class="col-sm-4" style="width: 12%;margin-left: 2%">
89
+ <datepicker id="enddate1"
90
+ v-model='model.date4'
91
+ :value.sync="model.date4"
92
+ placeholder="安检结束时间"
93
+ :disabled-days-of-Week="[]"
94
+ :format="'yyyy-MM-dd'"
95
+ :show-reset-button="reset">
96
+ </datepicker>
97
+ </div>
98
+ <div class="col-sm-4" style="width: 20%">
99
+ <label class="font_normal_body">是否派发</label>
100
+ <v-select
101
+ placeholder='是否派发'
102
+ :value-single="true"
103
+ v-model='model.is_sell'
104
+ :value.sync="model.is_sell"
105
+ class="select select_list"
106
+ :options='$parent.$parent.is_sells'
107
+ close-on-select clear-button></v-select>
108
+ </div>
109
+ <div class="col-sm-4" style="width: 20%">
110
+ <label class="font_normal_body">用户类型</label>
111
+ <v-select
112
+ placeholder='用户类型'
113
+ :value-single="true"
114
+ v-model='model.f_user_type'
115
+ :value.sync="model.f_user_type"
116
+ class="select select_list"
117
+ :options='$parent.$parent.user_types'
118
+ close-on-select clear-button></v-select>
119
+ </div>
120
+ <div class="col-sm-8"></div>
121
+ <div style="float: right;margin-right: 10px">
122
+ <export-excel :data="$parent.$parent.searchData"
123
+ :field="$parent.$parent.excelHeaders"
124
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="getAreaSafeRatioList"
125
+ template-name='小区安检率汇总'></export-excel>
126
+ <div style="float: right" class="button_spacing"
127
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
128
+ @click="$parent.$parent.hiddenr()"></div>
129
+ </div>
130
+ <div class="span" style="float:right;margin-right:10px">
131
+ <button class="btn btn-primary width-80" @click="search()">查询</button>
132
+ </div>
133
+ </div>
134
+ </div>
135
+ </criteria>
136
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
137
+ <template partial='head'>
138
+ <tr>
139
+ <th>
140
+ <nobr>小区名称</nobr>
141
+ </th>
142
+ <th>
143
+ <nobr>小区总户数</nobr>
144
+ </th>
145
+ <th>
146
+ <nobr>应派发户数</nobr>
147
+ </th>
148
+ <th>
149
+ <nobr>已派发户数</nobr>
150
+ </th>
151
+ <th>
152
+ <nobr>未派发户数</nobr>
153
+ </th>
154
+ <th>
155
+ <nobr>入户数</nobr>
156
+ </th>
157
+ <th>
158
+ <nobr>不遇数</nobr>
159
+ </th>
160
+ <th>
161
+ <nobr>拒检数</nobr>
162
+ </th>
163
+ <th>
164
+ <nobr>未检数</nobr>
165
+ </th>
166
+ <th>
167
+ <nobr>安检率</nobr>
168
+ </th>
169
+ </tr>
170
+ </template>
171
+ <template partial='body'>
172
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_residential_area}}</td>
173
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.allhushu}}</td>
174
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.needxiafa}}</td>
175
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.yxiafa}}</td>
176
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.wxiafa}}</td>
177
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.ruhu}}</td>
178
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.buyu}}</td>
179
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.jujian}}</td>
180
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.weijian}}</td>
181
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{row.f_check_bv}}</td>
182
+ </template>
183
+ </data-grid>
184
+ </criteria-paged>
185
+ </div>
186
+ </template>
187
+
188
+ <script>
189
+ import {PagedList} from 'vue-client'
190
+ import {HttpResetClass} from 'vue-client'
191
+ import co from 'co'
192
+ import * as Util from './../Util'
193
+ import Vue from 'vue'
194
+
195
+ export default {
196
+ title: '小区安检率统计页面',
197
+ data() {
198
+ let options = []
199
+ let year = (new Date()).getFullYear()
200
+ for (let i = year; i <= year + 3; i++)
201
+ options.push({label: i + '', value: i + ''})
202
+ let moptions = []
203
+ for (let i = 1; i <= 12; i++)
204
+ moptions.push({label: i + '', value: i + ''})
205
+
206
+ return {
207
+ model: new PagedList('api/af-safecheck/sql/getAreaSafeRatioList', 20, {
208
+ orderitem: "'f_userinfo_code'",
209
+ startyear: 'this.startyear',
210
+ startmon: 'this.startmon',
211
+ endyear: 'this.endyear',
212
+ endmon: 'this.endmon',
213
+ timetype: "'dd'",
214
+ con1: "this.con1",
215
+ f_itemname: 'this.check_item',
216
+ f_itemvalue: 'this.check_itemValue',
217
+ f_filialeids: `'(${this.$login.f.orgid})'`
218
+ }),
219
+ date1: '',
220
+ date2: '',
221
+ startyear: `${new Date().getFullYear()}`,
222
+ startmon: '01',
223
+ is_sells:[{label: '全部', value: ''}, {label: '已下发', value: '已下发'}, {label: '未下发', value: '未下发'}],
224
+ endyear: `${new Date().getFullYear()}`,
225
+ endmon: `${new Date().getMonth() + 1}`,
226
+ f_check_start: `${new Date().getFullYear()}-01-01`,
227
+ y_check_end: `${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}`,
228
+ searchData: {
229
+ condition: '1=1',
230
+ con1: '1=1',
231
+ f_itemvalue: '',
232
+ f_itemname: '',
233
+ orderitem: "f_userinfo_code",
234
+ timetype: "dd",
235
+ f_filialeids: `(${this.$login.f.orgid})`,
236
+ startyear: '',
237
+ startmon: '',
238
+ endyear: '',
239
+ endmon: '',
240
+ },
241
+ excelHeaders: {
242
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
243
+ 'f_residential_area': '小区名称',
244
+ 'allhushu': '小区总户数',
245
+ 'needxiafa': '应派发户数',
246
+ 'yxiafa': '已派发户数',
247
+ 'wxiafa': '未派发户数',
248
+ 'ruhu': '入户数',
249
+ 'buyu': '不遇数',
250
+ 'jujian': '拒检数',
251
+ 'weijian': '未检数',
252
+ 'f_check_bv': '安检率'
253
+ },
254
+ orgstrs: [{label: '全部', value: ''}],
255
+ user_types:[{label: '全部', value: ''},{label: '民用', value: '民用'},{label: '非民用', value: '非民用'}],
256
+ checkersid: [],
257
+ SafeCheckXZ: '',
258
+ civil: '', //民用安检周期
259
+ civilian: '', //非民用安检周期
260
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '已入户', value: '已入户'}, {label: '未入户', value: '未入户'}], // 安检筛选选项
261
+ safe_rhs: [{label: '全部', value: ''}, {label: '今年已入户', value: '今年已入户'}, {label: '今年未入户', value: '今年未入户'}], // 安检筛选选项
262
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''},],
263
+ checkstatus: [{label: '全部', value: ''}, {label: '到访不遇', value: '到访不遇'}, {label: '拒检', value: '拒检'}],
264
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
265
+ IsShare: '否',
266
+ checker: {},
267
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
268
+ criteriaShow: true,
269
+ checkers: [],
270
+ chosenOrg: {id: 0},
271
+ checkedAll: false,
272
+ checkrows: [],
273
+ yearmodel: [],
274
+ streets: [],
275
+ adjustables: [],
276
+ f_plan_year: year + '',
277
+ f_plan_month: moptions[new Date().getMonth()].value,
278
+ f_effective_start_time: '', //计划有效起始时间
279
+ f_effective_end_time: '', //计划有效结束时间
280
+ checkboxModel: {},
281
+ c_year_list: options,
282
+ c_month_list: moptions,
283
+ areas: this.areas(),
284
+ //checkstatus: this.checkstatus(),
285
+ // usertypes: this.usertypes(),
286
+ // userstates: this.userstates(),
287
+ sqlname: '',
288
+ creatPlanWay: '',
289
+ showModal: false,
290
+ yearStreet: '',
291
+ villagesModel: '', //小区绑定值
292
+ villagesChick: [], //小区选择值
293
+ buildingModel: '', //地址绑定值
294
+ buildingChick: [], //地址选择值
295
+ hasHousehold: '',
296
+ // check_items: [{label: '全部', value: ''}, ...this.$appdata.getParam('安检项名')],
297
+ check_item: '',
298
+ check_itemValue: ''
299
+ }
300
+ },
301
+ props: {
302
+ checkplan: { // 传入一条安检计划信息
303
+ type: Object
304
+ },
305
+ additemshow: {
306
+ type: Boolean,
307
+ default: false
308
+ }
309
+ },
310
+ ready() {
311
+ // 获取分公司信息
312
+ this.getfengongsi()
313
+ this.model.chosenOrg = {id: 0}
314
+ this.model.f_filialeids = this.$login.f.f_orgids
315
+ this.model.f_filiale = this.$login.f.f_fengongsi
316
+ this.model.f_OrgStr = this.$login.f.orgpathstr
317
+ this.initstreets()
318
+
319
+ //小区初始化
320
+ this.initVillage()
321
+ this.$refs.paged.$refs.criteria.model.f_user_type = '民用'
322
+ this.$refs.paged.$refs.criteria.search();
323
+ },
324
+ methods: {
325
+ show1() {
326
+ this.showModal = true
327
+ },
328
+ y_search() {
329
+ let condition = ''
330
+ if (!this.y_check_start || !this.y_check_end) {
331
+ this.$showMessage("请选择开始和结束时间")
332
+ }
333
+ condition += `and f_onsite_time > '${this.y_check_start} 00:00:00' and f_onsite_time < '${this.y_check_end} 23:59:59'`
334
+ new HttpResetClass().load('POST', 'api/af-safecheck/sql/FetchYearCheckRatio', {
335
+ data: {
336
+ condition: condition,
337
+ f_createfile_date: this.y_check_end + ' 23:59:59',
338
+ usertype: '民用',
339
+ f_street: this.yearStreet
340
+ }
341
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'}).then((res) => {
342
+ console.log('---' + JSON.stringify(res))
343
+ this.yearmodel = res.data
344
+ })
345
+ },
346
+ //初始化小区
347
+ async initVillage() {
348
+ this.villagesChick = []
349
+ let HttpReset = new HttpResetClass()
350
+ let req = await HttpReset.load('POST', 'api/af-safecheck/sql/safe_singleTable_GroupBy', {
351
+ data: {
352
+ items: 'f_residential_area',
353
+ tablename: 't_area',
354
+ condition: '1 = 1',
355
+ groupitem: 'f_residential_area'
356
+ }
357
+ }, {resolveMsg: null, rejectMsg: '获取小区列表失败!'})
358
+ let redata = []
359
+ req.data.forEach((row, n) => {
360
+ redata.push({label: row.f_residential_area, value: row.f_residential_area, data: row})
361
+ })
362
+ redata.push({label: '非民用小区', value: '非民用小区'})
363
+ redata.unshift({label: '全部', value: '', data: ''})
364
+ this.villagesChick = redata
365
+ },
366
+ //初始化街道 添加小区
367
+ async initstreets() {
368
+ this.streetslist = []
369
+ let HttpReset = new HttpResetClass()
370
+ let req = await HttpReset.load('POST', 'api/af-safecheck/sql/address_singleTableOrderBy', {
371
+ data: {
372
+ items: '*',
373
+ tablename: 't_street',
374
+ orderitem: 'id',
375
+ condition: `f_orgid = '${this.$login.f.orgid}'`
376
+ }
377
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
378
+ let redata = []
379
+ req.data.forEach((row, n) => {
380
+ redata.push({label: row.f_street, value: row.f_street, data: row, id: row.id})
381
+ })
382
+ this.streets = redata
383
+ },
384
+ hiddenr() {
385
+ this.$parent.showItem = !this.$parent.showItem
386
+ },
387
+ hidden() {
388
+ this.criteriaShow = !this.criteriaShow
389
+ },
390
+ // 获取县域分公司内容
391
+ getfengongsi() {
392
+ let val = {
393
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
394
+ userid: `${this.$login.f.id}`
395
+ }
396
+ let http = new HttpResetClass()
397
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
398
+ res.data.forEach((item) => {
399
+ this.orgstrs.push({label: item.name, value: item.id})
400
+ })
401
+ console.log(this.orgstrs.length)
402
+ })
403
+ },
404
+ getDefect(val) {
405
+ if (val) {
406
+ try {
407
+ var defect = JSON.parse(val)
408
+ return defect.result
409
+ } catch (e) {
410
+ console.log(val)
411
+ return '正常'
412
+ }
413
+ }
414
+ return '正常'
415
+ },
416
+ checkerchange(val) {
417
+ this.checkboxModel.f_checker = val.name
418
+ this.checkboxModel.f_checker_id = val.id
419
+ },
420
+ search(args) {
421
+ let con1 = '1=1 and'
422
+ if (args.model.date3 && args.model.date4) {
423
+ con1 += ` f_onsite_time >= '${args.model.date3}' and f_onsite_time <= '${args.model.date4}'`
424
+ } else if (args.model.date3 && (args.model.date4 ==''|| args.model.date4 ==null )){
425
+ this.$showMessage('需要选择安检结束时间!')
426
+ return
427
+ }else if(args.model.date4 && (args.model.date3 ==''|| args.model.date3 ==null )){
428
+ this.$showMessage('需要选择安检开始时间!')
429
+ return
430
+ }else{
431
+ con1 += ` f_onsite_time >= '${this.f_check_start}' and f_onsite_time <= '${this.y_check_end}'`
432
+ }
433
+ if (this.$refs.paged.$refs.criteria.model.is_sell == '已下发'){
434
+ args.condition += ` and xfqk.f_userinfoid is not null `
435
+ }else if(this.$refs.paged.$refs.criteria.model.is_sell == '未下发'){
436
+ args.condition += ` and xfqk.f_userinfoid is null `
437
+ }
438
+ if (this.$refs.paged.$refs.criteria.model.f_user_type){
439
+ args.condition += ` and tui.f_user_type = '${this.$refs.paged.$refs.criteria.model.f_user_type}'`
440
+ }
441
+ if (args.model.startyear && args.model.startmon && args.model.endyear && args.model.endmon) {
442
+ this.model.startyear = args.model.startyear
443
+ this.model.startmon = args.model.startmon
444
+ this.model.endyear = args.model.endyear
445
+ this.model.endmon = args.model.endmon
446
+ } else if (!args.model.startyear && !args.model.startmon && !args.model.endyear && !args.model.endmon) {
447
+ this.model.startyear = this.startyear
448
+ this.model.startmon = this.startmon
449
+ this.model.endyear = this.endyear
450
+ this.model.endmon = this.endmon
451
+ } else {
452
+ this.$showMessage('需要选择 开始年月/结束年月!!!')
453
+ return
454
+ }
455
+ this.model.check_item = this.check_item
456
+ this.model.check_itemValue = this.check_itemValue
457
+ args.condition += " and tui.f_filialeid = '" + this.$login.f.orgid + "'"
458
+ this.searchData.condition = args.condition
459
+ this.searchData.con1 = con1
460
+ this.searchData.f_itemvalue = this.check_item
461
+ this.searchData.f_itemname = this.check_itemValue
462
+
463
+ this.searchData.startyear = this.$refs.paged.$refs.criteria.model.startyear
464
+ this.searchData.startmon = this.$refs.paged.$refs.criteria.model.startmon
465
+ this.searchData.endyear = this.$refs.paged.$refs.criteria.model.endyear
466
+ this.searchData.endmon = this.$refs.paged.$refs.criteria.model.endmon
467
+
468
+ this.model.con1 = con1
469
+ return this.model.search(args.condition, args.model)
470
+ },
471
+ usertypes() {
472
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]
473
+ },
474
+ userstates() {
475
+ // return [{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')]
476
+ },
477
+ show() {
478
+ this.criteriaShow = true
479
+ },
480
+ hidden() {
481
+ this.criteriaShow = false
482
+ },
483
+ confirm() {
484
+ if (!this.checkboxModel.f_plan_name) {
485
+ this.$showMessage('请填写安检计划名称!')
486
+ return
487
+ }
488
+ if (this.IsShare == '否') {
489
+ if (!this.checkboxModel.f_checker_id) {
490
+ this.$showMessage('请选择安检员!')
491
+ return
492
+ }
493
+ }
494
+ let gen = saveGen(this)
495
+ return co(gen)
496
+ },
497
+ changeStates() {
498
+ if (this.checkedAll) {//实现反选/
499
+ this.checkrows = [];
500
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
501
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
502
+ }
503
+ } else {//实现全选
504
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
505
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
506
+ }
507
+ let _this = this
508
+ let condition = this.$refs.paged.$refs.criteria.condition
509
+ let url = this.model.url
510
+ this.$resetpost(`${url}?pageSize=9999999`, {
511
+ data: {
512
+ condition: condition,
513
+ groupitem: '',
514
+ orderitem: 'f_residential_area',
515
+ f_usertype: this.model.f_usertype,
516
+ f_filialeids: this.model.f_filialeids,
517
+ month: this.model.month,
518
+ safeCycle: this.model.safeCycle,
519
+ f_checktime_start: this.model.f_checktime_start,
520
+ f_checktime_end: this.model.f_checktime_end,
521
+ SafeCheckSX: this.model.SafeCheckSX,
522
+ f_last_check_state: this.model.f_last_check_state
523
+ },
524
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
525
+ (respanse) => {
526
+ if (respanse.data.length >= 5000) {
527
+ this.$showMessage("数据量太大,请重新选择")
528
+ } else {
529
+ _this.checkrows = []
530
+ for (let j = 0; j < respanse.data.length; j++) {
531
+ _this.checkrows.push(respanse.data[j])
532
+ }
533
+ console.log(_this.checkrows);
534
+ }
535
+ })
536
+ }
537
+ },
538
+ addChecked(item) {
539
+ console.log(item);
540
+ if (!item.checked) {
541
+ this.checkrows.push(item);
542
+ console.log(this.checkrows);
543
+ } else {
544
+ for (let i = 0; i < this.checkrows.length; i++) {
545
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
546
+ this.checkrows.splice(i, 1)
547
+ }
548
+ }
549
+ }
550
+ },
551
+ ToshowModal() {
552
+ this.creatPlanWay = 'single'
553
+ if (this.checkrows.length > 0) {
554
+ this.showModal = true
555
+ } else {
556
+ this.$showMessage("请选择需要安检的用户!")
557
+ }
558
+ },
559
+ FiltrationPlan() {
560
+ if (this.model.rows.length == 0) {
561
+ this.$showMessage("暂无可生成的计划!")
562
+ return
563
+ }
564
+ this.creatPlanWay = 'filtration'
565
+ this.showModal = true
566
+ },
567
+ AllPlan() {
568
+ if (this.model.rows.length == 0) {
569
+ this.$showMessage("暂无可生成的计划!")
570
+ return
571
+ }
572
+ this.creatPlanWay = 'all'
573
+ this.showModal = true
574
+ },
575
+ cancel() {
576
+ this.showModal = false
577
+ },
578
+ areas() {
579
+ let rs = []
580
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
581
+ let temp = {
582
+ label: this.$login.f.f_allArea[i].label,
583
+ value: this.$login.f.f_allArea[i].label
584
+ }
585
+ rs.push(temp)
586
+ }
587
+ return [{label: '全部', value: ''}, ...rs]
588
+ },
589
+ },
590
+
591
+ watch: {
592
+ 'check_item'() {
593
+ this.check_itemValue = ''
594
+ },
595
+ 'model.model.f_residential_area'() {
596
+ this.model.model.f_building = []
597
+ this.buildingChick = []
598
+ if (!this.model.model) {
599
+ return
600
+ }
601
+ if (!this.model.model.f_residential_area) {
602
+ return
603
+ }
604
+ let HttpReset = new HttpResetClass()
605
+ let redata = []
606
+ HttpReset.load('POST', '/api/af-safecheck/sql/safe_singleTable_GroupBy', {
607
+ data: {
608
+ items: "f_building",
609
+ tablename: "t_user_address",
610
+ condition: `f_filialeid = ${this.$login.f.orgid} and f_residential_area= '${this.model.model.f_residential_area}'`,
611
+ groupitem: "f_building order by cast((case PATINDEX('%[^0-9]%', f_building) when 0 then f_building else 999 end) as int)"
612
+ }
613
+ }, {resolveMsg: null, rejectMsg: '获取楼栋列表失败!'}).then(res => {
614
+ res.data.forEach((row, n) => {
615
+ redata.push({label: row.f_building, value: row.f_building, data: row})
616
+ })
617
+ this.buildingChick = redata;
618
+ })
619
+ },
620
+ 'model.f_usertype'(val) {
621
+ if (val == '民用') {
622
+ this.model.safeCycle = this.civil
623
+ } else if (val == '非民用') {
624
+ this.model.safeCycle = this.civilian
625
+ }
626
+ },
627
+ 'model.SafeCheckXZ'(val) {
628
+ this.model.SafeCheckSC = ''
629
+ if (val == '已安检') {
630
+ this.model.SafeCheckCQ = ''
631
+ this.model.SafeCheckSX = {
632
+ f_check_end: '', // 安检时间 查询起始条件
633
+ f_check_start: ''// 安检时间 查询终止条件
634
+ }
635
+ } else {
636
+ // 当使用筛选条件时,清空不需要的条件选项
637
+ this.model.f_issue_start = ''
638
+ this.model.f_issue_end = ''
639
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
640
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
641
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
642
+ this.model.month = ''
643
+ if (val == '应安检') {
644
+ this.model.SafeCheckSC = '否'
645
+
646
+ this.model.f_issue_start = Util.toStartDateString()
647
+ this.model.f_issue_end = Util.toStandardDateString()
648
+ }
649
+ // this.model.f_checktime_start = ''
650
+ // this.model.f_checktime_end = ''
651
+ }
652
+ },
653
+ 'model.SafeCheckSC'(val) {
654
+ if (val == '') {
655
+ this.model.f_issue_start = ''
656
+ this.model.f_issue_end = ''
657
+ }
658
+ },
659
+ // 'checker'(val){
660
+ // console.log("checker",this.checker)
661
+ // if(val){
662
+ // this.checkboxModel.f_checker = this.checker[0].name
663
+ // this.checkboxModel.f_checker_id = this.checker[0].id
664
+ // }
665
+ // },
666
+ 'model.rows'() {
667
+ // if (!this.checkedAll) {//实现反选/
668
+ // this.checkrows = [];
669
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
670
+ var k = false
671
+ for (let j = 0; j < this.checkrows.length; j++) {
672
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
673
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
674
+ k = true
675
+ continue
676
+ }
677
+ }
678
+ if (!k) {
679
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
680
+ }
681
+ }
682
+ }
683
+ },
684
+ computed: {
685
+ selected() {
686
+ return this.$refs.paged.$refs.grid.selected
687
+ },
688
+ check_itemValues() {
689
+ // return [...this.$appdata.getParam(this.check_item)]
690
+ }
691
+ }
692
+ }
693
+ </script>
694
+ <style scoped>
695
+ .newcolor {
696
+ color: red;
697
+ }
698
+
699
+ .table th {
700
+ background-color: #f2f6fa;
701
+ color: black;
702
+ }
703
+ </style>