safecheck-client 4.0.2-55 → 4.0.2-58

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 (258) 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/Util/RightTreeSafeDep.vue +362 -362
  5. package/src/components/android/AddPlanItem.vue +447 -447
  6. package/src/components/android/AddPlanItemYy.vue +451 -451
  7. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  8. package/src/components/android/AndroidNotifiedDeal.vue +417 -417
  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/pc/AnnouncementPC.vue +524 -524
  40. package/src/components/pc/DefectDeal.vue +1012 -1012
  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/PaperDefectMain.vue +905 -905
  45. package/src/components/pc/RoleSelectorDep.vue +166 -166
  46. package/src/components/pc/SafeVisitInfo.vue +261 -261
  47. package/src/components/report/HiddenSituation.vue +165 -165
  48. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  49. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  50. package/src/components/rongcheng/DefectList.vue +560 -560
  51. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  52. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  53. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  54. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  55. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  56. package/src/components/shaoguan/DefectList.vue +473 -473
  57. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  58. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  59. package/src/components/userfile/SecurityAudit.vue +243 -243
  60. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  61. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  62. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  63. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  64. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  65. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  66. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  67. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  68. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  69. package/src/filiale/bayan/android/Edit.vue +132 -132
  70. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  71. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  72. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  73. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  74. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  75. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  76. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  77. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  78. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  79. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  80. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  81. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  82. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  83. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  84. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  85. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  86. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  87. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  88. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  89. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  90. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  91. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  92. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  93. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  94. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  95. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  96. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  97. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  98. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  99. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  100. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +722 -722
  101. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +521 -521
  102. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +463 -463
  103. package/src/filiale/jinhong/android.js +14 -14
  104. package/src/filiale/jinhong/pc/PlanManage.vue +927 -927
  105. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  106. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  107. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  108. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  109. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  110. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  111. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  112. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  113. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  114. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  115. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  116. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  117. package/src/filiale/libo/android/CurrentCreate.vue +1091 -1091
  118. package/src/filiale/libo/android.js +15 -15
  119. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  120. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  121. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  122. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  123. package/src/filiale/meihekou/android/MeterReading.vue +110 -110
  124. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1307
  125. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  126. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -52
  127. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2028 -2028
  128. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2051
  129. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1289 -1289
  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/android/AddPlanItem.vue +457 -456
  177. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  178. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -2347
  179. package/src/filiale/taiyuan/android.js +1 -0
  180. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -1976
  181. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -891
  182. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -798
  183. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  184. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  185. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  186. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  187. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  188. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  189. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  190. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  191. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  192. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  193. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  194. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  195. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  196. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  197. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  198. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  199. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  200. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  201. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  202. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  203. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  204. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  205. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  206. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  207. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  208. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  209. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  210. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  211. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  212. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  213. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  214. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  215. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  216. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  217. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  218. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  219. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  220. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  221. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  222. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  223. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  224. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  225. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -814
  226. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -206
  227. package/src/filiale/xinliansihui/pc.js +13 -13
  228. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  229. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  230. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  231. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  232. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  233. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  234. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  235. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  236. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  237. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  238. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  239. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  240. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  241. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  242. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  243. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  244. package/src/filiale/yunchengminsheng/android.js +15 -15
  245. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -811
  246. package/src/filiale/yunchengminsheng/pc.js +15 -15
  247. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  248. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  249. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  250. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  251. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  252. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  253. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  254. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  255. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  256. package/src/main.js +33 -32
  257. package/src/safecheck-android.js +328 -328
  258. package/src/safecheck.js +927 -927
