safecheck-client 4.0.1-6 → 4.0.1-61

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 (286) hide show
  1. package/package.json +5 -5
  2. package/src/App.vue +31 -31
  3. package/src/assets//350/255/246/345/221/212 (3).png +0 -0
  4. package/src/assets//350/255/246/345/221/212 (4).png +0 -0
  5. package/src/assets//350/255/246/345/221/212 (5).png +0 -0
  6. package/src/components/CheckerCount/CheckCountUserList.vue +144 -144
  7. package/src/components/DefectDealMain/DefectListNew.vue +642 -642
  8. package/src/components/NewDefectList/DefectListNew.vue +682 -663
  9. package/src/components/android/AddPlanItem.vue +447 -447
  10. package/src/components/android/AddPlanItemYy.vue +451 -451
  11. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  12. package/src/components/android/AndroidDefectDeal.vue +667 -634
  13. package/src/components/android/AndroidDefectDetails.vue +3 -3
  14. package/src/components/android/AppInstallationMaterial.vue +865 -0
  15. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  16. package/src/components/android/DailyworkloadQuery.vue +473 -472
  17. package/src/components/android/Devices.vue +327 -327
  18. package/src/components/android/Devicesm.vue +327 -327
  19. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1369
  20. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  21. package/src/components/android/PhoneRecordInfo.vue +113 -113
  22. package/src/components/android/PhoneSellInfo.vue +113 -113
  23. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  24. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  25. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  26. package/src/components/android/SafePlanItem.vue +509 -509
  27. package/src/components/android/SwitchValve.vue +1 -1
  28. package/src/components/android/examples/SafeListExamples.vue +296 -296
  29. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  30. package/src/components/android/recheck/Recheck.vue +402 -402
  31. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  32. package/src/components/checkplan/CheckDetail.vue +1 -1
  33. package/src/components/checkplan/checkmsg.vue +459 -459
  34. package/src/components/defect/DefectList.vue +507 -507
  35. package/src/components/defect/DefectListWeixiu.vue +484 -484
  36. package/src/components/filialCircle/CircleList.vue +139 -139
  37. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  38. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  39. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  40. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  41. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  42. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  43. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  44. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  45. package/src/components/map/PersonTrack.vue +226 -226
  46. package/src/components/map/SecurityCheckCoordinates.vue +350 -0
  47. package/src/components/paper/RegionalList.vue +220 -220
  48. package/src/components/pc/AnnouncementPC.vue +524 -524
  49. package/src/components/pc/CheckBookUser.vue +8 -4
  50. package/src/components/pc/DefectList.vue +742 -742
  51. package/src/components/pc/DefectMaterialLook.vue +98 -0
  52. package/src/components/pc/DeviceChange.vue +1068 -1068
  53. package/src/components/pc/PaperDefectMain.vue +905 -880
  54. package/src/components/pc/SafeVisitInfo.vue +261 -261
  55. package/src/components/planmanage/PlanManage.vue +1 -0
  56. package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
  57. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
  58. package/src/components/querycheckpaper/CheckSearchUser.vue +5 -0
  59. package/src/components/report/HiddenSituation.vue +165 -165
  60. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  61. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  62. package/src/components/rongcheng/DefectList.vue +560 -560
  63. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  64. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  65. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  66. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  67. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  68. package/src/components/shaoguan/DefectList.vue +473 -473
  69. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  70. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  71. package/src/components/userfile/SecurityAudit.vue +243 -243
  72. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  73. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  74. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  75. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  76. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  77. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  78. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  79. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  80. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  81. package/src/filiale/bayan/android/Edit.vue +132 -132
  82. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  83. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  84. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  85. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  86. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  87. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  88. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  89. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  90. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  91. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  92. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  93. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  94. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  95. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  96. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  97. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  98. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  99. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  100. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  101. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  102. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  103. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  104. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  105. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  106. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  107. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  108. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  109. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  110. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  111. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  112. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  113. package/src/filiale/jinhong/pc/CheckBookList.vue +10 -7
  114. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  115. package/src/filiale/jinhong/pc/checkUserList.vue +766 -742
  116. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  117. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  118. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  119. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  120. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  121. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  122. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  123. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  124. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  125. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  126. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  127. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  128. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  129. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  130. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  131. package/src/filiale/libo/android.js +14 -0
  132. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  133. package/src/filiale/libo/pc.js +12 -0
  134. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  135. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  136. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  137. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  138. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  139. package/src/filiale/meihekou/android/MeterReading.vue +110 -106
  140. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1306
  141. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  142. package/src/filiale/meihekou/android/SafecheckOrderV.vue +324 -311
  143. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  144. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
  145. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  146. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  147. package/src/filiale/meihekou/pc/PaperList.vue +1136 -0
  148. package/src/filiale/meihekou/pc.js +2 -0
  149. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  150. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  151. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  152. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  153. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  154. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  155. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  156. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  157. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  158. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  159. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  160. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  161. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  162. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  163. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  164. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  165. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  166. package/src/filiale/qingjian/pc.js +15 -15
  167. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  168. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  169. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  170. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  171. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  172. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  173. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  174. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  175. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  176. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  177. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  178. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  179. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  180. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  181. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  182. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  183. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  184. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  185. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  186. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  187. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  188. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  189. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  190. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  191. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  192. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  193. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  194. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  195. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  196. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  197. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1259 -0
  198. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2341 -0
  199. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +776 -0
  200. package/src/filiale/taiyuan/android.js +13 -0
  201. package/src/filiale/taiyuan/pc/DefectDeal.vue +1033 -0
  202. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  203. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  204. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  205. package/src/filiale/taiyuan/pc.js +15 -0
  206. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  207. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  208. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  209. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  210. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  211. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  212. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  213. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  214. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  215. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  216. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  217. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  218. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  219. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  220. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  221. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  222. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  223. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  224. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  225. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  226. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  227. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  228. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  229. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  230. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  231. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  232. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  233. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  234. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  235. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  236. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  237. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  238. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  239. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  240. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  241. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  242. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  243. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  244. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  245. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  246. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  247. package/src/filiale/xinkang/android/AddPlanItem.vue +447 -413
  248. package/src/filiale/xinkang/android/SafecheckDevices.vue +29 -7
  249. package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
  250. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  251. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  252. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  253. package/src/filiale/xinkang/pc/NewCheckpaper.vue +20 -44
  254. package/src/filiale/xinkang/pc/PaperList.vue +2 -9
  255. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  256. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  257. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  258. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  259. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  260. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  261. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  262. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  263. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  264. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  265. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  266. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  267. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  268. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  269. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  270. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  271. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  272. package/src/filiale/yunchengminsheng/android.js +15 -15
  273. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  274. package/src/filiale/yunchengminsheng/pc.js +15 -14
  275. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  276. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  277. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  278. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  279. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  280. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  281. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  282. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  283. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  284. package/src/main.js +32 -33
  285. package/src/safecheck-android.js +4 -0
  286. package/src/safecheck.js +924 -918
