safecheck-client 4.0.2-35 → 4.0.2-37

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