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