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,963 +1,963 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">用户编号</label>
9
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
- id="f_userinfo_code"
11
-
12
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">用户姓名</label>
16
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
17
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
18
- </div>
19
- <div :class="$parent.$parent.style">
20
- <label class="font_normal_body">小&emsp;&emsp;区</label>
21
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
22
- id="f_residential_area"
23
- placeholder="小区" condition="f_residential_area like '%{}%'">
24
- </div>
25
- <div :class="$parent.$parent.style">
26
- <label class="font_normal_body">地&emsp;&emsp;址</label>
27
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
28
- placeholder="地址" condition="f_address like '%{}%'">
29
- </div>
30
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
31
- <export-excel-old :data="$parent.$parent.searchData"
32
- :field="$parent.$parent.excelHeaders"
33
- :choose-col="true"
34
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
35
- template-name='用户安检情况'></export-excel-old>
36
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
37
- <div style="float: right" class="button_spacing"
38
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
39
- @click="$parent.$parent.hiddenr()"></div>
40
- <div style="float: right" class="button_spacing"
41
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
42
- @click="$parent.$parent.hidden()">
43
-
44
- </div>
45
- </div>
46
-
47
-
48
- </div>
49
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
50
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
51
- <label class="font_normal_body">用户类型</label>
52
- <v-select id="f_usertype"
53
- placeholder='用户类型'
54
- class="select select_list"
55
- :value.sync="model.f_usertype"
56
- :value-single="true"
57
- :options='$parent.$parent.usertypes'
58
- v-model="model.f_usertype"
59
- condition="f_user_type = '{}'"
60
- close-on-select clear-button></v-select>
61
- </div>
62
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
63
-
64
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
65
- <label class="font_normal_body" style="color: red;">安检筛选</label>
66
- <v-select
67
- placeholder='安检筛选'
68
- :value-single="true"
69
- class="select select_list"
70
- :value.sync="$parent.$parent.SafeCheckXZ"
71
- :options='$parent.$parent.SafeCheckXZs'
72
- v-model="$parent.$parent.SafeCheckXZ"
73
- close-on-select clear-button></v-select>
74
- </div>
75
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
76
- <label class="font_normal_body">安检起始</label>
77
- <datepicker
78
- :value.sync="model.f_check_start"
79
- placeholder='最后安检时间起始'
80
- style="width: 60%"
81
- :format="'yyyy-MM-dd 00:00:00'"
82
- :show-rest-button="reset"
83
- v-model="model.f_check_start">
84
- </datepicker>
85
- </div>
86
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
87
- <label class="font_normal_body">安检结束</label>
88
- <datepicker
89
- :value.sync="model.f_check_end"
90
- placeholder='最后安检时间结束'
91
- style="width: 60%"
92
- :format="'yyyy-MM-dd 23:59:59'"
93
- :show-rest-button="reset"
94
- v-model="model.f_check_end">
95
- </datepicker>
96
- </div>
97
-
98
- <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
99
- <!-- <label class="font_normal_body">安检状态</label>-->
100
- <!-- <v-select id="f_entry"-->
101
- <!-- placeholder='安检状态'-->
102
- <!-- class="select select_list"-->
103
- <!-- :value.sync="model.f_last_check_state"-->
104
- <!-- :value-single="true"-->
105
- <!-- :options='$parent.$parent.checkstatus'-->
106
- <!-- v-model="model.f_last_check_state"-->
107
- <!-- condition="f_last_check_state = '{}'"-->
108
- <!-- close-on-select clear-button></v-select>-->
109
- <!-- </div>-->
110
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
111
- <label class="font_normal_body">隐患情况</label>
112
- <v-select
113
- placeholder='隐患情况'
114
- class="select select_list"
115
- :value-single="true"
116
- v-model='model.f_check_result'
117
- :value.sync="model.f_check_result"
118
- :options='$parent.$parent.f_check_results'
119
- condition="f_last_check_result like '%{}%'"
120
- close-on-select clear-button></v-select>
121
- </div>
122
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
123
- </div>
124
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
125
-
126
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
127
- <role-selector-safe
128
- role-name="安检员"
129
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
130
- @re-res="$parent.$parent.getRes"
131
- :value.sync="model.f_checker_id"
132
- v-model="model.f_checker_id"
133
- :value-multiple="true"
134
- condition=" f_checker_name in {}">
135
- </role-selector-safe>
136
- </div>
137
- <div class="form-group col-sm-2" :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
138
- <label class="font_normal_body">表册片区</label>
139
- <v-select class="select_list select"
140
- placeholder='表册片区' style="width: 60%"
141
- :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
142
- :options='$parent.$parent.sliceArea'
143
- filer-key="name"
144
- close-on-select clear-button
145
- condition="f_book_slice_area='{}'"
146
- @change="$parent.$parent.getmeterbook(model.f_book_slice_area)"
147
- :value-single="true">
148
- </v-select>
149
- </div>
150
- <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
151
- <!-- <label class="font_normal_body">片&emsp;&emsp;区</label>-->
152
- <!-- <v-select class="select_list select"-->
153
- <!-- placeholder='片区/管理站' style="width: 60%"-->
154
- <!-- :value.sync="model.f_slice_area" v-model="model.f_slice_area"-->
155
- <!-- :options='$parent.$parent.sliceArea'-->
156
- <!-- filer-key="name"-->
157
- <!-- close-on-select clear-button-->
158
- <!-- condition="f_slice_area='{}'"-->
159
- <!-- @change="$parent.$parent.getmeterbook(model.f_slice_area)"-->
160
- <!-- :value-single="true">-->
161
- <!-- </v-select>-->
162
- <!-- </div>-->
163
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
164
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
165
- <v-select class="select_list select"
166
- placeholder='抄表册' style="width: 60%"
167
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
168
- :options='$parent.$parent.cbc'
169
- filer-key="name"
170
- close-on-select clear-button
171
- condition="f_meter_book_num={}"
172
- :value-single="true">
173
- </v-select>
174
- </div>
175
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
176
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
177
- <v-select class="select_list select"
178
- placeholder='请选择' style="width: 60%"
179
- :value.sync="model.f_pcd" v-model="model.f_pcd"
180
- :options='$parent.$parent.pcds'
181
- filer-key="name"
182
- close-on-select clear-button
183
- condition="f_pcd='{}'"
184
- :value-single="true">
185
- </v-select>
186
- </div>
187
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
188
- <label class="font_normal_body">用户状态</label>
189
- <v-select class="select_list select"
190
- placeholder='用户状态' style="width: 60%"
191
- :value.sync="model.f_user_state" v-model="model.f_user_state"
192
- :options='$parent.$parent.userstates'
193
- close-on-select clear-button
194
- condition="f_user_state = '{}'"
195
- :value-single="true">
196
- </v-select>
197
- </div>
198
- </div>
199
-
200
- <div class="row" v-show="$parent.$parent.$parent.showItem">
201
- <div :class="$parent.$parent.style">
202
- <label class="font_normal_body">用户编号</label>
203
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
204
-
205
- placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
206
- </div>
207
- <div :class="$parent.$parent.style">
208
- <label class="font_normal_body">用户姓名</label>
209
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
210
- placeholder="用户姓名" condition="f_user_name like '%{}%'">
211
- </div>
212
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
213
- <export-excel-old :data="$parent.$parent.searchData"
214
- :field="$parent.$parent.excelHeaders"
215
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
216
- template-name='用户安检情况'></export-excel-old>
217
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
218
- <div style="float: right" class="button_spacing"
219
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
220
- @click="$parent.$parent.hiddenr()"></div>
221
- <div style="float: right" class="button_spacing"
222
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
223
- @click="$parent.$parent.hidden()">
224
-
225
- </div>
226
- </div>
227
-
228
- </div>
229
- <div class="row" v-show="$parent.$parent.$parent.showItem">
230
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
231
- <label class="font_normal_body">小&emsp;&emsp;区</label>
232
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
233
-
234
- placeholder="小区" condition="f_residential_area like '%{}%'">
235
- </div>
236
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
237
- <label class="font_normal_body">地&emsp;&emsp;址</label>
238
- <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
239
-
240
- placeholder="地址" condition="f_address like '%{}%'">
241
- </div>
242
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
243
- <label class="font_normal_body">用户类型</label>
244
- <v-select
245
- placeholder='用户类型'
246
- class="select select_list"
247
-
248
- :value.sync="model.f_usertype"
249
- :value-single="true"
250
- :options='$parent.$parent.usertypes'
251
- v-model="model.f_usertype"
252
- condition="f_user_type = '{}'"
253
- close-on-select clear-button></v-select>
254
- </div>
255
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
256
-
257
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
258
- <label class="font_normal_body" style="color: red;">安检筛选</label>
259
- <v-select
260
- placeholder='安检筛选'
261
- :value-single="true"
262
- class="select select_list"
263
- :value.sync="$parent.$parent.SafeCheckXZ"
264
- :options='$parent.$parent.SafeCheckXZs'
265
- v-model="$parent.$parent.SafeCheckXZ"
266
- close-on-select clear-button></v-select>
267
- </div>
268
-
269
- </div>
270
- <div class="row" v-show="$parent.$parent.$parent.showItem">
271
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
272
- <label class="font_normal_body">安检起始</label>
273
- <datepicker
274
- :value.sync="model.f_check_start"
275
- placeholder='最后安检时间起始'
276
- :disabled-days-of-week="[]"
277
- style="width: 60%"
278
- :format="'yyyy-MM-dd'"
279
- :show-rest-button="reset"
280
- v-model="model.f_check_start">
281
- </datepicker>
282
- </div>
283
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
284
- <label class="font_normal_body">安检结束</label>
285
- <datepicker
286
- :value.sync="model.f_check_end"
287
- placeholder='最后安检时间结束'
288
- style="width: 60%"
289
- :disabled-days-of-week="[]"
290
- :format="'yyyy-MM-dd'"
291
- :show-rest-button="reset"
292
- v-model="model.f_check_end">
293
- </datepicker>
294
- </div>
295
-
296
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
297
- <label class="font_normal_body">安检状态</label>
298
- <v-select
299
- placeholder='安检状态'
300
- class="select select_list"
301
-
302
- :value.sync="model.f_last_check_state"
303
- :value-single="true"
304
- :options='$parent.$parent.checkstatus'
305
- v-model="model.f_last_check_state"
306
- condition="f_last_check_state = '{}'"
307
- close-on-select clear-button></v-select>
308
- </div>
309
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
310
- <label class="font_normal_body">隐患情况</label>
311
- <v-select
312
- placeholder='隐患情况'
313
- class="select select_list"
314
-
315
- :value-single="true"
316
- v-model='model.f_check_result'
317
- :value.sync="model.f_check_result"
318
- :options='$parent.$parent.f_check_results'
319
- condition="f_last_check_result like '%{}%'"
320
- close-on-select clear-button></v-select>
321
- </div>
322
-
323
- </div>
324
- <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
325
- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
326
- <label class="font_normal_body">公&emsp;&emsp;司</label>
327
- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
328
- </right-tree>
329
- </div>
330
-
331
- </div>-->
332
- </div>
333
- </criteria>
334
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
335
- <template partial='head'>
336
- <tr>
337
- <th>
338
- <nobr>用户编号</nobr>
339
- </th>
340
- <th>
341
- <nobr>用户名称</nobr>
342
- </th>
343
- <th>
344
- <nobr>用户电话</nobr>
345
- </th>
346
- <th>
347
- <nobr>用户表号</nobr>
348
- </th>
349
- <!-- <th>-->
350
- <!-- <nobr>气表品牌</nobr>-->
351
- <!-- </th>-->
352
- <th>
353
- <nobr>用户类型</nobr>
354
- </th>
355
- <!-- <th>-->
356
- <!-- <nobr>壁挂炉</nobr>-->
357
- <!-- </th>-->
358
- <!-- <th>-->
359
- <!-- <nobr>灶具</nobr>-->
360
- <!-- </th>-->
361
- <th>
362
- <nobr>小区名称</nobr>
363
- </th>
364
- <th style="padding: 0 40px">
365
- <nobr>地址</nobr>
366
- </th>
367
- <th>
368
- <nobr>安检员</nobr>
369
- </th>
370
- <!-- <th>-->
371
- <!-- <nobr>安检员备注</nobr>-->
372
- <!-- </th>-->
373
- <th>
374
- <nobr>安检日期</nobr>
375
- </th>
376
- <th>
377
- <nobr>安检状态</nobr>
378
- </th>
379
- <th>
380
- <nobr>安检结果</nobr>
381
- </th>
382
- </tr>
383
- </template>
384
- <template partial='body'>
385
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
386
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
387
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
388
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
389
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
390
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
391
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
392
- <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
393
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
394
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
395
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
396
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
397
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
398
- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
399
- {{row.f_last_check_result }}
400
- </td>
401
- </template>
402
- </data-grid>
403
- </criteria-paged>
404
- </div>
405
- </template>
406
-
407
- <script>
408
- import {PagedList} from 'vue-client'
409
- import {HttpResetClass} from 'vue-client'
410
- import co from 'co'
411
- import * as Util from '../../Util'
412
- import Vue from 'vue'
413
-
414
- // let select = function * (self,userid) {
415
- // let http = new HttpResetClass()
416
- // let getGasman = yield http.load('POST','/rs/search', {
417
- // source: 'this.getChildByName($安检员$).getUsers()',
418
- // userid: userid
419
- // }, {resolveMsg: null, rejectMsg: null})
420
- // //tag
421
- // getGasman.data.forEach((checker)=>{
422
- // self.checkersid.push({label:checker.name,value:checker.id})
423
- // })
424
- // self.checkersid.push({label:'全部',value:''})
425
- // }
426
-
427
-
428
- export default {
429
- title: '用户安检情况',
430
- data() {
431
- let options = []
432
- let year = (new Date()).getFullYear()
433
- for (let i = year; i <= year + 3; i++)
434
- options.push({label: i + '', value: i + ''})
435
- let moptions = []
436
- for (let i = 1; i <= 12; i++)
437
- moptions.push({label: i + '', value: i + ''})
438
-
439
- return {
440
- searchData: {
441
- condition: '1=1',
442
- orderitem: "f_userinfo_code",
443
- timetype: "dd",
444
- f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
445
-
446
- },
447
- excelHeaders: {
448
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
449
-
450
- 'f_userinfo_code': '用户编号',
451
- 'f_user_name': '用户名称',
452
- 'f_user_phone': '用户电话',
453
- 'f_meternumber': '用户表号',
454
- 'f_user_type': '用户类型',
455
- 'f_checker_name': '安检员',
456
- 'f_residential_area': '小区名称',
457
- 'f_address': '地址',
458
- 'f_last_check_date': '安检日期',
459
- 'f_last_check_state': '安检状态',
460
- 'f_last_check_result': '安检结果'
461
- },
462
- model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
463
- orderitem: "'f_last_check_date'",
464
- timetype: "'dd'",
465
- f_defect_content: 'this.f_defect_content'
466
- }),
467
- f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
468
- orgstrs: [{label: '全部', value: ''}],
469
- checkersid: [],
470
- SafeCheckXZ: '',
471
- civil: '', //民用安检周期
472
- civilian: '', //非民用安检周期
473
- SafeCheckXZs: [{label: '全部', value: ''}, {label: '入户', value: '入户'}, {label: '未入户', value: '未入户'}, {label: '未安检', value: '未安检'}], // 安检筛选选项
474
- // SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
475
- SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
476
- // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
477
- IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
478
- IsShare: '否',
479
- checker: {},
480
- NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
481
- criteriaShow: false,
482
- checkers: [],
483
- chosenOrg: {id: 0},
484
- showModal: false,
485
- checkedAll: false,
486
- checkrows: [],
487
- adjustables: [],
488
- f_plan_year: year + '',
489
- f_plan_month: moptions[new Date().getMonth()].value,
490
- f_effective_start_time: '', //计划有效起始时间
491
- f_effective_end_time: '', //计划有效结束时间
492
- checkboxModel: {},
493
- c_year_list: options,
494
- c_month_list: moptions,
495
- areas: this.areas(),
496
- checkstatus: this.checkstatus(),
497
- usertypes: this.usertypes(),
498
- userstates: this.userstates(),
499
- sqlname: '',
500
- f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
501
- creatPlanWay: '',
502
- sliceArea: [],
503
- cbcs:[],
504
- cbc:[],
505
- pcds:[]
506
-
507
- }
508
- },
509
- props: {
510
- style: {
511
- type: String,
512
- default: 'col-sm-2 form-group'
513
- },
514
- style2: {
515
- type: String,
516
- default: 'col-sm-4 form-group'
517
- },
518
- checkplan: { // 传入一条安检计划信息
519
- type: Object
520
- },
521
- additemshow: {
522
- type: Boolean,
523
- default: false
524
- }
525
- },
526
- ready() {
527
- // 获取分公司信息
528
- this.model.f_defect_content=this.f_defect_content
529
-
530
- //this.getfengongsi()
531
- this.model.chosenOrg = {id: 0}
532
- this.model.f_filialeids = this.$login.f.f_orgids
533
- this.model.f_filiale = this.$login.f.f_fengongsi
534
- this.model.f_OrgStr = this.$login.f.orgpathstr
535
- this.Mreadibook(`('${this.$login.f.orgid}')`)
536
- this.getAllMeterBook(`('${this.$login.f.orgid}')`)
537
- },
538
- methods: {
539
- //获取省市区列表
540
- getPcd(val){
541
- this.pcds = [{label:'全部',value:''}]
542
- new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
543
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
544
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
545
- pcdlist.data.forEach((result)=>{
546
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
547
- })
548
- })
549
- },
550
- getmeterbook(val){
551
-
552
- //tag
553
- this.cbc=[]
554
- this.cbc.push({
555
- label:'全部',
556
- value:''
557
- })
558
- if (val==''){
559
-
560
- this.cbcs.forEach(res=>{
561
- this.cbc.push({
562
- label:res.f_book_name,
563
- value:res.id
564
- })
565
- })
566
- }else{
567
- this.cbcs.forEach(res=>{
568
- if (res.f_book_slice_area==val){
569
- this.cbc.push({
570
- label:res.f_book_name,
571
- value:res.id
572
- })
573
- }
574
- })
575
- }
576
- },
577
- Mreadibook(val){
578
- ////tag
579
- ////tag
580
- if (val){
581
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
582
- items: 'name',
583
- tablename: 't_zone',
584
- condition: `parentid in ${val}`,
585
- orderitem: 'id'
586
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
587
- this.sliceArea=[]
588
- this.sliceArea.push({
589
- label:'全部',
590
- value:''
591
- })
592
- res.data.forEach(ress=>{
593
- this.sliceArea.push({
594
- label:ress.name,
595
- value:ress.name
596
- })
597
- })
598
-
599
- })
600
- }
601
- },
602
- // 获取县域分公司内容
603
- getfengongsi() {
604
- let val = {
605
- source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
606
- userid: `${this.$login.f.id}`
607
- }
608
- let http = new HttpResetClass()
609
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
610
- res.data.forEach((item) => {
611
- this.orgstrs.push({label: item.name, value: item.id})
612
- })
613
- //tag
614
- })
615
- },
616
- // 县域分公司发生改变
617
- // orgstrchange(val){
618
- // if(val == undefined || val == ''){
619
- // return
620
- // }else {
621
- // this.checkersid = []
622
- // let gen = select(this,val)
623
- // return co(gen)
624
- // }
625
- // },
626
- getDefect(val) {
627
- if (val) {
628
- try {
629
- var defect = JSON.parse(val)
630
- return defect.result
631
- } catch (e) {
632
- //tag
633
- return '正常'
634
- }
635
- }
636
- return '正常'
637
- },
638
- checkerchange(val) {
639
- this.checkboxModel.f_checker = val.name
640
- this.checkboxModel.f_checker_id = val.id
641
- },
642
- search(args) {
643
- //tag
644
- if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
645
- this.$showMessage('如果选择 入户/未入户/未安检 选项,需要选择 安检起始时间!')
646
- return
647
- }
648
- // if (this.SafeCheckXZ == '未安检') {
649
- // if (this.SafeCheckXZ == '未入户') {
650
- // args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
651
- // } else {
652
- // if (args.model.f_check_start) {
653
- // args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
654
- // }
655
- // if (args.model.f_check_end) {
656
- // args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
657
- // }
658
- // }
659
- args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
660
- let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
661
- con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
662
- con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
663
- con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
664
- con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
665
- con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''
666
- if (this.SafeCheckXZ) {
667
- con += args.model.f_check_start ? ` and f_upload_date >= '${args.model.f_check_start}'` : ''
668
- con += args.model.f_check_end ? ` and f_upload_date <= '${args.model.f_check_end}'` : ''
669
- if (this.SafeCheckXZ != '未安检'){
670
- con += ` and f_entry_status = '入户 '`
671
- }
672
- // con += args.model.f_check_start ? ` and ( f_offsite_time < '${args.model.f_check_start}' or f_offsite_time > '${args.model.f_check_end}' )` : ''
673
- args.condition += this.SafeCheckXZ != '入户' ? " and ruhuid is null" : " and ruhuid is not null"
674
- }
675
- con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
676
- con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
677
- let condition = {
678
- condition1: args.condition,
679
- condition2: con
680
- }
681
- //tag
682
- this.searchData.condition = condition
683
- return this.model.search(condition, args.model)
684
- },
685
- checkstatus() {
686
- return this.$appdata.getParam('安检状态') ? [{
687
- label: '全部',
688
- value: ''
689
- }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
690
- },
691
- usertypes() {
692
- return this.$appdata.getParam('用户类型') ? [{
693
- label: '全部',
694
- value: ''
695
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
696
- },
697
- userstates() {
698
- return this.$appdata.getParam('用户状态') ? [{
699
- label: '全部',
700
- value: ''
701
- }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
702
- },
703
- hiddenr() {
704
- this.$parent.showItem = !this.$parent.showItem
705
- },
706
- hidden() {
707
- this.criteriaShow = !this.criteriaShow
708
- },
709
- confirm() {
710
- if (!this.checkboxModel.f_plan_name) {
711
- this.$showMessage('请填写安检计划名称!')
712
- return
713
- }
714
- // if(this.f_effective_start_time == ''){
715
- // this.$showMessage('请选择有效起始日期!')
716
- // return
717
- // }
718
- // if(this.f_effective_end_time == ''){
719
- // this.$showMessage('请选择有效结束日期!')
720
- // return
721
- // }
722
- if (this.IsShare == '否') {
723
- if (!this.checkboxModel.f_checker_id) {
724
- this.$showMessage('请选择安检员!')
725
- return
726
- }
727
- }
728
- let gen = saveGen(this)
729
- return co(gen)
730
- },
731
- changeStates() {
732
- if (this.checkedAll) {//实现反选/
733
- this.checkrows = [];
734
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
735
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
736
- }
737
- } else {//实现全选
738
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
739
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
740
- }
741
- let _this = this
742
- let condition = this.$refs.paged.$refs.criteria.condition
743
- let url = this.model.url
744
- this.$resetpost(`${url}?pageSize=9999999`, {
745
- data: {
746
- condition: condition,
747
- groupitem: '',
748
- orderitem: 'f_residential_area',
749
- f_usertype: this.model.f_usertype,
750
- f_filialeids: this.model.f_filialeids,
751
- month: this.model.month,
752
- safeCycle: this.model.safeCycle,
753
- f_checktime_start: this.model.f_checktime_start,
754
- f_checktime_end: this.model.f_checktime_end,
755
- SafeCheckSX: this.model.SafeCheckSX,
756
- f_last_check_state: this.model.f_last_check_state
757
- },
758
- }, {resolveMsg: null, rejectMsg: null}, -1).then(
759
- (respanse) => {
760
- if (respanse.data.length >= 5000) {
761
- this.$showMessage("数据量太大,请重新选择")
762
- } else {
763
- _this.checkrows = []
764
- for (let j = 0; j < respanse.data.length; j++) {
765
- _this.checkrows.push(respanse.data[j])
766
- }
767
- //tag;
768
- }
769
- })
770
- }
771
- },
772
- addChecked(item) {
773
- //tag;
774
- if (!item.checked) {
775
- this.checkrows.push(item);
776
- //tag;
777
- } else {
778
- for (let i = 0; i < this.checkrows.length; i++) {
779
- if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
780
- this.checkrows.splice(i, 1)
781
- }
782
- }
783
- }
784
- },
785
- ToshowModal() {
786
- this.creatPlanWay = 'single'
787
- if (this.checkrows.length > 0) {
788
- this.showModal = true
789
- } else {
790
- this.$showMessage("请选择需要安检的用户!")
791
- }
792
- },
793
- FiltrationPlan() {
794
- if (this.model.rows.length == 0) {
795
- this.$showMessage("暂无可生成的计划!")
796
- return
797
- }
798
- this.creatPlanWay = 'filtration'
799
- this.showModal = true
800
- },
801
- AllPlan() {
802
- if (this.model.rows.length == 0) {
803
- this.$showMessage("暂无可生成的计划!")
804
- return
805
- }
806
- this.creatPlanWay = 'all'
807
- this.showModal = true
808
- },
809
- cancel() {
810
- this.showModal = false
811
- },
812
- areas() {
813
- let rs = []
814
- for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
815
- let temp = {
816
- label: this.$login.f.f_allArea[i].label,
817
- value: this.$login.f.f_allArea[i].label
818
- }
819
- rs.push(temp)
820
- }
821
- return [{label: '全部', value: ''}, ...rs]
822
- },
823
- initAdjustables() {
824
- //tag
825
- let arr = []
826
- let filter = this.$login.f.f_orgids
827
- this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
828
- let temp = {}
829
- temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
830
- temp.value = `${item.value.id}`
831
- arr.push(temp)
832
- })
833
- this.adjustables = [{label: '全部', value: ''}, ...arr]
834
- },
835
- getAllMeterBook(val){
836
- ////tag
837
- ////tag
838
- this.cbcs=[]
839
- if (val){
840
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
841
- items: 'f_book_name,f_book_slice_area,id',
842
- tablename: 't_meter_book',
843
- condition: `f_filiale_id in ${val}`,
844
- orderitem: 'id'
845
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
846
- res.data.forEach(ress=>{
847
- this.cbcs.push({
848
- id:ress.id,
849
- f_book_name:ress.f_book_name,
850
- f_book_slice_area:ress.f_book_slice_area
851
- })
852
- })
853
- this.cbc=[]
854
- this.cbc.push({
855
- label:'全部',
856
- value:''
857
- })
858
- this.cbcs.forEach(res=>{
859
- this.cbc.push({
860
- label:res.f_book_name,
861
- value:res.f_book_slice_area
862
- })
863
- })
864
- })
865
- }
866
- },
867
- getRes(obj) {
868
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
869
- this.Mreadibook(this.model.f_filialeids)
870
- this.getAllMeterBook(this.model.f_filialeids)
871
- this.getPcd(this.model.f_filialeids)
872
- }
873
- },
874
-
875
- watch: {
876
- 'model.f_usertype'(val) {
877
- if (val == '民用') {
878
- this.model.safeCycle = this.civil
879
- } else if (val == '非民用') {
880
- this.model.safeCycle = this.civilian
881
- }
882
- },
883
- 'model.SafeCheckXZ'(val) {
884
- this.model.SafeCheckSC = ''
885
- // if (val == '已安检') {
886
- if (val == '已入户') {
887
- this.model.SafeCheckCQ = ''
888
- this.model.SafeCheckSX = {
889
- f_check_end: '', // 安检时间 查询起始条件
890
- f_check_start: ''// 安检时间 查询终止条件
891
- }
892
- } else {
893
- // 当使用筛选条件时,清空不需要的条件选项
894
- this.model.f_issue_start = ''
895
- this.model.f_issue_end = ''
896
- this.$refs.paged.$refs.criteria.model.f_check_start = ''
897
- this.$refs.paged.$refs.criteria.model.f_check_end = ''
898
- this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
899
- this.model.month = ''
900
- // if (val == '应安检') {
901
- if (val == '应入户') {
902
- this.model.SafeCheckSC = '否'
903
- this.model.f_issue_start = Util.toStartDateString()
904
- this.model.f_issue_end = Util.toStandardDateString()
905
- }
906
- // this.model.f_checktime_start = ''
907
- // this.model.f_checktime_end = ''
908
- }
909
- },
910
- 'model.SafeCheckSC'(val) {
911
- if (val == '') {
912
- this.model.f_issue_start = ''
913
- this.model.f_issue_end = ''
914
- }
915
- },
916
- // 'checker'(val){
917
- // //tag
918
- // if(val){
919
- // this.checkboxModel.f_checker = this.checker[0].name
920
- // this.checkboxModel.f_checker_id = this.checker[0].id
921
- // }
922
- // },
923
- 'model.rows'() {
924
- // if (!this.checkedAll) {//实现反选/
925
- // this.checkrows = [];
926
- for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
927
- var k = false
928
- for (let j = 0; j < this.checkrows.length; j++) {
929
- if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
930
- this.$set('$refs.paged.model.rows[' + i + '].checked', true)
931
- k = true
932
- continue
933
- }
934
- }
935
- if (!k) {
936
- this.$set('$refs.paged.model.rows[' + i + '].checked', false)
937
- }
938
- }
939
- // } else {//实现全选
940
- // // this.checkboxModel = {};
941
- // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
942
- // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
943
- // }
944
- // }
945
- }
946
- },
947
- computed: {
948
- selected() {
949
- return this.$refs.paged.$refs.grid.selected
950
- }
951
- }
952
- }
953
- </script>
954
- <style scoped>
955
- .newcolor {
956
- color: red;
957
- }
958
-
959
- .table th {
960
- background-color: #f2f6fa;
961
- color: black;
962
- }
963
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">用户编号</label>
9
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ id="f_userinfo_code"
11
+
12
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">用户姓名</label>
16
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
17
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
18
+ </div>
19
+ <div :class="$parent.$parent.style">
20
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
21
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
22
+ id="f_residential_area"
23
+ placeholder="小区" condition="f_residential_area like '%{}%'">
24
+ </div>
25
+ <div :class="$parent.$parent.style">
26
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
27
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
28
+ placeholder="地址" condition="f_address like '%{}%'">
29
+ </div>
30
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
31
+ <export-excel-old :data="$parent.$parent.searchData"
32
+ :field="$parent.$parent.excelHeaders"
33
+ :choose-col="true"
34
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
35
+ template-name='用户安检情况'></export-excel-old>
36
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
37
+ <div style="float: right" class="button_spacing"
38
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
39
+ @click="$parent.$parent.hiddenr()"></div>
40
+ <div style="float: right" class="button_spacing"
41
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
42
+ @click="$parent.$parent.hidden()">
43
+
44
+ </div>
45
+ </div>
46
+
47
+
48
+ </div>
49
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
50
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
51
+ <label class="font_normal_body">用户类型</label>
52
+ <v-select id="f_usertype"
53
+ placeholder='用户类型'
54
+ class="select select_list"
55
+ :value.sync="model.f_usertype"
56
+ :value-single="true"
57
+ :options='$parent.$parent.usertypes'
58
+ v-model="model.f_usertype"
59
+ condition="f_user_type = '{}'"
60
+ close-on-select clear-button></v-select>
61
+ </div>
62
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
63
+
64
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
65
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
66
+ <v-select
67
+ placeholder='安检筛选'
68
+ :value-single="true"
69
+ class="select select_list"
70
+ :value.sync="$parent.$parent.SafeCheckXZ"
71
+ :options='$parent.$parent.SafeCheckXZs'
72
+ v-model="$parent.$parent.SafeCheckXZ"
73
+ close-on-select clear-button></v-select>
74
+ </div>
75
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
76
+ <label class="font_normal_body">安检起始</label>
77
+ <datepicker
78
+ :value.sync="model.f_check_start"
79
+ placeholder='最后安检时间起始'
80
+ style="width: 60%"
81
+ :format="'yyyy-MM-dd 00:00:00'"
82
+ :show-rest-button="reset"
83
+ v-model="model.f_check_start">
84
+ </datepicker>
85
+ </div>
86
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
87
+ <label class="font_normal_body">安检结束</label>
88
+ <datepicker
89
+ :value.sync="model.f_check_end"
90
+ placeholder='最后安检时间结束'
91
+ style="width: 60%"
92
+ :format="'yyyy-MM-dd 23:59:59'"
93
+ :show-rest-button="reset"
94
+ v-model="model.f_check_end">
95
+ </datepicker>
96
+ </div>
97
+
98
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
99
+ <!-- <label class="font_normal_body">安检状态</label>-->
100
+ <!-- <v-select id="f_entry"-->
101
+ <!-- placeholder='安检状态'-->
102
+ <!-- class="select select_list"-->
103
+ <!-- :value.sync="model.f_last_check_state"-->
104
+ <!-- :value-single="true"-->
105
+ <!-- :options='$parent.$parent.checkstatus'-->
106
+ <!-- v-model="model.f_last_check_state"-->
107
+ <!-- condition="f_last_check_state = '{}'"-->
108
+ <!-- close-on-select clear-button></v-select>-->
109
+ <!-- </div>-->
110
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
111
+ <label class="font_normal_body">隐患情况</label>
112
+ <v-select
113
+ placeholder='隐患情况'
114
+ class="select select_list"
115
+ :value-single="true"
116
+ v-model='model.f_check_result'
117
+ :value.sync="model.f_check_result"
118
+ :options='$parent.$parent.f_check_results'
119
+ condition="f_last_check_result like '%{}%'"
120
+ close-on-select clear-button></v-select>
121
+ </div>
122
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
123
+ </div>
124
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
125
+
126
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
127
+ <role-selector-safe
128
+ role-name="安检员"
129
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
130
+ @re-res="$parent.$parent.getRes"
131
+ :value.sync="model.f_checker_id"
132
+ v-model="model.f_checker_id"
133
+ :value-multiple="true"
134
+ condition=" f_checker_name in {}">
135
+ </role-selector-safe>
136
+ </div>
137
+ <div class="form-group col-sm-2" :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
138
+ <label class="font_normal_body">表册片区</label>
139
+ <v-select class="select_list select"
140
+ placeholder='表册片区' style="width: 60%"
141
+ :value.sync="model.f_book_slice_area" v-model="model.f_book_slice_area"
142
+ :options='$parent.$parent.sliceArea'
143
+ filer-key="name"
144
+ close-on-select clear-button
145
+ condition="f_book_slice_area='{}'"
146
+ @change="$parent.$parent.getmeterbook(model.f_book_slice_area)"
147
+ :value-single="true">
148
+ </v-select>
149
+ </div>
150
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
151
+ <!-- <label class="font_normal_body">片&emsp;&emsp;区</label>-->
152
+ <!-- <v-select class="select_list select"-->
153
+ <!-- placeholder='片区/管理站' style="width: 60%"-->
154
+ <!-- :value.sync="model.f_slice_area" v-model="model.f_slice_area"-->
155
+ <!-- :options='$parent.$parent.sliceArea'-->
156
+ <!-- filer-key="name"-->
157
+ <!-- close-on-select clear-button-->
158
+ <!-- condition="f_slice_area='{}'"-->
159
+ <!-- @change="$parent.$parent.getmeterbook(model.f_slice_area)"-->
160
+ <!-- :value-single="true">-->
161
+ <!-- </v-select>-->
162
+ <!-- </div>-->
163
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
164
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
165
+ <v-select class="select_list select"
166
+ placeholder='抄表册' style="width: 60%"
167
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
168
+ :options='$parent.$parent.cbc'
169
+ filer-key="name"
170
+ close-on-select clear-button
171
+ condition="f_meter_book_num={}"
172
+ :value-single="true">
173
+ </v-select>
174
+ </div>
175
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
176
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
177
+ <v-select class="select_list select"
178
+ placeholder='请选择' style="width: 60%"
179
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
180
+ :options='$parent.$parent.pcds'
181
+ filer-key="name"
182
+ close-on-select clear-button
183
+ condition="f_pcd='{}'"
184
+ :value-single="true">
185
+ </v-select>
186
+ </div>
187
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
188
+ <label class="font_normal_body">用户状态</label>
189
+ <v-select class="select_list select"
190
+ placeholder='用户状态' style="width: 60%"
191
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
192
+ :options='$parent.$parent.userstates'
193
+ close-on-select clear-button
194
+ condition="f_user_state = '{}'"
195
+ :value-single="true">
196
+ </v-select>
197
+ </div>
198
+ </div>
199
+
200
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
201
+ <div :class="$parent.$parent.style">
202
+ <label class="font_normal_body">用户编号</label>
203
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
204
+
205
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
206
+ </div>
207
+ <div :class="$parent.$parent.style">
208
+ <label class="font_normal_body">用户姓名</label>
209
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
210
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
211
+ </div>
212
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
213
+ <export-excel-old :data="$parent.$parent.searchData"
214
+ :field="$parent.$parent.excelHeaders"
215
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="根据安检员查询用户档案"
216
+ template-name='用户安检情况'></export-excel-old>
217
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
218
+ <div style="float: right" class="button_spacing"
219
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
220
+ @click="$parent.$parent.hiddenr()"></div>
221
+ <div style="float: right" class="button_spacing"
222
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
223
+ @click="$parent.$parent.hidden()">
224
+
225
+ </div>
226
+ </div>
227
+
228
+ </div>
229
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
230
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
231
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
232
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
233
+
234
+ placeholder="小区" condition="f_residential_area like '%{}%'">
235
+ </div>
236
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
237
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
238
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
239
+
240
+ placeholder="地址" condition="f_address like '%{}%'">
241
+ </div>
242
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
243
+ <label class="font_normal_body">用户类型</label>
244
+ <v-select
245
+ placeholder='用户类型'
246
+ class="select select_list"
247
+
248
+ :value.sync="model.f_usertype"
249
+ :value-single="true"
250
+ :options='$parent.$parent.usertypes'
251
+ v-model="model.f_usertype"
252
+ condition="f_user_type = '{}'"
253
+ close-on-select clear-button></v-select>
254
+ </div>
255
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
256
+
257
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
258
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
259
+ <v-select
260
+ placeholder='安检筛选'
261
+ :value-single="true"
262
+ class="select select_list"
263
+ :value.sync="$parent.$parent.SafeCheckXZ"
264
+ :options='$parent.$parent.SafeCheckXZs'
265
+ v-model="$parent.$parent.SafeCheckXZ"
266
+ close-on-select clear-button></v-select>
267
+ </div>
268
+
269
+ </div>
270
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
271
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
272
+ <label class="font_normal_body">安检起始</label>
273
+ <datepicker
274
+ :value.sync="model.f_check_start"
275
+ placeholder='最后安检时间起始'
276
+ :disabled-days-of-week="[]"
277
+ style="width: 60%"
278
+ :format="'yyyy-MM-dd'"
279
+ :show-rest-button="reset"
280
+ v-model="model.f_check_start">
281
+ </datepicker>
282
+ </div>
283
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
284
+ <label class="font_normal_body">安检结束</label>
285
+ <datepicker
286
+ :value.sync="model.f_check_end"
287
+ placeholder='最后安检时间结束'
288
+ style="width: 60%"
289
+ :disabled-days-of-week="[]"
290
+ :format="'yyyy-MM-dd'"
291
+ :show-rest-button="reset"
292
+ v-model="model.f_check_end">
293
+ </datepicker>
294
+ </div>
295
+
296
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
297
+ <label class="font_normal_body">安检状态</label>
298
+ <v-select
299
+ placeholder='安检状态'
300
+ class="select select_list"
301
+
302
+ :value.sync="model.f_last_check_state"
303
+ :value-single="true"
304
+ :options='$parent.$parent.checkstatus'
305
+ v-model="model.f_last_check_state"
306
+ condition="f_last_check_state = '{}'"
307
+ close-on-select clear-button></v-select>
308
+ </div>
309
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
310
+ <label class="font_normal_body">隐患情况</label>
311
+ <v-select
312
+ placeholder='隐患情况'
313
+ class="select select_list"
314
+
315
+ :value-single="true"
316
+ v-model='model.f_check_result'
317
+ :value.sync="model.f_check_result"
318
+ :options='$parent.$parent.f_check_results'
319
+ condition="f_last_check_result like '%{}%'"
320
+ close-on-select clear-button></v-select>
321
+ </div>
322
+
323
+ </div>
324
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
325
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
326
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
327
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
328
+ </right-tree>
329
+ </div>
330
+
331
+ </div>-->
332
+ </div>
333
+ </criteria>
334
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
335
+ <template partial='head'>
336
+ <tr>
337
+ <th>
338
+ <nobr>用户编号</nobr>
339
+ </th>
340
+ <th>
341
+ <nobr>用户名称</nobr>
342
+ </th>
343
+ <th>
344
+ <nobr>用户电话</nobr>
345
+ </th>
346
+ <th>
347
+ <nobr>用户表号</nobr>
348
+ </th>
349
+ <!-- <th>-->
350
+ <!-- <nobr>气表品牌</nobr>-->
351
+ <!-- </th>-->
352
+ <th>
353
+ <nobr>用户类型</nobr>
354
+ </th>
355
+ <!-- <th>-->
356
+ <!-- <nobr>壁挂炉</nobr>-->
357
+ <!-- </th>-->
358
+ <!-- <th>-->
359
+ <!-- <nobr>灶具</nobr>-->
360
+ <!-- </th>-->
361
+ <th>
362
+ <nobr>小区名称</nobr>
363
+ </th>
364
+ <th style="padding: 0 40px">
365
+ <nobr>地址</nobr>
366
+ </th>
367
+ <th>
368
+ <nobr>安检员</nobr>
369
+ </th>
370
+ <!-- <th>-->
371
+ <!-- <nobr>安检员备注</nobr>-->
372
+ <!-- </th>-->
373
+ <th>
374
+ <nobr>安检日期</nobr>
375
+ </th>
376
+ <th>
377
+ <nobr>安检状态</nobr>
378
+ </th>
379
+ <th>
380
+ <nobr>安检结果</nobr>
381
+ </th>
382
+ </tr>
383
+ </template>
384
+ <template partial='body'>
385
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
386
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
387
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
388
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
389
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
390
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
391
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
392
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
393
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
394
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
395
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
396
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
397
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
398
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
399
+ {{row.f_last_check_result }}
400
+ </td>
401
+ </template>
402
+ </data-grid>
403
+ </criteria-paged>
404
+ </div>
405
+ </template>
406
+
407
+ <script>
408
+ import {PagedList} from 'vue-client'
409
+ import {HttpResetClass} from 'vue-client'
410
+ import co from 'co'
411
+ import * as Util from '../../Util'
412
+ import Vue from 'vue'
413
+
414
+ // let select = function * (self,userid) {
415
+ // let http = new HttpResetClass()
416
+ // let getGasman = yield http.load('POST','/rs/search', {
417
+ // source: 'this.getChildByName($安检员$).getUsers()',
418
+ // userid: userid
419
+ // }, {resolveMsg: null, rejectMsg: null})
420
+ // //tag
421
+ // getGasman.data.forEach((checker)=>{
422
+ // self.checkersid.push({label:checker.name,value:checker.id})
423
+ // })
424
+ // self.checkersid.push({label:'全部',value:''})
425
+ // }
426
+
427
+
428
+ export default {
429
+ title: '用户安检情况',
430
+ data() {
431
+ let options = []
432
+ let year = (new Date()).getFullYear()
433
+ for (let i = year; i <= year + 3; i++)
434
+ options.push({label: i + '', value: i + ''})
435
+ let moptions = []
436
+ for (let i = 1; i <= 12; i++)
437
+ moptions.push({label: i + '', value: i + ''})
438
+
439
+ return {
440
+ searchData: {
441
+ condition: '1=1',
442
+ orderitem: "f_userinfo_code",
443
+ timetype: "dd",
444
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
445
+
446
+ },
447
+ excelHeaders: {
448
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
449
+
450
+ 'f_userinfo_code': '用户编号',
451
+ 'f_user_name': '用户名称',
452
+ 'f_user_phone': '用户电话',
453
+ 'f_meternumber': '用户表号',
454
+ 'f_user_type': '用户类型',
455
+ 'f_checker_name': '安检员',
456
+ 'f_residential_area': '小区名称',
457
+ 'f_address': '地址',
458
+ 'f_last_check_date': '安检日期',
459
+ 'f_last_check_state': '安检状态',
460
+ 'f_last_check_result': '安检结果'
461
+ },
462
+ model: new PagedList('api/af-safecheck/sql/根据安检员查询用户档案', 20, {
463
+ orderitem: "'f_last_check_date'",
464
+ timetype: "'dd'",
465
+ f_defect_content: 'this.f_defect_content'
466
+ }),
467
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
468
+ orgstrs: [{label: '全部', value: ''}],
469
+ checkersid: [],
470
+ SafeCheckXZ: '',
471
+ civil: '', //民用安检周期
472
+ civilian: '', //非民用安检周期
473
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '入户', value: '入户'}, {label: '未入户', value: '未入户'}, {label: '未安检', value: '未安检'}], // 安检筛选选项
474
+ // SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
475
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
476
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
477
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
478
+ IsShare: '否',
479
+ checker: {},
480
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
481
+ criteriaShow: false,
482
+ checkers: [],
483
+ chosenOrg: {id: 0},
484
+ showModal: false,
485
+ checkedAll: false,
486
+ checkrows: [],
487
+ adjustables: [],
488
+ f_plan_year: year + '',
489
+ f_plan_month: moptions[new Date().getMonth()].value,
490
+ f_effective_start_time: '', //计划有效起始时间
491
+ f_effective_end_time: '', //计划有效结束时间
492
+ checkboxModel: {},
493
+ c_year_list: options,
494
+ c_month_list: moptions,
495
+ areas: this.areas(),
496
+ checkstatus: this.checkstatus(),
497
+ usertypes: this.usertypes(),
498
+ userstates: this.userstates(),
499
+ sqlname: '',
500
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
501
+ creatPlanWay: '',
502
+ sliceArea: [],
503
+ cbcs:[],
504
+ cbc:[],
505
+ pcds:[]
506
+
507
+ }
508
+ },
509
+ props: {
510
+ style: {
511
+ type: String,
512
+ default: 'col-sm-2 form-group'
513
+ },
514
+ style2: {
515
+ type: String,
516
+ default: 'col-sm-4 form-group'
517
+ },
518
+ checkplan: { // 传入一条安检计划信息
519
+ type: Object
520
+ },
521
+ additemshow: {
522
+ type: Boolean,
523
+ default: false
524
+ }
525
+ },
526
+ ready() {
527
+ // 获取分公司信息
528
+ this.model.f_defect_content=this.f_defect_content
529
+
530
+ //this.getfengongsi()
531
+ this.model.chosenOrg = {id: 0}
532
+ this.model.f_filialeids = this.$login.f.f_orgids
533
+ this.model.f_filiale = this.$login.f.f_fengongsi
534
+ this.model.f_OrgStr = this.$login.f.orgpathstr
535
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
536
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
537
+ },
538
+ methods: {
539
+ //获取省市区列表
540
+ getPcd(val){
541
+ this.pcds = [{label:'全部',value:''}]
542
+ new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_OrderBy`,
543
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
544
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
545
+ pcdlist.data.forEach((result)=>{
546
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
547
+ })
548
+ })
549
+ },
550
+ getmeterbook(val){
551
+
552
+ //tag
553
+ this.cbc=[]
554
+ this.cbc.push({
555
+ label:'全部',
556
+ value:''
557
+ })
558
+ if (val==''){
559
+
560
+ this.cbcs.forEach(res=>{
561
+ this.cbc.push({
562
+ label:res.f_book_name,
563
+ value:res.id
564
+ })
565
+ })
566
+ }else{
567
+ this.cbcs.forEach(res=>{
568
+ if (res.f_book_slice_area==val){
569
+ this.cbc.push({
570
+ label:res.f_book_name,
571
+ value:res.id
572
+ })
573
+ }
574
+ })
575
+ }
576
+ },
577
+ Mreadibook(val){
578
+ ////tag
579
+ ////tag
580
+ if (val){
581
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
582
+ items: 'name',
583
+ tablename: 't_zone',
584
+ condition: `parentid in ${val}`,
585
+ orderitem: 'id'
586
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
587
+ this.sliceArea=[]
588
+ this.sliceArea.push({
589
+ label:'全部',
590
+ value:''
591
+ })
592
+ res.data.forEach(ress=>{
593
+ this.sliceArea.push({
594
+ label:ress.name,
595
+ value:ress.name
596
+ })
597
+ })
598
+
599
+ })
600
+ }
601
+ },
602
+ // 获取县域分公司内容
603
+ getfengongsi() {
604
+ let val = {
605
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
606
+ userid: `${this.$login.f.id}`
607
+ }
608
+ let http = new HttpResetClass()
609
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
610
+ res.data.forEach((item) => {
611
+ this.orgstrs.push({label: item.name, value: item.id})
612
+ })
613
+ //tag
614
+ })
615
+ },
616
+ // 县域分公司发生改变
617
+ // orgstrchange(val){
618
+ // if(val == undefined || val == ''){
619
+ // return
620
+ // }else {
621
+ // this.checkersid = []
622
+ // let gen = select(this,val)
623
+ // return co(gen)
624
+ // }
625
+ // },
626
+ getDefect(val) {
627
+ if (val) {
628
+ try {
629
+ var defect = JSON.parse(val)
630
+ return defect.result
631
+ } catch (e) {
632
+ //tag
633
+ return '正常'
634
+ }
635
+ }
636
+ return '正常'
637
+ },
638
+ checkerchange(val) {
639
+ this.checkboxModel.f_checker = val.name
640
+ this.checkboxModel.f_checker_id = val.id
641
+ },
642
+ search(args) {
643
+ //tag
644
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
645
+ this.$showMessage('如果选择 入户/未入户/未安检 选项,需要选择 安检起始时间!')
646
+ return
647
+ }
648
+ // if (this.SafeCheckXZ == '未安检') {
649
+ // if (this.SafeCheckXZ == '未入户') {
650
+ // args.condition += " and ( f_last_check_date >= '" + args.model.f_check_end + "' or f_last_check_date <= '" + args.model.f_check_start + "' or f_last_check_date is null)"
651
+ // } else {
652
+ // if (args.model.f_check_start) {
653
+ // args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
654
+ // }
655
+ // if (args.model.f_check_end) {
656
+ // args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
657
+ // }
658
+ // }
659
+ args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
660
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
661
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
662
+ con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
663
+ con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
664
+ con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
665
+ con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''
666
+ if (this.SafeCheckXZ) {
667
+ con += args.model.f_check_start ? ` and f_upload_date >= '${args.model.f_check_start}'` : ''
668
+ con += args.model.f_check_end ? ` and f_upload_date <= '${args.model.f_check_end}'` : ''
669
+ if (this.SafeCheckXZ != '未安检'){
670
+ con += ` and f_entry_status = '入户 '`
671
+ }
672
+ // con += args.model.f_check_start ? ` and ( f_offsite_time < '${args.model.f_check_start}' or f_offsite_time > '${args.model.f_check_end}' )` : ''
673
+ args.condition += this.SafeCheckXZ != '入户' ? " and ruhuid is null" : " and ruhuid is not null"
674
+ }
675
+ con += args.model.f_last_check_state ? ` and f_entry_status = '${args.model.f_last_check_state}'` : ''
676
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ''
677
+ let condition = {
678
+ condition1: args.condition,
679
+ condition2: con
680
+ }
681
+ //tag
682
+ this.searchData.condition = condition
683
+ return this.model.search(condition, args.model)
684
+ },
685
+ checkstatus() {
686
+ return this.$appdata.getParam('安检状态') ? [{
687
+ label: '全部',
688
+ value: ''
689
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
690
+ },
691
+ usertypes() {
692
+ return this.$appdata.getParam('用户类型') ? [{
693
+ label: '全部',
694
+ value: ''
695
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
696
+ },
697
+ userstates() {
698
+ return this.$appdata.getParam('用户状态') ? [{
699
+ label: '全部',
700
+ value: ''
701
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
702
+ },
703
+ hiddenr() {
704
+ this.$parent.showItem = !this.$parent.showItem
705
+ },
706
+ hidden() {
707
+ this.criteriaShow = !this.criteriaShow
708
+ },
709
+ confirm() {
710
+ if (!this.checkboxModel.f_plan_name) {
711
+ this.$showMessage('请填写安检计划名称!')
712
+ return
713
+ }
714
+ // if(this.f_effective_start_time == ''){
715
+ // this.$showMessage('请选择有效起始日期!')
716
+ // return
717
+ // }
718
+ // if(this.f_effective_end_time == ''){
719
+ // this.$showMessage('请选择有效结束日期!')
720
+ // return
721
+ // }
722
+ if (this.IsShare == '否') {
723
+ if (!this.checkboxModel.f_checker_id) {
724
+ this.$showMessage('请选择安检员!')
725
+ return
726
+ }
727
+ }
728
+ let gen = saveGen(this)
729
+ return co(gen)
730
+ },
731
+ changeStates() {
732
+ if (this.checkedAll) {//实现反选/
733
+ this.checkrows = [];
734
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
735
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
736
+ }
737
+ } else {//实现全选
738
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
739
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
740
+ }
741
+ let _this = this
742
+ let condition = this.$refs.paged.$refs.criteria.condition
743
+ let url = this.model.url
744
+ this.$resetpost(`${url}?pageSize=9999999`, {
745
+ data: {
746
+ condition: condition,
747
+ groupitem: '',
748
+ orderitem: 'f_residential_area',
749
+ f_usertype: this.model.f_usertype,
750
+ f_filialeids: this.model.f_filialeids,
751
+ month: this.model.month,
752
+ safeCycle: this.model.safeCycle,
753
+ f_checktime_start: this.model.f_checktime_start,
754
+ f_checktime_end: this.model.f_checktime_end,
755
+ SafeCheckSX: this.model.SafeCheckSX,
756
+ f_last_check_state: this.model.f_last_check_state
757
+ },
758
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
759
+ (respanse) => {
760
+ if (respanse.data.length >= 5000) {
761
+ this.$showMessage("数据量太大,请重新选择")
762
+ } else {
763
+ _this.checkrows = []
764
+ for (let j = 0; j < respanse.data.length; j++) {
765
+ _this.checkrows.push(respanse.data[j])
766
+ }
767
+ //tag;
768
+ }
769
+ })
770
+ }
771
+ },
772
+ addChecked(item) {
773
+ //tag;
774
+ if (!item.checked) {
775
+ this.checkrows.push(item);
776
+ //tag;
777
+ } else {
778
+ for (let i = 0; i < this.checkrows.length; i++) {
779
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
780
+ this.checkrows.splice(i, 1)
781
+ }
782
+ }
783
+ }
784
+ },
785
+ ToshowModal() {
786
+ this.creatPlanWay = 'single'
787
+ if (this.checkrows.length > 0) {
788
+ this.showModal = true
789
+ } else {
790
+ this.$showMessage("请选择需要安检的用户!")
791
+ }
792
+ },
793
+ FiltrationPlan() {
794
+ if (this.model.rows.length == 0) {
795
+ this.$showMessage("暂无可生成的计划!")
796
+ return
797
+ }
798
+ this.creatPlanWay = 'filtration'
799
+ this.showModal = true
800
+ },
801
+ AllPlan() {
802
+ if (this.model.rows.length == 0) {
803
+ this.$showMessage("暂无可生成的计划!")
804
+ return
805
+ }
806
+ this.creatPlanWay = 'all'
807
+ this.showModal = true
808
+ },
809
+ cancel() {
810
+ this.showModal = false
811
+ },
812
+ areas() {
813
+ let rs = []
814
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
815
+ let temp = {
816
+ label: this.$login.f.f_allArea[i].label,
817
+ value: this.$login.f.f_allArea[i].label
818
+ }
819
+ rs.push(temp)
820
+ }
821
+ return [{label: '全部', value: ''}, ...rs]
822
+ },
823
+ initAdjustables() {
824
+ //tag
825
+ let arr = []
826
+ let filter = this.$login.f.f_orgids
827
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
828
+ let temp = {}
829
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
830
+ temp.value = `${item.value.id}`
831
+ arr.push(temp)
832
+ })
833
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
834
+ },
835
+ getAllMeterBook(val){
836
+ ////tag
837
+ ////tag
838
+ this.cbcs=[]
839
+ if (val){
840
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
841
+ items: 'f_book_name,f_book_slice_area,id',
842
+ tablename: 't_meter_book',
843
+ condition: `f_filiale_id in ${val}`,
844
+ orderitem: 'id'
845
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
846
+ res.data.forEach(ress=>{
847
+ this.cbcs.push({
848
+ id:ress.id,
849
+ f_book_name:ress.f_book_name,
850
+ f_book_slice_area:ress.f_book_slice_area
851
+ })
852
+ })
853
+ this.cbc=[]
854
+ this.cbc.push({
855
+ label:'全部',
856
+ value:''
857
+ })
858
+ this.cbcs.forEach(res=>{
859
+ this.cbc.push({
860
+ label:res.f_book_name,
861
+ value:res.f_book_slice_area
862
+ })
863
+ })
864
+ })
865
+ }
866
+ },
867
+ getRes(obj) {
868
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
869
+ this.Mreadibook(this.model.f_filialeids)
870
+ this.getAllMeterBook(this.model.f_filialeids)
871
+ this.getPcd(this.model.f_filialeids)
872
+ }
873
+ },
874
+
875
+ watch: {
876
+ 'model.f_usertype'(val) {
877
+ if (val == '民用') {
878
+ this.model.safeCycle = this.civil
879
+ } else if (val == '非民用') {
880
+ this.model.safeCycle = this.civilian
881
+ }
882
+ },
883
+ 'model.SafeCheckXZ'(val) {
884
+ this.model.SafeCheckSC = ''
885
+ // if (val == '已安检') {
886
+ if (val == '已入户') {
887
+ this.model.SafeCheckCQ = ''
888
+ this.model.SafeCheckSX = {
889
+ f_check_end: '', // 安检时间 查询起始条件
890
+ f_check_start: ''// 安检时间 查询终止条件
891
+ }
892
+ } else {
893
+ // 当使用筛选条件时,清空不需要的条件选项
894
+ this.model.f_issue_start = ''
895
+ this.model.f_issue_end = ''
896
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
897
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
898
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
899
+ this.model.month = ''
900
+ // if (val == '应安检') {
901
+ if (val == '应入户') {
902
+ this.model.SafeCheckSC = '否'
903
+ this.model.f_issue_start = Util.toStartDateString()
904
+ this.model.f_issue_end = Util.toStandardDateString()
905
+ }
906
+ // this.model.f_checktime_start = ''
907
+ // this.model.f_checktime_end = ''
908
+ }
909
+ },
910
+ 'model.SafeCheckSC'(val) {
911
+ if (val == '') {
912
+ this.model.f_issue_start = ''
913
+ this.model.f_issue_end = ''
914
+ }
915
+ },
916
+ // 'checker'(val){
917
+ // //tag
918
+ // if(val){
919
+ // this.checkboxModel.f_checker = this.checker[0].name
920
+ // this.checkboxModel.f_checker_id = this.checker[0].id
921
+ // }
922
+ // },
923
+ 'model.rows'() {
924
+ // if (!this.checkedAll) {//实现反选/
925
+ // this.checkrows = [];
926
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
927
+ var k = false
928
+ for (let j = 0; j < this.checkrows.length; j++) {
929
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
930
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
931
+ k = true
932
+ continue
933
+ }
934
+ }
935
+ if (!k) {
936
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
937
+ }
938
+ }
939
+ // } else {//实现全选
940
+ // // this.checkboxModel = {};
941
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
942
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
943
+ // }
944
+ // }
945
+ }
946
+ },
947
+ computed: {
948
+ selected() {
949
+ return this.$refs.paged.$refs.grid.selected
950
+ }
951
+ }
952
+ }
953
+ </script>
954
+ <style scoped>
955
+ .newcolor {
956
+ color: red;
957
+ }
958
+
959
+ .table th {
960
+ background-color: #f2f6fa;
961
+ color: black;
962
+ }
963
+ </style>