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

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