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,515 +1,515 @@
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-if="!$parent.$parent.$parent.showItem">
7
- <div :class="$parent.$parent.style">
8
- <label class="font_normal_body">安检计划</label>
9
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
10
- @click="$parent.$parent.showChooser"
11
- style="width: 60%" placeholder="安检计划" readonly="readonly">
12
- </div>
13
- <div :class="$parent.$parent.style">
14
- <label class="font_normal_body">存在隐患</label>
15
- <v-select style="width:60% "
16
- class="select select_list"
17
- :value.sync="model.f_has_defect"
18
- v-model="model.f_has_defect"
19
- :options='$parent.$parent.hasDefectOptions'
20
- :placeholder='model.f_has_defect'
21
- condition="f_has_defect = '{}'"
22
- close-on-select>
23
- </v-select>
24
- </div>
25
- <div :class="$parent.$parent.style">
26
- <label class="font_normal_body">用户编号</label>
27
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
28
- condition="f_userinfo_code = '{}'"
29
- style="width: 60%" placeholder="用户编号">
30
- </div>
31
- <div :class="$parent.$parent.style">
32
- <label class="font_normal_body">结果查询</label>
33
- <v-select
34
- placeholder='处理结果查询'
35
- :value-single="true"
36
- class="select select_list" style="width: 60%"
37
- v-model='model.f_repaired'
38
- :value.sync="model.f_repaired"
39
- :options='$parent.$parent.repaired'
40
- condition="f_repaired = '{}'"
41
- close-on-select clear-button> </v-select>
42
- </div>
43
- <div class=" col-sm-4 form-group button-range" >
44
- <div class="span" style="float: right;margin-top: 8px">
45
- <div style="float: right" class="button_spacing"
46
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
47
- @click="$parent.$parent.hiddenr()"></div>
48
- <div style="float: right" class="button_spacing"
49
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
50
- @click="$parent.$parent.hidden()"></div>
51
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
52
- <div style="float: right">
53
- <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
54
- :field="$parent.$parent.getfield"
55
- progress="safeGetExportProgress"
56
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew" template-name='安检隐患明细' :choose-col="true"></export-excel>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
61
- <div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
62
- <div :class="$parent.$parent.style">
63
- <label class="font_normal_body">片&emsp;&emsp;区</label>
64
- <v-select class="select_list select"
65
- placeholder='片区/管理站' style="width: 60%"
66
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
67
- :options='$parent.$parent.sliceArea'
68
- filer-key="name"
69
- close-on-select clear-button
70
- condition="f_slice_area='{}'"
71
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
72
- :value-single="true">
73
- </v-select>
74
- </div>
75
- <div :class="$parent.$parent.style2" style="margin: 0">
76
- <role-selector-safe
77
- role-name="安检员"
78
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
79
- @re-res="$parent.$parent.getRes"
80
- :value.sync="model.f_checker_id"
81
- v-model="model.f_checker_id"
82
- condition="f_checker_name = '{}'">
83
- </role-selector-safe>
84
- </div>
85
-
86
- <div :class="$parent.$parent.style">
87
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
88
- <v-select class="select_list select"
89
- placeholder='抄表册' style="width: 60%"
90
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
91
- :options='$parent.$parent.cbc'
92
- filer-key="name"
93
- close-on-select clear-button
94
- condition="f_meter_book_num={}"
95
- :value-single="true">
96
- </v-select>
97
- </div>
98
- <div :class="$parent.$parent.style">
99
- <label class="font_normal_body">起始时间</label>
100
- <datepicker
101
- placeholder='起始时间' style="width:60%"
102
- :disabled-days-of-week="[]"
103
- :format="'yyyy-MM-dd'"
104
- :show-rest-button="reset"
105
- :value.sync="model.f_start_time"
106
- v-model="model.f_start_time"
107
- condition="f_offsite_time >= '{} 00:00:00'">
108
- </datepicker>
109
- </div>
110
- <div :class="$parent.$parent.style">
111
- <label class="font_normal_body">结束时间</label>
112
- <datepicker
113
- placeholder='结束时间' style="width:60%"
114
- :disabled-days-of-week="[]"
115
- :format="'yyyy-MM-dd'"
116
- :show-rest-button="reset"
117
- :value.sync="model.f_end_time"
118
- v-model="model.f_end_time"
119
- condition="f_offsite_time <= '{} 23:59:59'">
120
- </datepicker>
121
- </div>
122
-
123
-
124
- </div>
125
- <div class="row" v-if="$parent.$parent.$parent.showItem">
126
- <div :class="$parent.$parent.style">
127
- <label class="font_normal_body">安检计划</label>
128
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
129
- @click="$parent.$parent.showChooser"
130
- style="width: 60%" placeholder="安检计划" readonly="readonly">
131
- </div>
132
- <div :class="$parent.$parent.style">
133
- <label class="font_normal_body">存在隐患</label>
134
- <v-select style="width:60% "
135
- class="select select_list"
136
- :value.sync="model.f_has_defect"
137
- v-model="model.f_has_defect"
138
- :options='$parent.$parent.hasDefectOptions'
139
- :placeholder='model.f_has_defect'
140
- condition="f_has_defect = '{}'"
141
- close-on-select>
142
- </v-select>
143
- </div>
144
-
145
- <div class=" col-sm-4 form-group button-range">
146
- <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
147
- <div style="float: right" class="button_spacing"
148
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
149
- @click="$parent.$parent.hiddenr()"></div>
150
- <div style="float: right" class="button_spacing"
151
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
152
- @click="$parent.$parent.hidden()"></div>
153
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
154
- <div style="float: right">
155
- <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content: $parent.$parent.model.f_defect_content}"
156
- :field="$parent.$parent.getfield"
157
- progress="safeGetExportProgress"
158
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew" template-name='安检计划明细' :choose-col="true"></export-excel>
159
- </div>
160
- </div>
161
- </div>
162
-
163
-
164
-
165
- </div>
166
- <div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
167
- <div :class="$parent.$parent.style">
168
- <label class="font_normal_body">用户编号</label>
169
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
170
- condition="f_userinfo_code = '{}'"
171
- style="width: 60%" placeholder="用户编号">
172
- </div>
173
- <div :class="$parent.$parent.style">
174
- <label class="font_normal_body">结果查询</label>
175
- <v-select
176
- placeholder='处理结果查询'
177
- :value-single="true"
178
- class="select select_list" style="width: 60%"
179
- v-model='model.f_repaired'
180
- :value.sync="model.f_repaired"
181
- :options='$parent.$parent.repaired'
182
- condition="f_repaired = '{}'"
183
- close-on-select clear-button> </v-select>
184
- </div>
185
-
186
- <div :class="$parent.$parent.style2" style="margin: 0">
187
- <role-selector-safe
188
- role-name="安检员"
189
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
190
- @re-res="$parent.$parent.getRes"
191
- :value.sync="model.f_checker_id"
192
- v-model="model.f_checker_id"
193
- condition="f_checker_name = '{}'">
194
- </role-selector-safe>
195
- </div>
196
- </div>
197
- <div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
198
- <div :class="$parent.$parent.style">
199
- <label class="font_normal_body">片&emsp;&emsp;区</label>
200
- <v-select class="select_list select"
201
- placeholder='片区/管理站' style="width: 60%"
202
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
203
- :options='$parent.$parent.sliceArea'
204
- filer-key="name"
205
- close-on-select clear-button
206
- condition="f_slice_area='{}'"
207
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
208
- :value-single="true">
209
- </v-select>
210
- </div>
211
- <div :class="$parent.$parent.style">
212
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
213
- <v-select class="select_list select"
214
- placeholder='抄表册' style="width: 60%"
215
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
216
- :options='$parent.$parent.cbc'
217
- filer-key="name"
218
- close-on-select clear-button
219
- condition="f_meter_book_num={}"
220
- :value-single="true">
221
- </v-select>
222
- </div>
223
- <div :class="$parent.$parent.style">
224
- <label class="font_normal_body">起始时间</label>
225
- <datepicker
226
- placeholder='起始时间' style="width:60%"
227
- :disabled-days-of-week="[]"
228
- :format="'yyyy-MM-dd'"
229
- :show-rest-button="reset"
230
- :value.sync="model.f_start_time"
231
- v-model="model.f_start_time"
232
- condition="f_offsite_time >= '{} 00:00:00'">
233
- </datepicker>
234
- </div>
235
- <div :class="$parent.$parent.style">
236
- <label class="font_normal_body">结束时间</label>
237
- <datepicker
238
- placeholder='结束时间' style="width:60%"
239
- :disabled-days-of-week="[]"
240
- :format="'yyyy-MM-dd'"
241
- :show-rest-button="reset"
242
- :value.sync="model.f_end_time"
243
- v-model="model.f_end_time"
244
- condition="f_offsite_time <= '{} 23:59:59'">
245
- </datepicker>
246
- </div>
247
-
248
-
249
- </div>
250
- </div>
251
- </criteria>
252
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
253
- <template partial='head'>
254
- <tr>
255
- <th><nobr>入户状态</nobr></th>
256
- <th><nobr>用户编号</nobr></th>
257
- <th><nobr>用户名</nobr></th>
258
- <th><nobr>用户电话</nobr></th>
259
- <th><nobr>用户小区</nobr></th>
260
- <th><nobr>用户地址</nobr></th>
261
- <th><nobr>安检时间</nobr></th>
262
- <th><nobr>安检员</nobr></th>
263
- <th><nobr>计划名</nobr></th>
264
- <th><nobr>是否有隐患</nobr></th>
265
- <th><nobr>隐患数</nobr></th>
266
- <th><nobr>已处理隐患数</nobr></th>
267
- <!-- <th><nobr>隐患处理人</nobr></th>-->
268
- <!-- <th><nobr>隐患处理时间</nobr></th>-->
269
- <!-- <th><nobr>整改数</nobr></th>-->
270
-
271
- </tr>
272
- </template>
273
- <template partial='body'>
274
- <td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
275
- <td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
276
- <td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
277
- <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
278
- <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
279
- <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
280
- <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
281
- <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
282
- <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
283
- <td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
284
- <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
285
- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>
286
- <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>-->
287
- <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_date}}</td>-->
288
- <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
289
-
290
- </template>
291
- </data-grid>
292
- </criteria-paged>
293
-
294
- <modal :show.sync="showModal" v-ref:modal>
295
- <div slot="modal-header" class="modal-header">
296
- <h4 class="modal-title">
297
- 选择计划
298
- </h4>
299
- </div>
300
- <div slot="modal-body" class="modal-body">
301
- <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
302
- </div>
303
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
304
- <button class="button_search" @click="ok">确认</button>
305
- <button class="button_search" @click="cancel">取消</button>
306
- </div>
307
- </modal>
308
- </div>
309
- </template>
310
- <script>
311
- import {PagedList} from 'vue-client'
312
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
313
- import co from 'co'
314
-
315
- let select = function* (self) {
316
- let http = new HttpResetClass()
317
- let getGasman = yield http.load('POST', '/rs/search', {
318
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
319
- userid: self.$login.f.id
320
- }, {resolveMsg: null, rejectMsg: null})
321
- //tag
322
- self.checkersid.push({label: '全部', value: ''})
323
- getGasman.data.forEach((checker) => {
324
- self.checkersid.push({label: checker.name, value: checker.name})
325
- })
326
- }
327
- export default {
328
- title: '隐患查询',
329
- data() {
330
- let model = new PagedList('api/af-safecheck/sql/GetCheckPaperByDefectNew', 20, {
331
- f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
332
- })
333
- model.f_filialeids = '(' + this.$login.f.orgid + ')'
334
- model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
335
- return {
336
- repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
337
- hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
338
- f: this.$login.f,
339
- model: model,
340
- criteriaShow: false,
341
- showModal: false,
342
- f_check_plan: {f_plan_name: '', id: ''},
343
- sumsmodel: {},
344
- all: false,
345
- fields: {},
346
- modelval: [],
347
- checkersid: [],
348
- sliceArea: [],
349
- cbc:[],
350
- cbcs:[],
351
- thead: '',
352
- headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患情况','已处理隐患数'],
353
- bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content','f_repair_count']
354
- }
355
- },
356
- props:{
357
-
358
- style: {
359
- type: String,
360
- default: 'col-sm-2 form-group'
361
- },
362
- style2: {
363
- type: String,
364
- default: 'col-sm-4 form-group'
365
- }
366
-
367
- },
368
-
369
- methods: {
370
- getmeterbook(val){
371
- this.cbc=[]
372
- this.cbc.push({
373
- label:'全部',
374
- value:''
375
- })
376
- if (val==''){
377
-
378
- this.cbcs.forEach(res=>{
379
- this.cbc.push({
380
- label:res.f_book_name,
381
- value:res.id
382
- })
383
- })
384
- }else{
385
- this.cbcs.forEach(res=>{
386
- if (res.f_book_slice_area==val){
387
- this.cbc.push({
388
- label:res.f_book_name,
389
- value:res.id
390
- })
391
- }
392
- })
393
- }
394
- },
395
-
396
- Mreadibook(val){
397
- //tag
398
- //tag
399
- this.sliceArea=[]
400
- if (val){
401
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
402
- items: 'name',
403
- tablename: 't_zone',
404
- condition: `parentid in ${val}`,
405
- orderitem: 'id'
406
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
407
- this.sliceArea.push({
408
- label:'全部',
409
- value:''
410
- })
411
- res.data.forEach(ress=>{
412
- this.sliceArea.push({
413
- label:ress.name,
414
- value:ress.name
415
- })
416
- })
417
-
418
- })
419
- }
420
- },
421
- getAllMeterBook(val){
422
- //tag
423
- //tag
424
- this.cbcs=[]
425
- if (val){
426
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
427
- items: 'f_book_name,f_book_slice_area,id',
428
- tablename: 't_meter_book',
429
- condition: `f_filiale_id in ${val}`,
430
- orderitem: 'id'
431
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
432
- res.data.forEach(ress=>{
433
- this.cbcs.push({
434
- id:ress.id,
435
- f_book_name:ress.f_book_name,
436
- f_book_slice_area:ress.f_book_slice_area
437
- })
438
- })
439
- this.cbc=[]
440
- this.cbc.push({
441
- label:'全部',
442
- value:''
443
- })
444
- this.cbcs.forEach(res=>{
445
- this.cbc.push({
446
- label:res.f_book_name,
447
- value:res.id
448
- })
449
- })
450
- })
451
- }
452
- },
453
- hiddenr() {
454
- this.$parent.showItem = !this.$parent.showItem
455
- },
456
- hidden() {
457
- this.criteriaShow = !this.criteriaShow
458
- },
459
- search(args) {
460
- console.log(321)
461
- if (this.f_check_plan.f_plan_name) {
462
- args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
463
- }
464
- this.model.search(args.condition, args.model)
465
- },
466
- getRes(obj) {
467
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
468
- this.Mreadibook(this.model.f_filialeids)
469
- this.getAllMeterBook(this.model.f_filialeids)
470
- },
471
- showChooser() {
472
- this.showModal = true
473
- },
474
- ok() {
475
- this.showModal = false
476
- if (this.$refs.modal.$children[0].selectedRow.id) {
477
- this.f_check_plan = this.$refs.modal.$children[0].selectedRow
478
- }
479
- },
480
- cancel() {
481
- this.showModal = false
482
- this.f_check_plan = {f_plan_name: '', id: ''}
483
- }
484
- },
485
- ready() {
486
- this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
487
- let gen = select(this)
488
- // this.Mreadibook(`('${this.$login.f.orgid}')`)
489
- co(gen)
490
- },
491
- computed: {
492
- selected() {
493
- return this.$refs.paged.$refs.grid.selected
494
- },
495
- getfield(){
496
- //tag
497
- let data = {}
498
- this.bodyData.forEach((value, index)=>{
499
- data[this.bodyData[index]] = this.headData[index]
500
- })
501
- //合计字段打印
502
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
503
- if(this.sumsmodel){
504
- Object.keys(this.sumsmodel).forEach((key) => {
505
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
506
- })
507
- }else{
508
- this.tfoot += '暂无'
509
- }
510
- this.tfoot += '</th></tr>'
511
- return data
512
- }
513
- }
514
- }
515
- </script>
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-if="!$parent.$parent.$parent.showItem">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">安检计划</label>
9
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
10
+ @click="$parent.$parent.showChooser"
11
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
12
+ </div>
13
+ <div :class="$parent.$parent.style">
14
+ <label class="font_normal_body">存在隐患</label>
15
+ <v-select style="width:60% "
16
+ class="select select_list"
17
+ :value.sync="model.f_has_defect"
18
+ v-model="model.f_has_defect"
19
+ :options='$parent.$parent.hasDefectOptions'
20
+ :placeholder='model.f_has_defect'
21
+ condition="f_has_defect = '{}'"
22
+ close-on-select>
23
+ </v-select>
24
+ </div>
25
+ <div :class="$parent.$parent.style">
26
+ <label class="font_normal_body">用户编号</label>
27
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
28
+ condition="f_userinfo_code = '{}'"
29
+ style="width: 60%" placeholder="用户编号">
30
+ </div>
31
+ <div :class="$parent.$parent.style">
32
+ <label class="font_normal_body">结果查询</label>
33
+ <v-select
34
+ placeholder='处理结果查询'
35
+ :value-single="true"
36
+ class="select select_list" style="width: 60%"
37
+ v-model='model.f_repaired'
38
+ :value.sync="model.f_repaired"
39
+ :options='$parent.$parent.repaired'
40
+ condition="f_repaired = '{}'"
41
+ close-on-select clear-button> </v-select>
42
+ </div>
43
+ <div class=" col-sm-4 form-group button-range" >
44
+ <div class="span" style="float: right;margin-top: 8px">
45
+ <div style="float: right" class="button_spacing"
46
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
47
+ @click="$parent.$parent.hiddenr()"></div>
48
+ <div style="float: right" class="button_spacing"
49
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
50
+ @click="$parent.$parent.hidden()"></div>
51
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
52
+ <div style="float: right">
53
+ <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
54
+ :field="$parent.$parent.getfield"
55
+ progress="safeGetExportProgress"
56
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="GetCheckPaperByDefectNew" template-name='安检隐患明细' :choose-col="true"></export-excel>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div class="row" v-if="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
62
+ <div :class="$parent.$parent.style">
63
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
64
+ <v-select class="select_list select"
65
+ placeholder='片区/管理站' style="width: 60%"
66
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
67
+ :options='$parent.$parent.sliceArea'
68
+ filer-key="name"
69
+ close-on-select clear-button
70
+ condition="f_slice_area='{}'"
71
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
72
+ :value-single="true">
73
+ </v-select>
74
+ </div>
75
+ <div :class="$parent.$parent.style2" style="margin: 0">
76
+ <role-selector-safe
77
+ role-name="安检员"
78
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
79
+ @re-res="$parent.$parent.getRes"
80
+ :value.sync="model.f_checker_id"
81
+ v-model="model.f_checker_id"
82
+ condition="f_checker_name = '{}'">
83
+ </role-selector-safe>
84
+ </div>
85
+
86
+ <div :class="$parent.$parent.style">
87
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
88
+ <v-select class="select_list select"
89
+ placeholder='抄表册' style="width: 60%"
90
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
91
+ :options='$parent.$parent.cbc'
92
+ filer-key="name"
93
+ close-on-select clear-button
94
+ condition="f_meter_book_num={}"
95
+ :value-single="true">
96
+ </v-select>
97
+ </div>
98
+ <div :class="$parent.$parent.style">
99
+ <label class="font_normal_body">起始时间</label>
100
+ <datepicker
101
+ placeholder='起始时间' style="width:60%"
102
+ :disabled-days-of-week="[]"
103
+ :format="'yyyy-MM-dd'"
104
+ :show-rest-button="reset"
105
+ :value.sync="model.f_start_time"
106
+ v-model="model.f_start_time"
107
+ condition="f_offsite_time >= '{} 00:00:00'">
108
+ </datepicker>
109
+ </div>
110
+ <div :class="$parent.$parent.style">
111
+ <label class="font_normal_body">结束时间</label>
112
+ <datepicker
113
+ placeholder='结束时间' style="width:60%"
114
+ :disabled-days-of-week="[]"
115
+ :format="'yyyy-MM-dd'"
116
+ :show-rest-button="reset"
117
+ :value.sync="model.f_end_time"
118
+ v-model="model.f_end_time"
119
+ condition="f_offsite_time <= '{} 23:59:59'">
120
+ </datepicker>
121
+ </div>
122
+
123
+
124
+ </div>
125
+ <div class="row" v-if="$parent.$parent.$parent.showItem">
126
+ <div :class="$parent.$parent.style">
127
+ <label class="font_normal_body">安检计划</label>
128
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
129
+ @click="$parent.$parent.showChooser"
130
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
131
+ </div>
132
+ <div :class="$parent.$parent.style">
133
+ <label class="font_normal_body">存在隐患</label>
134
+ <v-select style="width:60% "
135
+ class="select select_list"
136
+ :value.sync="model.f_has_defect"
137
+ v-model="model.f_has_defect"
138
+ :options='$parent.$parent.hasDefectOptions'
139
+ :placeholder='model.f_has_defect'
140
+ condition="f_has_defect = '{}'"
141
+ close-on-select>
142
+ </v-select>
143
+ </div>
144
+
145
+ <div class=" col-sm-4 form-group button-range">
146
+ <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
147
+ <div style="float: right" class="button_spacing"
148
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
149
+ @click="$parent.$parent.hiddenr()"></div>
150
+ <div style="float: right" class="button_spacing"
151
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
152
+ @click="$parent.$parent.hidden()"></div>
153
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
154
+ <div style="float: right">
155
+ <export-excel :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content: $parent.$parent.model.f_defect_content}"
156
+ :field="$parent.$parent.getfield"
157
+ progress="safeGetExportProgress"
158
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="GetCheckPaperByDefectNew" template-name='安检计划明细' :choose-col="true"></export-excel>
159
+ </div>
160
+ </div>
161
+ </div>
162
+
163
+
164
+
165
+ </div>
166
+ <div class="row" v-if="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
167
+ <div :class="$parent.$parent.style">
168
+ <label class="font_normal_body">用户编号</label>
169
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
170
+ condition="f_userinfo_code = '{}'"
171
+ style="width: 60%" placeholder="用户编号">
172
+ </div>
173
+ <div :class="$parent.$parent.style">
174
+ <label class="font_normal_body">结果查询</label>
175
+ <v-select
176
+ placeholder='处理结果查询'
177
+ :value-single="true"
178
+ class="select select_list" style="width: 60%"
179
+ v-model='model.f_repaired'
180
+ :value.sync="model.f_repaired"
181
+ :options='$parent.$parent.repaired'
182
+ condition="f_repaired = '{}'"
183
+ close-on-select clear-button> </v-select>
184
+ </div>
185
+
186
+ <div :class="$parent.$parent.style2" style="margin: 0">
187
+ <role-selector-safe
188
+ role-name="安检员"
189
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
190
+ @re-res="$parent.$parent.getRes"
191
+ :value.sync="model.f_checker_id"
192
+ v-model="model.f_checker_id"
193
+ condition="f_checker_name = '{}'">
194
+ </role-selector-safe>
195
+ </div>
196
+ </div>
197
+ <div class="row" v-if="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
198
+ <div :class="$parent.$parent.style">
199
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
200
+ <v-select class="select_list select"
201
+ placeholder='片区/管理站' style="width: 60%"
202
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
203
+ :options='$parent.$parent.sliceArea'
204
+ filer-key="name"
205
+ close-on-select clear-button
206
+ condition="f_slice_area='{}'"
207
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
208
+ :value-single="true">
209
+ </v-select>
210
+ </div>
211
+ <div :class="$parent.$parent.style">
212
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
213
+ <v-select class="select_list select"
214
+ placeholder='抄表册' style="width: 60%"
215
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
216
+ :options='$parent.$parent.cbc'
217
+ filer-key="name"
218
+ close-on-select clear-button
219
+ condition="f_meter_book_num={}"
220
+ :value-single="true">
221
+ </v-select>
222
+ </div>
223
+ <div :class="$parent.$parent.style">
224
+ <label class="font_normal_body">起始时间</label>
225
+ <datepicker
226
+ placeholder='起始时间' style="width:60%"
227
+ :disabled-days-of-week="[]"
228
+ :format="'yyyy-MM-dd'"
229
+ :show-rest-button="reset"
230
+ :value.sync="model.f_start_time"
231
+ v-model="model.f_start_time"
232
+ condition="f_offsite_time >= '{} 00:00:00'">
233
+ </datepicker>
234
+ </div>
235
+ <div :class="$parent.$parent.style">
236
+ <label class="font_normal_body">结束时间</label>
237
+ <datepicker
238
+ placeholder='结束时间' style="width:60%"
239
+ :disabled-days-of-week="[]"
240
+ :format="'yyyy-MM-dd'"
241
+ :show-rest-button="reset"
242
+ :value.sync="model.f_end_time"
243
+ v-model="model.f_end_time"
244
+ condition="f_offsite_time <= '{} 23:59:59'">
245
+ </datepicker>
246
+ </div>
247
+
248
+
249
+ </div>
250
+ </div>
251
+ </criteria>
252
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
253
+ <template partial='head'>
254
+ <tr>
255
+ <th><nobr>入户状态</nobr></th>
256
+ <th><nobr>用户编号</nobr></th>
257
+ <th><nobr>用户名</nobr></th>
258
+ <th><nobr>用户电话</nobr></th>
259
+ <th><nobr>用户小区</nobr></th>
260
+ <th><nobr>用户地址</nobr></th>
261
+ <th><nobr>安检时间</nobr></th>
262
+ <th><nobr>安检员</nobr></th>
263
+ <th><nobr>计划名</nobr></th>
264
+ <th><nobr>是否有隐患</nobr></th>
265
+ <th><nobr>隐患数</nobr></th>
266
+ <th><nobr>已处理隐患数</nobr></th>
267
+ <!-- <th><nobr>隐患处理人</nobr></th>-->
268
+ <!-- <th><nobr>隐患处理时间</nobr></th>-->
269
+ <!-- <th><nobr>整改数</nobr></th>-->
270
+
271
+ </tr>
272
+ </template>
273
+ <template partial='body'>
274
+ <td style="text-align: center;white-space:nowrap;">{{row.f_entry_status}}</td>
275
+ <td style="text-align: center;white-space:nowrap;">{{row.f_userinfo_code}}</td>
276
+ <td style="text-align: center;white-space:nowrap;">{{row.f_user_name}}</td>
277
+ <td style="text-align: center;white-space:nowrap;">{{row.f_user_phone}}</td>
278
+ <td style="text-align: center;white-space:nowrap;">{{row.f_residential_area}}</td>
279
+ <td style="text-align: center;white-space:nowrap;">{{row.f_address}}</td>
280
+ <td style="text-align: center;white-space:nowrap;">{{row.f_offsite_time}}</td>
281
+ <td style="text-align: center;white-space:nowrap;">{{row.f_checker_name}}</td>
282
+ <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
283
+ <td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
284
+ <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
285
+ <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>
286
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>-->
287
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_date}}</td>-->
288
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
289
+
290
+ </template>
291
+ </data-grid>
292
+ </criteria-paged>
293
+
294
+ <modal :show.sync="showModal" v-ref:modal>
295
+ <div slot="modal-header" class="modal-header">
296
+ <h4 class="modal-title">
297
+ 选择计划
298
+ </h4>
299
+ </div>
300
+ <div slot="modal-body" class="modal-body">
301
+ <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
302
+ </div>
303
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
304
+ <button class="button_search" @click="ok">确认</button>
305
+ <button class="button_search" @click="cancel">取消</button>
306
+ </div>
307
+ </modal>
308
+ </div>
309
+ </template>
310
+ <script>
311
+ import {PagedList} from 'vue-client'
312
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
313
+ import co from 'co'
314
+
315
+ let select = function* (self) {
316
+ let http = new HttpResetClass()
317
+ let getGasman = yield http.load('POST', '/rs/search', {
318
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
319
+ userid: self.$login.f.id
320
+ }, {resolveMsg: null, rejectMsg: null})
321
+ //tag
322
+ self.checkersid.push({label: '全部', value: ''})
323
+ getGasman.data.forEach((checker) => {
324
+ self.checkersid.push({label: checker.name, value: checker.name})
325
+ })
326
+ }
327
+ export default {
328
+ title: '隐患查询',
329
+ data() {
330
+ let model = new PagedList('api/af-safecheck/sql/GetCheckPaperByDefectNew', 20, {
331
+ f_filialeids: 'this.f_filialeids',f_defect_content: 'this.f_defect_content'
332
+ })
333
+ model.f_filialeids = '(' + this.$login.f.orgid + ')'
334
+ model.f_defect_content="CASE WHEN CHARINDEX( '\"result\":\"正常\"', f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( f_defect_content, len( f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
335
+ return {
336
+ repaired:[{label: '未修', value: '未修'}, {label: '已修', value: '已修'}],
337
+ hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {label: '无隐患', value: '无隐患'}],
338
+ f: this.$login.f,
339
+ model: model,
340
+ criteriaShow: false,
341
+ showModal: false,
342
+ f_check_plan: {f_plan_name: '', id: ''},
343
+ sumsmodel: {},
344
+ all: false,
345
+ fields: {},
346
+ modelval: [],
347
+ checkersid: [],
348
+ sliceArea: [],
349
+ cbc:[],
350
+ cbcs:[],
351
+ thead: '',
352
+ headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患情况','已处理隐患数'],
353
+ bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','f_defect_content','f_repair_count']
354
+ }
355
+ },
356
+ props:{
357
+
358
+ style: {
359
+ type: String,
360
+ default: 'col-sm-2 form-group'
361
+ },
362
+ style2: {
363
+ type: String,
364
+ default: 'col-sm-4 form-group'
365
+ }
366
+
367
+ },
368
+
369
+ methods: {
370
+ getmeterbook(val){
371
+ this.cbc=[]
372
+ this.cbc.push({
373
+ label:'全部',
374
+ value:''
375
+ })
376
+ if (val==''){
377
+
378
+ this.cbcs.forEach(res=>{
379
+ this.cbc.push({
380
+ label:res.f_book_name,
381
+ value:res.id
382
+ })
383
+ })
384
+ }else{
385
+ this.cbcs.forEach(res=>{
386
+ if (res.f_book_slice_area==val){
387
+ this.cbc.push({
388
+ label:res.f_book_name,
389
+ value:res.id
390
+ })
391
+ }
392
+ })
393
+ }
394
+ },
395
+
396
+ Mreadibook(val){
397
+ //tag
398
+ //tag
399
+ this.sliceArea=[]
400
+ if (val){
401
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
402
+ items: 'name',
403
+ tablename: 't_zone',
404
+ condition: `parentid in ${val}`,
405
+ orderitem: 'id'
406
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
407
+ this.sliceArea.push({
408
+ label:'全部',
409
+ value:''
410
+ })
411
+ res.data.forEach(ress=>{
412
+ this.sliceArea.push({
413
+ label:ress.name,
414
+ value:ress.name
415
+ })
416
+ })
417
+
418
+ })
419
+ }
420
+ },
421
+ getAllMeterBook(val){
422
+ //tag
423
+ //tag
424
+ this.cbcs=[]
425
+ if (val){
426
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
427
+ items: 'f_book_name,f_book_slice_area,id',
428
+ tablename: 't_meter_book',
429
+ condition: `f_filiale_id in ${val}`,
430
+ orderitem: 'id'
431
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
432
+ res.data.forEach(ress=>{
433
+ this.cbcs.push({
434
+ id:ress.id,
435
+ f_book_name:ress.f_book_name,
436
+ f_book_slice_area:ress.f_book_slice_area
437
+ })
438
+ })
439
+ this.cbc=[]
440
+ this.cbc.push({
441
+ label:'全部',
442
+ value:''
443
+ })
444
+ this.cbcs.forEach(res=>{
445
+ this.cbc.push({
446
+ label:res.f_book_name,
447
+ value:res.id
448
+ })
449
+ })
450
+ })
451
+ }
452
+ },
453
+ hiddenr() {
454
+ this.$parent.showItem = !this.$parent.showItem
455
+ },
456
+ hidden() {
457
+ this.criteriaShow = !this.criteriaShow
458
+ },
459
+ search(args) {
460
+ console.log(321)
461
+ if (this.f_check_plan.f_plan_name) {
462
+ args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
463
+ }
464
+ this.model.search(args.condition, args.model)
465
+ },
466
+ getRes(obj) {
467
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
468
+ this.Mreadibook(this.model.f_filialeids)
469
+ this.getAllMeterBook(this.model.f_filialeids)
470
+ },
471
+ showChooser() {
472
+ this.showModal = true
473
+ },
474
+ ok() {
475
+ this.showModal = false
476
+ if (this.$refs.modal.$children[0].selectedRow.id) {
477
+ this.f_check_plan = this.$refs.modal.$children[0].selectedRow
478
+ }
479
+ },
480
+ cancel() {
481
+ this.showModal = false
482
+ this.f_check_plan = {f_plan_name: '', id: ''}
483
+ }
484
+ },
485
+ ready() {
486
+ this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
487
+ let gen = select(this)
488
+ // this.Mreadibook(`('${this.$login.f.orgid}')`)
489
+ co(gen)
490
+ },
491
+ computed: {
492
+ selected() {
493
+ return this.$refs.paged.$refs.grid.selected
494
+ },
495
+ getfield(){
496
+ //tag
497
+ let data = {}
498
+ this.bodyData.forEach((value, index)=>{
499
+ data[this.bodyData[index]] = this.headData[index]
500
+ })
501
+ //合计字段打印
502
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
503
+ if(this.sumsmodel){
504
+ Object.keys(this.sumsmodel).forEach((key) => {
505
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
506
+ })
507
+ }else{
508
+ this.tfoot += '暂无'
509
+ }
510
+ this.tfoot += '</th></tr>'
511
+ return data
512
+ }
513
+ }
514
+ }
515
+ </script>