safecheck-client 3.0.30-62-t10 → 3.0.30-62-t12

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