@@ -0,0 +1,1987 @@
1
+ <style scoped id="printStyle">
2
+ .img {
3
+ border: 1px solid #9773ed;
4
+ width: auto;
5
+ height: auto;
6
+ float: left;
7
+ text-align: center;
8
+ margin: 6px;
9
+ }
10
+
11
+ img {
12
+ margin: 6px;
13
+ }
14
+
15
+
16
+ .container {
17
+ margin: 10px auto;
18
+ width: 80%;
19
+ height: auto;
20
+ }
21
+
22
+ div::-webkit-scrollbar {
23
+ width: 0 !important;
24
+ height: 0 !important;
25
+ }
26
+
27
+ div {
28
+ -ms-overflow-style: none;
29
+ overflow: -moz-scrollbars-none;
30
+ }
31
+
32
+ .divmask {
33
+ pointer-events: none;
34
+ }
35
+
36
+ .app-header {
37
+ border-radius: 50%;
38
+ background: rgba(73, 158, 223, 0.4);
39
+ color: #FFF;
40
+ padding: 20px;
41
+ text-align: center;
42
+ font-size: 1.2em;
43
+ z-index: 10;
44
+ opacity: 0.5;
45
+ bottom: 50px;
46
+ margin-top: -20px;
47
+ position: absolute;
48
+ top: 10%;
49
+ right: 2%;
50
+ height: 8%;
51
+ }
52
+ </style>
53
+
54
+ <template>
55
+ <div class="basic-main" style="height: 100%">
56
+ <div class="page-header app-header auto" style="padding: 15px;margin-right: 10px;right: 0%;height: 7%">
57
+ <div @click="back()">
58
+ <img src="../../../assets/back.png" style="margin: 0px"/>
59
+ </div>
60
+ </div>
61
+ <div v-show="showPdfDownload" class="page-header app-header auto"
62
+ style="padding: 15px;margin-right: 3.7%;right: 0%;height: 7%">
63
+ <div @click="exportToPDF()">
64
+ <img src="../../../assets/下载_.png" style="margin: 0px;width: 30px"/>
65
+ </div>
66
+ </div>
67
+ <work-busy :is-busy="loading"></work-busy>
68
+ <div class="container-fluid" style="overflow: scroll">
69
+ <div class="row">
70
+ <div class="col-md-5" style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
71
+ <div style="width: 100%;margin: auto">
72
+ <table class="table table-striped table-bordered" style="margin-bottom: 6px;margin-top: 35px">
73
+ <thead>
74
+ <tr>
75
+ <th colspan="6" style="text-align: center">用户基本信息</th>
76
+ </tr>
77
+ </thead>
78
+ <tbody>
79
+ <tr>
80
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
81
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_userinfo_code }}</td>
82
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
83
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
84
+ </tr>
85
+ <tr>
86
+ <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
87
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
88
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
89
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
90
+ </tr>
91
+ <tr>
92
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
93
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
94
+ <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
95
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
96
+ </tr>
97
+ <tr>
98
+ <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
99
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
100
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
101
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
102
+ </tr>
103
+ <tr>
104
+ <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
105
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
106
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
107
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
108
+ </tr>
109
+ <tr>
110
+ <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
111
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
112
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
113
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
114
+ </tr>
115
+ <tr>
116
+ <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
117
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
118
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
119
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
120
+ </tr>
121
+ <tr>
122
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
123
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
124
+ </tr>
125
+ </tbody>
126
+ </table>
127
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
128
+ v-show="paperdata.f_entry_status=='入户'">
129
+ <thead>
130
+ <tr>
131
+ <th colspan="4" style="text-align: center">用户安检概况</th>
132
+ </tr>
133
+ </thead>
134
+ <tbody>
135
+ <tr>
136
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
137
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
138
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
139
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
140
+ </tr>
141
+ <tr>
142
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
143
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_entry_status }}</td>
144
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用气状态:</td>
145
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
146
+ </tr>
147
+ <tr>
148
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
149
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
150
+ paperdata.f_client_evaluation
151
+ }}
152
+ </td>
153
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
154
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
155
+ :style="{'color':ajresult=='有隐患'?'red':''}">{{ ajresult }}
156
+ </td>
157
+ </tr>
158
+ <tr>
159
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
160
+ <td colspan="3"
161
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
162
+ {{ paperdata.f_repair_approved_note }}
163
+ </td>
164
+ </tr>
165
+ <tr>
166
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
167
+ <td colspan="3"
168
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
169
+ <span v-for="deviceCollect in deviceCollects">
170
+ <span class="li-font">
171
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
172
+ </span>
173
+ <br>
174
+ <span v-if="deviceCollect.value == '有隐患'">
175
+ <lable>
176
+ 隐患:
177
+ </lable>
178
+ <span v-for="val in deviceCollect.devices">
179
+ {{ val }}
180
+ </span><br>
181
+ </span>
182
+
183
+ </span>
184
+ </td>
185
+ </tr>
186
+
187
+ </tbody>
188
+ </table>
189
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
190
+ v-show="paperdata.f_entry_status!='入户'">
191
+ <thead>
192
+ <tr>
193
+ <th colspan="4" style="text-align: center">用户安检概况</th>
194
+ </tr>
195
+ </thead>
196
+ <tbody>
197
+ <tr>
198
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
199
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
200
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
201
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_offsite_time }}</td>
202
+ </tr>
203
+ <tr>
204
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
205
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
206
+ {{ paperdata.f_entry_status }}
207
+ </td>
208
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
209
+ <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
210
+ {{ dev.lname }}
211
+ 查看{{ data.f_entry_status }}照片
212
+ </button-link>
213
+ </td>
214
+ </tr>
215
+
216
+ </tbody>
217
+ </table>
218
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
219
+ v-show="item.f_no_checkplan == '复检'">
220
+ <thead>
221
+ <tr>
222
+ <th colspan="4" style="text-align: center">上次安检情况</th>
223
+ </tr>
224
+ </thead>
225
+ <tbody>
226
+ <tr>
227
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检到达时间:</td>
228
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
229
+ lastCheckData.f_onsite_time
230
+ }}
231
+ </td>
232
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检离开时间:</td>
233
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
234
+ lastCheckData.f_offsite_time
235
+ }}
236
+ </td>
237
+ </tr>
238
+ <tr>
239
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检员:</td>
240
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
241
+ {{ lastCheckData.f_checker_name }}
242
+ </td>
243
+ </tr>
244
+ <tr>
245
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">安检结果:</td>
246
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
247
+ {{ lastCheckData.f_defect_text }}
248
+ </td>
249
+ </tr>
250
+
251
+ </tbody>
252
+ </table>
253
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
254
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_usegas == '未用气'">
255
+ <thead>
256
+ <tr>
257
+ <th style="text-align: center">未用气照片</th>
258
+ </tr>
259
+ </thead>
260
+ <tbody>
261
+ <tr>
262
+ <td style="margin: auto;text-align: center">
263
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
264
+ <div class="img">
265
+ <img-self-plus :src="paperdata.f_nongasuser_path" style="float: left" width="150"
266
+ height="200"></img-self-plus>
267
+ </div>
268
+ </div>
269
+ </td>
270
+ </tr>
271
+ </tbody>
272
+ </table>
273
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
274
+ v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
275
+ <thead>
276
+ <tr>
277
+ <th style="text-align: center">隐患照片</th>
278
+ </tr>
279
+ </thead>
280
+ <tbody>
281
+ <tr>
282
+ <td style="margin: auto;text-align: center">
283
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
284
+ <div class="img" v-for="img in deviceImgs">
285
+ <img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
286
+ width="150"
287
+ height="200"></img-self-plus>
288
+ </div>
289
+ </div>
290
+
291
+
292
+ </td>
293
+
294
+ </tr>
295
+ </tbody>
296
+ </table>
297
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
298
+ v-show="paperdata.f_entry_status=='入户'">
299
+ <thead>
300
+ <tr>
301
+ <th style="text-align: center">总体安检照片</th>
302
+ </tr>
303
+ </thead>
304
+ <tbody>
305
+ <tr>
306
+ <td style="margin: auto;text-align: center">
307
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
308
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
309
+ <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
310
+ width="150"
311
+ height="200"></img-self-plus>
312
+ </div>
313
+ </div>
314
+
315
+
316
+ </td>
317
+
318
+ </tr>
319
+ </tbody>
320
+ </table>
321
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
322
+ v-show="paperdata.f_entry_status=='入户'">
323
+ <thead>
324
+ <tr>
325
+ <th style="text-align: center">安全培训照片</th>
326
+ </tr>
327
+ </thead>
328
+ <tbody>
329
+ <tr>
330
+ <td style="margin: auto;text-align: center">
331
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
332
+ <img-self-plus :src="paperdata.f_safety_trainin_1_path" v-if="paperdata.f_safety_trainin_1_path" style="float: left;padding: 5px"
333
+ width="150"
334
+ height="200"></img-self-plus>
335
+ <img-self-plus :src="paperdata.f_safety_trainin_2_path" v-if="paperdata.f_safety_trainin_2_path" style="float: left;padding: 5px"
336
+ width="150"
337
+ height="200"></img-self-plus>
338
+ <img-self-plus :src="paperdata.f_safety_trainin_3_path" v-if="paperdata.f_safety_trainin_3_path" style="float: left;padding: 5px"
339
+ width="150"
340
+ height="200"></img-self-plus>
341
+ </div>
342
+ </td>
343
+ </tr>
344
+ </tbody>
345
+ </table>
346
+
347
+ <table class="table table-striped table-bordered" style="width: 100%"
348
+ v-show="paperdata.f_entry_status=='入户' && (paperdata.f_sign_path || f_user_path) ">
349
+ <thead>
350
+ <tr>
351
+ <th style="text-align: center">用户签名照片</th>
352
+ </tr>
353
+ </thead>
354
+ <tbody>
355
+ <tr>
356
+ <td style="margin: auto;text-align: center" v-if="paperdata.f_sign_path">
357
+ <div class="container" style="max-width: 500px;background: #FFFFFF" >
358
+ <div class="img" style="float: none">
359
+ <img-self-plus :src="paperdata.f_sign_path" width="200" height="200"></img-self-plus>
360
+ </div>
361
+ </div>
362
+ </td>
363
+ <td style="margin: auto;text-align: center" v-if="f_user_path">
364
+ <div class="container" style="max-width: 550px;background: #FFFFFF" >
365
+ <div class="img" style="float: none">
366
+ <img-self-plus :src="'rs/image/file/'+f_user_path"
367
+ width="200"
368
+ height="200"></img-self-plus>
369
+ </div>
370
+ </div>
371
+ </td>
372
+ </tr>
373
+ </tbody>
374
+ </table>
375
+ <table class="table table-striped table-bordered"
376
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
377
+ <thead>
378
+ <tr>
379
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
380
+ </tr>
381
+ </thead>
382
+ <tbody>
383
+ <tr>
384
+ <td style="margin: auto;text-align: center">
385
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
386
+ <div class="img" style="float: none">
387
+ <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
388
+ </div>
389
+ </div>
390
+ </td>
391
+ </tr>
392
+ </tbody>
393
+ </table>
394
+ <table class="table table-striped table-bordered"
395
+ v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
396
+ <thead>
397
+ <tr>
398
+ <th style="text-align: center">安检视频</th>
399
+ </tr>
400
+ </thead>
401
+ <tbody>
402
+ <tr>
403
+ <td style="margin: auto;text-align: center">
404
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
405
+ <video width="320" height="200" controls v-if="paperdata.f_video_path">
406
+ <source :src="paperdata.f_video_path" type="video/mp4">
407
+ </video>
408
+ </div>
409
+ </td>
410
+ </tr>
411
+ </tbody>
412
+ </table>
413
+ <table class="table table-striped table-bordered"
414
+ v-show="item.f_recording1_path">
415
+ <thead>
416
+ <tr>
417
+ <th style="text-align: center">录音文件</th>
418
+ </tr>
419
+ </thead>
420
+ <tbody>
421
+ <tr>
422
+ <td style="margin: auto;text-align: center">
423
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
424
+ <a class="button_spacing button_search-1"
425
+ :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
426
+ :href="'rs/image/file/'+item.f_recording1_path">录音下载</a>
427
+ </div>
428
+ </td>
429
+ </tr>
430
+ </tbody>
431
+ </table>
432
+ </div>
433
+ </div>
434
+ <div class style="width: 1%;height: 100%;background-color: #F1F8FF;float: left;"></div>
435
+ <div class="col-md-6" style="height: 100%;overflow: scroll">
436
+ <div style="width: 95%;margin-left: 5%">
437
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2" style="margin-top: 35px">
438
+ <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
439
+ <tr>
440
+ <th style="text-align: center">{{ config.checkname }}</th>
441
+ </tr>
442
+ </thead>
443
+ <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
444
+ <tr v-for="dev in config.items">
445
+ <td v-if="dev.type!='text' && dev.isshow != false">
446
+ <div class="row">
447
+ <div class="col-md-8" style="text-align: center;">
448
+ <label>
449
+ <button-link type="button" class="btn btn-link" @click="showpicture(config.checkname,dev.lname)"
450
+ :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
451
+ {{ dev.lname }}
452
+ </button-link>
453
+ </label>
454
+ </div>
455
+ <div class="col-md-4" style="text-align: center">
456
+ <label style="font-weight: normal"
457
+ v-if="dev.type!='picture'">{{
458
+ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
459
+ }}</label>
460
+ <label style="font-weight: normal" v-if="dev.type=='picture'">
461
+ <div v-show="getDevicePath(config.checkname,dev.lname)">
462
+ <button-link style="color: black" type="button" class="btn btn-link"
463
+ @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
464
+ </button-link>
465
+ </div>
466
+ <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
467
+ </label>
468
+ </div>
469
+ </div>
470
+ </td>
471
+ <td v-if="dev.type==='text' && dev.isshow != false">
472
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
473
+ </td>
474
+ </tr>
475
+ </tbody>
476
+ </table>
477
+ <div v-show="showButton">
478
+ <button class="button_spacing button_search" @click="auditSuccesss()">通过</button>
479
+ <button class="button_spacing button_search" @click="auditFail()">不通过</button>
480
+ </div>
481
+ </div>
482
+ </div>
483
+
484
+ </div>
485
+ </div>
486
+ <div v-show="false">
487
+ <div class="container-fluid" id="toPdf" style="overflow: scroll">
488
+ <div class="row">
489
+ <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
490
+ <div style="width: 100%;margin: auto">
491
+ <table class="table table-striped table-bordered" style="margin-bottom: 6px;margin-top: 35px">
492
+ <thead>
493
+ <tr>
494
+ <th colspan="6" style="text-align: center">用户基本信息</th>
495
+ </tr>
496
+ </thead>
497
+ <tbody>
498
+ <tr>
499
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户编号:</td>
500
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
501
+ paperdata.f_userinfo_code
502
+ }}
503
+ </td>
504
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用户名称:</td>
505
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_user_name }}</td>
506
+ </tr>
507
+ <tr>
508
+ <td style="text-align: center;border: #E9E9E9 solid 1px">证件号码:</td>
509
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_idnumber }}</td>
510
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户类型:</td>
511
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_check_type }}</td>
512
+ </tr>
513
+ <tr>
514
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户电话:</td>
515
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_user_phone }}</td>
516
+ <td style="text-align: center;border: #E9E9E9 solid 1px">区 / 县:</td>
517
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_slice_area }}</td>
518
+ </tr>
519
+ <tr>
520
+ <td style="text-align: center;border: #E9E9E9 solid 1px">街 道:</td>
521
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_street }}</td>
522
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 号:</td>
523
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_building }}</td>
524
+ </tr>
525
+ <tr>
526
+ <td style="text-align: center;border: #E9E9E9 solid 1px">单 元:</td>
527
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_unit }}</td>
528
+ <td style="text-align: center;border: #E9E9E9 solid 1px">楼 层:</td>
529
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_floor }}</td>
530
+ </tr>
531
+ <tr>
532
+ <td style="text-align: center;border: #E9E9E9 solid 1px">门 牌 号 :</td>
533
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_room }}</td>
534
+ <td style="text-align: center;border: #E9E9E9 solid 1px">用户性质:</td>
535
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_userproperties }}</td>
536
+ </tr>
537
+ <tr>
538
+ <td style="text-align: center;border: #E9E9E9 solid 1px">备注信息:</td>
539
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_comments }}</td>
540
+ <td style="text-align: center;border: #E9E9E9 solid 1px">小区名称:</td>
541
+ <td style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_residential_area }}</td>
542
+ </tr>
543
+ <tr>
544
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px">详细住址:</td>
545
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px">{{ paperdata.f_address }}</td>
546
+ </tr>
547
+ </tbody>
548
+ </table>
549
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
550
+ v-show="paperdata.f_entry_status=='入户'">
551
+ <thead>
552
+ <tr>
553
+ <th colspan="4" style="text-align: center">用户安检概况</th>
554
+ </tr>
555
+ </thead>
556
+ <tbody>
557
+ <tr>
558
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
559
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
560
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
561
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
562
+ paperdata.f_offsite_time
563
+ }}
564
+ </td>
565
+ </tr>
566
+ <tr>
567
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
568
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
569
+ paperdata.f_entry_status
570
+ }}
571
+ </td>
572
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">用气状态:</td>
573
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_usegas }}</td>
574
+ </tr>
575
+ <tr>
576
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">用户满意度:</td>
577
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">{{
578
+ paperdata.f_client_evaluation
579
+ }}
580
+ </td>
581
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">安检结果:</td>
582
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;"
583
+ :style="{'color':ajresult=='有隐患'?'red':''}">{{ ajresult }}
584
+ </td>
585
+ </tr>
586
+ <tr>
587
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">备注:</td>
588
+ <td colspan="3"
589
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
590
+ {{ paperdata.f_repair_approved_note }}
591
+ </td>
592
+ </tr>
593
+ <tr>
594
+ <td colspan="1" style="text-align: center;border: #E9E9E9 solid 1px;">隐患详情:</td>
595
+ <td colspan="3"
596
+ style="text-align: center;border: #E9E9E9 solid 1px;word-wrap:break-word;word-break:break-all;width:87%">
597
+ <span v-for="deviceCollect in deviceCollects">
598
+ <span class="li-font">
599
+ {{ deviceCollect.name }}:{{ deviceCollect.value }}&nbsp;&nbsp;&nbsp;
600
+ </span>
601
+ <br>
602
+ <span v-if="deviceCollect.value == '有隐患'">
603
+ <lable>
604
+ 隐患:
605
+ </lable>
606
+ <span v-for="val in deviceCollect.devices">
607
+ {{ val }}
608
+ </span><br>
609
+ </span>
610
+
611
+ </span>
612
+ </td>
613
+ </tr>
614
+
615
+ </tbody>
616
+ </table>
617
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
618
+ v-show="paperdata.f_entry_status!='入户'">
619
+ <thead>
620
+ <tr>
621
+ <th colspan="4" style="text-align: center">用户安检概况</th>
622
+ </tr>
623
+ </thead>
624
+ <tbody>
625
+ <tr>
626
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">到达时间:</td>
627
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{ paperdata.f_onsite_time }}</td>
628
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">离开时间:</td>
629
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
630
+ paperdata.f_offsite_time
631
+ }}
632
+ </td>
633
+ </tr>
634
+ <tr>
635
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">入户状态:</td>
636
+ <td colspan="2" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
637
+ {{ paperdata.f_entry_status }}
638
+ </td>
639
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">
640
+ <button-link style="color: black" type="button" class="btn btn-link" @click="showpicture2()">
641
+ {{ dev.lname }}
642
+ 查看{{ data.f_entry_status }}照片
643
+ </button-link>
644
+ </td>
645
+ </tr>
646
+
647
+ </tbody>
648
+ </table>
649
+ <table class="table table-striped table-bordered" style="margin-top: 40px"
650
+ v-show="item.f_no_checkplan == '复检'">
651
+ <thead>
652
+ <tr>
653
+ <th colspan="4" style="text-align: center">上次安检情况</th>
654
+ </tr>
655
+ </thead>
656
+ <tbody>
657
+ <tr>
658
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检到达时间:</td>
659
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
660
+ lastCheckData.f_onsite_time
661
+ }}
662
+ </td>
663
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检离开时间:</td>
664
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">{{
665
+ lastCheckData.f_offsite_time
666
+ }}
667
+ </td>
668
+ </tr>
669
+ <tr>
670
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">上次安检员:</td>
671
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
672
+ {{ lastCheckData.f_checker_name }}
673
+ </td>
674
+ </tr>
675
+ <tr>
676
+ <td style="text-align: center;border: #E9E9E9 solid 1px;width: 17%">安检结果:</td>
677
+ <td colspan="3" style="text-align: center;border: #E9E9E9 solid 1px;width: 33%">
678
+ {{ lastCheckData.f_defect_text }}
679
+ </td>
680
+ </tr>
681
+
682
+ </tbody>
683
+ </table>
684
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
685
+ v-show="showPdfImg && paperdata.f_entry_status=='入户' && ajresult=='有隐患'">
686
+ <thead>
687
+ <tr>
688
+ <th style="text-align: center">隐患照片</th>
689
+ </tr>
690
+ </thead>
691
+ <tbody>
692
+ <tr>
693
+ <td style="margin: auto;text-align: center">
694
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
695
+ <div class="img" v-for="img in deviceImgs">
696
+ <img-self-plus :list="deviceCollect.imgs " :src="img.f_overall_path" style="float: left"
697
+ width="150"
698
+ height="200"></img-self-plus>
699
+ </div>
700
+ </div>
701
+
702
+
703
+ </td>
704
+
705
+ </tr>
706
+ </tbody>
707
+ </table>
708
+ <table class="table table-striped table-bordered" style="margin-top: 35px"
709
+ v-show="paperdata.f_entry_status=='入户'">
710
+ <thead>
711
+ <tr>
712
+ <th style="text-align: center">总体安检照片</th>
713
+ </tr>
714
+ </thead>
715
+ <tbody>
716
+ <tr>
717
+ <td style="margin: auto;text-align: center">
718
+ <div class="container" style="max-width: 550px;background: #FFFFFF">
719
+ <div class="img" v-for="img in paperdata.f_overall_imgs">
720
+ <img-self-plus :list="paperdata.f_overall_imgs " :src="img.f_overall_path" style="float: left"
721
+ width="150"
722
+ height="200"></img-self-plus>
723
+ </div>
724
+ </div>
725
+
726
+
727
+ </td>
728
+
729
+ </tr>
730
+ </tbody>
731
+ </table>
732
+ <table class="table table-striped table-bordered" style="width: 100%"
733
+ v-show="paperdata.f_entry_status=='入户'">
734
+ <thead>
735
+ <tr>
736
+ <th style="text-align: center">用户签名照片</th>
737
+ </tr>
738
+ </thead>
739
+ <tbody>
740
+ <tr>
741
+ <td style="margin: auto;text-align: center">
742
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
743
+ <div class="img" style="float: none">
744
+ <img-self-plus :src="paperdata.f_sign_path" width="200" height="200"></img-self-plus>
745
+ </div>
746
+ </div>
747
+ </td>
748
+ <td style="margin: auto;text-align: center">
749
+ <div class="container" style="max-width: 550px;background: #FFFFFF" v-if="f_user_path">
750
+ <div class="img" style="float: none">
751
+ <img-self-plus :src="'rs/image/file/'+f_user_path"
752
+ width="200"
753
+ height="200"></img-self-plus>
754
+ </div>
755
+ </div>
756
+ </td>
757
+ </tr>
758
+ </tbody>
759
+ </table>
760
+ <table class="table table-striped table-bordered"
761
+ v-show="paperdata.f_entry_status=='入户' && paperdata.f_defect_notified">
762
+ <thead>
763
+ <tr>
764
+ <th style="text-align: center">安检通知书/隐患整改通知书</th>
765
+ </tr>
766
+ </thead>
767
+ <tbody>
768
+ <tr>
769
+ <td style="margin: auto;text-align: center">
770
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
771
+ <div class="img" style="float: none">
772
+ <img-self-plus :src="paperdata.f_notified_path" width="486" height="300"></img-self-plus>
773
+ </div>
774
+ </div>
775
+ </td>
776
+ </tr>
777
+ </tbody>
778
+ </table>
779
+ <table class="table table-striped table-bordered"
780
+ v-show="paperdata.f_entry_status=='入户'&& paperdata.f_video_path">
781
+ <thead>
782
+ <tr>
783
+ <th style="text-align: center">安检视频</th>
784
+ </tr>
785
+ </thead>
786
+ <tbody>
787
+ <tr>
788
+ <td style="margin: auto;text-align: center">
789
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
790
+ <video width="320" height="200" controls v-if="paperdata.f_video_path">
791
+ <source :src="paperdata.f_video_path" type="video/mp4">
792
+ </video>
793
+ </div>
794
+ </td>
795
+ </tr>
796
+ </tbody>
797
+ </table>
798
+ <table class="table table-striped table-bordered"
799
+ v-show="item.f_recording1_path">
800
+ <thead>
801
+ <tr>
802
+ <th style="text-align: center">录音文件</th>
803
+ </tr>
804
+ </thead>
805
+ <tbody>
806
+ <tr>
807
+ <td style="margin: auto;text-align: center">
808
+ <div class="container" style="max-width: 500px;background: #FFFFFF">
809
+ <a class="button_spacing button_search-1"
810
+ :download="item.f_user_name+'-'+item.f_check_type+'-'+'录音文件.arm'"
811
+ :href="'rs/image/file/'+item.f_recording1_path">录音下载</a>
812
+ </div>
813
+ </td>
814
+ </tr>
815
+ </tbody>
816
+ </table>
817
+ </div>
818
+ </div>
819
+ <div style="margin-right: 2%;margin-left: 2%;height: 100%;overflow: scroll">
820
+ <div style="width: 95%;margin-left: 5%">
821
+ <table class="table table-striped table-bordered" v-for="config in deviceconfig2"
822
+ style="margin-top: 35px">
823
+ <thead v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
824
+ <tr>
825
+ <th style="text-align: center">{{ config.checkname }}</th>
826
+ </tr>
827
+ </thead>
828
+ <tbody v-show="!(config.checkname!='燃气表'&&paperdata.f_entry_status!='入户')">
829
+ <tr v-for="dev in config.items">
830
+ <td v-if="dev.type!='text' && dev.isshow != false">
831
+ <div class="row">
832
+ <div class="col-md-8" style="text-align: center;">
833
+ <label>
834
+ <button-link type="button" class="btn btn-link"
835
+ @click="showpicture(config.checkname,dev.lname)"
836
+ :style="isred(config.checkname,dev.lname)?'color:red':'color:black'">
837
+ {{ dev.lname }}
838
+ </button-link>
839
+ </label>
840
+ </div>
841
+ <div class="col-md-4" style="text-align: center">
842
+ <label style="font-weight: normal"
843
+ v-if="dev.type!='picture'">{{
844
+ getDeviceValue(config.checkname, dev.lname) ? getDeviceValue(config.checkname, dev.lname) : '无'
845
+ }}</label>
846
+ <label style="font-weight: normal" v-if="dev.type=='picture'">
847
+ <div v-show="getDevicePath(config.checkname,dev.lname)">
848
+ <button-link style="color: black" type="button" class="btn btn-link"
849
+ @click="showpath(getDevicePath(config.checkname,dev.lname),dev.lname)">查看照片
850
+ </button-link>
851
+ </div>
852
+ <div v-show="!getDevicePath(config.checkname,dev.lname)">无照片</div>
853
+ </label>
854
+ </div>
855
+ </div>
856
+ </td>
857
+ <td v-if="dev.type==='text' && dev.isshow != false">
858
+ <label style="width: 100%;text-align: center">{{ dev.lname }}</label>
859
+ </td>
860
+ </tr>
861
+ </tbody>
862
+ </table>
863
+ </div>
864
+ </div>
865
+
866
+ </div>
867
+ </div>
868
+ </div>
869
+ </div>
870
+ <modal :show.sync="imgshow" v-ref:modal backdrop="true">
871
+ <header slot="modal-header" class="modal-header">
872
+ {{ picturename }}
873
+ </header>
874
+ <article slot="modal-body" class="modal-body">
875
+ <div class="from-group">
876
+ <div class="row">
877
+ <div class="col-md-6">
878
+ <img-self-plus v-if="showimg1" :src="showimg1" width="240" height="300"></img-self-plus>
879
+ </div>
880
+ <div class="col-md-6">
881
+ <img-self-plus v-if="showimg2" :src="showimg2" width="240" height="300"></img-self-plus>
882
+ </div>
883
+ <div class="col-md-6" v-for="item in otherDarginShowImgs">
884
+ <img-self-plus v-if="item.path" :src="item.path" width="240" height="300"></img-self-plus>
885
+ </div>
886
+ </div>
887
+ </div>
888
+ </article>
889
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
890
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
891
+ </footer>
892
+ </modal>
893
+ <modal :show.sync="imgshow2" v-ref:modal backdrop="true">
894
+ <header slot="modal-header" class="modal-header">
895
+ {{ paperdata.f_entry_status }}照片
896
+ </header>
897
+ <article slot="modal-body" class="modal-body">
898
+ <div class="from-group">
899
+ <div class="row">
900
+ <div class="col-md-6">
901
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer_path" :src="showimg3"
902
+ width="282"
903
+ height="400"></img-self-plus>
904
+ </div>
905
+ <div class="col-md-6">
906
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer1_path"
907
+ :src="showimg5" width="282"
908
+ height="400"></img-self-plus>
909
+ </div>
910
+ <div class="col-md-6">
911
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer2_path"
912
+ :src="showimg6" width="282"
913
+ height="400"></img-self-plus>
914
+ </div>
915
+ <div class="col-md-6">
916
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck_path"
917
+ :src="showimg4" width="282"
918
+ height="400"></img-self-plus>
919
+ </div>
920
+ <div class="col-md-6">
921
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck1_path"
922
+ :src="showimg7" width="282"
923
+ height="400"></img-self-plus>
924
+ </div>
925
+ <div class="col-md-6">
926
+ <img-self-plus v-if="this.paperdata.f_entry_status=='拒检' && this.paperdata.f_rejectcheck2_path"
927
+ :src="showimg8" width="282"
928
+ height="400"></img-self-plus>
929
+ </div>
930
+ </div>
931
+ </div>
932
+ </article>
933
+ <footer slot="modal-footer" class="modal-footer" v-show="false">
934
+ <button type="button" class="btn btn-success" @click='imgclose'>关闭</button>
935
+ </footer>
936
+ </modal>
937
+ <modal :show.sync="showModel" :width="'50%'" :backdrop="false">
938
+ <div slot="modal-header" class="modal-header">
939
+ <h4 class="modal-title">
940
+ 安检审核备注
941
+ </h4>
942
+ </div>
943
+ <div slot="modal-body" class="modal-body">
944
+ <div class="row">
945
+ <div class="form-group col-sm-4">
946
+ <label class="font_normal_body">审核备注:</label>
947
+ <textarea v-model="message"></textarea>
948
+ </div>
949
+ </div>
950
+ </div>
951
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
952
+ <button class="button_search" style="margin-right: 15px" @click="auditFailOK()">确定</button>
953
+ <button class="button_search" style="margin-right: 15px" @click="auditFailCancel()">取消</button>
954
+ </div>
955
+ </modal>
956
+ </template>
957
+
958
+ <script>
959
+ import html2pdf from 'html2pdf.js'
960
+ import ObjConfig from '../../../utils/GerJsonObjectConfig'
961
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
962
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
963
+ import Vue from 'vue'
964
+ import * as Util from '../../Util'
965
+ import {jsonSort} from '../../../utils/LdapHelper'
966
+ import {HttpResetClass} from "vue-client";
967
+ import {forEach} from "mocha/lib/utils";
968
+ let asyncReady = async function (self) {
969
+ // 获取配置信息
970
+ try {
971
+ let res = await new HttpResetClass().load('get','/api/af-safecheck/vue',null, {resolveMsg: null, rejectMsg: null})
972
+ self.delConfigKey(res.data)
973
+ Vue.config.safecheck=res.data
974
+ console.log('获取配置结果===', res.data)
975
+ } catch (error) {
976
+ // 忽略704,文件找不到异常R
977
+ if (error.status !== 704) {
978
+ throw error
979
+ }
980
+ }
981
+ }
982
+ export default {
983
+ title: '安检单',
984
+ props: ['f_plan_id', 'item', 'role','gotoitem'],
985
+ data() {
986
+ return {
987
+ f_user_path:'',
988
+ message: '',
989
+ showButton: false,
990
+ showModel: false,
991
+ data: {
992
+ f_devices: [],
993
+ f_defect_content: ''
994
+ },
995
+ showPdfDownload: this.$appdata.getSingleValue('安检结果pdf下载') ? this.$appdata.getSingleValue('安检结果pdf下载') : false,
996
+ showPdfImg: this.$appdata.getSingleValue('安检结果pdf展示隐患照片') ? this.$appdata.getSingleValue('安检结果pdf展示隐患照片') : false,
997
+ lastCheckData: {},
998
+ paperdata: {},
999
+ picturename: '隐患照片',
1000
+ defectDevice: {},
1001
+ hasDevice: false,
1002
+ deviceCollect: {},
1003
+ deviceCollects: [],
1004
+ deviceImgs:[],
1005
+ isshow: false,
1006
+ ajresult: '',
1007
+ loading: true,
1008
+ imgshow: false,
1009
+ imgshow2: false,
1010
+ isUpload: false,
1011
+ livedispose: '',
1012
+ showimg1: '',
1013
+ showimg2: '',
1014
+ showimg3: '',
1015
+ showimg4: '',
1016
+ showimg5: '',
1017
+ showimg6: '',
1018
+ showimg7: '',
1019
+ showimg8: '',
1020
+ hiddenDangerImgNumber: 0, //配置项中隐患照片数
1021
+ otherDarginShowImgs: [],//其他隐患图片
1022
+ startClick: false, //开始安检按钮是否可点击
1023
+ isStrat: false, //是否开始安检
1024
+ checkResult: {},//查询结果
1025
+ newcheckResult: {},
1026
+ timer: null,
1027
+ showModal: false,
1028
+ pic_to_be_viewed: '',
1029
+ showBack: true,
1030
+ devices: [],
1031
+ devicesAll: [],
1032
+ configAJ: [],
1033
+ configRQ: [],
1034
+ deviceconfig: {},
1035
+ newConfig: '',
1036
+ deviceconfig2: [],
1037
+ f_devices: [],
1038
+ config: {
1039
+ "燃气表": {
1040
+ "checkmust": true,
1041
+ "index": 1,
1042
+ "items": {
1043
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
1044
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
1045
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
1046
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
1047
+ "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
1048
+ "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
1049
+ "累购气量": {"index": 7, "type": "number", "readonly": true},
1050
+ "已用气量": {"index": 8, "type": "number", "checkmust": false},//基表数
1051
+ "剩余气量": {"index": 9, "type": "number", "checkmust": false},//累购-已用
1052
+ //显示屏数 --实际剩余气量
1053
+ "气量异常差值": {"index": 10, "type": "number", "readonly": true},
1054
+ "表箱号": {"index": 11, "type": "string", "readonly": true},
1055
+ "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
1056
+ }
1057
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
1058
+ }
1059
+ },
1060
+ //金额
1061
+ config2: {
1062
+ "燃气表": {
1063
+ "checkmust": true,
1064
+ "index": 1,
1065
+ "items": {
1066
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
1067
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
1068
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
1069
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
1070
+ "初始表底": {"index": 5, "type": "number", "isshow": false, "readonly": true},
1071
+ "上期表读数": {"index": 6, "type": "number", "readonly": true, isshow: false},
1072
+ "累购金额": {"index": 7, "type": "number", "readonly": true},
1073
+ "已用金额": {"index": 8, "type": "number", "checkmust": false},
1074
+ //显示屏数 --实际剩余气量
1075
+ "剩余金额": {"index": 9, "type": "number", "checkmust": false},
1076
+ "金额异常差值": {"index": 10, "type": "number", "readonly": true},
1077
+ "表箱号": {"index": 11, "type": "string", "readonly": true},
1078
+ "燃气表照片": {"index": 12, "type": "picture", "checkmust": false},
1079
+ }
1080
+ }
1081
+ },
1082
+ }
1083
+ },
1084
+ components: {
1085
+ RadioGroup,
1086
+ Radio,
1087
+ },
1088
+ computed: {
1089
+ isRecodrDownloadBtn() {
1090
+ // 投诉单下派还是处理
1091
+ let res = this.$appdata.getSingleValue('无限制录音');
1092
+ if (res == 'true') {
1093
+ return true;
1094
+ } else {
1095
+ return false;
1096
+ }
1097
+ },
1098
+ selector: {
1099
+ get() {
1100
+ return 'paper-state'
1101
+ },
1102
+ set(val) {
1103
+ if (this.isStrat) {
1104
+ this.$goto(val, {userinfo: this.data}, 'paper-router')
1105
+ } else {
1106
+ this.$showMessage('未开始安检!')
1107
+ }
1108
+ }
1109
+ },
1110
+ actionEnabled: {
1111
+ get() {
1112
+ return this.role == 'inspect'
1113
+ }
1114
+ }
1115
+ },
1116
+ methods: {
1117
+ delConfigKey(obj){
1118
+ // 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
1119
+ Object.keys(obj).forEach(key =>{
1120
+ Object.keys(obj[key]).forEach(col => {
1121
+ // 检查键是否以$开头
1122
+ if (col.startsWith('$')) {
1123
+ // 使用delete操作符删除键
1124
+ delete obj[key][col];
1125
+ }
1126
+ })
1127
+ })
1128
+ },
1129
+ exportToPDF() {
1130
+ const element = document.getElementById('toPdf') // 替换为您要导出的页面元素的ID
1131
+ html2pdf(element)
1132
+ },
1133
+
1134
+ showAudit() {
1135
+ var audit = this.$appdata.getSingleValue('安检审核');
1136
+ if (audit == '是' && (this.item.f_approved == '未审核' || !this.item.f_approved)) {
1137
+ this.showButton = true
1138
+ }
1139
+ },
1140
+ //安检审核成功
1141
+ auditSuccesss() {
1142
+ this.loading = true;
1143
+ var reqdata = {
1144
+ audit_result: '通过',
1145
+ operator: "success",
1146
+ audit_time: Util.getNowDate(),
1147
+ user_name: this.$login.f.name,
1148
+ id: this.item.id,
1149
+ f_check_item_id: this.item.f_check_item_id
1150
+ }
1151
+ new HttpResetClass().load('POST', '/api/af-safecheck/logic/updateAafeAudit', {data: reqdata}, {
1152
+ resolveMsg: '安检审核成功!',
1153
+ rejectMsg: '安检审核出错!'
1154
+ }).then((res) => {
1155
+ if (res.data.code == 200) {
1156
+ this.loading = false;
1157
+ this.$emit('showback')
1158
+ }
1159
+ })
1160
+ },
1161
+ auditFail() {
1162
+ this.showModel = true;
1163
+ },
1164
+ auditFailOK() {
1165
+
1166
+ this.loading = true;
1167
+ var reqdata = {
1168
+ message: this.message,
1169
+ audit_result: '不通过',
1170
+ operator: "fail",
1171
+ audit_time: Util.getNowDate(),
1172
+ user_name: this.$login.f.name,
1173
+ id: this.item.id,
1174
+ f_check_item_id: this.item.f_check_item_id
1175
+ }
1176
+ new HttpResetClass().load('POST', '/api/af-safecheck/logic/updateAafeAudit', {data: reqdata}, {
1177
+ resolveMsg: '安检审核成功!',
1178
+ rejectMsg: '安检审核出错!'
1179
+ }).then((res) => {
1180
+ if (res.data.code == 200) {
1181
+ this.loading = false;
1182
+ this.message = '';
1183
+ this.showModel = false;
1184
+ this.$emit('showback')
1185
+ }
1186
+ })
1187
+ },
1188
+ auditFailCancel() {
1189
+ this.showModel = false;
1190
+ this.message = '';
1191
+ },
1192
+
1193
+ devicesCollect() {
1194
+ //tag
1195
+ //tag)
1196
+ //tag)
1197
+ //tag
1198
+ this.deviceCollects = []
1199
+ this.deviceImgs = []
1200
+ let checkResult = '正常'
1201
+ this.result = '正常'
1202
+ let codata = JSON.parse(JSON.stringify(this.data))
1203
+ //tag)
1204
+ for (let device in this.data) {
1205
+ let f_device_type
1206
+ if (device.startsWith("device")) {
1207
+ for (let item in this.data[device]) {
1208
+ if (this.data[device].length > 1) {
1209
+ let j = Number.parseInt(item) + 1
1210
+ f_device_type = `${this.data[device][item].f_device_type}${j}`
1211
+ } else {
1212
+ f_device_type = this.data[device][item].f_device_type
1213
+ }
1214
+ // //tag
1215
+ let deviceelse = []
1216
+ let deviceInfos = []
1217
+
1218
+ for (let i in this.data[device][item].f_items) {
1219
+ let defects = ''
1220
+
1221
+ let items = this.data[device][item].f_items[i]
1222
+
1223
+
1224
+ if ((items.type === 'selector' || items.type === 'radio' || items.type === 'checkbox' || items.type === 'picture') && items.f_item_value != null && items.f_item_value instanceof Array) {
1225
+ for (let i in items.f_item_value) {
1226
+ let f_item_value = items.f_item_value[i]
1227
+
1228
+ //tag)
1229
+ //tag)
1230
+ //tag)
1231
+ //tag)
1232
+
1233
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name] && (items.isdefect && (items.isdefect == 'true' || items.isdefect == true))) {
1234
+ continue
1235
+ }
1236
+ /*if(items.f_is_defect != true && items.f_is_defect != 'true'){
1237
+ continue
1238
+ }*/
1239
+ if (items.f_is_defect == 'true' || items.f_is_defect == true) {
1240
+ checkResult = '有隐患'
1241
+ this.result = '有隐患'
1242
+ defects = `${defects}:${f_item_value}/`
1243
+ }
1244
+ /*let options = this.config[this.data[device][item].f_device_type].items[items.f_item_name].options
1245
+ for (let option in options) {
1246
+ if (options[option].data == f_item_value) {
1247
+ if (options[option].isdefect == 'true' || options[option].isdefect == true) {
1248
+ checkResult = '有隐患'
1249
+ this.result = '有隐患'
1250
+ defects = `${defects}:${options[option].data}/`
1251
+ // let level = options[option].level
1252
+ }
1253
+ }
1254
+ }*/
1255
+ //tag)
1256
+ }
1257
+ if (defects != '') {
1258
+ console.log('有隐患items', items)
1259
+ deviceInfos.push(`${items.f_item_name}${defects.substring(0, defects.length - 1)}${items.f_else ? items.f_else : ''}`)
1260
+ this.deviceImgs.push({f_overall_path:items.f_path})
1261
+ }
1262
+ } else if ((items.type === 'string' || items.type === 'number') && items.f_is_defect && items.f_item_value[0]) {
1263
+ checkResult = '有隐患'
1264
+ this.result = '有隐患'
1265
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1266
+ this.deviceImgs.push({f_overall_path:items.f_path})
1267
+
1268
+ } else if (items.f_item_name == '金额异常差值') {
1269
+ var deviation = this.$appdata.getSingleValue('金额异常差值允许误差')
1270
+ //tag
1271
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
1272
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
1273
+ checkResult = '有隐患'
1274
+ this.result = '有隐患'
1275
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1276
+ }
1277
+ }
1278
+ } else if (items.f_item_name == '气量异常差值') {
1279
+ var deviation = this.$appdata.getSingleValue('气量异常差值允许误差')
1280
+ //tag
1281
+ if (parseFloat(items.f_item_value[0]).toString() != "NaN" && parseFloat(deviation).toString() != "NaN") {
1282
+ if (parseFloat(items.f_item_value[0]) > parseFloat(deviation) || parseFloat(items.f_item_value[0]) < parseFloat(deviation) * -1) {
1283
+ checkResult = '有隐患'
1284
+ this.result = '有隐患'
1285
+ deviceInfos.push(`${items.f_item_name}:${items.f_item_value[0]}`)
1286
+ }
1287
+ }
1288
+ }
1289
+ if (!this.config[this.data[device][item].f_device_type].items[items.f_item_name]) {
1290
+ // console.log('this.config[this.data[device][item].f_device_type]', this.config[this.data[device][item].f_device_type])
1291
+ // console.log('this.deviceconfig2', this.deviceconfig2)
1292
+ for (let dev in this.deviceconfig2) {
1293
+ if (this.deviceconfig2[dev].checkname == this.data[device][item].f_device_type) {
1294
+ this.deviceconfig2[dev].items.push({
1295
+ lname: items.f_item_name
1296
+ })
1297
+ }
1298
+ }
1299
+ }
1300
+ //tag)
1301
+ //tag
1302
+ //tag
1303
+ if (items.type === 'selector') {
1304
+ items.selected = []
1305
+ } else if (items.type === 'inputSelector') {
1306
+ items.selected = ''
1307
+ }
1308
+ }
1309
+
1310
+
1311
+ //tag
1312
+ this.$set('deviceCollect.name', f_device_type)
1313
+ this.$set('deviceCollect.value', checkResult)
1314
+ this.$set('deviceCollect.devices', deviceInfos)
1315
+ this.$set('deviceCollect.else', deviceelse)
1316
+ console.log('deviceCollect.devices', this.deviceCollect.devices)
1317
+ console.log('deviceCollect.else', this.deviceCollect.else)
1318
+ console.log('deviceCollect.imgs', this.deviceCollect.imgs)
1319
+ //tag)
1320
+ if (this.deviceCollect.name) {
1321
+ //tag
1322
+ if(this.deviceCollect.value != '正常'){
1323
+ this.deviceCollects.push(JSON.parse(JSON.stringify(this.deviceCollect)))
1324
+ }
1325
+ }
1326
+
1327
+ checkResult = '正常'
1328
+ this.deviceCollect = {}
1329
+ }
1330
+ }
1331
+ }
1332
+ if (this.deviceCollects.length > 0) {
1333
+ this.hasDevice = true
1334
+ }
1335
+ this.deviceconfig2 = this.deviceconfig2.filter(row => {
1336
+ return !(row.checkname == '$configProp' || row.checkname == '$globalProp');
1337
+ })
1338
+ this.ajresult = JSON.parse(this.data.f_defect_content).result
1339
+ this.showimg3 = this.data.f_noanswer_path
1340
+ this.showimg5 = this.data.f_noanswer1_path
1341
+ this.showimg6 = this.data.f_noanswer2_path
1342
+ this.showimg4 = this.data.f_rejectcheck_path
1343
+ this.showimg7 = this.data.f_rejectcheck1_path
1344
+ this.showimg8 = this.data.f_rejectcheck2_path
1345
+ this.paperdata = this.data
1346
+ this.f_user_path = this.paperdata.f_user_pictures ? JSON.parse(this.paperdata.f_user_pictures)[0].f_user_path : ''
1347
+ this.loading = false
1348
+ },
1349
+ imgclose() {
1350
+ this.imgshow = false
1351
+ },
1352
+ putDevices() {
1353
+ ////tag
1354
+ this.$set('data.approve', "true")
1355
+ this.$set('data.writeback', "false")
1356
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1357
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1358
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1359
+ }
1360
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1361
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1362
+ }
1363
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1364
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1365
+ }
1366
+ if (Vue.config.safecheck.ApproveConfig.hiddendanger != undefined) {
1367
+ if (parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger) >= 5) {
1368
+ this.hiddenDangerImgNumber = 5
1369
+ } else {
1370
+ this.hiddenDangerImgNumber = parseInt(Vue.config.safecheck.ApproveConfig.hiddendanger)
1371
+ }
1372
+ }
1373
+ }
1374
+ //tag
1375
+ //tag)
1376
+ if (!this.item.f_safecheck_type && Vue.config.safecheck.SafecheckType && Vue.config.safecheck.SafecheckType['年度普检']) {
1377
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度普检'][this.item.f_check_type]])
1378
+ }else if (!this.item.f_safecheck_type && Vue.config.safecheck.SafecheckType && Vue.config.safecheck.SafecheckType['年度安检']){
1379
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType['年度安检'][this.item.f_check_type]])
1380
+ }else if (Vue.config.safecheck.SafecheckType && Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]){
1381
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_check_type]])
1382
+ }else {
1383
+ if(this.item.f_check_type == '民用'){
1384
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1385
+ }else {
1386
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1387
+ }
1388
+ }
1389
+ //遍历安检项配置
1390
+ for (let i in this.config) {
1391
+ //取得安检项索引值
1392
+ let n = this.config[i].index
1393
+ this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1394
+ this.$set('data.' + 'device' + n, [])
1395
+ let items = []
1396
+ for (let it in this.config[i].items) {
1397
+ //赋值下拉选项
1398
+ if (this.config[i].items[it].type == 'selector') {
1399
+ for (let op in this.config[i].items[it].options)
1400
+ if (this.config[i].items[it].options[op].isdefault == true) {
1401
+ items.push({
1402
+ f_defect_level: this.config[i].items[it].options[op].level,
1403
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
1404
+ f_item_name: it,
1405
+ f_item_value: this.config[i].items[it].options[op].data,
1406
+ f_path: "",
1407
+ type: "selector"
1408
+ })
1409
+ }
1410
+ }
1411
+ }
1412
+ n = n + 1
1413
+ }
1414
+
1415
+ },
1416
+ showpath(val1, val2) {
1417
+ //tag
1418
+ //tag
1419
+ if (val1) {
1420
+ this.showimg1 = val1
1421
+ this.picturename = val2
1422
+ this.imgshow = true
1423
+ }
1424
+ },
1425
+ showpicture(val1, val2) {
1426
+ //tag
1427
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1428
+ return
1429
+ }
1430
+ for (let i = 0; i < this.devicesAll.length; i++) {
1431
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1432
+ if (this.devicesAll[i][j].f_device_type == val1) {
1433
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1434
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1435
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1436
+ return false
1437
+ } else {
1438
+ this.showimg1 = this.devicesAll[i][j].f_items[k].f_path
1439
+ this.showimg2 = this.devicesAll[i][j].f_items[k].f_second_path
1440
+ this.otherDarginShowImgs = []
1441
+ for (let l = 0; l < this.hiddenDangerImgNumber; l++) {
1442
+ let img = {path: ''}
1443
+ if (this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path']) {
1444
+ img.path = this.devicesAll[i][j].f_items[k]['f_p' + (l + 1) + '_path'] + '?' + Math.random()
1445
+ this.otherDarginShowImgs.push(img)
1446
+ }
1447
+ }
1448
+ this.picturename = '隐患照片'
1449
+ this.imgshow = true
1450
+ return true
1451
+ }
1452
+ }
1453
+ }
1454
+
1455
+ }
1456
+ }
1457
+ }
1458
+ },
1459
+ isred(val1, val2) {
1460
+ //tag
1461
+ if (val2 == '气量异常差值' || val2 == '金额异常差值') {
1462
+ return
1463
+ }
1464
+ for (let i = 0; i < this.devicesAll.length; i++) {
1465
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1466
+ if (this.devicesAll[i][j].f_device_type == val1) {
1467
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1468
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1469
+ if (!this.devicesAll[i][j].f_items[k].f_is_defect) {
1470
+ return false
1471
+ } else {
1472
+ return true
1473
+ }
1474
+ }
1475
+ }
1476
+
1477
+ }
1478
+ }
1479
+ }
1480
+ },
1481
+ showpicture2() {
1482
+ this.imgshow2 = true
1483
+ },
1484
+ getDeviceValue(val1, val2) {
1485
+ let aa = ''
1486
+ for (let i = 0; i < this.devicesAll.length; i++) {
1487
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1488
+ if (this.devicesAll[i][j].f_device_type == val1) {
1489
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1490
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1491
+ if (this.devicesAll[i][j].f_items[k].f_item_lists[0]) {
1492
+ for (let l = 0; l < this.devicesAll[i][j].f_items[k].f_item_lists.length; l++) {
1493
+ let val = this.devicesAll[i][j].f_items[k].f_item_lists[l].f_item_value
1494
+ aa += (val === null ? '空' : val) + ' '
1495
+ }
1496
+ return aa
1497
+ }
1498
+ }
1499
+ }
1500
+
1501
+ }
1502
+ }
1503
+ }
1504
+
1505
+ },
1506
+ getDevicePath(val1, val2) {
1507
+ for (let i = 0; i < this.devicesAll.length; i++) {
1508
+ for (let j = 0; j < this.devicesAll[i].length; j++) {
1509
+ if (this.devicesAll[i][j].f_device_type == val1) {
1510
+ for (let k = 0; k < this.devicesAll[i][j].f_items.length; k++) {
1511
+ if (this.devicesAll[i][j].f_items[k].f_item_name == val2) {
1512
+ return this.devicesAll[i][j].f_items[k].f_path
1513
+ }
1514
+ }
1515
+
1516
+ }
1517
+ }
1518
+ }
1519
+
1520
+ },
1521
+ getDeviceAll() {
1522
+ let keyall = Object.keys(this.data)
1523
+ for (let i = 0; i < keyall.length; i++) {
1524
+ //tag)
1525
+ if ((keyall[i].startsWith('f_devices') || keyall[i].startsWith('devices')) && keyall[i] != 'deviceundefined') {
1526
+ this.devicesAll.push(this.data[keyall[i]])
1527
+ //tag
1528
+ }
1529
+ }
1530
+ //tag
1531
+ //tag)
1532
+ this.devicesCollect()
1533
+
1534
+ },
1535
+
1536
+ back() {
1537
+ if (this.role == 'inspect') {
1538
+ if (!this.isStrat) {
1539
+ this.$emit('showback')
1540
+ return
1541
+ } else {
1542
+ this.savePaper(true).then(() => {
1543
+ this.$emit('showback')
1544
+ this.isStrat = false
1545
+ })
1546
+ }
1547
+ } else {
1548
+ if(this.gotoitem){
1549
+ this.$back()
1550
+ return
1551
+ }
1552
+ this.$emit('showback')
1553
+ }
1554
+ },
1555
+ checkIsStart() {
1556
+ alert('asdad')
1557
+ return
1558
+ },
1559
+
1560
+ viewPic(fileName) {
1561
+ //tag
1562
+ if (this.role == 'view') {
1563
+ if (!fileName.endsWith('nopic.png')) {
1564
+ this.pic_to_be_viewed = fileName
1565
+ this.showModal = true
1566
+ }
1567
+ } else {
1568
+ HostApp.viewPic(fileName)
1569
+ }
1570
+ },
1571
+ tick() {
1572
+ this.timer = null
1573
+ this.data.f_offsite_time = Util.toStandardTimeString()
1574
+ this.timer = window.setTimeout(this.tick, 1000)
1575
+ },
1576
+ getRepairState() {
1577
+ let repaired = true
1578
+ this.data.f_defects.forEach((defect) => {
1579
+ repaired = repaired & (defect.f_ratification == '已处理')
1580
+ })
1581
+ return repaired
1582
+ },
1583
+ verifyRepairDefects() {
1584
+ this.data.f_repair_date = Util.toStandardTimeString()
1585
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
1586
+ },
1587
+ genuineSave(saveOnly) {
1588
+ HostApp.__this__.save(saveOnly)
1589
+ if (!saveOnly)
1590
+ HostApp.__this__.disableTimer()
1591
+ HostApp.__callback__ = null
1592
+ HostApp.__this__ = null
1593
+ },
1594
+ setUrgency() {
1595
+ this.data.f_defect_urgency = 'Z'
1596
+ let that = this
1597
+ this.data.f_defects.forEach(function (defect) {
1598
+ if (that.data.f_defect_urgency > defect.f_defect_level.charAt(0))
1599
+ that.data.f_defect_urgency = defect.f_defect_level.charAt(0)
1600
+ })
1601
+ if (this.data.f_defect_urgency == 'Z')
1602
+ this.data.f_defect_urgency = null
1603
+ },
1604
+ disableTimer() {
1605
+ if (this.timer) {
1606
+ window.clearTimeout(this.timer)
1607
+ this.timer = null
1608
+ }
1609
+ },
1610
+ loaded(paper) {
1611
+ if (!paper.hasOwnProperty('id')) {
1612
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1613
+ this.init()
1614
+ } else {
1615
+ Util.booleanFilter(paper)
1616
+ HostApp.__this__.$set('data', paper)
1617
+ HostApp.__this__.$goto('paper-state', {}, 'paper-router')
1618
+ // 如果打回重检则重新计时
1619
+ //tag
1620
+ if (HostApp.__this__.role == 'inspect'
1621
+ && HostApp.__this__.data.f_approved
1622
+ && HostApp.__this__.data.f_approved == '打回') {
1623
+ //tag
1624
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1625
+ HostApp.__this__.tick()
1626
+ }
1627
+ }
1628
+ HostApp.__callback__ = null
1629
+ HostApp.__this__ = null
1630
+ },
1631
+ S4() {
1632
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1633
+ },
1634
+ init() {
1635
+ this.data.f_noplan_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1636
+ this.data.ename = Vue.user.ename
1637
+ this.data.f_outlets = Vue.user.f_parentname
1638
+ this.data.f_meetunit = Vue.user.orgpathnames
1639
+ this.data.orgpathstr = Vue.user.orgpathstr
1640
+ this.data.f_check_item_id = this.item.id
1641
+ this.data.f_check_plan_id = this.f_plan_id
1642
+ this.data.f_checker_id = Vue.user.id
1643
+ this.data.f_checker_name = Vue.user.name
1644
+ this.data.f_check_type = this.item.f_user_type
1645
+ this.data.f_subcompany = this.item.f_subcompany
1646
+ this.data.f_approved = this.item.f_approved
1647
+ this.data.f_repair_approved = this.item.f_repair_approved
1648
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1649
+ this.data.f_approved = this.item.f_approved
1650
+ this.data.f_filialeid = this.item.f_filialeid
1651
+ this.data.f_orgstr = this.item.f_orgstr
1652
+ this.data.version = this.item.version
1653
+ this.$set('data.f_meters', this.item.f_plan_meters)
1654
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1655
+ // 安检状态
1656
+ this.$set('data.f_entry_status', '入户')
1657
+ this.$set('data.f_usegas', '已使用')
1658
+ this.$set('data.f_state', this.item.f_state)
1659
+ // 用户信息
1660
+ this.$set('data.f_user_name', this.item.f_user_name)
1661
+ this.$set('data.f_user_phone', this.item.f_user_phone)
1662
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1663
+ this.$set('data.f_address', this.item.f_address)
1664
+ this.$set('data.f_card_id', this.item.f_card_id)
1665
+ this.$set('data.f_area', this.item.f_area)
1666
+ this.$set('data.f_street', this.item.f_street)
1667
+ this.$set('data.f_room', this.item.f_room)
1668
+ this.$set('data.f_building', this.item.f_building)
1669
+ this.$set('data.f_unit', this.item.f_unit)
1670
+ this.$set('data.f_floor', this.item.f_floor)
1671
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1672
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1673
+ this.$set('data.f_comments', this.item.f_comments)
1674
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1675
+ // 处置方式
1676
+ this.$set('data.f_no_gas_device', false)
1677
+ this.$set('data.f_close_valve', false)
1678
+ this.$set('data.f_unload_battery', false)
1679
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1680
+ this.data.f_check_item_id = this.data.f_noplan_item_id
1681
+ }
1682
+
1683
+ //房屋结构
1684
+ // this.$set('data.f_room_style', '多层')
1685
+ //供暖方式
1686
+ // this.$set('data.f_heating_style', '热力公司集中供暖')
1687
+ if (this.item.f_plan_meters) {
1688
+ for (let de in this.devices) {
1689
+ this.$set('data.device' + this.devices[de].n, [])
1690
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1691
+ if (this.item.f_plan_meters[i].f_meter_type) {
1692
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1693
+ delete this.config['燃气表']['items']['累计购气量']
1694
+ this.data['device' + this.devices[de].n].push({
1695
+ f_device_type: "燃气表",
1696
+ f_items: [{
1697
+ f_defect_level: null,
1698
+ f_device_id: "",
1699
+ f_is_defect: "",
1700
+ f_item_name: "表品牌",
1701
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1702
+ f_path: "",
1703
+ type: "string"
1704
+ },
1705
+ {
1706
+ f_defect_level: null,
1707
+ f_device_id: "",
1708
+ f_is_defect: "",
1709
+ f_item_name: "位置",
1710
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1711
+ f_path: "",
1712
+ type: "selector"
1713
+ },
1714
+ {
1715
+ f_defect_level: null,
1716
+ f_device_id: "",
1717
+ f_is_defect: "",
1718
+ f_item_name: "表号",
1719
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1720
+ f_path: "",
1721
+ type: "number"
1722
+ },
1723
+ {
1724
+ f_defect_level: null,
1725
+ f_device_id: "",
1726
+ f_is_defect: "",
1727
+ f_item_name: "表封号",
1728
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1729
+ f_path: "",
1730
+ type: "number"
1731
+ },
1732
+ {
1733
+ f_defect_level: null,
1734
+ f_device_id: "",
1735
+ f_is_defect: "",
1736
+ f_item_name: "表型号",
1737
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1738
+ f_path: "",
1739
+ type: "selector"
1740
+ },
1741
+ {
1742
+ f_defect_level: null,
1743
+ f_device_id: "",
1744
+ f_is_defect: "",
1745
+ f_item_name: "表底数",
1746
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1747
+ f_path: "",
1748
+ type: "number"
1749
+ }
1750
+ ]
1751
+ })
1752
+ } else if (this.devices[de].device == "燃气表") {
1753
+ delete this.config['燃气表']['items']['表底数']
1754
+ this.data['device' + this.devices[de].n].push({
1755
+ f_device_type: "燃气表",
1756
+ f_items: [{
1757
+ f_defect_level: null,
1758
+ f_device_id: "",
1759
+ f_is_defect: "",
1760
+ f_item_name: "表品牌",
1761
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1762
+ f_path: "",
1763
+ type: "string"
1764
+ },
1765
+ {
1766
+ f_defect_level: null,
1767
+ f_device_id: "",
1768
+ f_is_defect: "",
1769
+ f_item_name: "位置",
1770
+ f_item_value: this.item.f_plan_meters[i].f_weizhi,
1771
+ f_path: "",
1772
+ type: "selector"
1773
+ },
1774
+ {
1775
+ f_defect_level: null,
1776
+ f_device_id: "",
1777
+ f_is_defect: "",
1778
+ f_item_name: "表号",
1779
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1780
+ f_path: "",
1781
+ type: "number"
1782
+ },
1783
+ {
1784
+ f_defect_level: null,
1785
+ f_device_id: "",
1786
+ f_is_defect: "",
1787
+ f_item_name: "表封号",
1788
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1789
+ f_path: "",
1790
+ type: "number"
1791
+ },
1792
+ {
1793
+ f_defect_level: null,
1794
+ f_device_id: "",
1795
+ f_is_defect: "",
1796
+ f_item_name: "表型号",
1797
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1798
+ f_path: "",
1799
+ type: "selector"
1800
+ },
1801
+ {
1802
+ f_defect_level: null,
1803
+ f_device_id: "",
1804
+ f_is_defect: "",
1805
+ f_item_name: "累计购气量",
1806
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1807
+ f_path: "",
1808
+ type: "number"
1809
+ }
1810
+ ]
1811
+ })
1812
+ }
1813
+ }
1814
+ }
1815
+ }
1816
+ }
1817
+
1818
+ this.$goto('paper-state', {}, 'paper-router')
1819
+ },
1820
+ extend(initalObj, finalObj) {
1821
+ var obj = finalObj || {};
1822
+ for (var i in initalObj) {
1823
+ var prop = initalObj[i];
1824
+
1825
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1826
+ if (prop === obj) {
1827
+ continue;
1828
+ }
1829
+
1830
+ if (typeof prop === 'object') {
1831
+ if (obj[i]) {
1832
+ this.extend(obj[i], prop)
1833
+ } else {
1834
+ obj[i] = prop;
1835
+ }
1836
+ }
1837
+ }
1838
+ return obj;
1839
+ },
1840
+ //获取当前时间
1841
+ getNowFormatDate() {
1842
+ var date = new Date();
1843
+ var seperator1 = "-";
1844
+ var seperator2 = ":";
1845
+ var month = date.getMonth() + 1;
1846
+ var strDate = date.getDate();
1847
+ if (month >= 1 && month <= 9) {
1848
+ month = "0" + month;
1849
+ }
1850
+ if (strDate >= 0 && strDate <= 9) {
1851
+ strDate = "0" + strDate;
1852
+ }
1853
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1854
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1855
+ + seperator2 + date.getSeconds();
1856
+ return currentdate;
1857
+ }
1858
+ },
1859
+ ready() {
1860
+ asyncReady(this).then(() => {
1861
+ setTimeout(() => {
1862
+ this.loading = false;
1863
+ }, 10000)
1864
+ this.putDevices()
1865
+ this.showAudit()
1866
+ this.newConfig = this.$appdata.getSingleValue('配置中心获取文件') ? this.$appdata.getSingleValue('配置中心获取文件') : '否';
1867
+ if (this.item.f_state != '未检' || this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') {
1868
+ if (this.role != 'inspect') {
1869
+ let that = this
1870
+ let id
1871
+ if (this.role == 'view') {
1872
+ id = this.item.id
1873
+ } else if (this.role == 'androidview') {
1874
+ id = this.item.f_paper_id
1875
+ }
1876
+ this.$resetpost(`api/af-safecheck/logic/path_getCheckPaper`, {data: {id:id}}).then((respanse) => {
1877
+ //tag
1878
+ if (respanse.data.length != 0) {
1879
+ // 包含 其它 特殊处理的数组
1880
+ // 对应位置
1881
+ that.data = Object.assign(that.data, respanse.data[0])
1882
+ if (respanse.data[0].f_devices) {
1883
+ for (let da in that.devices) {
1884
+ that.$set('data.device' + that.devices[da].n, [])
1885
+ }
1886
+ respanse.data[0].f_devices.forEach((item) => {
1887
+ for (let de in that.devices) {
1888
+ if (that.devices[de].device == item.f_device_type) {
1889
+ item.f_items.forEach((f_item) => {
1890
+ //tag
1891
+ //tag
1892
+ let itemValues = []
1893
+ f_item.f_item_lists.forEach((tempItem) => {
1894
+ //tag
1895
+ if (tempItem.f_item_value !== 'null') {
1896
+ itemValues.push(tempItem.f_item_value)
1897
+ }
1898
+ })
1899
+ f_item.f_item_value = itemValues
1900
+ })
1901
+ that.data['device' + that.devices[de].n].push({
1902
+ f_device_type: item.f_device_type,
1903
+ f_items: item.f_items
1904
+ })
1905
+ }
1906
+ }
1907
+ })
1908
+ }
1909
+ Util.replaceFalse(that.data)
1910
+ Util.booleanFilter(that.data)
1911
+ if (this.role == 'view') {
1912
+ Util.ratifyPics(that.data)
1913
+ Util.ratifyPics(that.picture)
1914
+ } else {
1915
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1916
+ }
1917
+ //tag
1918
+ }
1919
+ // this.$goto('paper-message-blank', {userinfo:this.data,devices:this.devices,config:this.config,role:this.role}, 'self')
1920
+ this.isshow = true
1921
+ //tag
1922
+ //tag)
1923
+ console.log('Vue.config.safecheck.DevicesConfig', Vue.config.safecheck.DevicesConfig)
1924
+ // 如果没有用户类型 默认按民用配置走
1925
+ if (this.data.f_check_type == '非民用') {
1926
+ this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesSetConfig))
1927
+ if (typeof this.deviceconfig === 'string') {
1928
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1929
+ }
1930
+ }else{
1931
+ this.deviceconfig = JSON.parse(JSON.stringify(Vue.config.safecheck.DevicesConfig))
1932
+ if (typeof this.deviceconfig === 'string') {
1933
+ this.deviceconfig = JSON.parse(this.deviceconfig)
1934
+ }
1935
+ }
1936
+ if (this.data.f_collection_type == '按金额') {
1937
+ if (this.deviceconfig["燃气表"]){
1938
+ let aaa = Object.assign({}, this.config2["燃气表"].items, this.deviceconfig["燃气表"].items)
1939
+ this.deviceconfig["燃气表"].items = aaa
1940
+ }
1941
+ } else {
1942
+ if (this.deviceconfig["燃气表"]){
1943
+ let aaa = Object.assign({}, this.config["燃气表"].items, this.deviceconfig["燃气表"].items)
1944
+ this.deviceconfig["燃气表"].items = aaa
1945
+ }
1946
+ }
1947
+ this.deviceconfig2 = ObjConfig.getObjConfig(this.deviceconfig)
1948
+ this.deviceconfig2[0].items = jsonSort(this.deviceconfig2[0].items, "index")
1949
+ this.deviceconfig2[1].items = jsonSort(this.deviceconfig2[1].items, "index")
1950
+ this.deviceconfig2 = jsonSort(this.deviceconfig2, "index")
1951
+ this.getDeviceAll()
1952
+
1953
+ }
1954
+ ).catch(
1955
+ (respanse) => {
1956
+ //tag
1957
+ alert('查找安检单失败')
1958
+ this.loading = false
1959
+ })
1960
+ }
1961
+ }
1962
+ })
1963
+ },
1964
+ watch: {
1965
+ // 'isUpload'(val){
1966
+ // //tag
1967
+ // }
1968
+ },
1969
+ destroyed() {
1970
+ //tag
1971
+ this.disableTimer()
1972
+ }
1973
+ }
1974
+
1975
+ </script>
1976
+ <style scoped>
1977
+ .table-striped thead tr th {
1978
+ background-color: rgb(223, 237, 251);
1979
+ padding: 10px;
1980
+ border-left: solid 0px #dae4f2;
1981
+ border-top: solid 1px #dae4f2;
1982
+ border-right: none;
1983
+ border-bottom: none;
1984
+ text-align: center;
1985
+ color: black;
1986
+ }
1987
+ </style>