@@ -1,1012 +1,1012 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged @sort="sort">
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">客户编号</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo_id"
11
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_id='{}'">
12
- </div>
13
- <div class="form-group col-sm-2" >
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-2" >
19
- <label class="font_normal_body">客户电话</label>
20
- <input type="text" class="input_search" v-model="model.f_user_phone"
21
- style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-2" >
24
- <label class="font_normal_body">是否处理</label>
25
- <v-select :value.sync="model.f_is_repaired" v-model='model.f_is_repaired'
26
- :value-single="true" style="width: 60%"
27
- :options='$parent.$parent.dealOptions' placeholder='请选择'
28
- close-on-select
29
- condition="f_is_repaired = '{}'"></v-select>
30
- </div>
31
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
32
- <export-excel :data="$parent.$parent.searchData"
33
- :field="$parent.$parent.excelHeaders"
34
- progress="safeGetExportProgress"
35
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="defectDetails" template-name='隐患处置'></export-excel>
36
- <button style="margin-left: 4px" class="button_search button_spacing" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
37
- <button style="margin-left: 4px" class="button_search button_spacing" @click="$parent.$parent.toRepair()" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
38
- <button style="margin-left: 4px" class="button_search button_spacing" @click="search()">查询</button>
39
- <div
40
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
- @click="$parent.$parent.hidden()"></div>
42
- </div>
43
- </div>
44
- <div class="row">
45
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
46
- <label class="font_normal_body">小&emsp;&emsp;区</label>
47
- <input type="text" class="input_search" v-model="model.f_residential_area"
48
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
49
- </div>
50
- <div class="col-sm-4 form-group" style="margin: 0" v-show="$parent.$parent.criteriaShow">
51
- <role-selector-safe
52
- role-name="安检员"
53
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
- :value.sync="model.f_checker_id"
55
- v-model="model.f_checker_id"
56
- :value-multiple="true"
57
- :value-close="false"
58
- condition="f_checker_name in {}">
59
- </role-selector-safe>
60
- </div>
61
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
62
- <label class="font_normal_body">检&ensp;查&ensp;项</label>
63
- <v-select :value.sync="model.f_device_type"
64
- v-model="model.f_device_type"
65
- style="width: 60%"
66
- :options='$parent.$parent.device_types'
67
- placeholder='检查项'
68
- :multiple="true"
69
- condition="f_device_type in {}"></v-select>
70
- </div>
71
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
72
- <label class="font_normal_body">隐患名称</label>
73
- <v-select :value.sync="model.f_item_name"
74
- v-model='model.f_item_name'
75
- style="width: 60%"
76
- :options='$parent.$parent.DefectConfigs'
77
- placeholder='隐患名称'
78
- :multiple="true"
79
- condition="f_item_name in {}"></v-select>
80
- </div>
81
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
82
- <label class="font_normal_body">安检起始</label>
83
- <datepicker
84
- :value.sync="model.f_check_start"
85
- placeholder='安检起始时间' style="width: 60%"
86
- :disabled-days-of-week="[]"
87
- :format="'yyyy-MM-dd'"
88
- :show-rest-button="reset"
89
- v-model="model.f_check_start"
90
- condition="f_offsite_time >= '{} 00:00:00'">
91
- </datepicker>
92
- </div>
93
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
94
- <label class="font_normal_body">安检结束</label>
95
- <datepicker
96
- :value.sync="model.f_check_end"
97
- placeholder='安检结束时间' style="width: 60%"
98
- :disabled-days-of-week="[]"
99
- :format="'yyyy-MM-dd'"
100
- :show-rest-button="reset"
101
- v-model="model.f_check_end"
102
- condition="f_offsite_time <= '{} 23:59:59'">
103
- </datepicker>
104
- </div>
105
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
106
- <label class="font_normal_body">用户类型</label>
107
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
108
- :value-single="true" style="width: 60%"
109
- :options='$parent.$parent.f_check_type' placeholder='请选择'
110
- close-on-select
111
- condition="f_check_type = '{}'"></v-select>
112
- </div>
113
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
114
- <label class="font_normal_body">详细地址</label>
115
- <input type="text" class="input_search" v-model="model.f_address"
116
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
117
- </div>
118
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
119
- <dep-selector
120
- :value.sync="model.parentid"
121
- v-model="model.parentid"
122
- condition="parentid in {}">
123
- </dep-selector>
124
- </div>
125
- </div>
126
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
127
- <div slot="modal-header" class="modal-header">
128
- <h4 class="modal-title">
129
- 选择计划
130
- </h4>
131
- </div>
132
- <div slot="modal-body" class="modal-body">
133
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
134
- </div>
135
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
136
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
137
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
138
- </div>
139
- </modal>
140
- </div>
141
- </criteria>
142
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
143
- <template partial='head'>
144
- <tr>
145
- <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
146
- <th>
147
- <nobr>检查项</nobr>
148
- </th>
149
- <th>
150
- <nobr>隐患名称</nobr>
151
- </th>
152
- <th>
153
- <nobr>隐患级别</nobr>
154
- </th>
155
- <th>
156
- <nobr>客户编号</nobr>
157
- </th>
158
- <th>
159
- <nobr>客户名称</nobr>
160
- </th>
161
- <th>
162
- <nobr>客户电话</nobr>
163
- </th>
164
- <th>
165
- <nobr>客户类型</nobr>
166
- </th>
167
- <th>
168
- <nobr>客户小区</nobr>
169
- </th>
170
- <th>
171
- <nobr>客户地址</nobr>
172
- </th>
173
- <th>
174
- <data-order field="f_offsite_time" name="安检时间"></data-order>
175
- </th>
176
- <th>
177
- <nobr>安检员</nobr>
178
- </th>
179
- <th>
180
- <nobr>是否处理</nobr>
181
- </th>
182
- <th style="width: 188px">
183
- <nobr>到期时间</nobr>
184
- </th>
185
- <th>
186
- <nobr>操作</nobr>
187
- </th>
188
- </tr>
189
- </template>
190
- <template partial='body'>
191
- <td v-if="$parent.$parent.$parent.canToRepair=='是'" style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['用户自行整改', '现场已处理', '维修已处理', '转维修'].indexOf(row.f_is_repaired) == -1" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row)" @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
192
- <td style="text-align: center">{{row.f_device_type}}</td>
193
- <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
194
- <td style="text-align: center">{{row.f_defect_level}}</td>
195
- <td style="text-align: center">{{row.f_userinfo_id}}</td>
196
- <td style="text-align: center">{{row.f_user_name}}</td>
197
- <td style="text-align: center">{{row.f_user_phone}}</td>
198
- <td style="text-align: center">{{row.f_check_type}}</td>
199
- <td style="text-align: center">{{row.f_residential_area}}</td>
200
- <td style="text-align: center">{{row.f_address}}</td>
201
- <td style="text-align: center">{{row.f_offsite_time}}</td>
202
- <td style="text-align: center">{{row.f_checker_name}}</td>
203
- <td style="text-align: center">{{row.f_is_repaired}}</td>
204
- <td style="" v-if="row.f_is_repaired == '未处理'">
205
- <datepicker
206
- :value.sync="row.f_handle_date"
207
- placeholder='到期时间' style="width: 60%; position: static"
208
- :disabled-days-of-week="[]"
209
- :format="'yyyy-MM-dd'"
210
- :show-rest-button="reset"
211
- v-model="row.f_handle_date">
212
- </datepicker>
213
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.a(row)'>修改</button>
214
- </td>
215
- <td style="text-align: center" v-if="row.f_is_repaired == '已处理' || row.f_is_repaired == '转维修'">
216
- {{row.f_handle_date}}
217
- </td>
218
- <td style="text-align: center">
219
- <button style="margin-bottom: 5px" class="button_spacing button_search-1" @click='$parent.$parent.$parent.showDealModal(row)'>{{row.f_is_repaired == '未处理' ? '处理' : '查看'}}</button>
220
- </td>
221
- </template>
222
- </data-grid>
223
- </criteria-paged>
224
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
225
- <modal :show.sync="showSolveModal" v-ref:solveModal width="750px">
226
- <div slot="modal-header" class="modal-header">
227
- <h4 class="modal-title">
228
- {{solveModal.preData.state == '已处理' ? '查看隐患' : '处理隐患'}}
229
- </h4>
230
- </div>
231
- <div slot="modal-body" class="modal-body">
232
- <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
233
- <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
234
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
235
- </div>
236
-
237
- <div class="col-sm-6" style="margin-top: 10px">
238
- <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
239
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_checker_name" placeholder="安检员">
240
- </div>
241
- <div class="col-sm-6" style="margin-top: 10px">
242
- <label class="font_normal_body">安检时间</label>
243
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_offsite_time" placeholder="安检时间">
244
- </div>
245
- <div class="col-sm-12" style="margin-bottom: 10px; display: flex; gap: 10px" >
246
- <label class="font_normal_body">隐患图片</label>
247
- <img-self-plus v-if="solveModal.preData.defectImg" :width="200" :height="200" :src="solveModal.preData.defectImg"></img-self-plus>
248
- <img-self-plus v-if="solveModal.preData.defectImg1" :width="200" :height="200" :src="solveModal.preData.defectImg1"></img-self-plus>
249
- <img-self-plus v-if="solveModal.preData.defectImg2" :width="200" :height="200" :src="solveModal.preData.defectImg2"></img-self-plus>
250
- </div>
251
- <div class="col-sm-12" style="margin-bottom: 10px; display: flex; gap: 10px" v-if="solveModal.preData.f_repaired_path">
252
- <label class="font_normal_body">隐患通知单照片</label>
253
- <img-self-plus v-if="solveModal.preData.f_repaired_path" :width="200" :height="200" :src="solveModal.preData.f_repaired_path"></img-self-plus>
254
- </div>
255
- <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
256
- <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
257
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理后</p></div>
258
- </div>
259
- <div class="col-sm-6" style="margin-top: 10px" v-if="solveModal.preData.state == '已处理'">
260
- <label class="font_normal_body">处&nbsp;理&nbsp;人</label>
261
- <input class="input_search" style="width: 60%" disabled="true" type="text" v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
262
- <v-select
263
- v-if="solveModal.preData.type == 'solve'"
264
- :value.sync="solveModal.uploadData.f_repairman"
265
- :value-single="true"
266
- :options='toRepairModal.preData.repairers'
267
- placeholder='请选择维修员'
268
- close-on-select></v-select>
269
- </div>
270
- <div class="col-sm-6" style="margin-top: 10px" v-if="solveModal.preData.state == '已处理'">
271
- <label class="font_normal_body">处理时间</label>
272
- <datepicker
273
- :disabled="true"
274
- placeholder='处理时间' style="width:60%"
275
- :disabled-days-of-week="[]"
276
- :format="'yyyy-MM-dd'"
277
- :show-rest-button="reset"
278
- :value.sync="solveModal.uploadData.f_repair_date">
279
- </datepicker>
280
- </div>
281
- <div v-if="solveModal.preData.state == '未处理'" class="col-sm-12" style="margin-bottom: 10px">
282
- <label class="font_normal_body">处理后图片</label>
283
- <safecheck-file-upload
284
- :issearch="false"
285
- :isupload="true"
286
- :blodid="check.f_defect_id"
287
- :isdelete="true"
288
- flag="safeCheck"
289
- @filename="getfile"
290
- ></safecheck-file-upload>
291
- </div>
292
- <div v-if="solveModal.preData.state == '已处理'" class="col-sm-12" style="margin-bottom: 10px">
293
- <p> <label class="font_normal_body">处理后图片</label></p>
294
- <P></P>
295
- <div class="col-sm-12">
296
- <div class="col-sm-6" v-if="solveModal.preData.repairedImg">
297
- <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg" style="margin-left: 10px"></img-self-plus>
298
- </div>
299
- <div class="col-sm-6" v-if="solveModal.preData.repairedImg1">
300
- <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg1" style="margin-left: 10px"></img-self-plus>
301
- </div>
302
- <div class="col-sm-6" v-if="solveModal.preData.repairedImg2">
303
- <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg2" style="margin-left: 10px"></img-self-plus>
304
- </div>
305
- </div>
306
- </div>
307
- </div>
308
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
309
- <button class="button_search" v-if="checkDefect=='是' && solveModal.preData.type == 'view'" @click="auditsure('通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核通过</button>
310
- <button class="button_search" v-if="checkDefect=='是' && solveModal.preData.type == 'view'" @click="auditsure('不通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核不通过</button>
311
- <button class="button_search" v-if="solveModal.preData.state == '未处理'" @click="ok">确认</button>
312
- <button class="button_search" @click="cancel">取消</button>
313
- <button class="button_search" v-if="solveModal.preData.state == '未处理'" @click="toRepair(check)">转维修</button>
314
- </div>
315
- </modal>
316
- <modal :show.sync="showModal2" :backdrop="false">
317
- <div slot="modal-header" class="modal-header">
318
- <h4 class="modal-title">
319
- 转维修
320
- </h4>
321
- </div>
322
- <div slot="modal-body" class="modal-body">
323
- <div v-if="true">
324
- <div>
325
-
326
- </div>
327
- <!-- <div v-for="(index, item) in dangerGroup">-->
328
-
329
- <!-- </div>-->
330
- <div class="row" style="margin-top: 10px">
331
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
332
- <div class="col-xs-8 col-md-8">
333
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
334
- :options='dispatchTypeOptions' placeholder='派发类型'
335
- close-on-select>
336
- </v-select>
337
- </div>
338
- </div>
339
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
340
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
341
- <div class="col-xs-8 col-md-8">
342
- <v-select
343
- :value.sync="selectData.f_repairman"
344
- :value-single="true"
345
- :options='repairers'
346
- placeholder='请选择维修员'
347
- close-on-select></v-select>
348
- </div>
349
- </div>
350
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
351
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
352
- <div class="col-xs-8 col-md-8">
353
- <right-tree
354
- islist
355
- :userid="userid"
356
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
357
- @re-res="getSiteRes"></right-tree>
358
- </div>
359
- </div>
360
- <div class="row" style="margin-top: 10px">
361
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
362
- <div class="col-xs-8 col-md-8">
363
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
364
- class="select select_list"
365
- :value-single="true"
366
- :options='repairTypeOptions'
367
- close-on-select>
368
- </v-select>
369
- </div>
370
- </div>
371
- <div class="row" style="margin-top: 10px">
372
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
373
- <div class="col-xs-8 col-md-8">
374
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
375
- </div>
376
- </div>
377
- </div>
378
- </div>
379
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
380
- <button class="button_search" @click="rectification">转维修</button>
381
- <button class="button_search" @click="cancel1">取消</button>
382
- </div>
383
- </modal>
384
- <modal :show.sync="showModal3">
385
- <div slot="modal-header" class="modal-header">
386
- <h4 class="modal-title">
387
- 转维修进度{{ progressbarWidth }}%
388
- </h4>
389
- </div>
390
- <div slot="modal-body" class="modal-body">
391
- <div class="progress">
392
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
393
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
394
- </div>
395
- </div>
396
- </div>
397
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
398
- </modal>
399
- </div>
400
- </div>
401
- </template>
402
-
403
- <script>
404
- import {PagedList} from 'vue-client'
405
- import Vue from 'vue'
406
- import co from 'co'
407
- import AppData from '../../stores/AppData'
408
- import * as Util from '../Util'
409
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
410
- import BenzAMRRecorder from 'benz-amr-recorder'
411
-
412
- //获取json配置文件
413
- let asyncReady = async function (self) {
414
- // 获取配置信息
415
- try {
416
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
417
- Vue.config = res.data
418
- // self.getDefectInfoConfig(res.data)
419
- } catch (error) {
420
- // 忽略704,文件找不到异常R
421
- if (error.status !== 704) {
422
- throw error
423
- }
424
- }
425
- }
426
-
427
- let select = function* (self) {
428
- let http = new HttpResetClass()
429
- let getGasman = yield http.load('POST', '/rs/search', {
430
- source: 'tool.getChildrenOfResName($新安检员$)',
431
- userid: self.$login.f.id
432
- }, {resolveMsg: null, rejectMsg: null})
433
- ////tag
434
- self.checkersid.push({label: '全部', value: ''})
435
- getGasman.data.forEach((checker) => {
436
- self.checkersid.push({label: checker.name, value: checker.id})
437
- })
438
- }
439
-
440
- export default {
441
- title: '隐患处置',
442
- data() {
443
- let model = new PagedList('api/af-safecheck/sql/DefectDetailsYC', 20,{
444
- })
445
- model.f_plan_id = ''
446
- model.f_approved = ''
447
- model.f_entry = ''
448
- model.f_no_checkplan = ''
449
- model.f_check_type=''
450
- return {
451
- audioshow:false,
452
-
453
- model: model,
454
- deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
455
- repairStateOptions: [{label:'全部',value:''}, {label:'转维修',value:'转维修'}, {label:'维修已处理',value:'维修已处理'}, {label: '隐患未处理', value: '隐患未处理'}, {label:'现场已处理',value:'现场已处理'}, {label:'用户自行整改',value:'用户自行整改'}],
456
- //searchData:searchData,
457
- excelHeaders: {
458
- 'f_device_type': '检查项',
459
- 'f_item_name': '隐患名称',
460
- 'f_item_value': '隐患内容',
461
- 'f_defect_level': '隐患级别',
462
- 'f_userinfo_id': '客户编号',
463
- 'f_user_name': '客户姓名',
464
- 'f_user_phone': '客户电话',
465
- 'f_check_type': '客户类型',
466
- 'f_residential_area': '客户小区',
467
- 'f_address': '客户地址',
468
- 'f_offsite_time': '安检时间',
469
- 'f_checker_name': '安检员',
470
- },
471
- fun: this.$login.f,
472
- checkersid: [],
473
- safetype: this.getSafeParam('安检类型'),
474
- criteriaShow: false,
475
- showModal: false,
476
- f_approval_states: this.getSafeParam('安检单审核状态'),
477
- f_entry_status:this.getSafeParam('安检状态'),
478
- f_checkplans: this.getSafeParam('有无计划'),
479
- showcheckmsg: false,
480
- checkInfo: {},
481
- orderDefault: "'f_offsite_time'",
482
- orderFields: {
483
- f_offsite_time: 'no'
484
- },
485
- sliceArea: [],
486
- cbc:[],
487
- DefectConfig:'' ,
488
- DefectConfigs:[],
489
- device_types:[],
490
- f_check_type: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
491
- dealOptions: [{label:'全部',value:''},{label:'已处理',value:'已处理'},{label:'未处理',value:'未处理'},{label:'转维修',value:'转维修'}],
492
- showModal2: false,
493
- selectData:{
494
- dispatchType:'',
495
- f_repairman:'',
496
- f_remarks:'',
497
- f_repairtype:''
498
- },
499
- repairers: [],
500
- repairTypeOptions:this.$appdata.getParam('报修类型'),
501
- dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
502
- dangerGroups: [],
503
- showModal3: false,
504
- progressbarWidth:'0',
505
- canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
506
- checkes: [],
507
- solveModal: {
508
- preData: {
509
- type: '',
510
- defectImg: '',
511
- defectImg1: '',
512
- f_repaired_path: '',
513
- defectImg2: '',
514
- repairedImg: '',
515
- repairedImg1: '',
516
- repairedImg2: '',
517
- state: ''
518
- },
519
- uploadData: {
520
- id: '',
521
- f_repairman: this.$login.f.name,
522
- f_repair_date: Util.getNowDate(),
523
- f_repair_path: '',
524
- imgSrc: '',
525
- filename: ''
526
- }
527
- },
528
- showSolveModal: false,
529
- check: null
530
- }
531
- },
532
- computed :{
533
- searchData() {
534
- return {condition: this.model.condition}
535
- }
536
- },
537
- methods: {
538
- getfile(res){
539
- this.solveModal.uploadData.filename=res.f_downloadpath
540
- },
541
- async getDefectOption() {
542
- let res = await new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
543
- data: {
544
- items: "pd.f_device_type",
545
- tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
546
- groupitem: "pd.f_device_type",
547
- condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
548
- }
549
- }, {resolveMsg: null, rejectMsg: null})
550
- const device_types = [{label: '全部', value: ''}]
551
- res.data.forEach((item) => {
552
- device_types.push({label: item.f_device_type, value: item.f_device_type})
553
- })
554
- this.device_types = device_types
555
- res = await new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
556
- data: {
557
- items: "di.f_item_name",
558
- tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
559
- groupitem: "di.f_item_name",
560
- condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
561
- }
562
- }, {resolveMsg: null, rejectMsg: null})
563
- const DefectConfigs = [{label: '全部', value: ''}]
564
- res.data.forEach((item) => {
565
- DefectConfigs.push({label: item.f_item_name, value: item.f_item_name})
566
- })
567
- this.DefectConfigs = DefectConfigs
568
- },
569
- async a(row) {
570
- console.log('row=', JSON.stringify(row))
571
- let res = await this.$showMessage('确认修改到期时间吗?', ['confirm', 'cancel'])
572
- if (res == 'confirm'){
573
- await new HttpResetClass().http('post', '/api/af-safecheck/logic/updateDefectTime', {
574
- defect: {
575
- f_defect_id: row.f_defect_id,
576
- f_handle_date: row.f_handle_date
577
- },
578
- user: {
579
- name: this.$login.f.name,
580
- id: this.$login.f.id,
581
- }
582
- })
583
- this.$refs.paged.$refs.criteria.search()
584
- this.$showMessage('修改成功')
585
- }
586
- },
587
- async upSolveDefect() {
588
- console.log('this.solveModal.uploadData=', JSON.stringify(this.solveModal.uploadData))
589
- this.solveModal.uploadData.f_repairman = this.$login.f.name
590
- this.solveModal.uploadData.f_repair_date = Util.getNowDate()
591
- let res = await this.$resetpost('/api/af-safecheck/logic/pcRepairDefectNew', this.solveModal.uploadData, {resolveMsg: null, rejectMsg: null})
592
- if (res.data.code === 200) {
593
- this.$showMessage('操作成功')
594
- }else {
595
- this.$showMessage('网络异常')
596
- }
597
- this.showSolveModal = false
598
- this.$refs.paged.$refs.criteria.search()
599
- this.solveModal.uploadData={
600
- id: '',
601
- f_repairman: '',
602
- f_repair_date: '',
603
- f_repair_path: '',
604
- imgSrc: '',
605
- filename: '',
606
- f_defect_remark:''
607
- }
608
- },
609
- ok() {
610
- if (!(this.solveModal.uploadData.filename && this.solveModal.uploadData.filename.length > 0)) {
611
- this.$showMessage('请录入处理后照片')
612
- return
613
- }
614
- this.upSolveDefect()
615
- },
616
- cancel() {
617
- this.showSolveModal = false
618
- },
619
- showDealModal(row){
620
- console.log('row=', JSON.stringify(row))
621
- this.check = row
622
- this.solveModal.preData.state = (row.f_is_repaired == '未处理' ? '未处理' : '已处理')
623
- this.solveModal.preData.defectImg = row.f_path ? '/rs/image/file/' + row.f_path : ''
624
- this.solveModal.preData.defectImg1 = row.f_p1_path ? '/rs/image/file/' + row.f_p1_path : ''
625
- this.solveModal.preData.defectImg2 = row.f_p2_path ? '/rs/image/file/' + row.f_p2_path : ''
626
- this.solveModal.preData.f_repaired_path=row.f_repaired_path ? '/rs/image/file/' + row.f_repaired_path : ''
627
- this.solveModal.preData.repairedImg = row.f_repair_path ? (row.f_repair_path.startsWith('/resource') ? row.f_repair_path : '/rs/image/file/' + row.f_repair_path) : ''
628
- this.solveModal.preData.repairedImg1 = row.f_repair1_path ? (row.f_repair1_path.startsWith('/resource') ? row.f_repair1_path : '/rs/image/file/' + row.f_repair1_path) : ''
629
- this.solveModal.preData.repairedImg2 = row.f_repair2_path ? (row.f_repair2_path.startsWith('/resource') ? row.f_repair2_path : '/rs/image/file/' + row.f_repair2_path) : ''
630
- this.solveModal.uploadData.id = row.f_defect_id
631
- this.solveModal.uploadData.f_repairman = row.f_repairman
632
- this.solveModal.uploadData.f_repair_date = row.f_repair_date
633
- this.showSolveModal = !this.showSolveModal
634
- console.log('this.solveModal=', JSON.stringify(this.solveModal))
635
- },
636
- isChecked(row) {
637
- return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
638
- },
639
- setCheckes(row) {
640
- let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
641
- if(index<0){
642
- this.checkes.push(row)
643
- }else{
644
- this.checkes.splice(index,1)
645
- }
646
- console.log('this.checkes=', JSON.stringify(this.checkes))
647
- },
648
- toRepair(check){
649
- console.log('this.checkes=', JSON.stringify(this.checkes))
650
- let checkes = []
651
- if (check){
652
- checkes.push(check)
653
- }else {
654
- checkes = this.checkes
655
- }
656
- if(checkes.length==0){
657
- return this.$showMessage('请先选择需要转维修的隐患!')
658
- }
659
-
660
- const dangerGroups = []
661
- for (const danger of checkes) {
662
- let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_id === danger.f_userinfo_id)
663
- if (i == -1){
664
- dangerGroups.push({
665
- f_userinfo_id: danger.f_userinfo_id,
666
- dangers: []
667
- })
668
- i = dangerGroups.length - 1
669
- }
670
- dangerGroups[i].dangers.push(danger)
671
- }
672
- this.dangerGroups = dangerGroups
673
- console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
674
- this.showModal2=true
675
- },
676
- getEmp() {
677
- 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}`}
678
- let http = new HttpResetClass()
679
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
680
- let str=''
681
- res.data.forEach((item,idx,arr) => {
682
- //tag
683
- if(idx+1==arr.length){
684
- str += `'${item.id}'`
685
- }else{
686
- str += `'${item.id}',`
687
- }
688
-
689
- })
690
- let http1 = new HttpResetClass()
691
- http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
692
- data: {
693
- items: 'id,f_user_telephone',
694
- tablename: 't_user',
695
- condition: `id in (${str})`,
696
- orderitem: 'id'
697
- }
698
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
699
-
700
- res.data.forEach((user)=>{
701
- try {
702
- ress.data.forEach((tel,tidx,arr)=>{
703
- //tag
704
- if(user.id==tel.id){
705
- this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
706
- ress.data.splice(tidx,1)
707
- //tag
708
- throw new Error("跳出循环");
709
- }
710
- })
711
- }catch (e) {
712
- //tag
713
- }
714
- })
715
- })
716
-
717
- })
718
- },
719
- getSiteRes(obj) {
720
- console.log('siteRes ---> ')
721
- console.log(obj)
722
- if(obj.resids[0]){
723
- this.selectData.f_meetunit = obj.res.join('.')
724
- this.selectData.f_reciever = obj.resids.join('.')
725
- this.selectData.f_outlets = obj.res[obj.res.length - 1]
726
- }else {
727
- this.selectData.f_meetunit = ''
728
- this.selectData.f_reciever = ''
729
- this.selectData.f_outlets = ''
730
- }
731
- },
732
- cancel1(){
733
- this.showModal2=false
734
- this.selectData={
735
- dispatchType:'',
736
- f_repairman:'',
737
- f_remarks:'',
738
- f_repairtype:''
739
- }
740
- },
741
- async rectification(){
742
- if(this.selectData.dispatchType){
743
- if(this.selectData.dispatchType=='派发给站点'){
744
- if(!this.selectData.f_reciever){
745
- this.$showMessage('请选择部门!')
746
- return
747
- }
748
- }else{
749
- if(!this.selectData.f_repairman){
750
- this.$showMessage('请选择维修员!')
751
- return
752
- }
753
- }
754
- }else {
755
- this.$showMessage('请选择派发类型!')
756
- return
757
- }
758
-
759
- if(!this.selectData.f_repairtype){
760
- this.$showMessage('请选择报修类型!')
761
- return
762
- }
763
- this.showModal3=true
764
- let act={}
765
- let toRepair=''
766
- let successCount=0
767
- if(this.selectData.dispatchType=='派发给站点'){
768
- act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
769
- toRepair=null
770
- }else{
771
- console.log('派发给维修员---------'+this.selectData.f_repairman)
772
- act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
773
- toRepair='一级派单'
774
- }
775
- let rep={
776
- loginUser: {
777
- name: this.$login.f.name,
778
- ename: this.$login.f.ename
779
- },
780
- f_meetunit: this.$login.f.deps,
781
- f_attendant: this.$login.f.name,
782
- f_outlets: this.$login.f.deps,
783
- f_remarks: this.selectData.f_remarks,
784
- f_repairtype: this.selectData.f_repairtype,
785
- toRepair: toRepair,
786
- activity:act
787
- }
788
- for(let i=0; i<this.dangerGroups.length; i++){
789
- let defectIdStr = ''
790
- const defectIds = []
791
- for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
792
- defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
793
- }
794
- defectIdStr = `(${defectIds.join(',')})`
795
- const data = {
796
- id:this.dangerGroups[i].dangers[0].f_paper_id,
797
- repData:rep,
798
- source:'pc',
799
- defectIdStr: defectIdStr
800
- }
801
- console.log('data=', JSON.stringify(data))
802
- try {
803
- let result =await new HttpResetClass().load('post','/api/af-safecheck/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
804
- if (result.data.code==200) {
805
- successCount += result.data.successcon
806
- this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
807
- }
808
- }catch (e) {
809
- this.showModal3=false
810
- this.$showMessage('网络异常,请稍后再试!')
811
- return
812
- }
813
- }
814
- this.showModal3=false
815
- this.cancel1()
816
- this.$showMessage('本次转维修成功'+successCount+'单')
817
- this.showSolveModal = false
818
- this.$refs.paged.$refs.criteria.search()
819
- this.solveModal.uploadData={
820
- id: '',
821
- f_repairman: '',
822
- f_repair_date: '',
823
- f_repair_path: '',
824
- imgSrc: '',
825
- filename: '',
826
- f_defect_remark:''
827
- }
828
- },
829
- getDefectInfoConfig(val){
830
- try {
831
- if (val.safecheck.DevicesSetConfig != undefined) {
832
- this.DefectConfig = val.safecheck.DevicesConfig
833
- // 获取到配置项,进行遍历,获取每个隐患项
834
- for (var Key1 in this.DefectConfig){
835
- this.device_types.push({label:Key1,value:Key1})
836
- for(var Key2 in this.DefectConfig[Key1].items){
837
- this.DefectConfigs.push({label:Key2,value:Key2})
838
- }
839
- }
840
- // 非民用或其他配置项加入,在进行遍历
841
- }
842
- }catch (e) {
843
- //tag
844
- }
845
- },
846
- showaudio(){
847
- //tag
848
- this.audioshow=!this.audioshow
849
- //tag
850
- },
851
- getmeterbook(val){
852
- this.cbc=[]
853
- this.cbc.push({
854
- label:'全部',
855
- value:''
856
- })
857
- if (val==''){
858
-
859
- this.cbcs.forEach(res=>{
860
- this.cbc.push({
861
- label:res.f_book_name,
862
- value:res.id
863
- })
864
- })
865
- }else{
866
- this.cbcs.forEach(res=>{
867
- if (res.f_book_slice_area==val){
868
- this.cbc.push({
869
- label:res.f_book_name,
870
- value:res.id
871
- })
872
- }
873
- })
874
- }
875
- },
876
- getSafeParam(val){
877
- if(this.$appdata.getParam(val)){
878
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
879
- }else{
880
- return [{label: '全部', value: ''}]
881
- }
882
-
883
- },
884
- Mreadibook(val){
885
- ////tag
886
- ////tag
887
- this.sliceArea=[]
888
- if (val){
889
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
890
- items: 'name',
891
- tablename: 't_zone',
892
- condition: `parentid in ${val}`,
893
- orderitem: 'id'
894
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
895
- this.sliceArea.push({
896
- label:'全部',
897
- value:''
898
- })
899
- res.data.forEach(ress=>{
900
- this.sliceArea.push({
901
- label:ress.name,
902
- value:ress.name
903
- })
904
- })
905
-
906
- })
907
- }
908
- },
909
- getAllMeterBook(val){
910
- ////tag
911
- ////tag
912
- this.cbcs=[]
913
- if (val){
914
- new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
915
- items: 'f_book_name,f_book_slice_area,id',
916
- tablename: 't_meter_book',
917
- condition: `f_filiale_id in ${val}`,
918
- orderitem: 'id'
919
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
920
- res.data.forEach(ress=>{
921
- this.cbcs.push({
922
- id:ress.id,
923
- f_book_name:ress.f_book_name,
924
- f_book_slice_area:ress.f_book_slice_area
925
- })
926
- })
927
- this.cbc=[]
928
- this.cbc.push({
929
- label:'全部',
930
- value:''
931
- })
932
- this.cbcs.forEach(res=>{
933
- this.cbc.push({
934
- label:res.f_book_name,
935
- value:res.id
936
- })
937
- })
938
- })
939
- }
940
- },
941
- change(row) {
942
- // Vue.$login = {jwt: row.f_checker_id}
943
- // asyncReady(this).then(() => {
944
- // ////tag)
945
- // row.f_upload_state = '已传'
946
- // this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
947
- // }).catch(
948
- // (respanse) => {
949
- // alert('获取配置文件失败')
950
- // })
951
- },
952
- readConfig() {
953
- let gen = asyncReady(this)
954
- return co(gen)
955
- },
956
- showChooser() {
957
- this.showModal = true
958
- },
959
- hidden() {
960
- this.criteriaShow = !this.criteriaShow
961
- },
962
- refresh() {
963
- this.$refs.paged.$refs.criteria.search()
964
- },
965
- print(row) {
966
- this.showcheckmsg = true
967
- this.checkInfo = row
968
- },
969
- sort(field, rule) {
970
- // 将所有排序方式设为不排序,实现相互排斥
971
- for (let key in this.orderFields) {
972
- if (key === field) {
973
- this.orderFields[key] = rule
974
- } else {
975
- this.orderFields[key] = 'no'
976
- }
977
- }
978
- // 如果新规则不排序,还原为默认排序
979
- if (rule === 'no') {
980
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
981
- } else {
982
- this.model.paramSource.orderitem = `'${field} ${rule}'`
983
- }
984
- this.search()
985
- },
986
- search() {
987
- this.$refs.paged.$refs.criteria.search()
988
- },
989
- selfSearch(args) {
990
- ////tag
991
- // args.condition += ` and f_is_repaired = '未处理'`
992
- args.condition += ` and f_filialeid='${this.$login.f.orgid}'`
993
- this.model.search(args.condition, args.model, args.condValue)
994
- }
995
- },
996
-
997
- ready() {
998
- // this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStartDateString()
999
- this.getDefectOption()
1000
- this.getEmp()
1001
- // this.readConfig()
1002
- ////tag
1003
- this.function = this.f
1004
- ////tag
1005
-
1006
- let gen = select(this)
1007
- //this.pianqu()
1008
- this.Mreadibook(`('${this.$login.f.orgid}')`)
1009
- co(gen)
1010
- }
1011
- }
1012
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_id"
11
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_id='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-2" >
14
+ <label class="font_normal_body">客户名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_user_name"
16
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-2" >
19
+ <label class="font_normal_body">客户电话</label>
20
+ <input type="text" class="input_search" v-model="model.f_user_phone"
21
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">是否处理</label>
25
+ <v-select :value.sync="model.f_is_repaired" v-model='model.f_is_repaired'
26
+ :value-single="true" style="width: 60%"
27
+ :options='$parent.$parent.dealOptions' placeholder='请选择'
28
+ close-on-select
29
+ condition="f_is_repaired = '{}'"></v-select>
30
+ </div>
31
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
32
+ <export-excel :data="$parent.$parent.searchData"
33
+ :field="$parent.$parent.excelHeaders"
34
+ progress="safeGetExportProgress"
35
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="defectDetails" template-name='隐患处置'></export-excel>
36
+ <button style="margin-left: 4px" class="button_search button_spacing" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
37
+ <button style="margin-left: 4px" class="button_search button_spacing" @click="$parent.$parent.toRepair()" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
38
+ <button style="margin-left: 4px" class="button_search button_spacing" @click="search()">查询</button>
39
+ <div
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.hidden()"></div>
42
+ </div>
43
+ </div>
44
+ <div class="row">
45
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
46
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
47
+ <input type="text" class="input_search" v-model="model.f_residential_area"
48
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
49
+ </div>
50
+ <div class="col-sm-4 form-group" style="margin: 0" v-show="$parent.$parent.criteriaShow">
51
+ <role-selector-safe
52
+ role-name="安检员"
53
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
54
+ :value.sync="model.f_checker_id"
55
+ v-model="model.f_checker_id"
56
+ :value-multiple="true"
57
+ :value-close="false"
58
+ condition="f_checker_name in {}">
59
+ </role-selector-safe>
60
+ </div>
61
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
62
+ <label class="font_normal_body">检&ensp;查&ensp;项</label>
63
+ <v-select :value.sync="model.f_device_type"
64
+ v-model="model.f_device_type"
65
+ style="width: 60%"
66
+ :options='$parent.$parent.device_types'
67
+ placeholder='检查项'
68
+ :multiple="true"
69
+ condition="f_device_type in {}"></v-select>
70
+ </div>
71
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
72
+ <label class="font_normal_body">隐患名称</label>
73
+ <v-select :value.sync="model.f_item_name"
74
+ v-model='model.f_item_name'
75
+ style="width: 60%"
76
+ :options='$parent.$parent.DefectConfigs'
77
+ placeholder='隐患名称'
78
+ :multiple="true"
79
+ condition="f_item_name in {}"></v-select>
80
+ </div>
81
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
82
+ <label class="font_normal_body">安检起始</label>
83
+ <datepicker
84
+ :value.sync="model.f_check_start"
85
+ placeholder='安检起始时间' style="width: 60%"
86
+ :disabled-days-of-week="[]"
87
+ :format="'yyyy-MM-dd'"
88
+ :show-rest-button="reset"
89
+ v-model="model.f_check_start"
90
+ condition="f_offsite_time >= '{} 00:00:00'">
91
+ </datepicker>
92
+ </div>
93
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
94
+ <label class="font_normal_body">安检结束</label>
95
+ <datepicker
96
+ :value.sync="model.f_check_end"
97
+ placeholder='安检结束时间' style="width: 60%"
98
+ :disabled-days-of-week="[]"
99
+ :format="'yyyy-MM-dd'"
100
+ :show-rest-button="reset"
101
+ v-model="model.f_check_end"
102
+ condition="f_offsite_time <= '{} 23:59:59'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
106
+ <label class="font_normal_body">用户类型</label>
107
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
108
+ :value-single="true" style="width: 60%"
109
+ :options='$parent.$parent.f_check_type' placeholder='请选择'
110
+ close-on-select
111
+ condition="f_check_type = '{}'"></v-select>
112
+ </div>
113
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
114
+ <label class="font_normal_body">详细地址</label>
115
+ <input type="text" class="input_search" v-model="model.f_address"
116
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
117
+ </div>
118
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
119
+ <dep-selector
120
+ :value.sync="model.parentid"
121
+ v-model="model.parentid"
122
+ condition="parentid in {}">
123
+ </dep-selector>
124
+ </div>
125
+ </div>
126
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
127
+ <div slot="modal-header" class="modal-header">
128
+ <h4 class="modal-title">
129
+ 选择计划
130
+ </h4>
131
+ </div>
132
+ <div slot="modal-body" class="modal-body">
133
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
134
+ </div>
135
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
136
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
137
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
138
+ </div>
139
+ </modal>
140
+ </div>
141
+ </criteria>
142
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
143
+ <template partial='head'>
144
+ <tr>
145
+ <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
146
+ <th>
147
+ <nobr>检查项</nobr>
148
+ </th>
149
+ <th>
150
+ <nobr>隐患名称</nobr>
151
+ </th>
152
+ <th>
153
+ <nobr>隐患级别</nobr>
154
+ </th>
155
+ <th>
156
+ <nobr>客户编号</nobr>
157
+ </th>
158
+ <th>
159
+ <nobr>客户名称</nobr>
160
+ </th>
161
+ <th>
162
+ <nobr>客户电话</nobr>
163
+ </th>
164
+ <th>
165
+ <nobr>客户类型</nobr>
166
+ </th>
167
+ <th>
168
+ <nobr>客户小区</nobr>
169
+ </th>
170
+ <th>
171
+ <nobr>客户地址</nobr>
172
+ </th>
173
+ <th>
174
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
175
+ </th>
176
+ <th>
177
+ <nobr>安检员</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>是否处理</nobr>
181
+ </th>
182
+ <th style="width: 188px">
183
+ <nobr>到期时间</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>操作</nobr>
187
+ </th>
188
+ </tr>
189
+ </template>
190
+ <template partial='body'>
191
+ <td v-if="$parent.$parent.$parent.canToRepair=='是'" style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['用户自行整改', '现场已处理', '维修已处理', '转维修'].indexOf(row.f_is_repaired) == -1" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row)" @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
192
+ <td style="text-align: center">{{row.f_device_type}}</td>
193
+ <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
194
+ <td style="text-align: center">{{row.f_defect_level}}</td>
195
+ <td style="text-align: center">{{row.f_userinfo_id}}</td>
196
+ <td style="text-align: center">{{row.f_user_name}}</td>
197
+ <td style="text-align: center">{{row.f_user_phone}}</td>
198
+ <td style="text-align: center">{{row.f_check_type}}</td>
199
+ <td style="text-align: center">{{row.f_residential_area}}</td>
200
+ <td style="text-align: center">{{row.f_address}}</td>
201
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
202
+ <td style="text-align: center">{{row.f_checker_name}}</td>
203
+ <td style="text-align: center">{{row.f_is_repaired}}</td>
204
+ <td style="" v-if="row.f_is_repaired == '未处理'">
205
+ <datepicker
206
+ :value.sync="row.f_handle_date"
207
+ placeholder='到期时间' style="width: 60%; position: static"
208
+ :disabled-days-of-week="[]"
209
+ :format="'yyyy-MM-dd'"
210
+ :show-rest-button="reset"
211
+ v-model="row.f_handle_date">
212
+ </datepicker>
213
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.a(row)'>修改</button>
214
+ </td>
215
+ <td style="text-align: center" v-if="row.f_is_repaired == '已处理' || row.f_is_repaired == '转维修'">
216
+ {{row.f_handle_date}}
217
+ </td>
218
+ <td style="text-align: center">
219
+ <button style="margin-bottom: 5px" class="button_spacing button_search-1" @click='$parent.$parent.$parent.showDealModal(row)'>{{row.f_is_repaired == '未处理' ? '处理' : '查看'}}</button>
220
+ </td>
221
+ </template>
222
+ </data-grid>
223
+ </criteria-paged>
224
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
225
+ <modal :show.sync="showSolveModal" v-ref:solveModal width="750px">
226
+ <div slot="modal-header" class="modal-header">
227
+ <h4 class="modal-title">
228
+ {{solveModal.preData.state == '已处理' ? '查看隐患' : '处理隐患'}}
229
+ </h4>
230
+ </div>
231
+ <div slot="modal-body" class="modal-body">
232
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
233
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
234
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
235
+ </div>
236
+
237
+ <div class="col-sm-6" style="margin-top: 10px">
238
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
239
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_checker_name" placeholder="安检员">
240
+ </div>
241
+ <div class="col-sm-6" style="margin-top: 10px">
242
+ <label class="font_normal_body">安检时间</label>
243
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="check.f_offsite_time" placeholder="安检时间">
244
+ </div>
245
+ <div class="col-sm-12" style="margin-bottom: 10px; display: flex; gap: 10px" >
246
+ <label class="font_normal_body">隐患图片</label>
247
+ <img-self-plus v-if="solveModal.preData.defectImg" :width="200" :height="200" :src="solveModal.preData.defectImg"></img-self-plus>
248
+ <img-self-plus v-if="solveModal.preData.defectImg1" :width="200" :height="200" :src="solveModal.preData.defectImg1"></img-self-plus>
249
+ <img-self-plus v-if="solveModal.preData.defectImg2" :width="200" :height="200" :src="solveModal.preData.defectImg2"></img-self-plus>
250
+ </div>
251
+ <div class="col-sm-12" style="margin-bottom: 10px; display: flex; gap: 10px" v-if="solveModal.preData.f_repaired_path">
252
+ <label class="font_normal_body">隐患通知单照片</label>
253
+ <img-self-plus v-if="solveModal.preData.f_repaired_path" :width="200" :height="200" :src="solveModal.preData.f_repaired_path"></img-self-plus>
254
+ </div>
255
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
256
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
257
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理后</p></div>
258
+ </div>
259
+ <div class="col-sm-6" style="margin-top: 10px" v-if="solveModal.preData.state == '已处理'">
260
+ <label class="font_normal_body">处&nbsp;理&nbsp;人</label>
261
+ <input class="input_search" style="width: 60%" disabled="true" type="text" v-model="solveModal.uploadData.f_repairman" placeholder="处理人">
262
+ <v-select
263
+ v-if="solveModal.preData.type == 'solve'"
264
+ :value.sync="solveModal.uploadData.f_repairman"
265
+ :value-single="true"
266
+ :options='toRepairModal.preData.repairers'
267
+ placeholder='请选择维修员'
268
+ close-on-select></v-select>
269
+ </div>
270
+ <div class="col-sm-6" style="margin-top: 10px" v-if="solveModal.preData.state == '已处理'">
271
+ <label class="font_normal_body">处理时间</label>
272
+ <datepicker
273
+ :disabled="true"
274
+ placeholder='处理时间' style="width:60%"
275
+ :disabled-days-of-week="[]"
276
+ :format="'yyyy-MM-dd'"
277
+ :show-rest-button="reset"
278
+ :value.sync="solveModal.uploadData.f_repair_date">
279
+ </datepicker>
280
+ </div>
281
+ <div v-if="solveModal.preData.state == '未处理'" class="col-sm-12" style="margin-bottom: 10px">
282
+ <label class="font_normal_body">处理后图片</label>
283
+ <safecheck-file-upload
284
+ :issearch="false"
285
+ :isupload="true"
286
+ :blodid="check.f_defect_id"
287
+ :isdelete="true"
288
+ flag="safeCheck"
289
+ @filename="getfile"
290
+ ></safecheck-file-upload>
291
+ </div>
292
+ <div v-if="solveModal.preData.state == '已处理'" class="col-sm-12" style="margin-bottom: 10px">
293
+ <p> <label class="font_normal_body">处理后图片</label></p>
294
+ <P></P>
295
+ <div class="col-sm-12">
296
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg">
297
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg" style="margin-left: 10px"></img-self-plus>
298
+ </div>
299
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg1">
300
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg1" style="margin-left: 10px"></img-self-plus>
301
+ </div>
302
+ <div class="col-sm-6" v-if="solveModal.preData.repairedImg2">
303
+ <img-self-plus :width="200" :height="200" :src="solveModal.preData.repairedImg2" style="margin-left: 10px"></img-self-plus>
304
+ </div>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
309
+ <button class="button_search" v-if="checkDefect=='是' && solveModal.preData.type == 'view'" @click="auditsure('通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核通过</button>
310
+ <button class="button_search" v-if="checkDefect=='是' && solveModal.preData.type == 'view'" @click="auditsure('不通过')" v-if="solveModal.preData.type == 'view' && !solveModal.f_audit_results">审核不通过</button>
311
+ <button class="button_search" v-if="solveModal.preData.state == '未处理'" @click="ok">确认</button>
312
+ <button class="button_search" @click="cancel">取消</button>
313
+ <button class="button_search" v-if="solveModal.preData.state == '未处理'" @click="toRepair(check)">转维修</button>
314
+ </div>
315
+ </modal>
316
+ <modal :show.sync="showModal2" :backdrop="false">
317
+ <div slot="modal-header" class="modal-header">
318
+ <h4 class="modal-title">
319
+ 转维修
320
+ </h4>
321
+ </div>
322
+ <div slot="modal-body" class="modal-body">
323
+ <div v-if="true">
324
+ <div>
325
+
326
+ </div>
327
+ <!-- <div v-for="(index, item) in dangerGroup">-->
328
+
329
+ <!-- </div>-->
330
+ <div class="row" style="margin-top: 10px">
331
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
332
+ <div class="col-xs-8 col-md-8">
333
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
334
+ :options='dispatchTypeOptions' placeholder='派发类型'
335
+ close-on-select>
336
+ </v-select>
337
+ </div>
338
+ </div>
339
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
340
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
341
+ <div class="col-xs-8 col-md-8">
342
+ <v-select
343
+ :value.sync="selectData.f_repairman"
344
+ :value-single="true"
345
+ :options='repairers'
346
+ placeholder='请选择维修员'
347
+ close-on-select></v-select>
348
+ </div>
349
+ </div>
350
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
351
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
352
+ <div class="col-xs-8 col-md-8">
353
+ <right-tree
354
+ islist
355
+ :userid="userid"
356
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
357
+ @re-res="getSiteRes"></right-tree>
358
+ </div>
359
+ </div>
360
+ <div class="row" style="margin-top: 10px">
361
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
362
+ <div class="col-xs-8 col-md-8">
363
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
364
+ class="select select_list"
365
+ :value-single="true"
366
+ :options='repairTypeOptions'
367
+ close-on-select>
368
+ </v-select>
369
+ </div>
370
+ </div>
371
+ <div class="row" style="margin-top: 10px">
372
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
373
+ <div class="col-xs-8 col-md-8">
374
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
375
+ </div>
376
+ </div>
377
+ </div>
378
+ </div>
379
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
380
+ <button class="button_search" @click="rectification">转维修</button>
381
+ <button class="button_search" @click="cancel1">取消</button>
382
+ </div>
383
+ </modal>
384
+ <modal :show.sync="showModal3">
385
+ <div slot="modal-header" class="modal-header">
386
+ <h4 class="modal-title">
387
+ 转维修进度{{ progressbarWidth }}%
388
+ </h4>
389
+ </div>
390
+ <div slot="modal-body" class="modal-body">
391
+ <div class="progress">
392
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
393
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
394
+ </div>
395
+ </div>
396
+ </div>
397
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
398
+ </modal>
399
+ </div>
400
+ </div>
401
+ </template>
402
+
403
+ <script>
404
+ import {PagedList} from 'vue-client'
405
+ import Vue from 'vue'
406
+ import co from 'co'
407
+ import AppData from '../../stores/AppData'
408
+ import * as Util from '../Util'
409
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
410
+ import BenzAMRRecorder from 'benz-amr-recorder'
411
+
412
+ //获取json配置文件
413
+ let asyncReady = async function (self) {
414
+ // 获取配置信息
415
+ try {
416
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
417
+ Vue.config = res.data
418
+ // self.getDefectInfoConfig(res.data)
419
+ } catch (error) {
420
+ // 忽略704,文件找不到异常R
421
+ if (error.status !== 704) {
422
+ throw error
423
+ }
424
+ }
425
+ }
426
+
427
+ let select = function* (self) {
428
+ let http = new HttpResetClass()
429
+ let getGasman = yield http.load('POST', '/rs/search', {
430
+ source: 'tool.getChildrenOfResName($新安检员$)',
431
+ userid: self.$login.f.id
432
+ }, {resolveMsg: null, rejectMsg: null})
433
+ ////tag
434
+ self.checkersid.push({label: '全部', value: ''})
435
+ getGasman.data.forEach((checker) => {
436
+ self.checkersid.push({label: checker.name, value: checker.id})
437
+ })
438
+ }
439
+
440
+ export default {
441
+ title: '隐患处置',
442
+ data() {
443
+ let model = new PagedList('api/af-safecheck/sql/DefectDetailsYC', 20,{
444
+ })
445
+ model.f_plan_id = ''
446
+ model.f_approved = ''
447
+ model.f_entry = ''
448
+ model.f_no_checkplan = ''
449
+ model.f_check_type=''
450
+ return {
451
+ audioshow:false,
452
+
453
+ model: model,
454
+ deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
455
+ repairStateOptions: [{label:'全部',value:''}, {label:'转维修',value:'转维修'}, {label:'维修已处理',value:'维修已处理'}, {label: '隐患未处理', value: '隐患未处理'}, {label:'现场已处理',value:'现场已处理'}, {label:'用户自行整改',value:'用户自行整改'}],
456
+ //searchData:searchData,
457
+ excelHeaders: {
458
+ 'f_device_type': '检查项',
459
+ 'f_item_name': '隐患名称',
460
+ 'f_item_value': '隐患内容',
461
+ 'f_defect_level': '隐患级别',
462
+ 'f_userinfo_id': '客户编号',
463
+ 'f_user_name': '客户姓名',
464
+ 'f_user_phone': '客户电话',
465
+ 'f_check_type': '客户类型',
466
+ 'f_residential_area': '客户小区',
467
+ 'f_address': '客户地址',
468
+ 'f_offsite_time': '安检时间',
469
+ 'f_checker_name': '安检员',
470
+ },
471
+ fun: this.$login.f,
472
+ checkersid: [],
473
+ safetype: this.getSafeParam('安检类型'),
474
+ criteriaShow: false,
475
+ showModal: false,
476
+ f_approval_states: this.getSafeParam('安检单审核状态'),
477
+ f_entry_status:this.getSafeParam('安检状态'),
478
+ f_checkplans: this.getSafeParam('有无计划'),
479
+ showcheckmsg: false,
480
+ checkInfo: {},
481
+ orderDefault: "'f_offsite_time'",
482
+ orderFields: {
483
+ f_offsite_time: 'no'
484
+ },
485
+ sliceArea: [],
486
+ cbc:[],
487
+ DefectConfig:'' ,
488
+ DefectConfigs:[],
489
+ device_types:[],
490
+ f_check_type: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
491
+ dealOptions: [{label:'全部',value:''},{label:'已处理',value:'已处理'},{label:'未处理',value:'未处理'},{label:'转维修',value:'转维修'}],
492
+ showModal2: false,
493
+ selectData:{
494
+ dispatchType:'',
495
+ f_repairman:'',
496
+ f_remarks:'',
497
+ f_repairtype:''
498
+ },
499
+ repairers: [],
500
+ repairTypeOptions:this.$appdata.getParam('报修类型'),
501
+ dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
502
+ dangerGroups: [],
503
+ showModal3: false,
504
+ progressbarWidth:'0',
505
+ canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
506
+ checkes: [],
507
+ solveModal: {
508
+ preData: {
509
+ type: '',
510
+ defectImg: '',
511
+ defectImg1: '',
512
+ f_repaired_path: '',
513
+ defectImg2: '',
514
+ repairedImg: '',
515
+ repairedImg1: '',
516
+ repairedImg2: '',
517
+ state: ''
518
+ },
519
+ uploadData: {
520
+ id: '',
521
+ f_repairman: this.$login.f.name,
522
+ f_repair_date: Util.getNowDate(),
523
+ f_repair_path: '',
524
+ imgSrc: '',
525
+ filename: ''
526
+ }
527
+ },
528
+ showSolveModal: false,
529
+ check: null
530
+ }
531
+ },
532
+ computed :{
533
+ searchData() {
534
+ return {condition: this.model.condition}
535
+ }
536
+ },
537
+ methods: {
538
+ getfile(res){
539
+ this.solveModal.uploadData.filename=res.f_downloadpath
540
+ },
541
+ async getDefectOption() {
542
+ let res = await new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
543
+ data: {
544
+ items: "pd.f_device_type",
545
+ tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
546
+ groupitem: "pd.f_device_type",
547
+ condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
548
+ }
549
+ }, {resolveMsg: null, rejectMsg: null})
550
+ const device_types = [{label: '全部', value: ''}]
551
+ res.data.forEach((item) => {
552
+ device_types.push({label: item.f_device_type, value: item.f_device_type})
553
+ })
554
+ this.device_types = device_types
555
+ res = await new HttpResetClass().load("POST", `/api/af-safecheck/sql/safe_singleTable_GroupBy`, {
556
+ data: {
557
+ items: "di.f_item_name",
558
+ tablename: "t_paper_devices pd left join t_devices_items di on pd.id = di.f_device_id",
559
+ groupitem: "di.f_item_name",
560
+ condition: `di.f_is_defect = 'true' and di.f_is_repaired is null`
561
+ }
562
+ }, {resolveMsg: null, rejectMsg: null})
563
+ const DefectConfigs = [{label: '全部', value: ''}]
564
+ res.data.forEach((item) => {
565
+ DefectConfigs.push({label: item.f_item_name, value: item.f_item_name})
566
+ })
567
+ this.DefectConfigs = DefectConfigs
568
+ },
569
+ async a(row) {
570
+ console.log('row=', JSON.stringify(row))
571
+ let res = await this.$showMessage('确认修改到期时间吗?', ['confirm', 'cancel'])
572
+ if (res == 'confirm'){
573
+ await new HttpResetClass().http('post', '/api/af-safecheck/logic/updateDefectTime', {
574
+ defect: {
575
+ f_defect_id: row.f_defect_id,
576
+ f_handle_date: row.f_handle_date
577
+ },
578
+ user: {
579
+ name: this.$login.f.name,
580
+ id: this.$login.f.id,
581
+ }
582
+ })
583
+ this.$refs.paged.$refs.criteria.search()
584
+ this.$showMessage('修改成功')
585
+ }
586
+ },
587
+ async upSolveDefect() {
588
+ console.log('this.solveModal.uploadData=', JSON.stringify(this.solveModal.uploadData))
589
+ this.solveModal.uploadData.f_repairman = this.$login.f.name
590
+ this.solveModal.uploadData.f_repair_date = Util.getNowDate()
591
+ let res = await this.$resetpost('/api/af-safecheck/logic/pcRepairDefectNew', this.solveModal.uploadData, {resolveMsg: null, rejectMsg: null})
592
+ if (res.data.code === 200) {
593
+ this.$showMessage('操作成功')
594
+ }else {
595
+ this.$showMessage('网络异常')
596
+ }
597
+ this.showSolveModal = false
598
+ this.$refs.paged.$refs.criteria.search()
599
+ this.solveModal.uploadData={
600
+ id: '',
601
+ f_repairman: '',
602
+ f_repair_date: '',
603
+ f_repair_path: '',
604
+ imgSrc: '',
605
+ filename: '',
606
+ f_defect_remark:''
607
+ }
608
+ },
609
+ ok() {
610
+ if (!(this.solveModal.uploadData.filename && this.solveModal.uploadData.filename.length > 0)) {
611
+ this.$showMessage('请录入处理后照片')
612
+ return
613
+ }
614
+ this.upSolveDefect()
615
+ },
616
+ cancel() {
617
+ this.showSolveModal = false
618
+ },
619
+ showDealModal(row){
620
+ console.log('row=', JSON.stringify(row))
621
+ this.check = row
622
+ this.solveModal.preData.state = (row.f_is_repaired == '未处理' ? '未处理' : '已处理')
623
+ this.solveModal.preData.defectImg = row.f_path ? '/rs/image/file/' + row.f_path : ''
624
+ this.solveModal.preData.defectImg1 = row.f_p1_path ? '/rs/image/file/' + row.f_p1_path : ''
625
+ this.solveModal.preData.defectImg2 = row.f_p2_path ? '/rs/image/file/' + row.f_p2_path : ''
626
+ this.solveModal.preData.f_repaired_path=row.f_repaired_path ? '/rs/image/file/' + row.f_repaired_path : ''
627
+ this.solveModal.preData.repairedImg = row.f_repair_path ? (row.f_repair_path.startsWith('/resource') ? row.f_repair_path : '/rs/image/file/' + row.f_repair_path) : ''
628
+ this.solveModal.preData.repairedImg1 = row.f_repair1_path ? (row.f_repair1_path.startsWith('/resource') ? row.f_repair1_path : '/rs/image/file/' + row.f_repair1_path) : ''
629
+ this.solveModal.preData.repairedImg2 = row.f_repair2_path ? (row.f_repair2_path.startsWith('/resource') ? row.f_repair2_path : '/rs/image/file/' + row.f_repair2_path) : ''
630
+ this.solveModal.uploadData.id = row.f_defect_id
631
+ this.solveModal.uploadData.f_repairman = row.f_repairman
632
+ this.solveModal.uploadData.f_repair_date = row.f_repair_date
633
+ this.showSolveModal = !this.showSolveModal
634
+ console.log('this.solveModal=', JSON.stringify(this.solveModal))
635
+ },
636
+ isChecked(row) {
637
+ return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
638
+ },
639
+ setCheckes(row) {
640
+ let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
641
+ if(index<0){
642
+ this.checkes.push(row)
643
+ }else{
644
+ this.checkes.splice(index,1)
645
+ }
646
+ console.log('this.checkes=', JSON.stringify(this.checkes))
647
+ },
648
+ toRepair(check){
649
+ console.log('this.checkes=', JSON.stringify(this.checkes))
650
+ let checkes = []
651
+ if (check){
652
+ checkes.push(check)
653
+ }else {
654
+ checkes = this.checkes
655
+ }
656
+ if(checkes.length==0){
657
+ return this.$showMessage('请先选择需要转维修的隐患!')
658
+ }
659
+
660
+ const dangerGroups = []
661
+ for (const danger of checkes) {
662
+ let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_id === danger.f_userinfo_id)
663
+ if (i == -1){
664
+ dangerGroups.push({
665
+ f_userinfo_id: danger.f_userinfo_id,
666
+ dangers: []
667
+ })
668
+ i = dangerGroups.length - 1
669
+ }
670
+ dangerGroups[i].dangers.push(danger)
671
+ }
672
+ this.dangerGroups = dangerGroups
673
+ console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
674
+ this.showModal2=true
675
+ },
676
+ getEmp() {
677
+ 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}`}
678
+ let http = new HttpResetClass()
679
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
680
+ let str=''
681
+ res.data.forEach((item,idx,arr) => {
682
+ //tag
683
+ if(idx+1==arr.length){
684
+ str += `'${item.id}'`
685
+ }else{
686
+ str += `'${item.id}',`
687
+ }
688
+
689
+ })
690
+ let http1 = new HttpResetClass()
691
+ http1.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
692
+ data: {
693
+ items: 'id,f_user_telephone',
694
+ tablename: 't_user',
695
+ condition: `id in (${str})`,
696
+ orderitem: 'id'
697
+ }
698
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
699
+
700
+ res.data.forEach((user)=>{
701
+ try {
702
+ ress.data.forEach((tel,tidx,arr)=>{
703
+ //tag
704
+ if(user.id==tel.id){
705
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
706
+ ress.data.splice(tidx,1)
707
+ //tag
708
+ throw new Error("跳出循环");
709
+ }
710
+ })
711
+ }catch (e) {
712
+ //tag
713
+ }
714
+ })
715
+ })
716
+
717
+ })
718
+ },
719
+ getSiteRes(obj) {
720
+ console.log('siteRes ---> ')
721
+ console.log(obj)
722
+ if(obj.resids[0]){
723
+ this.selectData.f_meetunit = obj.res.join('.')
724
+ this.selectData.f_reciever = obj.resids.join('.')
725
+ this.selectData.f_outlets = obj.res[obj.res.length - 1]
726
+ }else {
727
+ this.selectData.f_meetunit = ''
728
+ this.selectData.f_reciever = ''
729
+ this.selectData.f_outlets = ''
730
+ }
731
+ },
732
+ cancel1(){
733
+ this.showModal2=false
734
+ this.selectData={
735
+ dispatchType:'',
736
+ f_repairman:'',
737
+ f_remarks:'',
738
+ f_repairtype:''
739
+ }
740
+ },
741
+ async rectification(){
742
+ if(this.selectData.dispatchType){
743
+ if(this.selectData.dispatchType=='派发给站点'){
744
+ if(!this.selectData.f_reciever){
745
+ this.$showMessage('请选择部门!')
746
+ return
747
+ }
748
+ }else{
749
+ if(!this.selectData.f_repairman){
750
+ this.$showMessage('请选择维修员!')
751
+ return
752
+ }
753
+ }
754
+ }else {
755
+ this.$showMessage('请选择派发类型!')
756
+ return
757
+ }
758
+
759
+ if(!this.selectData.f_repairtype){
760
+ this.$showMessage('请选择报修类型!')
761
+ return
762
+ }
763
+ this.showModal3=true
764
+ let act={}
765
+ let toRepair=''
766
+ let successCount=0
767
+ if(this.selectData.dispatchType=='派发给站点'){
768
+ act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
769
+ toRepair=null
770
+ }else{
771
+ console.log('派发给维修员---------'+this.selectData.f_repairman)
772
+ act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
773
+ toRepair='一级派单'
774
+ }
775
+ let rep={
776
+ loginUser: {
777
+ name: this.$login.f.name,
778
+ ename: this.$login.f.ename
779
+ },
780
+ f_meetunit: this.$login.f.deps,
781
+ f_attendant: this.$login.f.name,
782
+ f_outlets: this.$login.f.deps,
783
+ f_remarks: this.selectData.f_remarks,
784
+ f_repairtype: this.selectData.f_repairtype,
785
+ toRepair: toRepair,
786
+ activity:act
787
+ }
788
+ for(let i=0; i<this.dangerGroups.length; i++){
789
+ let defectIdStr = ''
790
+ const defectIds = []
791
+ for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
792
+ defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
793
+ }
794
+ defectIdStr = `(${defectIds.join(',')})`
795
+ const data = {
796
+ id:this.dangerGroups[i].dangers[0].f_paper_id,
797
+ repData:rep,
798
+ source:'pc',
799
+ defectIdStr: defectIdStr
800
+ }
801
+ console.log('data=', JSON.stringify(data))
802
+ try {
803
+ let result =await new HttpResetClass().load('post','/api/af-safecheck/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
804
+ if (result.data.code==200) {
805
+ successCount += result.data.successcon
806
+ this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
807
+ }
808
+ }catch (e) {
809
+ this.showModal3=false
810
+ this.$showMessage('网络异常,请稍后再试!')
811
+ return
812
+ }
813
+ }
814
+ this.showModal3=false
815
+ this.cancel1()
816
+ this.$showMessage('本次转维修成功'+successCount+'单')
817
+ this.showSolveModal = false
818
+ this.$refs.paged.$refs.criteria.search()
819
+ this.solveModal.uploadData={
820
+ id: '',
821
+ f_repairman: '',
822
+ f_repair_date: '',
823
+ f_repair_path: '',
824
+ imgSrc: '',
825
+ filename: '',
826
+ f_defect_remark:''
827
+ }
828
+ },
829
+ getDefectInfoConfig(val){
830
+ try {
831
+ if (val.safecheck.DevicesSetConfig != undefined) {
832
+ this.DefectConfig = val.safecheck.DevicesConfig
833
+ // 获取到配置项,进行遍历,获取每个隐患项
834
+ for (var Key1 in this.DefectConfig){
835
+ this.device_types.push({label:Key1,value:Key1})
836
+ for(var Key2 in this.DefectConfig[Key1].items){
837
+ this.DefectConfigs.push({label:Key2,value:Key2})
838
+ }
839
+ }
840
+ // 非民用或其他配置项加入,在进行遍历
841
+ }
842
+ }catch (e) {
843
+ //tag
844
+ }
845
+ },
846
+ showaudio(){
847
+ //tag
848
+ this.audioshow=!this.audioshow
849
+ //tag
850
+ },
851
+ getmeterbook(val){
852
+ this.cbc=[]
853
+ this.cbc.push({
854
+ label:'全部',
855
+ value:''
856
+ })
857
+ if (val==''){
858
+
859
+ this.cbcs.forEach(res=>{
860
+ this.cbc.push({
861
+ label:res.f_book_name,
862
+ value:res.id
863
+ })
864
+ })
865
+ }else{
866
+ this.cbcs.forEach(res=>{
867
+ if (res.f_book_slice_area==val){
868
+ this.cbc.push({
869
+ label:res.f_book_name,
870
+ value:res.id
871
+ })
872
+ }
873
+ })
874
+ }
875
+ },
876
+ getSafeParam(val){
877
+ if(this.$appdata.getParam(val)){
878
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
879
+ }else{
880
+ return [{label: '全部', value: ''}]
881
+ }
882
+
883
+ },
884
+ Mreadibook(val){
885
+ ////tag
886
+ ////tag
887
+ this.sliceArea=[]
888
+ if (val){
889
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
890
+ items: 'name',
891
+ tablename: 't_zone',
892
+ condition: `parentid in ${val}`,
893
+ orderitem: 'id'
894
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
895
+ this.sliceArea.push({
896
+ label:'全部',
897
+ value:''
898
+ })
899
+ res.data.forEach(ress=>{
900
+ this.sliceArea.push({
901
+ label:ress.name,
902
+ value:ress.name
903
+ })
904
+ })
905
+
906
+ })
907
+ }
908
+ },
909
+ getAllMeterBook(val){
910
+ ////tag
911
+ ////tag
912
+ this.cbcs=[]
913
+ if (val){
914
+ new HttpResetClass().load('POST',`/api/af-safecheck/sql/safe_singleTable_OrderBy`, {data: {
915
+ items: 'f_book_name,f_book_slice_area,id',
916
+ tablename: 't_meter_book',
917
+ condition: `f_filiale_id in ${val}`,
918
+ orderitem: 'id'
919
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
920
+ res.data.forEach(ress=>{
921
+ this.cbcs.push({
922
+ id:ress.id,
923
+ f_book_name:ress.f_book_name,
924
+ f_book_slice_area:ress.f_book_slice_area
925
+ })
926
+ })
927
+ this.cbc=[]
928
+ this.cbc.push({
929
+ label:'全部',
930
+ value:''
931
+ })
932
+ this.cbcs.forEach(res=>{
933
+ this.cbc.push({
934
+ label:res.f_book_name,
935
+ value:res.id
936
+ })
937
+ })
938
+ })
939
+ }
940
+ },
941
+ change(row) {
942
+ // Vue.$login = {jwt: row.f_checker_id}
943
+ // asyncReady(this).then(() => {
944
+ // ////tag)
945
+ // row.f_upload_state = '已传'
946
+ // this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
947
+ // }).catch(
948
+ // (respanse) => {
949
+ // alert('获取配置文件失败')
950
+ // })
951
+ },
952
+ readConfig() {
953
+ let gen = asyncReady(this)
954
+ return co(gen)
955
+ },
956
+ showChooser() {
957
+ this.showModal = true
958
+ },
959
+ hidden() {
960
+ this.criteriaShow = !this.criteriaShow
961
+ },
962
+ refresh() {
963
+ this.$refs.paged.$refs.criteria.search()
964
+ },
965
+ print(row) {
966
+ this.showcheckmsg = true
967
+ this.checkInfo = row
968
+ },
969
+ sort(field, rule) {
970
+ // 将所有排序方式设为不排序,实现相互排斥
971
+ for (let key in this.orderFields) {
972
+ if (key === field) {
973
+ this.orderFields[key] = rule
974
+ } else {
975
+ this.orderFields[key] = 'no'
976
+ }
977
+ }
978
+ // 如果新规则不排序,还原为默认排序
979
+ if (rule === 'no') {
980
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
981
+ } else {
982
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
983
+ }
984
+ this.search()
985
+ },
986
+ search() {
987
+ this.$refs.paged.$refs.criteria.search()
988
+ },
989
+ selfSearch(args) {
990
+ ////tag
991
+ // args.condition += ` and f_is_repaired = '未处理'`
992
+ args.condition += ` and f_filialeid='${this.$login.f.orgid}'`
993
+ this.model.search(args.condition, args.model, args.condValue)
994
+ }
995
+ },
996
+
997
+ ready() {
998
+ // this.$refs.paged.$refs.criteria.model.f_check_start = Util.toStartDateString()
999
+ this.getDefectOption()
1000
+ this.getEmp()
1001
+ // this.readConfig()
1002
+ ////tag
1003
+ this.function = this.f
1004
+ ////tag
1005
+
1006
+ let gen = select(this)
1007
+ //this.pianqu()
1008
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
1009
+ co(gen)
1010
+ }
1011
+ }
1012
+ </script>