safecheck-client 4.0.1-5 → 4.0.1-50

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