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