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,1148 +1,1148 @@
1
- <template>
2
- <div class="flex">
3
- <work-busy :is-busy="isbusy"></work-busy>
4
- <criteria-paged :model="model" v-ref:paged>
5
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row" v-show="!$parent.$parent.$parent.showItem">
8
- <div :class="$parent.$parent.style">
9
- <label class="font_normal_body">安检计划</label>
10
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
11
- @click="$parent.$parent.showChooser"
12
- style="width: 60%" placeholder="安检计划" readonly="readonly">
13
- </div>
14
- <div :class="$parent.$parent.style">
15
- <label class="font_normal_body">存在隐患</label>
16
- <v-select style="width:60% "
17
- class="select select_list"
18
- :value.sync="model.f_has_defect"
19
- v-model="model.f_has_defect"
20
- :options='$parent.$parent.hasDefectOptions'
21
- :placeholder='model.f_has_defect'
22
- condition="f_has_defect = '{}'"
23
- close-on-select>
24
- </v-select>
25
- </div>
26
- <div :class="$parent.$parent.style">
27
- <label class="font_normal_body">用户编号</label>
28
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
29
- condition="f_userinfo_code = '{}'"
30
- style="width: 60%" placeholder="用户编号">
31
- </div>
32
- <div :class="$parent.$parent.style">
33
- <label class="font_normal_body">处理情况</label>
34
- <v-select
35
- placeholder='处理情况'
36
- :value-single="true"
37
- class="select select_list" style="width: 60%"
38
- v-model='model.f_is_deal'
39
- :value.sync="model.f_is_deal"
40
- :options='$parent.$parent.deals'
41
- condition="f_is_deal = '{}'"
42
- close-on-select clear-button></v-select>
43
- </div>
44
- <div class=" col-sm-4 form-group button-range">
45
- <div class="span" style="float: right;margin-top: 8px">
46
- <div style="float: right" class="button_spacing"
47
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
48
- @click="$parent.$parent.hiddenr()"></div>
49
- <div style="float: right" class="button_spacing"
50
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
51
- @click="$parent.$parent.hidden()"></div>
52
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
53
- <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
54
- <div style="float: right">
55
- <export-excel
56
- :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
57
- :field="$parent.$parent.getfield"
58
- progress="safeGetExportProgress"
59
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew2" template-name='安检隐患明细'
60
- :choose-col="true"></export-excel>
61
- </div>
62
- </div>
63
- </div>
64
- </div>
65
- <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
66
- <div :class="$parent.$parent.style">
67
- <label class="font_normal_body">片&emsp;&emsp;区</label>
68
- <v-select class="select_list select"
69
- placeholder='片区/管理站' style="width: 60%"
70
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
71
- :options='$parent.$parent.sliceArea'
72
- filer-key="name"
73
- close-on-select clear-button
74
- condition="f_slice_area='{}'"
75
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
76
- :value-single="true">
77
- </v-select>
78
- </div>
79
- <div :class="$parent.$parent.style2" style="margin: 0">
80
- <role-selector-safe
81
- role-name="安检员"
82
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
83
- :resobjprop.sync="$parent.$parent.resids"
84
- @re-res="$parent.$parent.getRes"
85
- :value.sync="model.f_checker_id"
86
- v-model="model.f_checker_id"
87
- condition="f_checker_name = '{}'">
88
- </role-selector-safe>
89
- </div>
90
-
91
- <div :class="$parent.$parent.style">
92
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
93
- <v-select class="select_list select"
94
- placeholder='抄表册' style="width: 60%"
95
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
96
- :options='$parent.$parent.cbc'
97
- filer-key="name"
98
- close-on-select clear-button
99
- condition="f_meter_book_num={}"
100
- :value-single="true">
101
- </v-select>
102
- </div>
103
- <div :class="$parent.$parent.style">
104
- <label class="font_normal_body">安检起始时间</label>
105
- <datepicker
106
- placeholder='安检起始时间' style="width:60%"
107
- :disabled-days-of-week="[]"
108
- :format="'yyyy-MM-dd'"
109
- :show-rest-button="reset"
110
- :value.sync="model.f_start_time"
111
- v-model="model.f_start_time"
112
- condition="f_offsite_time >= '{} 00:00:00'">
113
- </datepicker>
114
- </div>
115
- <div :class="$parent.$parent.style">
116
- <label class="font_normal_body">安检结束时间</label>
117
- <datepicker
118
- placeholder='安检结束时间' style="width:60%"
119
- :disabled-days-of-week="[]"
120
- :format="'yyyy-MM-dd'"
121
- :show-rest-button="reset"
122
- :value.sync="model.f_end_time"
123
- v-model="model.f_end_time"
124
- condition="f_offsite_time <= '{} 23:59:59'">
125
- </datepicker>
126
- </div>
127
-
128
-
129
- </div>
130
- <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
131
-
132
- <div :class="$parent.$parent.style">
133
- <label class="font_normal_body">维&ensp;修&ensp;员</label>
134
- <input type="text" class="input_search" v-model="model.f_repairman"
135
- condition="f_repairman = '{}'"
136
- style="width: 60%" placeholder="维修员">
137
- </div>
138
- <div :class="$parent.$parent.style">
139
- <label class="font_normal_body">用户姓名</label>
140
- <input type="text" class="input_search" v-model="model.f_user_name"
141
- condition="f_user_name like '%{}%'"
142
- style="width: 60%" placeholder="用户姓名">
143
- </div>
144
- <div :class="$parent.$parent.style">
145
- <label class="font_normal_body">用户地址</label>
146
- <input type="text" class="input_search" v-model="model.f_address"
147
- condition="f_address like '%{}%'"
148
- style="width: 60%" placeholder="用户地址">
149
- </div>
150
- <div :class="$parent.$parent.style">
151
- <label class="font_normal_body">用户电话</label>
152
- <input type="text" class="input_search" v-model="model.f_user_phone"
153
- condition="f_user_phone = '{}'"
154
- style="width: 60%" placeholder="用户电话">
155
- </div>
156
- <div :class="$parent.$parent.style">
157
- <label class="font_normal_body">用户表号</label>
158
- <input type="text" class="input_search" v-model="model.f_meternumber"
159
- condition="f_meternumber = '{}'"
160
- style="width: 60%" placeholder="用户表号">
161
- </div>
162
- <div :class="$parent.$parent.style">
163
- <label class="font_normal_body">隐&ensp;患&ensp;项</label>
164
- <v-select
165
- placeholder='隐患项'
166
- :value-single="true"
167
- class="select select_list" style="width: 60%"
168
- v-model='model.f_defect_content'
169
- :value.sync="model.f_defect_content"
170
- :options='$parent.$parent.f_defect_contents'
171
- condition="f_defect_content like '%{}%'"
172
- close-on-select clear-button></v-select>
173
- </div>
174
- <div :class="$parent.$parent.style">
175
- <label class="font_normal_body">最后一次隐患处理时间</label>
176
- <datepicker
177
- placeholder='起始时间' style="width:60%"
178
- :disabled-days-of-week="[]"
179
- :format="'yyyy-MM-dd'"
180
- :show-rest-button="reset"
181
- :value.sync="model.f_repair_start"
182
- v-model="model.f_repair_start"
183
- condition="f_repair_date >= '{} 00:00:00'">
184
- </datepicker>
185
- </div>
186
- <div :class="$parent.$parent.style">
187
- <label class="font_normal_body">最后一次隐患处理时间</label>
188
- <datepicker
189
- placeholder='结束时间' style="width:60%"
190
- :disabled-days-of-week="[]"
191
- :format="'yyyy-MM-dd'"
192
- :show-rest-button="reset"
193
- :value.sync="model.f_repair_end"
194
- v-model="model.f_repair_end"
195
- condition="f_repair_date<= '{} 23:59:59'">
196
- </datepicker>
197
- </div>
198
- </div>
199
-
200
-
201
- <div class="row" v-show="$parent.$parent.$parent.showItem">
202
- <div :class="$parent.$parent.style">
203
- <label class="font_normal_body">安检计划</label>
204
- <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
205
- @click="$parent.$parent.showChooser"
206
- style="width: 60%" placeholder="安检计划" readonly="readonly">
207
- </div>
208
- <div :class="$parent.$parent.style">
209
- <label class="font_normal_body">存在隐患</label>
210
- <v-select style="width:60% "
211
- class="select select_list"
212
- :value.sync="model.f_has_defect"
213
- v-model="model.f_has_defect"
214
- :options='$parent.$parent.hasDefectOptions'
215
- :placeholder='model.f_has_defect'
216
- condition="f_has_defect = '{}'"
217
- close-on-select>
218
- </v-select>
219
- </div>
220
-
221
- <div class=" col-sm-4 form-group button-range">
222
- <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
223
- <div style="float: right" class="button_spacing"
224
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
225
- @click="$parent.$parent.hiddenr()"></div>
226
- <div style="float: right" class="button_spacing"
227
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
228
- @click="$parent.$parent.hidden()"></div>
229
- <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
230
- <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
231
- <div style="float: right">
232
- <export-excel-old
233
- :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
234
- :field="$parent.$parent.getfield"
235
- progress="safeGetExportProgress"
236
- sqlurl="api/af-safecheck/logic/SafeExportExcel" sql-name="GetCheckPaperByDefectNew2" template-name='安检计划明细'
237
- :choose-col="true"></export-excel-old>
238
- </div>
239
- </div>
240
- </div>
241
-
242
-
243
- </div>
244
- <div class="row" v-show="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
245
- <div :class="$parent.$parent.style">
246
- <label class="font_normal_body">用户编号</label>
247
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
248
- condition="f_userinfo_code = '{}'"
249
- style="width: 60%" placeholder="用户编号">
250
- </div>
251
- <div :class="$parent.$parent.style">
252
- <label class="font_normal_body">结果查询</label>
253
- <v-select
254
- placeholder='处理结果查询'
255
- :value-single="true"
256
- class="select select_list" style="width: 60%"
257
- v-model='model.f_repaired'
258
- :value.sync="model.f_repaired"
259
- :options='$parent.$parent.repaired'
260
- condition="f_repaired = '{}'"
261
- close-on-select clear-button></v-select>
262
- </div>
263
-
264
- <div :class="$parent.$parent.style2" style="margin: 0">
265
- <role-selector-safe
266
- role-name="安检员"
267
- :resobjprop.sync="$parent.$parent.resids"
268
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
269
- @re-res="$parent.$parent.getRes"
270
- :value.sync="model.f_checker_id"
271
- v-model="model.f_checker_id"
272
- condition="f_checker_name = '{}'">
273
- </role-selector-safe>
274
- </div>
275
- </div>
276
- <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
277
- <div :class="$parent.$parent.style">
278
- <label class="font_normal_body">片&emsp;&emsp;区</label>
279
- <v-select class="select_list select"
280
- placeholder='片区/管理站' style="width: 60%"
281
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
282
- :options='$parent.$parent.sliceArea'
283
- filer-key="name"
284
- close-on-select clear-button
285
- condition="f_slice_area='{}'"
286
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
287
- :value-single="true">
288
- </v-select>
289
- </div>
290
- <div :class="$parent.$parent.style">
291
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
292
- <v-select class="select_list select"
293
- placeholder='抄表册' style="width: 60%"
294
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
295
- :options='$parent.$parent.cbc'
296
- filer-key="name"
297
- close-on-select clear-button
298
- condition="f_meter_book_num={}"
299
- :value-single="true">
300
- </v-select>
301
- </div>
302
- <div :class="$parent.$parent.style">
303
- <label class="font_normal_body">安检起始时间</label>
304
- <datepicker
305
- placeholder='安检起始时间' style="width:60%"
306
- :disabled-days-of-week="[]"
307
- :format="'yyyy-MM-dd'"
308
- :show-rest-button="reset"
309
- :value.sync="model.f_start_time"
310
- v-model="model.f_start_time"
311
- condition="f_offsite_time >= '{} 00:00:00'">
312
- </datepicker>
313
- </div>
314
- <div :class="$parent.$parent.style">
315
- <label class="font_normal_body">安检结束时间</label>
316
- <datepicker
317
- placeholder='安检结束时间' style="width:60%"
318
- :disabled-days-of-week="[]"
319
- :format="'yyyy-MM-dd'"
320
- :show-rest-button="reset"
321
- :value.sync="model.f_end_time"
322
- v-model="model.f_end_time"
323
- condition="f_offsite_time <= '{} 23:59:59'">
324
- </datepicker>
325
- </div>
326
-
327
-
328
- </div>
329
- <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
330
-
331
- <div :class="$parent.$parent.style">
332
- <label class="font_normal_body">维&ensp;修&ensp;员</label>
333
- <input type="text" class="input_search" v-model="model.f_repairman"
334
- condition="f_repairman = '{}'"
335
- style="width: 60%" placeholder="维修员">
336
- </div>
337
- <div :class="$parent.$parent.style">
338
- <label class="font_normal_body">处理查询</label>
339
- <v-select
340
- placeholder='处理结果查询'
341
- :value-single="true"
342
- class="select select_list" style="width: 60%"
343
- v-model='model.f_is_deal'
344
- :value.sync="model.f_is_deal"
345
- :options='$parent.$parent.deals'
346
- condition="f_is_deal = '{}'"
347
- close-on-select clear-button></v-select>
348
- </div>
349
- </div>
350
- </div>
351
- </criteria>
352
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
353
- <template partial='head'>
354
- <tr>
355
- <!-- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>-->
356
- <th>
357
- <nobr>入户状态</nobr>
358
- </th>
359
- <th>
360
- <nobr>用户编号</nobr>
361
- </th>
362
- <th>
363
- <nobr>用户名</nobr>
364
- </th>
365
- <th>
366
- <nobr>用户电话</nobr>
367
- </th>
368
- <th>
369
- <nobr>用户小区</nobr>
370
- </th>
371
- <th>
372
- <nobr>用户地址</nobr>
373
- </th>
374
- <th>
375
- <nobr>用户表号</nobr>
376
- </th>
377
- <th>
378
- <nobr>安检时间</nobr>
379
- </th>
380
- <th>
381
- <nobr>安检员</nobr>
382
- </th>
383
- <th>
384
- <nobr>计划名</nobr>
385
- </th>
386
- <th>
387
- <nobr>是否有隐患</nobr>
388
- </th>
389
- <th>
390
- <nobr>隐患数</nobr>
391
- </th>
392
- <th>
393
- <nobr>处理数</nobr>
394
- </th>
395
- <th>
396
- <nobr>处理情况</nobr>
397
- </th>
398
- <th>
399
- <nobr>维修员</nobr>
400
- </th>
401
- <th>
402
- <nobr>隐患明细</nobr>
403
- </th>
404
- <th>
405
- <nobr>最后一次隐患处理时间</nobr>
406
- </th>
407
- </tr>
408
- </template>
409
- <template partial='body'>
410
- <!-- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)"></input></td>-->
411
- <td style="text-align: center;white-space:nowrap;">{{ row.f_entry_status }}</td>
412
- <td style="text-align: center;white-space:nowrap;">{{ row.f_userinfo_code }}</td>
413
- <td style="text-align: center;white-space:nowrap;">{{ row.f_user_name }}</td>
414
- <td style="text-align: center;white-space:nowrap;">{{ row.f_user_phone }}</td>
415
- <td style="text-align: center;white-space:nowrap;">{{ row.f_residential_area }}</td>
416
- <td style="text-align: center;white-space:nowrap;">{{ row.f_address }}</td>
417
- <td style="text-align: center;white-space:nowrap;">{{ row.f_meternumber }}</td>
418
- <td style="text-align: center;white-space:nowrap;">{{ row.f_offsite_time }}</td>
419
- <td style="text-align: center;white-space:nowrap;">{{ row.f_checker_name }}</td>
420
- <td style="text-align: center;white-space:nowrap;">{{ row.f_plan_name }}</td>
421
- <td style="text-align: center;white-space:nowrap;">{{ row.f_has_defect }}</td>
422
- <td style="text-align: center;white-space:nowrap;">{{ row.f_defect_count }}</td>
423
- <td style="text-align: center;white-space:nowrap;">{{ row.f_deal_count }}</td>
424
- <td style="text-align: center;white-space:nowrap;">{{ row.f_is_deal }}</td>
425
- <td style="text-align: center;white-space:nowrap;">{{ row.f_repairman }}</td>
426
- <td style="text-align: center;white-space:nowrap;">
427
- {{ $parent.$parent.$parent.trouble(row.f_defect_content) }}
428
- </td>
429
- <td style="text-align: center;white-space:nowrap;">
430
- {{row.f_repair_date}}
431
- </td>
432
- </template>
433
- <template partial="foot">
434
- <td style="text-align: center" colspan="11"><span><b>合计:</b></span></td>
435
- <td style="text-align: center">{{model.sums.f_defect_count}}</td>
436
- <td style="text-align: center">{{model.sums.f_deal_count}}</td>
437
- <td style="text-align: center">{{model.sums.f_defect_count-model.sums.f_deal_count}}</td>
438
- </template>
439
- </data-grid>
440
- </criteria-paged>
441
-
442
- <modal :show.sync="showModal" v-ref:modal>
443
- <div slot="modal-header" class="modal-header">
444
- <h4 class="modal-title">
445
- 选择计划
446
- </h4>
447
- </div>
448
- <div slot="modal-body" class="modal-body">
449
- <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
450
- </div>
451
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
452
- <button class="button_search" @click="ok">确认</button>
453
- <button class="button_search" @click="cancel">取消</button>
454
- </div>
455
- </modal>
456
- <modal :show.sync="showModal2" :backdrop="false">
457
- <div slot="modal-header" class="modal-header">
458
- <h4 class="modal-title">
459
- 转维修
460
- </h4>
461
- </div>
462
- <div slot="modal-body" class="modal-body">
463
- <div v-if="true">
464
- <div class="row" style="margin-top: 10px">
465
- <label class="control-label font text-left"
466
- style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
467
- <div class="col-xs-8 col-md-8">
468
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
469
- :options='dispatchTypeOptions' placeholder='派发类型'
470
- close-on-select>
471
- </v-select>
472
- </div>
473
- </div>
474
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
475
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
476
- <div class="col-xs-8 col-md-8">
477
- <v-select
478
- :value.sync="selectData.f_repairman"
479
- :value-single="true"
480
- :options='repairers'
481
- placeholder='请选择维修员'
482
- close-on-select></v-select>
483
- </div>
484
- </div>
485
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
486
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
487
- <div class="col-xs-8 col-md-8">
488
- <right-tree
489
- islist
490
- :userid="userid"
491
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
492
- @re-res="getSiteRes"></right-tree>
493
- </div>
494
- </div>
495
- <div class="row" style="margin-top: 10px">
496
- <label class="control-label font text-left"
497
- style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
498
- <div class="col-xs-8 col-md-8">
499
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
500
- class="select select_list"
501
- :value-single="true"
502
- :options='repairTypeOptions'
503
- close-on-select>
504
- </v-select>
505
- </div>
506
- </div>
507
- <div class="row" style="margin-top: 10px">
508
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
509
- <div class="col-xs-8 col-md-8">
510
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
511
- </div>
512
- </div>
513
- </div>
514
- </div>
515
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
516
- <!-- <button class="button_search" @click="rectification">转维修</button>-->
517
- <button class="button_search" @click="cancel1">取消</button>
518
- </div>
519
- </modal>
520
- <modal :show.sync="showModal3">
521
- <div slot="modal-header" class="modal-header">
522
- <h4 class="modal-title">
523
- 转维修进度{{ progressbarWidth }}%
524
- </h4>
525
- </div>
526
- <div slot="modal-body" class="modal-body">
527
- <div class="progress">
528
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
529
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
530
- <!-- <span class="sr-only">40% 完成</span>-->
531
- </div>
532
- </div>
533
- </div>
534
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
535
- </modal>
536
- </div>
537
- </template>
538
- <script>
539
- import {PagedList} from 'vue-client'
540
- import HttpResetClass from 'vue-client/src/plugins/HttpResetClass'
541
- import co from 'co'
542
- import Vue from 'vue'
543
- import * as Util from '../../../components/Util'
544
-
545
- let select = function * (self) {
546
- let http = new HttpResetClass()
547
- let getGasman = yield http.load('POST', '/rs/search', {
548
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
549
- userid: self.$login.f.id
550
- }, {resolveMsg: null, rejectMsg: null})
551
- //tag
552
- self.checkersid.push({label: '全部', value: ''})
553
- getGasman.data.forEach((checker) => {
554
- self.checkersid.push({label: checker.name, value: checker.name})
555
- })
556
- }
557
- export default {
558
- title: '隐患查询',
559
- data () {
560
- let model = new PagedList('api/af-safecheck/sql/GetCheckPaperByDefectNew2', 20, {
561
- f_filialeids: 'this.f_filialeids', f_defect_content: 'this.f_defect_content'
562
- },{f_defect_count:'',f_deal_count:''})
563
- model.f_filialeids = '(' + this.$login.f.orgid + ')'
564
- 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'
565
- return {
566
- repaired: [{label: '全部', value: ''}, {label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
567
- deals: [{label: '全部', value: ''}, {label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'}],
568
- hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {
569
- label: '无隐患',
570
- value: '无隐患'
571
- }],
572
- f: this.$login.f,
573
- model: model,
574
- criteriaShow: false,
575
- checkAll: false,
576
- timercount: 0,
577
- showModal2: false,
578
- repairTypeOptions: this.$appdata.getParam('转维修类型'),
579
- dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}],
580
- checkes: [],
581
- showModal: false,
582
- f_check_plan: {f_plan_name: '', id: ''},
583
- sumsmodel: {},
584
- resids: {},
585
- all: false,
586
- fields: {},
587
-
588
- selectData: {
589
- dispatchType: '',
590
- f_repairman: '',
591
- f_remarks: '',
592
- f_repairtype: ''
593
- },
594
- progressbarWidth: '0',
595
- modelval: [],
596
- isbusy: false,
597
- checkersid: [],
598
- showModal3: false,
599
- toRepairCount: 0,
600
- sliceArea: [],
601
- callSends: [],
602
- cbc: [],
603
- repairedOptions: [{label: '全部', value: ''}, {label: '已修', value: '已修'}, {label: '未修', value: '未修'}],
604
- repairers: [],
605
- cbcs: [],
606
- thead: '',
607
- headData: ['入户状态', '用户编号', '用户名', '用户电话', '用户小区', '用户地址', '用户表号',
608
- '安检时间', '安检员', '计划名', '是否有隐患', '隐患数','处理数','处理情况', '隐患明细','最后一次隐患处理时间'],
609
- bodyData: ['f_entry_status', 'f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_residential_area', 'f_address', 'f_meternumber',
610
- 'f_offsite_time', 'f_checker_name', 'f_plan_name', 'f_has_defect', 'f_defect_count','f_deal_count', 'f_is_deal','f_defect_content','f_repair_date'],
611
- f_defect_contents: [{label:"全部",value:""}],
612
- DevicesConfig: [],
613
- DevicesSetConfig: []
614
- }
615
- },
616
- props: {
617
- style: {
618
- type: String,
619
- default: 'col-sm-2 form-group'
620
- },
621
- style2: {
622
- type: String,
623
- default: 'col-sm-4 form-group'
624
- }
625
-
626
- },
627
-
628
- methods: {
629
- trouble (val) {
630
- // return val.replaceAll("'",'')
631
- // .replaceAll("\"",'')
632
- // .replaceAll("{",'')
633
- // .replaceAll("}",'')
634
- // .replaceAll("]",'')
635
- // .replaceAll("[",'')
636
- // .replaceAll("result:",'')
637
- // .replaceAll("data:",'')
638
- // .replaceAll("有隐患",'')
639
- // .replaceAll(",",'')
640
-
641
- const defect_content = JSON.parse(val)
642
- let result = ''
643
- if (defect_content.data) {
644
- const jsonData = defect_content.data
645
- for (const itemdata of jsonData) {
646
- const keys = Object.keys(itemdata)
647
- for (const itm of keys) {
648
- const value = itemdata[itm]
649
- result += itm + ':' + value + ','
650
- }
651
- }
652
- }
653
- return result
654
- },
655
- getEmp () {
656
- let val = {
657
- source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))',
658
- userid: `${this.$login.f.id}`
659
- }
660
- let http = new HttpResetClass()
661
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
662
- let str = ''
663
- res.data.forEach((item, idx, arr) => {
664
- //tag
665
- if (idx + 1 == arr.length) {
666
- str += item.id
667
- } else {
668
- str += item.id + ','
669
- }
670
-
671
- })
672
- let http1 = new HttpResetClass()
673
- http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
674
- data: {
675
- items: 'id,f_user_telephone',
676
- tablename: 't_user',
677
- condition: `id in (${str})`,
678
- orderitem: 'id'
679
- }
680
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
681
-
682
- res.data.forEach((user) => {
683
- try {
684
- ress.data.forEach((tel, tidx, arr) => {
685
- //tag
686
- if (user.id == tel.id) {
687
- this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
688
- ress.data.splice(tidx, 1)
689
- //tag
690
- throw new Error('跳出循环')
691
- }
692
- })
693
- } catch (e) {
694
- //tag
695
- }
696
- })
697
- })
698
-
699
- })
700
- },
701
- toRepair () {
702
- //tag
703
- this.showModal2 = true
704
- },
705
- async rectification () {
706
- this.isbusy = true
707
- // if (this.checkAll){
708
- let data = {
709
- f_filialeids: this.model.params.f_filialeids,
710
- f_defect_content: this.model.params.f_defect_content,
711
- condition: this.model.params.condition
712
- }
713
- let res1 = await new HttpResetClass().load('post', 'api/af-safecheck/sql/GetCheckPaperByDefectNew2', {data: data})
714
- for (let i = 0; i < res1.data.length; i++) {
715
- let data1 = {
716
- f_paper_id: res1.data[i].id,
717
- condition: `f_repaire_type != '无隐患'`
718
- }
719
- let res2 = await new HttpResetClass().load('POST', 'api/af-safecheck/sql/GetDefectByPaperIdNew2', {data: data1})
720
- //tag
721
- const uploadData = {
722
- model: {
723
- serviceacitivity: [{
724
- f_service_acitivity_type: '派单'
725
- }],
726
- f_repairitems: {},
727
- failure: '',
728
- f_source: '安检',
729
- f_service_id: '',
730
- f_contact_phone: '',
731
- f_meetunit: '',
732
- f_phone: '',
733
- f_user_name: '',
734
- f_address: '',
735
- f_repair_date: '',
736
- f_reciever: '',
737
- f_remarks: '',
738
- f_user_type: '',
739
- f_area: '',
740
- f_unit_name: '',
741
- f_street: '',
742
- f_residential_area: '',
743
- f_building: '',
744
- f_unit: '',
745
- f_floor: '',
746
- f_room: '',
747
- aState: '',
748
- f_repairtype: '',
749
- f_userinfo_id: '',
750
- f_userinfo_code: '',
751
- f_orgstr: '',
752
- f_outlets: '',
753
- f_attendant: this.$login.f.name
754
- },
755
- loginUser: {
756
- name: this.$login.f.name,
757
- ename: this.$login.f.ename
758
- },
759
- user: {
760
- f_userinfo_id: ''
761
- },
762
- callObj: null
763
- }
764
-
765
- uploadData.model.serviceacitivity[0].f_reciever = this.selectData.f_repairman
766
- // uploadData.model.f_meetunit = self.$login.f.orgpathnames
767
- // uploadData.model.f_orgstr = self.$login.f.orgpathstr
768
- // uploadData.model.f_outlets = self.$login.f.f_parentname
769
- uploadData.model.f_meetunit = this.$login.f.deps
770
- uploadData.model.f_orgid = this.$login.f.orgid
771
- uploadData.model.f_filiale = this.$login.f.org
772
- uploadData.model.f_outlets = this.$login.f.deps
773
- uploadData.model.f_filiale_id = this.$login.f.orgid
774
- uploadData.toRepair = '一级派单'
775
- let res3 = await new HttpResetClass().load('post', '/api/af-safecheck/sql/GetUserForRepaireNew2', {data: {f_userinfo_id: res1.data[i].f_userinfo_id}})
776
- uploadData.model = Object.assign(uploadData.model, res3.data[0])
777
- uploadData.user.f_userinfo_id = res3.data[0].f_userinfo_id
778
- uploadData.model.f_repair_date = Util.getNowDate()
779
- uploadData.model.f_repairtype = res3.data[0].f_repairtype
780
- uploadData.model.f_remarks = res3.data[0].f_remarks
781
- let failure = []
782
- res2.data.forEach(row => {
783
- if (row.f_repaire_type == '隐患未处理') {
784
- console.log('row.f_item_value', row.f_item_value)
785
- failure.push({
786
- f_failure_type: row.f_item_name,
787
- failurecase: row.f_item_value ? row.f_item_value.split(',') : ''
788
- })
789
- }
790
- })
791
- uploadData.model.failure = failure
792
- // 拼接repairitems
793
- let rows = JSON.parse(JSON.stringify(res2.data))
794
- let repairitems = {
795
- data: []
796
- }
797
- let safecheckOptions = [{'data': '已处理'}, {'data': '未处理'}]
798
- // 取隐患未处理的
799
- rows = rows.filter(row => row.f_repaire_type == '隐患未处理')
800
- //tag)
801
- // 开始拼接
802
- rows.forEach(row => {
803
- let existIndex = -1
804
- // 判断该设备是否已经存在
805
- for (let i = 0; i < repairitems.data.length; i++) {
806
- if (repairitems.data[i].f_type == row.f_device_type) {
807
- existIndex = i
808
- break
809
- }
810
- }
811
- if (existIndex == -1) {
812
- // 不存在则新建
813
- let newItem = {
814
- f_type: row.f_device_type,
815
- details: [{
816
- f_defect_id: row.id,
817
- f_project: `${row.f_item_name}:${row.f_item_value}`,
818
- type: 'selector',
819
- options: safecheckOptions
820
- }]
821
- }
822
- repairitems.data.push(newItem)
823
- } else {
824
- // 存在则追加
825
- repairitems.data[existIndex].details.push({
826
- f_defect_id: row.id,
827
- f_project: `${row.f_item_name}:${row.f_item_value}`,
828
- type: 'selector',
829
- options: safecheckOptions
830
- })
831
- }
832
- })
833
- uploadData.model.f_repairitems = repairitems
834
- uploadData.rows = rows
835
- //tag)
836
- //tag
837
- if (uploadData.model.f_repairitems.data.length > 0) {
838
- this.callSends.push(uploadData)
839
- } else {
840
- //tag
841
- }
842
- }
843
- //tag)
844
- let timer = setInterval(async () => {
845
- this.showModal3 = true
846
- this.isbusy = false
847
- if (this.timercount < this.callSends.length) {
848
- //tag)
849
- let rows = this.callSends[this.timercount].rows
850
- //tag)
851
- let result = await this.$resetpost('/api/af-safecheck/logic/callerSend', this.callSends[this.timercount])
852
- //tag)
853
- if (result.data.f_service_id) {
854
- const data = {
855
- f_paper_id: rows[0].f_paper_id,
856
- f_service_id: result.data.f_service_id,
857
- itemsId: this.$login.convertToIn(rows.map(row => row.id))
858
- }
859
- //tag
860
- let updateRes = await this.$resetpost('/api/af-safecheck/logic/updateDefectStateNew', data)
861
- }
862
- this.toRepairCount++
863
- //tag
864
- this.timercount++
865
- } else {
866
- clearInterval(timer)
867
- //tag
868
- this.callSends = []
869
- this.timercount = 0
870
- this.showModal3 = false
871
- this.cancel1()
872
- this.$showMessage('本次转维修成功' + this.toRepairCount + '单')
873
- this.toRepairCount = 0
874
- }
875
- }, 3000)
876
- },
877
- cancel1 () {
878
- this.showModal2 = false
879
- this.selectData = {
880
- dispatchType: '',
881
- f_repairman: '',
882
- f_remarks: '',
883
- f_repairtype: ''
884
- }
885
- },
886
- sleep (d) {
887
- //tag)
888
- var t = Date.now()
889
- while (Date.now - t <= d) {
890
-
891
- }
892
- //tag)
893
- },
894
- isChecked (v) {
895
- // 如果全选,不在的按选中算,否则,在的按选中算
896
- if (this.checkAll) {
897
- return this.checkes.indexOf(v) == -1
898
- } else {
899
- return this.checkes.indexOf(v) != -1
900
- }
901
- },
902
- setCheckAll () {
903
- this.checkAll = this.checkAll ? false : true
904
- // 全选改变后,清空选中数据
905
- this.checkes = []
906
- },
907
- setCheckes (id) {
908
- let index = this.checkes.indexOf(id)
909
- if (index < 0) {
910
- this.checkes.push(id)
911
- } else {
912
- this.checkes.splice(index, 1)
913
- }
914
- },
915
- getmeterbook (val) {
916
- this.cbc = []
917
- this.cbc.push({
918
- label: '全部',
919
- value: ''
920
- })
921
- if (val == '') {
922
-
923
- this.cbcs.forEach(res => {
924
- this.cbc.push({
925
- label: res.f_book_name,
926
- value: res.id
927
- })
928
- })
929
- } else {
930
- this.cbcs.forEach(res => {
931
- if (res.f_book_slice_area == val) {
932
- this.cbc.push({
933
- label: res.f_book_name,
934
- value: res.id
935
- })
936
- }
937
- })
938
- }
939
- },
940
- Mreadibook (val) {
941
- //tag
942
- //tag
943
- this.sliceArea = []
944
- if (val) {
945
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
946
- data: {
947
- items: 'name',
948
- tablename: 't_zone',
949
- condition: `parentid in ${val}`,
950
- orderitem: 'id'
951
- }
952
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
953
- this.sliceArea.push({
954
- label: '全部',
955
- value: ''
956
- })
957
- res.data.forEach(ress => {
958
- this.sliceArea.push({
959
- label: ress.name,
960
- value: ress.name
961
- })
962
- })
963
-
964
- })
965
- }
966
- },
967
- getAllMeterBook (val) {
968
- //tag
969
- //tag
970
- this.cbcs = []
971
- if (val) {
972
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
973
- data: {
974
- items: 'f_book_name,f_book_slice_area,id',
975
- tablename: 't_meter_book',
976
- condition: `f_filiale_id in ${val}`,
977
- orderitem: 'id'
978
- }
979
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
980
- res.data.forEach(ress => {
981
- this.cbcs.push({
982
- id: ress.id,
983
- f_book_name: ress.f_book_name,
984
- f_book_slice_area: ress.f_book_slice_area
985
- })
986
- })
987
- this.cbc = []
988
- this.cbc.push({
989
- label: '全部',
990
- value: ''
991
- })
992
- this.cbcs.forEach(res => {
993
- this.cbc.push({
994
- label: res.f_book_name,
995
- value: res.id
996
- })
997
- })
998
- })
999
- }
1000
- },
1001
- hiddenr () {
1002
- this.$parent.showItem = !this.$parent.showItem
1003
- },
1004
- hidden () {
1005
- this.criteriaShow = !this.criteriaShow
1006
- },
1007
- search (args) {
1008
- //tag
1009
- if (this.f_check_plan.f_plan_name) {
1010
- args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
1011
- }
1012
- this.checkes = []
1013
- this.checkAll = false
1014
- this.model.search(args.condition, args.model)
1015
- },
1016
- getRes (obj) {
1017
- //tag
1018
- this.resids = {res: obj.res[0], resids: obj.resids[0]}
1019
- this.model.f_filialeids = this.$login.convertToIn(obj.resids)
1020
- this.Mreadibook(this.model.f_filialeids)
1021
- this.getAllMeterBook(this.model.f_filialeids)
1022
- },
1023
- showChooser () {
1024
- this.showModal = true
1025
- },
1026
- ok () {
1027
- this.showModal = false
1028
- if (this.$refs.modal.$children[0].selectedRow.id) {
1029
- this.f_check_plan = this.$refs.modal.$children[0].selectedRow
1030
- }
1031
- },
1032
- cancel () {
1033
- this.showModal = false
1034
- this.f_check_plan = {f_plan_name: '', id: ''}
1035
- },
1036
- async asyncReady (self) {
1037
- // 获取配置信息
1038
- try {
1039
- let res = await new HttpResetClass().load('post', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
1040
- data: {
1041
- items: 'f_dir',
1042
- tablename: 't_organization',
1043
- condition: `id = '${self.$login.f.orgid}'`,
1044
- orderitem: 'id'
1045
- }
1046
- })/*.then(res=>{*/
1047
- //tag
1048
- //tag)
1049
- if (!res.data[0].f_dir) {
1050
- self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
1051
- } else {
1052
- //this.f_dir=res.data[0].f_dir
1053
- try {
1054
- let res = await new HttpResetClass().load('get', `/phone/rs/vue`, {}, {
1055
- resolveMsg: null,
1056
- rejectMsg: null
1057
- })
1058
- /*let res1 = await new HttpResetClass().load('post', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
1059
- resolveMsg: '获取居民配置项成功!',
1060
- rejectMsg: '获取居民配置项出错!'
1061
- })*/
1062
- this.DevicesConfig = res.data.safecheck.DevicesConfig
1063
- /*let res2 = await new HttpResetClass().load('post', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
1064
- resolveMsg: '获取非居民配置项成功!',
1065
- rejectMsg: '获取非居民配置项出错!'
1066
- })*/
1067
- this.DevicesSetConfig = res.data.safecheck.DevicesSetConfig
1068
- } catch (e) {
1069
- self.$showMessage("获取配置文件失败" + e)
1070
- }
1071
- }
1072
- } catch (error) {
1073
- // 忽略704,文件找不到异常R
1074
- if (error.status !== 704) {
1075
- throw error
1076
- }
1077
- }
1078
- }
1079
- },
1080
- ready () {
1081
- //tag
1082
- this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
1083
- this.getEmp()
1084
- let gen = select(this)
1085
- // this.Mreadibook(`('${this.$login.f.orgid}')`)
1086
- co(gen)
1087
- this.asyncReady(this).then(()=>{
1088
- let defectTypeSet = new Set()
1089
- if (this.DevicesConfig) {
1090
- for (const key in this.DevicesConfig) {
1091
- if (Object.hasOwnProperty.call(this.DevicesConfig, key)) {
1092
- for (const ke in this.DevicesConfig[key]['items']) {
1093
- defectTypeSet.add(ke)
1094
- }
1095
- }
1096
- }
1097
- }
1098
- if (this.DevicesSetConfig) {
1099
- for (const key in this.DevicesSetConfig) {
1100
- if (Object.hasOwnProperty.call(this.DevicesSetConfig, key)) {
1101
- for (const ke in this.DevicesSetConfig[key]['items']) {
1102
- defectTypeSet.add(ke)
1103
- }
1104
- }
1105
- }
1106
- }
1107
- defectTypeSet.forEach((item) => {
1108
- this.f_defect_contents.push({label: item, value: item})
1109
- })
1110
- })
1111
- },
1112
- watch: {
1113
- 'timercount' () {
1114
- if (this.timercount === 0) {
1115
- this.progressbarWidth = '0'
1116
- } else {
1117
- //tag
1118
- //tag
1119
- this.progressbarWidth = parseInt(this.timercount * 100 / (this.callSends.length + 1))
1120
- }
1121
-
1122
- }
1123
- },
1124
- computed: {
1125
- selected () {
1126
- return this.$refs.paged.$refs.grid.selected
1127
- },
1128
- getfield () {
1129
- //tag
1130
- let data = {}
1131
- this.bodyData.forEach((value, index) => {
1132
- data[this.bodyData[index]] = this.headData[index]
1133
- })
1134
- //合计字段打印
1135
- this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1136
- if (this.sumsmodel) {
1137
- Object.keys(this.sumsmodel).forEach((key) => {
1138
- this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1139
- })
1140
- } else {
1141
- this.tfoot += '暂无'
1142
- }
1143
- this.tfoot += '</th></tr>'
1144
- return data
1145
- }
1146
- }
1147
- }
1148
- </script>
1
+ <template>
2
+ <div class="flex">
3
+ <work-busy :is-busy="isbusy"></work-busy>
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
8
+ <div :class="$parent.$parent.style">
9
+ <label class="font_normal_body">安检计划</label>
10
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
11
+ @click="$parent.$parent.showChooser"
12
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
13
+ </div>
14
+ <div :class="$parent.$parent.style">
15
+ <label class="font_normal_body">存在隐患</label>
16
+ <v-select style="width:60% "
17
+ class="select select_list"
18
+ :value.sync="model.f_has_defect"
19
+ v-model="model.f_has_defect"
20
+ :options='$parent.$parent.hasDefectOptions'
21
+ :placeholder='model.f_has_defect'
22
+ condition="f_has_defect = '{}'"
23
+ close-on-select>
24
+ </v-select>
25
+ </div>
26
+ <div :class="$parent.$parent.style">
27
+ <label class="font_normal_body">用户编号</label>
28
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
29
+ condition="f_userinfo_code = '{}'"
30
+ style="width: 60%" placeholder="用户编号">
31
+ </div>
32
+ <div :class="$parent.$parent.style">
33
+ <label class="font_normal_body">处理情况</label>
34
+ <v-select
35
+ placeholder='处理情况'
36
+ :value-single="true"
37
+ class="select select_list" style="width: 60%"
38
+ v-model='model.f_is_deal'
39
+ :value.sync="model.f_is_deal"
40
+ :options='$parent.$parent.deals'
41
+ condition="f_is_deal = '{}'"
42
+ close-on-select clear-button></v-select>
43
+ </div>
44
+ <div class=" col-sm-4 form-group button-range">
45
+ <div class="span" style="float: right;margin-top: 8px">
46
+ <div style="float: right" class="button_spacing"
47
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
48
+ @click="$parent.$parent.hiddenr()"></div>
49
+ <div style="float: right" class="button_spacing"
50
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
51
+ @click="$parent.$parent.hidden()"></div>
52
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
53
+ <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
54
+ <div style="float: right">
55
+ <export-excel
56
+ :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids,f_defect_content:$parent.$parent.model.f_defect_content}"
57
+ :field="$parent.$parent.getfield"
58
+ progress="safeGetExportProgress"
59
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="GetCheckPaperByDefectNew2" template-name='安检隐患明细'
60
+ :choose-col="true"></export-excel>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
66
+ <div :class="$parent.$parent.style">
67
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
68
+ <v-select class="select_list select"
69
+ placeholder='片区/管理站' style="width: 60%"
70
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
71
+ :options='$parent.$parent.sliceArea'
72
+ filer-key="name"
73
+ close-on-select clear-button
74
+ condition="f_slice_area='{}'"
75
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
76
+ :value-single="true">
77
+ </v-select>
78
+ </div>
79
+ <div :class="$parent.$parent.style2" style="margin: 0">
80
+ <role-selector-safe
81
+ role-name="安检员"
82
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
83
+ :resobjprop.sync="$parent.$parent.resids"
84
+ @re-res="$parent.$parent.getRes"
85
+ :value.sync="model.f_checker_id"
86
+ v-model="model.f_checker_id"
87
+ condition="f_checker_name = '{}'">
88
+ </role-selector-safe>
89
+ </div>
90
+
91
+ <div :class="$parent.$parent.style">
92
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
93
+ <v-select class="select_list select"
94
+ placeholder='抄表册' style="width: 60%"
95
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
96
+ :options='$parent.$parent.cbc'
97
+ filer-key="name"
98
+ close-on-select clear-button
99
+ condition="f_meter_book_num={}"
100
+ :value-single="true">
101
+ </v-select>
102
+ </div>
103
+ <div :class="$parent.$parent.style">
104
+ <label class="font_normal_body">安检起始时间</label>
105
+ <datepicker
106
+ placeholder='安检起始时间' style="width:60%"
107
+ :disabled-days-of-week="[]"
108
+ :format="'yyyy-MM-dd'"
109
+ :show-rest-button="reset"
110
+ :value.sync="model.f_start_time"
111
+ v-model="model.f_start_time"
112
+ condition="f_offsite_time >= '{} 00:00:00'">
113
+ </datepicker>
114
+ </div>
115
+ <div :class="$parent.$parent.style">
116
+ <label class="font_normal_body">安检结束时间</label>
117
+ <datepicker
118
+ placeholder='安检结束时间' style="width:60%"
119
+ :disabled-days-of-week="[]"
120
+ :format="'yyyy-MM-dd'"
121
+ :show-rest-button="reset"
122
+ :value.sync="model.f_end_time"
123
+ v-model="model.f_end_time"
124
+ condition="f_offsite_time <= '{} 23:59:59'">
125
+ </datepicker>
126
+ </div>
127
+
128
+
129
+ </div>
130
+ <div class="row" v-show="$parent.$parent.criteriaShow&&!$parent.$parent.$parent.showItem">
131
+
132
+ <div :class="$parent.$parent.style">
133
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
134
+ <input type="text" class="input_search" v-model="model.f_repairman"
135
+ condition="f_repairman = '{}'"
136
+ style="width: 60%" placeholder="维修员">
137
+ </div>
138
+ <div :class="$parent.$parent.style">
139
+ <label class="font_normal_body">用户姓名</label>
140
+ <input type="text" class="input_search" v-model="model.f_user_name"
141
+ condition="f_user_name like '%{}%'"
142
+ style="width: 60%" placeholder="用户姓名">
143
+ </div>
144
+ <div :class="$parent.$parent.style">
145
+ <label class="font_normal_body">用户地址</label>
146
+ <input type="text" class="input_search" v-model="model.f_address"
147
+ condition="f_address like '%{}%'"
148
+ style="width: 60%" placeholder="用户地址">
149
+ </div>
150
+ <div :class="$parent.$parent.style">
151
+ <label class="font_normal_body">用户电话</label>
152
+ <input type="text" class="input_search" v-model="model.f_user_phone"
153
+ condition="f_user_phone = '{}'"
154
+ style="width: 60%" placeholder="用户电话">
155
+ </div>
156
+ <div :class="$parent.$parent.style">
157
+ <label class="font_normal_body">用户表号</label>
158
+ <input type="text" class="input_search" v-model="model.f_meternumber"
159
+ condition="f_meternumber = '{}'"
160
+ style="width: 60%" placeholder="用户表号">
161
+ </div>
162
+ <div :class="$parent.$parent.style">
163
+ <label class="font_normal_body">隐&ensp;患&ensp;项</label>
164
+ <v-select
165
+ placeholder='隐患项'
166
+ :value-single="true"
167
+ class="select select_list" style="width: 60%"
168
+ v-model='model.f_defect_content'
169
+ :value.sync="model.f_defect_content"
170
+ :options='$parent.$parent.f_defect_contents'
171
+ condition="f_defect_content like '%{}%'"
172
+ close-on-select clear-button></v-select>
173
+ </div>
174
+ <div :class="$parent.$parent.style">
175
+ <label class="font_normal_body">最后一次隐患处理时间</label>
176
+ <datepicker
177
+ placeholder='起始时间' style="width:60%"
178
+ :disabled-days-of-week="[]"
179
+ :format="'yyyy-MM-dd'"
180
+ :show-rest-button="reset"
181
+ :value.sync="model.f_repair_start"
182
+ v-model="model.f_repair_start"
183
+ condition="f_repair_date >= '{} 00:00:00'">
184
+ </datepicker>
185
+ </div>
186
+ <div :class="$parent.$parent.style">
187
+ <label class="font_normal_body">最后一次隐患处理时间</label>
188
+ <datepicker
189
+ placeholder='结束时间' style="width:60%"
190
+ :disabled-days-of-week="[]"
191
+ :format="'yyyy-MM-dd'"
192
+ :show-rest-button="reset"
193
+ :value.sync="model.f_repair_end"
194
+ v-model="model.f_repair_end"
195
+ condition="f_repair_date<= '{} 23:59:59'">
196
+ </datepicker>
197
+ </div>
198
+ </div>
199
+
200
+
201
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
202
+ <div :class="$parent.$parent.style">
203
+ <label class="font_normal_body">安检计划</label>
204
+ <input type="text" class="input_search" v-model="$parent.$parent.f_check_plan.f_plan_name"
205
+ @click="$parent.$parent.showChooser"
206
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
207
+ </div>
208
+ <div :class="$parent.$parent.style">
209
+ <label class="font_normal_body">存在隐患</label>
210
+ <v-select style="width:60% "
211
+ class="select select_list"
212
+ :value.sync="model.f_has_defect"
213
+ v-model="model.f_has_defect"
214
+ :options='$parent.$parent.hasDefectOptions'
215
+ :placeholder='model.f_has_defect'
216
+ condition="f_has_defect = '{}'"
217
+ close-on-select>
218
+ </v-select>
219
+ </div>
220
+
221
+ <div class=" col-sm-4 form-group button-range">
222
+ <div class="span" style="float: right;margin-top: 8px;margin-right: 50px">
223
+ <div style="float: right" class="button_spacing"
224
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
225
+ @click="$parent.$parent.hiddenr()"></div>
226
+ <div style="float: right" class="button_spacing"
227
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
228
+ @click="$parent.$parent.hidden()"></div>
229
+ <button style="float: right" class="button_search button_spacing" @click="search">查询</button>
230
+ <!-- <button style="float: right" class="button_search button_spacing" @click="$parent.$parent.toRepair">转维修</button>-->
231
+ <div style="float: right">
232
+ <export-excel-old
233
+ :data="{condition: $parent.$parent.model.condition,f_filialeids:$parent.$parent.model.f_filialeids}"
234
+ :field="$parent.$parent.getfield"
235
+ progress="safeGetExportProgress"
236
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="GetCheckPaperByDefectNew2" template-name='安检计划明细'
237
+ :choose-col="true"></export-excel-old>
238
+ </div>
239
+ </div>
240
+ </div>
241
+
242
+
243
+ </div>
244
+ <div class="row" v-show="$parent.$parent.criteriaShow&&$parent.$parent.$parent.showItem">
245
+ <div :class="$parent.$parent.style">
246
+ <label class="font_normal_body">用户编号</label>
247
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
248
+ condition="f_userinfo_code = '{}'"
249
+ style="width: 60%" placeholder="用户编号">
250
+ </div>
251
+ <div :class="$parent.$parent.style">
252
+ <label class="font_normal_body">结果查询</label>
253
+ <v-select
254
+ placeholder='处理结果查询'
255
+ :value-single="true"
256
+ class="select select_list" style="width: 60%"
257
+ v-model='model.f_repaired'
258
+ :value.sync="model.f_repaired"
259
+ :options='$parent.$parent.repaired'
260
+ condition="f_repaired = '{}'"
261
+ close-on-select clear-button></v-select>
262
+ </div>
263
+
264
+ <div :class="$parent.$parent.style2" style="margin: 0">
265
+ <role-selector-safe
266
+ role-name="安检员"
267
+ :resobjprop.sync="$parent.$parent.resids"
268
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
269
+ @re-res="$parent.$parent.getRes"
270
+ :value.sync="model.f_checker_id"
271
+ v-model="model.f_checker_id"
272
+ condition="f_checker_name = '{}'">
273
+ </role-selector-safe>
274
+ </div>
275
+ </div>
276
+ <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
277
+ <div :class="$parent.$parent.style">
278
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
279
+ <v-select class="select_list select"
280
+ placeholder='片区/管理站' style="width: 60%"
281
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
282
+ :options='$parent.$parent.sliceArea'
283
+ filer-key="name"
284
+ close-on-select clear-button
285
+ condition="f_slice_area='{}'"
286
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
287
+ :value-single="true">
288
+ </v-select>
289
+ </div>
290
+ <div :class="$parent.$parent.style">
291
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
292
+ <v-select class="select_list select"
293
+ placeholder='抄表册' style="width: 60%"
294
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
295
+ :options='$parent.$parent.cbc'
296
+ filer-key="name"
297
+ close-on-select clear-button
298
+ condition="f_meter_book_num={}"
299
+ :value-single="true">
300
+ </v-select>
301
+ </div>
302
+ <div :class="$parent.$parent.style">
303
+ <label class="font_normal_body">安检起始时间</label>
304
+ <datepicker
305
+ placeholder='安检起始时间' style="width:60%"
306
+ :disabled-days-of-week="[]"
307
+ :format="'yyyy-MM-dd'"
308
+ :show-rest-button="reset"
309
+ :value.sync="model.f_start_time"
310
+ v-model="model.f_start_time"
311
+ condition="f_offsite_time >= '{} 00:00:00'">
312
+ </datepicker>
313
+ </div>
314
+ <div :class="$parent.$parent.style">
315
+ <label class="font_normal_body">安检结束时间</label>
316
+ <datepicker
317
+ placeholder='安检结束时间' style="width:60%"
318
+ :disabled-days-of-week="[]"
319
+ :format="'yyyy-MM-dd'"
320
+ :show-rest-button="reset"
321
+ :value.sync="model.f_end_time"
322
+ v-model="model.f_end_time"
323
+ condition="f_offsite_time <= '{} 23:59:59'">
324
+ </datepicker>
325
+ </div>
326
+
327
+
328
+ </div>
329
+ <div class="row" v-show="$parent.$parent.criteriaShow && $parent.$parent.$parent.showItem">
330
+
331
+ <div :class="$parent.$parent.style">
332
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
333
+ <input type="text" class="input_search" v-model="model.f_repairman"
334
+ condition="f_repairman = '{}'"
335
+ style="width: 60%" placeholder="维修员">
336
+ </div>
337
+ <div :class="$parent.$parent.style">
338
+ <label class="font_normal_body">处理查询</label>
339
+ <v-select
340
+ placeholder='处理结果查询'
341
+ :value-single="true"
342
+ class="select select_list" style="width: 60%"
343
+ v-model='model.f_is_deal'
344
+ :value.sync="model.f_is_deal"
345
+ :options='$parent.$parent.deals'
346
+ condition="f_is_deal = '{}'"
347
+ close-on-select clear-button></v-select>
348
+ </div>
349
+ </div>
350
+ </div>
351
+ </criteria>
352
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
353
+ <template partial='head'>
354
+ <tr>
355
+ <!-- <th><nobr><input type="checkbox" v-model="$parent.$parent.$parent.checkAll" @click.stop="()=>{return}" />全选</nobr></th>-->
356
+ <th>
357
+ <nobr>入户状态</nobr>
358
+ </th>
359
+ <th>
360
+ <nobr>用户编号</nobr>
361
+ </th>
362
+ <th>
363
+ <nobr>用户名</nobr>
364
+ </th>
365
+ <th>
366
+ <nobr>用户电话</nobr>
367
+ </th>
368
+ <th>
369
+ <nobr>用户小区</nobr>
370
+ </th>
371
+ <th>
372
+ <nobr>用户地址</nobr>
373
+ </th>
374
+ <th>
375
+ <nobr>用户表号</nobr>
376
+ </th>
377
+ <th>
378
+ <nobr>安检时间</nobr>
379
+ </th>
380
+ <th>
381
+ <nobr>安检员</nobr>
382
+ </th>
383
+ <th>
384
+ <nobr>计划名</nobr>
385
+ </th>
386
+ <th>
387
+ <nobr>是否有隐患</nobr>
388
+ </th>
389
+ <th>
390
+ <nobr>隐患数</nobr>
391
+ </th>
392
+ <th>
393
+ <nobr>处理数</nobr>
394
+ </th>
395
+ <th>
396
+ <nobr>处理情况</nobr>
397
+ </th>
398
+ <th>
399
+ <nobr>维修员</nobr>
400
+ </th>
401
+ <th>
402
+ <nobr>隐患明细</nobr>
403
+ </th>
404
+ <th>
405
+ <nobr>最后一次隐患处理时间</nobr>
406
+ </th>
407
+ </tr>
408
+ </template>
409
+ <template partial='body'>
410
+ <!-- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)"></input></td>-->
411
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_entry_status }}</td>
412
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_userinfo_code }}</td>
413
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_user_name }}</td>
414
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_user_phone }}</td>
415
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_residential_area }}</td>
416
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_address }}</td>
417
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_meternumber }}</td>
418
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_offsite_time }}</td>
419
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_checker_name }}</td>
420
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_plan_name }}</td>
421
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_has_defect }}</td>
422
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_defect_count }}</td>
423
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_deal_count }}</td>
424
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_is_deal }}</td>
425
+ <td style="text-align: center;white-space:nowrap;">{{ row.f_repairman }}</td>
426
+ <td style="text-align: center;white-space:nowrap;">
427
+ {{ $parent.$parent.$parent.trouble(row.f_defect_content) }}
428
+ </td>
429
+ <td style="text-align: center;white-space:nowrap;">
430
+ {{row.f_repair_date}}
431
+ </td>
432
+ </template>
433
+ <template partial="foot">
434
+ <td style="text-align: center" colspan="11"><span><b>合计:</b></span></td>
435
+ <td style="text-align: center">{{model.sums.f_defect_count}}</td>
436
+ <td style="text-align: center">{{model.sums.f_deal_count}}</td>
437
+ <td style="text-align: center">{{model.sums.f_defect_count-model.sums.f_deal_count}}</td>
438
+ </template>
439
+ </data-grid>
440
+ </criteria-paged>
441
+
442
+ <modal :show.sync="showModal" v-ref:modal>
443
+ <div slot="modal-header" class="modal-header">
444
+ <h4 class="modal-title">
445
+ 选择计划
446
+ </h4>
447
+ </div>
448
+ <div slot="modal-body" class="modal-body">
449
+ <plan-chooser :f.sync="this.$login.f" v-ref:chooser></plan-chooser>
450
+ </div>
451
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
452
+ <button class="button_search" @click="ok">确认</button>
453
+ <button class="button_search" @click="cancel">取消</button>
454
+ </div>
455
+ </modal>
456
+ <modal :show.sync="showModal2" :backdrop="false">
457
+ <div slot="modal-header" class="modal-header">
458
+ <h4 class="modal-title">
459
+ 转维修
460
+ </h4>
461
+ </div>
462
+ <div slot="modal-body" class="modal-body">
463
+ <div v-if="true">
464
+ <div class="row" style="margin-top: 10px">
465
+ <label class="control-label font text-left"
466
+ style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
467
+ <div class="col-xs-8 col-md-8">
468
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
469
+ :options='dispatchTypeOptions' placeholder='派发类型'
470
+ close-on-select>
471
+ </v-select>
472
+ </div>
473
+ </div>
474
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
475
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
476
+ <div class="col-xs-8 col-md-8">
477
+ <v-select
478
+ :value.sync="selectData.f_repairman"
479
+ :value-single="true"
480
+ :options='repairers'
481
+ placeholder='请选择维修员'
482
+ close-on-select></v-select>
483
+ </div>
484
+ </div>
485
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
486
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
487
+ <div class="col-xs-8 col-md-8">
488
+ <right-tree
489
+ islist
490
+ :userid="userid"
491
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
492
+ @re-res="getSiteRes"></right-tree>
493
+ </div>
494
+ </div>
495
+ <div class="row" style="margin-top: 10px">
496
+ <label class="control-label font text-left"
497
+ style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
498
+ <div class="col-xs-8 col-md-8">
499
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
500
+ class="select select_list"
501
+ :value-single="true"
502
+ :options='repairTypeOptions'
503
+ close-on-select>
504
+ </v-select>
505
+ </div>
506
+ </div>
507
+ <div class="row" style="margin-top: 10px">
508
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
509
+ <div class="col-xs-8 col-md-8">
510
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
511
+ </div>
512
+ </div>
513
+ </div>
514
+ </div>
515
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
516
+ <!-- <button class="button_search" @click="rectification">转维修</button>-->
517
+ <button class="button_search" @click="cancel1">取消</button>
518
+ </div>
519
+ </modal>
520
+ <modal :show.sync="showModal3">
521
+ <div slot="modal-header" class="modal-header">
522
+ <h4 class="modal-title">
523
+ 转维修进度{{ progressbarWidth }}%
524
+ </h4>
525
+ </div>
526
+ <div slot="modal-body" class="modal-body">
527
+ <div class="progress">
528
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
529
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
530
+ <!-- <span class="sr-only">40% 完成</span>-->
531
+ </div>
532
+ </div>
533
+ </div>
534
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
535
+ </modal>
536
+ </div>
537
+ </template>
538
+ <script>
539
+ import {PagedList} from 'vue-client'
540
+ import HttpResetClass from 'vue-client/src/plugins/HttpResetClass'
541
+ import co from 'co'
542
+ import Vue from 'vue'
543
+ import * as Util from '../../../components/Util'
544
+
545
+ let select = function * (self) {
546
+ let http = new HttpResetClass()
547
+ let getGasman = yield http.load('POST', '/rs/search', {
548
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
549
+ userid: self.$login.f.id
550
+ }, {resolveMsg: null, rejectMsg: null})
551
+ //tag
552
+ self.checkersid.push({label: '全部', value: ''})
553
+ getGasman.data.forEach((checker) => {
554
+ self.checkersid.push({label: checker.name, value: checker.name})
555
+ })
556
+ }
557
+ export default {
558
+ title: '隐患查询',
559
+ data () {
560
+ let model = new PagedList('api/af-safecheck/sql/GetCheckPaperByDefectNew2', 20, {
561
+ f_filialeids: 'this.f_filialeids', f_defect_content: 'this.f_defect_content'
562
+ },{f_defect_count:'',f_deal_count:''})
563
+ model.f_filialeids = '(' + this.$login.f.orgid + ')'
564
+ 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'
565
+ return {
566
+ repaired: [{label: '全部', value: ''}, {label: '未完成', value: '未完成'}, {label: '已完成', value: '已完成'}],
567
+ deals: [{label: '全部', value: ''}, {label: '未处理', value: '未处理'}, {label: '已处理', value: '已处理'}],
568
+ hasDefectOptions: [{label: '全部', value: ''}, {label: '有隐患', value: '有隐患'}, {
569
+ label: '无隐患',
570
+ value: '无隐患'
571
+ }],
572
+ f: this.$login.f,
573
+ model: model,
574
+ criteriaShow: false,
575
+ checkAll: false,
576
+ timercount: 0,
577
+ showModal2: false,
578
+ repairTypeOptions: this.$appdata.getParam('转维修类型'),
579
+ dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}],
580
+ checkes: [],
581
+ showModal: false,
582
+ f_check_plan: {f_plan_name: '', id: ''},
583
+ sumsmodel: {},
584
+ resids: {},
585
+ all: false,
586
+ fields: {},
587
+
588
+ selectData: {
589
+ dispatchType: '',
590
+ f_repairman: '',
591
+ f_remarks: '',
592
+ f_repairtype: ''
593
+ },
594
+ progressbarWidth: '0',
595
+ modelval: [],
596
+ isbusy: false,
597
+ checkersid: [],
598
+ showModal3: false,
599
+ toRepairCount: 0,
600
+ sliceArea: [],
601
+ callSends: [],
602
+ cbc: [],
603
+ repairedOptions: [{label: '全部', value: ''}, {label: '已修', value: '已修'}, {label: '未修', value: '未修'}],
604
+ repairers: [],
605
+ cbcs: [],
606
+ thead: '',
607
+ headData: ['入户状态', '用户编号', '用户名', '用户电话', '用户小区', '用户地址', '用户表号',
608
+ '安检时间', '安检员', '计划名', '是否有隐患', '隐患数','处理数','处理情况', '隐患明细','最后一次隐患处理时间'],
609
+ bodyData: ['f_entry_status', 'f_userinfo_code', 'f_user_name', 'f_user_phone', 'f_residential_area', 'f_address', 'f_meternumber',
610
+ 'f_offsite_time', 'f_checker_name', 'f_plan_name', 'f_has_defect', 'f_defect_count','f_deal_count', 'f_is_deal','f_defect_content','f_repair_date'],
611
+ f_defect_contents: [{label:"全部",value:""}],
612
+ DevicesConfig: [],
613
+ DevicesSetConfig: []
614
+ }
615
+ },
616
+ props: {
617
+ style: {
618
+ type: String,
619
+ default: 'col-sm-2 form-group'
620
+ },
621
+ style2: {
622
+ type: String,
623
+ default: 'col-sm-4 form-group'
624
+ }
625
+
626
+ },
627
+
628
+ methods: {
629
+ trouble (val) {
630
+ // return val.replaceAll("'",'')
631
+ // .replaceAll("\"",'')
632
+ // .replaceAll("{",'')
633
+ // .replaceAll("}",'')
634
+ // .replaceAll("]",'')
635
+ // .replaceAll("[",'')
636
+ // .replaceAll("result:",'')
637
+ // .replaceAll("data:",'')
638
+ // .replaceAll("有隐患",'')
639
+ // .replaceAll(",",'')
640
+
641
+ const defect_content = JSON.parse(val)
642
+ let result = ''
643
+ if (defect_content.data) {
644
+ const jsonData = defect_content.data
645
+ for (const itemdata of jsonData) {
646
+ const keys = Object.keys(itemdata)
647
+ for (const itm of keys) {
648
+ const value = itemdata[itm]
649
+ result += itm + ':' + value + ','
650
+ }
651
+ }
652
+ }
653
+ return result
654
+ },
655
+ getEmp () {
656
+ let val = {
657
+ source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))',
658
+ userid: `${this.$login.f.id}`
659
+ }
660
+ let http = new HttpResetClass()
661
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
662
+ let str = ''
663
+ res.data.forEach((item, idx, arr) => {
664
+ //tag
665
+ if (idx + 1 == arr.length) {
666
+ str += item.id
667
+ } else {
668
+ str += item.id + ','
669
+ }
670
+
671
+ })
672
+ let http1 = new HttpResetClass()
673
+ http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
674
+ data: {
675
+ items: 'id,f_user_telephone',
676
+ tablename: 't_user',
677
+ condition: `id in (${str})`,
678
+ orderitem: 'id'
679
+ }
680
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
681
+
682
+ res.data.forEach((user) => {
683
+ try {
684
+ ress.data.forEach((tel, tidx, arr) => {
685
+ //tag
686
+ if (user.id == tel.id) {
687
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
688
+ ress.data.splice(tidx, 1)
689
+ //tag
690
+ throw new Error('跳出循环')
691
+ }
692
+ })
693
+ } catch (e) {
694
+ //tag
695
+ }
696
+ })
697
+ })
698
+
699
+ })
700
+ },
701
+ toRepair () {
702
+ //tag
703
+ this.showModal2 = true
704
+ },
705
+ async rectification () {
706
+ this.isbusy = true
707
+ // if (this.checkAll){
708
+ let data = {
709
+ f_filialeids: this.model.params.f_filialeids,
710
+ f_defect_content: this.model.params.f_defect_content,
711
+ condition: this.model.params.condition
712
+ }
713
+ let res1 = await new HttpResetClass().load('post', 'api/af-safecheck/sql/GetCheckPaperByDefectNew2', {data: data})
714
+ for (let i = 0; i < res1.data.length; i++) {
715
+ let data1 = {
716
+ f_paper_id: res1.data[i].id,
717
+ condition: `f_repaire_type != '无隐患'`
718
+ }
719
+ let res2 = await new HttpResetClass().load('POST', 'api/af-safecheck/sql/GetDefectByPaperIdNew2', {data: data1})
720
+ //tag
721
+ const uploadData = {
722
+ model: {
723
+ serviceacitivity: [{
724
+ f_service_acitivity_type: '派单'
725
+ }],
726
+ f_repairitems: {},
727
+ failure: '',
728
+ f_source: '安检',
729
+ f_service_id: '',
730
+ f_contact_phone: '',
731
+ f_meetunit: '',
732
+ f_phone: '',
733
+ f_user_name: '',
734
+ f_address: '',
735
+ f_repair_date: '',
736
+ f_reciever: '',
737
+ f_remarks: '',
738
+ f_user_type: '',
739
+ f_area: '',
740
+ f_unit_name: '',
741
+ f_street: '',
742
+ f_residential_area: '',
743
+ f_building: '',
744
+ f_unit: '',
745
+ f_floor: '',
746
+ f_room: '',
747
+ aState: '',
748
+ f_repairtype: '',
749
+ f_userinfo_id: '',
750
+ f_userinfo_code: '',
751
+ f_orgstr: '',
752
+ f_outlets: '',
753
+ f_attendant: this.$login.f.name
754
+ },
755
+ loginUser: {
756
+ name: this.$login.f.name,
757
+ ename: this.$login.f.ename
758
+ },
759
+ user: {
760
+ f_userinfo_id: ''
761
+ },
762
+ callObj: null
763
+ }
764
+
765
+ uploadData.model.serviceacitivity[0].f_reciever = this.selectData.f_repairman
766
+ // uploadData.model.f_meetunit = self.$login.f.orgpathnames
767
+ // uploadData.model.f_orgstr = self.$login.f.orgpathstr
768
+ // uploadData.model.f_outlets = self.$login.f.f_parentname
769
+ uploadData.model.f_meetunit = this.$login.f.deps
770
+ uploadData.model.f_orgid = this.$login.f.orgid
771
+ uploadData.model.f_filiale = this.$login.f.org
772
+ uploadData.model.f_outlets = this.$login.f.deps
773
+ uploadData.model.f_filiale_id = this.$login.f.orgid
774
+ uploadData.toRepair = '一级派单'
775
+ let res3 = await new HttpResetClass().load('post', '/api/af-safecheck/sql/GetUserForRepaireNew2', {data: {f_userinfo_id: res1.data[i].f_userinfo_id}})
776
+ uploadData.model = Object.assign(uploadData.model, res3.data[0])
777
+ uploadData.user.f_userinfo_id = res3.data[0].f_userinfo_id
778
+ uploadData.model.f_repair_date = Util.getNowDate()
779
+ uploadData.model.f_repairtype = res3.data[0].f_repairtype
780
+ uploadData.model.f_remarks = res3.data[0].f_remarks
781
+ let failure = []
782
+ res2.data.forEach(row => {
783
+ if (row.f_repaire_type == '隐患未处理') {
784
+ console.log('row.f_item_value', row.f_item_value)
785
+ failure.push({
786
+ f_failure_type: row.f_item_name,
787
+ failurecase: row.f_item_value ? row.f_item_value.split(',') : ''
788
+ })
789
+ }
790
+ })
791
+ uploadData.model.failure = failure
792
+ // 拼接repairitems
793
+ let rows = JSON.parse(JSON.stringify(res2.data))
794
+ let repairitems = {
795
+ data: []
796
+ }
797
+ let safecheckOptions = [{'data': '已处理'}, {'data': '未处理'}]
798
+ // 取隐患未处理的
799
+ rows = rows.filter(row => row.f_repaire_type == '隐患未处理')
800
+ //tag)
801
+ // 开始拼接
802
+ rows.forEach(row => {
803
+ let existIndex = -1
804
+ // 判断该设备是否已经存在
805
+ for (let i = 0; i < repairitems.data.length; i++) {
806
+ if (repairitems.data[i].f_type == row.f_device_type) {
807
+ existIndex = i
808
+ break
809
+ }
810
+ }
811
+ if (existIndex == -1) {
812
+ // 不存在则新建
813
+ let newItem = {
814
+ f_type: row.f_device_type,
815
+ details: [{
816
+ f_defect_id: row.id,
817
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
818
+ type: 'selector',
819
+ options: safecheckOptions
820
+ }]
821
+ }
822
+ repairitems.data.push(newItem)
823
+ } else {
824
+ // 存在则追加
825
+ repairitems.data[existIndex].details.push({
826
+ f_defect_id: row.id,
827
+ f_project: `${row.f_item_name}:${row.f_item_value}`,
828
+ type: 'selector',
829
+ options: safecheckOptions
830
+ })
831
+ }
832
+ })
833
+ uploadData.model.f_repairitems = repairitems
834
+ uploadData.rows = rows
835
+ //tag)
836
+ //tag
837
+ if (uploadData.model.f_repairitems.data.length > 0) {
838
+ this.callSends.push(uploadData)
839
+ } else {
840
+ //tag
841
+ }
842
+ }
843
+ //tag)
844
+ let timer = setInterval(async () => {
845
+ this.showModal3 = true
846
+ this.isbusy = false
847
+ if (this.timercount < this.callSends.length) {
848
+ //tag)
849
+ let rows = this.callSends[this.timercount].rows
850
+ //tag)
851
+ let result = await this.$resetpost('/api/af-safecheck/logic/callerSend', this.callSends[this.timercount])
852
+ //tag)
853
+ if (result.data.f_service_id) {
854
+ const data = {
855
+ f_paper_id: rows[0].f_paper_id,
856
+ f_service_id: result.data.f_service_id,
857
+ itemsId: this.$login.convertToIn(rows.map(row => row.id))
858
+ }
859
+ //tag
860
+ let updateRes = await this.$resetpost('/api/af-safecheck/logic/updateDefectStateNew', data)
861
+ }
862
+ this.toRepairCount++
863
+ //tag
864
+ this.timercount++
865
+ } else {
866
+ clearInterval(timer)
867
+ //tag
868
+ this.callSends = []
869
+ this.timercount = 0
870
+ this.showModal3 = false
871
+ this.cancel1()
872
+ this.$showMessage('本次转维修成功' + this.toRepairCount + '单')
873
+ this.toRepairCount = 0
874
+ }
875
+ }, 3000)
876
+ },
877
+ cancel1 () {
878
+ this.showModal2 = false
879
+ this.selectData = {
880
+ dispatchType: '',
881
+ f_repairman: '',
882
+ f_remarks: '',
883
+ f_repairtype: ''
884
+ }
885
+ },
886
+ sleep (d) {
887
+ //tag)
888
+ var t = Date.now()
889
+ while (Date.now - t <= d) {
890
+
891
+ }
892
+ //tag)
893
+ },
894
+ isChecked (v) {
895
+ // 如果全选,不在的按选中算,否则,在的按选中算
896
+ if (this.checkAll) {
897
+ return this.checkes.indexOf(v) == -1
898
+ } else {
899
+ return this.checkes.indexOf(v) != -1
900
+ }
901
+ },
902
+ setCheckAll () {
903
+ this.checkAll = this.checkAll ? false : true
904
+ // 全选改变后,清空选中数据
905
+ this.checkes = []
906
+ },
907
+ setCheckes (id) {
908
+ let index = this.checkes.indexOf(id)
909
+ if (index < 0) {
910
+ this.checkes.push(id)
911
+ } else {
912
+ this.checkes.splice(index, 1)
913
+ }
914
+ },
915
+ getmeterbook (val) {
916
+ this.cbc = []
917
+ this.cbc.push({
918
+ label: '全部',
919
+ value: ''
920
+ })
921
+ if (val == '') {
922
+
923
+ this.cbcs.forEach(res => {
924
+ this.cbc.push({
925
+ label: res.f_book_name,
926
+ value: res.id
927
+ })
928
+ })
929
+ } else {
930
+ this.cbcs.forEach(res => {
931
+ if (res.f_book_slice_area == val) {
932
+ this.cbc.push({
933
+ label: res.f_book_name,
934
+ value: res.id
935
+ })
936
+ }
937
+ })
938
+ }
939
+ },
940
+ Mreadibook (val) {
941
+ //tag
942
+ //tag
943
+ this.sliceArea = []
944
+ if (val) {
945
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
946
+ data: {
947
+ items: 'name',
948
+ tablename: 't_zone',
949
+ condition: `parentid in ${val}`,
950
+ orderitem: 'id'
951
+ }
952
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
953
+ this.sliceArea.push({
954
+ label: '全部',
955
+ value: ''
956
+ })
957
+ res.data.forEach(ress => {
958
+ this.sliceArea.push({
959
+ label: ress.name,
960
+ value: ress.name
961
+ })
962
+ })
963
+
964
+ })
965
+ }
966
+ },
967
+ getAllMeterBook (val) {
968
+ //tag
969
+ //tag
970
+ this.cbcs = []
971
+ if (val) {
972
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
973
+ data: {
974
+ items: 'f_book_name,f_book_slice_area,id',
975
+ tablename: 't_meter_book',
976
+ condition: `f_filiale_id in ${val}`,
977
+ orderitem: 'id'
978
+ }
979
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
980
+ res.data.forEach(ress => {
981
+ this.cbcs.push({
982
+ id: ress.id,
983
+ f_book_name: ress.f_book_name,
984
+ f_book_slice_area: ress.f_book_slice_area
985
+ })
986
+ })
987
+ this.cbc = []
988
+ this.cbc.push({
989
+ label: '全部',
990
+ value: ''
991
+ })
992
+ this.cbcs.forEach(res => {
993
+ this.cbc.push({
994
+ label: res.f_book_name,
995
+ value: res.id
996
+ })
997
+ })
998
+ })
999
+ }
1000
+ },
1001
+ hiddenr () {
1002
+ this.$parent.showItem = !this.$parent.showItem
1003
+ },
1004
+ hidden () {
1005
+ this.criteriaShow = !this.criteriaShow
1006
+ },
1007
+ search (args) {
1008
+ //tag
1009
+ if (this.f_check_plan.f_plan_name) {
1010
+ args.condition += ` and f_check_plan_id = '${this.f_check_plan.id}'`
1011
+ }
1012
+ this.checkes = []
1013
+ this.checkAll = false
1014
+ this.model.search(args.condition, args.model)
1015
+ },
1016
+ getRes (obj) {
1017
+ //tag
1018
+ this.resids = {res: obj.res[0], resids: obj.resids[0]}
1019
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids)
1020
+ this.Mreadibook(this.model.f_filialeids)
1021
+ this.getAllMeterBook(this.model.f_filialeids)
1022
+ },
1023
+ showChooser () {
1024
+ this.showModal = true
1025
+ },
1026
+ ok () {
1027
+ this.showModal = false
1028
+ if (this.$refs.modal.$children[0].selectedRow.id) {
1029
+ this.f_check_plan = this.$refs.modal.$children[0].selectedRow
1030
+ }
1031
+ },
1032
+ cancel () {
1033
+ this.showModal = false
1034
+ this.f_check_plan = {f_plan_name: '', id: ''}
1035
+ },
1036
+ async asyncReady (self) {
1037
+ // 获取配置信息
1038
+ try {
1039
+ let res = await new HttpResetClass().load('post', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
1040
+ data: {
1041
+ items: 'f_dir',
1042
+ tablename: 't_organization',
1043
+ condition: `id = '${self.$login.f.orgid}'`,
1044
+ orderitem: 'id'
1045
+ }
1046
+ })/*.then(res=>{*/
1047
+ //tag
1048
+ //tag)
1049
+ if (!res.data[0].f_dir) {
1050
+ self.$showMessage("该公司无组织目录,无法获取配置文件,请联系管理员确认")
1051
+ } else {
1052
+ //this.f_dir=res.data[0].f_dir
1053
+ try {
1054
+ let res = await new HttpResetClass().load('get', `/phone/rs/vue`, {}, {
1055
+ resolveMsg: null,
1056
+ rejectMsg: null
1057
+ })
1058
+ /*let res1 = await new HttpResetClass().load('post', `/safecheck/rs/vue/DevicesConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
1059
+ resolveMsg: '获取居民配置项成功!',
1060
+ rejectMsg: '获取居民配置项出错!'
1061
+ })*/
1062
+ this.DevicesConfig = res.data.safecheck.DevicesConfig
1063
+ /*let res2 = await new HttpResetClass().load('post', `/safecheck/rs/vue/DevicesSetConfig.json?folderName=phonevues&orgDir=${res.data[0].f_dir}`, {}, {
1064
+ resolveMsg: '获取非居民配置项成功!',
1065
+ rejectMsg: '获取非居民配置项出错!'
1066
+ })*/
1067
+ this.DevicesSetConfig = res.data.safecheck.DevicesSetConfig
1068
+ } catch (e) {
1069
+ self.$showMessage("获取配置文件失败" + e)
1070
+ }
1071
+ }
1072
+ } catch (error) {
1073
+ // 忽略704,文件找不到异常R
1074
+ if (error.status !== 704) {
1075
+ throw error
1076
+ }
1077
+ }
1078
+ }
1079
+ },
1080
+ ready () {
1081
+ //tag
1082
+ this.$refs.paged.$refs.criteria.model.f_has_defect = '有隐患'
1083
+ this.getEmp()
1084
+ let gen = select(this)
1085
+ // this.Mreadibook(`('${this.$login.f.orgid}')`)
1086
+ co(gen)
1087
+ this.asyncReady(this).then(()=>{
1088
+ let defectTypeSet = new Set()
1089
+ if (this.DevicesConfig) {
1090
+ for (const key in this.DevicesConfig) {
1091
+ if (Object.hasOwnProperty.call(this.DevicesConfig, key)) {
1092
+ for (const ke in this.DevicesConfig[key]['items']) {
1093
+ defectTypeSet.add(ke)
1094
+ }
1095
+ }
1096
+ }
1097
+ }
1098
+ if (this.DevicesSetConfig) {
1099
+ for (const key in this.DevicesSetConfig) {
1100
+ if (Object.hasOwnProperty.call(this.DevicesSetConfig, key)) {
1101
+ for (const ke in this.DevicesSetConfig[key]['items']) {
1102
+ defectTypeSet.add(ke)
1103
+ }
1104
+ }
1105
+ }
1106
+ }
1107
+ defectTypeSet.forEach((item) => {
1108
+ this.f_defect_contents.push({label: item, value: item})
1109
+ })
1110
+ })
1111
+ },
1112
+ watch: {
1113
+ 'timercount' () {
1114
+ if (this.timercount === 0) {
1115
+ this.progressbarWidth = '0'
1116
+ } else {
1117
+ //tag
1118
+ //tag
1119
+ this.progressbarWidth = parseInt(this.timercount * 100 / (this.callSends.length + 1))
1120
+ }
1121
+
1122
+ }
1123
+ },
1124
+ computed: {
1125
+ selected () {
1126
+ return this.$refs.paged.$refs.grid.selected
1127
+ },
1128
+ getfield () {
1129
+ //tag
1130
+ let data = {}
1131
+ this.bodyData.forEach((value, index) => {
1132
+ data[this.bodyData[index]] = this.headData[index]
1133
+ })
1134
+ //合计字段打印
1135
+ this.tfoot = `<tr><th colspan=${this.modelval.length}>全表汇总信息: `
1136
+ if (this.sumsmodel) {
1137
+ Object.keys(this.sumsmodel).forEach((key) => {
1138
+ this.tfoot += this.fields[key] + '合计: ' + `<font color="blue">${this.sumsmodel[key]} </font>`
1139
+ })
1140
+ } else {
1141
+ this.tfoot += '暂无'
1142
+ }
1143
+ this.tfoot += '</th></tr>'
1144
+ return data
1145
+ }
1146
+ }
1147
+ }
1148
+ </script>