safecheck-client 3.0.30-62-t11 → 3.0.30-62-t12

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