safecheck-client 4.0.1-9 → 4.0.1-90

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 (304) 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/Util/RightTreeSafeDep.vue +362 -350
  10. package/src/components/Util/SafecheckUpload.vue +3 -4
  11. package/src/components/android/AddPlanItem.vue +447 -447
  12. package/src/components/android/AddPlanItemYy.vue +451 -451
  13. package/src/components/android/AddSpecialPlanItem.vue +426 -426
  14. package/src/components/android/AndroidDefectDeal.vue +390 -323
  15. package/src/components/android/AndroidDefectDetails.vue +3 -3
  16. package/src/components/android/AppInstallationMaterial.vue +865 -0
  17. package/src/components/android/CurrentCreateYy.vue +1051 -1051
  18. package/src/components/android/DailyworkloadQuery.vue +473 -472
  19. package/src/components/android/Devices.vue +327 -327
  20. package/src/components/android/Devicesm.vue +327 -327
  21. package/src/components/android/NewCheckpaperAndroid.vue +1343 -1369
  22. package/src/components/android/PaperFeedbackm.vue +1026 -1026
  23. package/src/components/android/PhoneRecordInfo.vue +113 -113
  24. package/src/components/android/PhoneSellInfo.vue +113 -113
  25. package/src/components/android/PhoneUpDetail.vue +1040 -1040
  26. package/src/components/android/QRCode/QRCodeBinding.vue +300 -300
  27. package/src/components/android/QRCode/QRCodePage.vue +212 -212
  28. package/src/components/android/SafePlanItem.vue +509 -509
  29. package/src/components/android/SafecheckOrderV.vue +6 -0
  30. package/src/components/android/SwitchValve.vue +1 -1
  31. package/src/components/android/examples/SafeListExamples.vue +296 -296
  32. package/src/components/android/old/PaperFeedback.vue +1015 -1015
  33. package/src/components/android/recheck/Recheck.vue +402 -402
  34. package/src/components/android/userinfo/SafecheckUserInfo.vue +776 -776
  35. package/src/components/checkplan/CheckDetail.vue +1 -1
  36. package/src/components/checkplan/checkmsg.vue +459 -459
  37. package/src/components/defect/DefectList.vue +507 -507
  38. package/src/components/defect/DefectListWeixiu.vue +484 -484
  39. package/src/components/filialCircle/CircleList.vue +139 -139
  40. package/src/components/inspections/AddInspectPlanItem.vue +325 -325
  41. package/src/components/inspections/AddInspectPlanItems.vue +325 -325
  42. package/src/components/inspections/AddInspectPlanItemss.vue +317 -317
  43. package/src/components/inspections/DisplayInspectionList.vue +1224 -1224
  44. package/src/components/inspections/inspectionOrderV.vue +1853 -1853
  45. package/src/components/inspections/inspectionOrderVs.vue +1853 -1853
  46. package/src/components/inspections/inspectionOrderVss.vue +1856 -1856
  47. package/src/components/inspections/inspectionUserInfo.vue +398 -398
  48. package/src/components/map/PersonTrack.vue +226 -226
  49. package/src/components/map/SecurityCheckCoordinates.vue +361 -0
  50. package/src/components/paper/PaperList.vue +5 -0
  51. package/src/components/paper/RegionalList.vue +220 -220
  52. package/src/components/pc/AnnouncementPC.vue +524 -524
  53. package/src/components/pc/DefectDeal.vue +7 -6
  54. package/src/components/pc/DefectList.vue +742 -742
  55. package/src/components/pc/DefectMaterialLook.vue +98 -0
  56. package/src/components/pc/DeviceChange.vue +1068 -1068
  57. package/src/components/pc/PaperDefectMain.vue +905 -880
  58. package/src/components/pc/RoleSelectorDep.vue +166 -159
  59. package/src/components/pc/SafeVisitInfo.vue +261 -261
  60. package/src/components/planmanage/PlanManage.vue +1 -0
  61. package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
  62. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
  63. package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
  64. package/src/components/report/HiddenSituation.vue +165 -165
  65. package/src/components/rongcheng/AspiratedOrderV.vue +2377 -2377
  66. package/src/components/rongcheng/CurrentCreateOnline.vue +906 -906
  67. package/src/components/rongcheng/DefectList.vue +560 -560
  68. package/src/components/rongcheng/SafecheckOrderVCli.vue +2641 -2641
  69. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -419
  70. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -1050
  71. package/src/components/safecheckNew/android/Recheck.vue +379 -379
  72. package/src/components/sendsingle/EquipmentManagement.vue +727 -727
  73. package/src/components/shaoguan/DefectList.vue +473 -473
  74. package/src/components/shaoguan/SafecheckOrderV.vue +2140 -2140
  75. package/src/components/tongcheng/PaperFeedback.vue +1061 -1061
  76. package/src/components/userfile/SecurityAudit.vue +243 -243
  77. package/src/filiale/ALshan/pc/DefectListWeixiu.vue +476 -476
  78. package/src/filiale/ancheng/android/SafecheckOrderV.vue +2703 -2703
  79. package/src/filiale/ancheng/android/SafecheckUserInfo.vue +737 -737
  80. package/src/filiale/ancheng/pc/checkScreen.vue +923 -923
  81. package/src/filiale/ankangyihua/android/AddPlanItem.vue +446 -446
  82. package/src/filiale/ankangyihua/android/SafecheckOrderV.vue +2908 -2908
  83. package/src/filiale/ankangyihua/pc/DefectListWeixiu.vue +491 -491
  84. package/src/filiale/baiyin/android/SafecheckOrderV.vue +2785 -2785
  85. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  86. package/src/filiale/bayan/android/Edit.vue +132 -132
  87. package/src/filiale/bayan/pc/DefectListNew.vue +597 -597
  88. package/src/filiale/bayan/pc/DeviceChange.vue +1838 -1838
  89. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  90. package/src/filiale/dexin/android/CasualSave.vue +1050 -1050
  91. package/src/filiale/dexin/android/SafecheckOrderV.vue +2950 -2950
  92. package/src/filiale/fugou/android/AddPlanItem.vue +413 -413
  93. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -2796
  94. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +830 -830
  95. package/src/filiale/fugu/android/SafecheckOrderV.vue +2484 -2484
  96. package/src/filiale/fugu/pc/NewCheckpaper.vue +1287 -1287
  97. package/src/filiale/ganquan/android/AddPlanItem.vue +444 -444
  98. package/src/filiale/ganquan/android/SafecheckOrderV.vue +2485 -2485
  99. package/src/filiale/ganquan/pc/NewCheckpaper.vue +1354 -1354
  100. package/src/filiale/guangxi/pc/DefectListNew.vue +518 -518
  101. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  102. package/src/filiale/hanzhong/android/SafecheckUserInfo.vue +786 -786
  103. package/src/filiale/huaran/android/SafecheckOrderV.vue +2803 -2803
  104. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2426
  105. package/src/filiale/huatong/android/SafecheckUserInfo.vue +749 -749
  106. package/src/filiale/huayin/pc/NewCheckpaper.vue +1307 -1307
  107. package/src/filiale/jiaocheng/android/AddPlanItem.vue +435 -435
  108. package/src/filiale/jiaocheng/android/SafecheckUserInfo.vue +737 -737
  109. package/src/filiale/jiaocheng/pc/DefectListNew.vue +576 -576
  110. package/src/filiale/jiaxian/android/AddPlanItem.vue +447 -447
  111. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  112. package/src/filiale/jiaxian/android/SafecheckUserInfo.vue +784 -784
  113. package/src/filiale/jinbin/pc/DefectListWeixiu.vue +478 -478
  114. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -458
  115. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -2734
  116. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +781 -781
  117. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  118. package/src/filiale/jinhong/pc/CheckBookList.vue +393 -388
  119. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  120. package/src/filiale/jinhong/pc/PaperList.vue +853 -844
  121. package/src/filiale/jinhong/pc/PlanManage.vue +927 -925
  122. package/src/filiale/jinhong/pc/checkPlanList.vue +420 -418
  123. package/src/filiale/jinhong/pc/checkUserList.vue +30 -6
  124. package/src/filiale/kelai/android/AddPlanItem.vue +488 -488
  125. package/src/filiale/kelai/android/SafecheckUserInfo.vue +774 -774
  126. package/src/filiale/kelai/android/SafecheckUserInfo1.vue +618 -618
  127. package/src/filiale/kelai/pc/DefectListNew.vue +688 -688
  128. package/src/filiale/kelai/pc/FaultLimitGas/FaultLimitGasList.vue +518 -518
  129. package/src/filiale/kelai/pc/NewCheckpaper.vue +1454 -1454
  130. package/src/filiale/liaoyuan/android/AddPlanItem.vue +412 -412
  131. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -1066
  132. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +2388 -2388
  133. package/src/filiale/liaoyuan/android/SafecheckUserInfo.vue +557 -557
  134. package/src/filiale/liaoyuan/pc/DefectListWeixiu.vue +489 -489
  135. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +1020 -1020
  136. package/src/filiale/libo/android/CurrentCreate.vue +1091 -0
  137. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  138. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  139. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  140. package/src/filiale/libo/android.js +15 -0
  141. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  142. package/src/filiale/libo/pc.js +12 -0
  143. package/src/filiale/lixian/android/SafecheckOrderV.vue +2404 -2404
  144. package/src/filiale/lixian/android/SafecheckUserInfo.vue +578 -578
  145. package/src/filiale/lixian/pc/NewCheckpaper.vue +1211 -1211
  146. package/src/filiale/meihekou/android/AreaPlan.vue +577 -577
  147. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  148. package/src/filiale/meihekou/android/MeterReading.vue +110 -106
  149. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +1307 -1306
  150. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  151. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2431
  152. package/src/filiale/meihekou/android/SafecheckUserInfo.vue +785 -785
  153. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
  154. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  155. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1288 -1288
  156. package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
  157. package/src/filiale/meihekou/pc.js +2 -0
  158. package/src/filiale/minsheng/android/SafecheckUserInfo.vue +754 -754
  159. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  160. package/src/filiale/minsheng/pc/DefectListNew.vue +535 -535
  161. package/src/filiale/pingxiang/android/SafecheckOrderV.vue +2424 -2424
  162. package/src/filiale/pingxiang/android/SafecheckUserInfo.vue +600 -600
  163. package/src/filiale/pingxiang/pc/DefectListNew.vue +519 -519
  164. package/src/filiale/pingxiang/pc/NewCheckpaper.vue +1294 -1294
  165. package/src/filiale/qianneng/android/AddPlanItem.vue +482 -482
  166. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  167. package/src/filiale/qianneng/android/SafecheckUserInfo.vue +775 -775
  168. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  169. package/src/filiale/qianneng/pc/DefectListNew.vue +576 -576
  170. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1546 -1546
  171. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  172. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +800 -800
  173. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1871 -1871
  174. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +359 -0
  175. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  176. package/src/filiale/qingjian/pc.js +15 -15
  177. package/src/filiale/qingtongxia/android/AddPlanItem.vue +450 -450
  178. package/src/filiale/qingtongxia/android/SafecheckOrderV.vue +2726 -2726
  179. package/src/filiale/qingtongxia/android/SafecheckUserInfo.vue +782 -782
  180. package/src/filiale/qingtongxia/pc/DefectListNew.vue +594 -594
  181. package/src/filiale/rizhao/android/AddPlanItem.vue +446 -446
  182. package/src/filiale/rizhao/android/SafecheckOrderV.vue +2430 -2430
  183. package/src/filiale/rizhao/android/SafecheckUserInfo.vue +640 -640
  184. package/src/filiale/rizhao/pc/DefectList.vue +489 -489
  185. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  186. package/src/filiale/rongchuang/android/checkpapermsg.vue +209 -209
  187. package/src/filiale/ruihua/android/SafecheckOrderV.vue +2747 -2747
  188. package/src/filiale/ruihua/android/SafecheckUserInfo.vue +804 -804
  189. package/src/filiale/shanggao/android/SafecheckOrderV.vue +2426 -2426
  190. package/src/filiale/shanxian/android/SafecheckUserInfo.vue +749 -749
  191. package/src/filiale/shanxian/pc/HiddenSituation.vue +121 -121
  192. package/src/filiale/shanxian/pc/NewCheckpaper.vue +1526 -1526
  193. package/src/filiale/shexian/android/AddPlanItem.vue +444 -444
  194. package/src/filiale/shexian/android/SafecheckOrderV.vue +2879 -2879
  195. package/src/filiale/shexian/pc/DefectListNew.vue +593 -593
  196. package/src/filiale/shexian/pc/NewCheckpaper.vue +1469 -1469
  197. package/src/filiale/shimen/android/SafecheckUserInfo.vue +547 -547
  198. package/src/filiale/shimen/pc/DefectList.vue +473 -473
  199. package/src/filiale/shimen/pc/NewCheckpaper.vue +1275 -1275
  200. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  201. package/src/filiale/siyang/android/CurrentCreate.vue +1051 -1051
  202. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -214
  203. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -2796
  204. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -789
  205. package/src/filiale/siyang/pc/HiddenSituation.vue +167 -167
  206. package/src/filiale/taiyuan/android/AddPlanItem.vue +456 -0
  207. package/src/filiale/taiyuan/android/AreaPlan.vue +565 -0
  208. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  209. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1253 -0
  210. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -0
  211. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +784 -0
  212. package/src/filiale/taiyuan/android.js +15 -0
  213. package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
  214. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  215. package/src/filiale/taiyuan/pc/PaperList.vue +795 -0
  216. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  217. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  218. package/src/filiale/taiyuan/pc.js +16 -0
  219. package/src/filiale/tianke/android/AddPlanItem.vue +455 -455
  220. package/src/filiale/tianke/android/CurrentCreate.vue +3 -3
  221. package/src/filiale/tianke/android/SafecheckOrderV.vue +2431 -2431
  222. package/src/filiale/tianke/android/SafecheckUserInfo.vue +744 -744
  223. package/src/filiale/tongchuan/android/AddPlanItem.vue +483 -483
  224. package/src/filiale/tongchuan/android/PhoneRecordInfo.vue +191 -191
  225. package/src/filiale/tongchuan/android/PhoneSellInfo.vue +113 -113
  226. package/src/filiale/tongchuan/android/SafecheckUserInfo.vue +720 -720
  227. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  228. package/src/filiale/tongchuan/pc/CheckBookDetails.vue +209 -209
  229. package/src/filiale/tongchuan/pc/DefectListWeixiu.vue +484 -484
  230. package/src/filiale/tongchuan/pc/HiddenSituation.vue +166 -166
  231. package/src/filiale/weinan/android/AddPlanItem.vue +438 -438
  232. package/src/filiale/weinan/android/CurrentCreate.vue +1171 -1171
  233. package/src/filiale/weinan/android/CurrentCreateOnline.vue +911 -911
  234. package/src/filiale/weinan/android/SafePlanItem.vue +440 -440
  235. package/src/filiale/weinan/android/SafecheckUserInfo.vue +778 -778
  236. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  237. package/src/filiale/weinan/pc/DeviceChange.vue +1088 -1088
  238. package/src/filiale/weinan/pc/HiddenSituation.vue +167 -167
  239. package/src/filiale/weinan/pc/checkScreen.vue +1094 -1094
  240. package/src/filiale/weinanct/android/SafecheckOrderV.vue +2730 -2730
  241. package/src/filiale/weinanct/pc/NewCheckpaper.vue +1315 -1315
  242. package/src/filiale/wensu/android/AddPlanItem.vue +495 -495
  243. package/src/filiale/wensu/android/AndroidDefectDeal.vue +464 -464
  244. package/src/filiale/wensu/android/PaperFeedback.vue +1358 -1358
  245. package/src/filiale/wensu/android/SafecheckOrderV.vue +2430 -2430
  246. package/src/filiale/wensu/android/SafecheckUserInfo.vue +627 -627
  247. package/src/filiale/wensu/pc/DefectListNew.vue +735 -735
  248. package/src/filiale/wenxi/android/AddPlanItem.vue +431 -431
  249. package/src/filiale/wenxi/android/SafecheckOrderV.vue +2671 -2671
  250. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +673 -673
  251. package/src/filiale/wenxi/pc/DefectList.vue +653 -653
  252. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1358 -1358
  253. package/src/filiale/wuan/android/SafecheckOrderV.vue +2241 -2241
  254. package/src/filiale/wuan/android/SafecheckUserInfo.vue +596 -596
  255. package/src/filiale/wuan/pc/DefectListWeixiu.vue +506 -506
  256. package/src/filiale/wuan/pc/NewCheckpaper.vue +1169 -1169
  257. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2456 -2456
  258. package/src/filiale/wuhai/android/SafecheckUserInfo.vue +573 -573
  259. package/src/filiale/wuhai/pc/NewCheckpaper.vue +1281 -1281
  260. package/src/filiale/xiangyuanzhongai/android/PhoneUpUserinfo.vue +1251 -1251
  261. package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
  262. package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
  263. package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
  264. package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
  265. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  266. package/src/filiale/xinkang/pc/CheckSearchUser.vue +1026 -1026
  267. package/src/filiale/xinkang/pc/DefectListWeixiu.vue +475 -475
  268. package/src/filiale/xinkang/pc/NewCheckpaper.vue +57 -72
  269. package/src/filiale/xinkang/pc/PaperList.vue +25 -10
  270. package/src/filiale/xinliansihui/android/AndroidDefectDeal.vue +701 -0
  271. package/src/filiale/xinliansihui/android/AppInstallationMaterial.vue +866 -0
  272. package/src/filiale/xinliansihui/android.js +9 -0
  273. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +496 -496
  274. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2865 -2865
  275. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  276. package/src/filiale/yangchunboneng/pc/DefectListNew.vue +576 -576
  277. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +2774 -2774
  278. package/src/filiale/yongzhou/android/SafecheckUserInfo.vue +776 -776
  279. package/src/filiale/yuansheng/android/SafecheckOrderV.vue +2758 -2758
  280. package/src/filiale/yuansheng/android/SafecheckUserInfo.vue +797 -797
  281. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  282. package/src/filiale/yuansheng/pc/DefectListNew.vue +524 -524
  283. package/src/filiale/yuansheng/pc/NewCheckpaper.vue +1371 -1371
  284. package/src/filiale/yuansheng/pc/checkmsg.vue +464 -464
  285. package/src/filiale/yunchengminsheng/android/DailyworkloadQuery.vue +491 -491
  286. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1509 -1509
  287. package/src/filiale/yunchengminsheng/android/PhoneSellInfo.vue +113 -113
  288. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +1270 -1270
  289. package/src/filiale/yunchengminsheng/android/SafecheckUserInfo.vue +785 -785
  290. package/src/filiale/yunchengminsheng/android.js +15 -15
  291. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  292. package/src/filiale/yunchengminsheng/pc.js +15 -14
  293. package/src/filiale/zhongsheng/android/BuyRecords.vue +122 -122
  294. package/src/filiale/zhongsheng/android/SafecheckOrderV.vue +2461 -2461
  295. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +690 -690
  296. package/src/filiale/zhongsheng/pc/DefectListWeixiu.vue +514 -514
  297. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +1322 -1322
  298. package/src/filiale/zhongyi/android/SafecheckOrderV.vue +2431 -2431
  299. package/src/filiale/zhongyi/pc/DefectListNew.vue +514 -514
  300. package/src/filiale/zhoukou/android/SafecheckOrderV.vue +2502 -2502
  301. package/src/filiale/zhoukou/android/SafecheckUserInfo.vue +588 -588
  302. package/src/main.js +32 -33
  303. package/src/safecheck-android.js +4 -0
  304. package/src/safecheck.js +924 -918
@@ -0,0 +1,2347 @@
1
+ <template>
2
+ <div id="savebut" class="no-close row android-repair-order" style="background-color: #f9f9f9">
3
+ <div class="col-sm-12 col-xs-12" >
4
+ <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
5
+ <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
6
+ v-if="$index < number+1 && $index < faultshow.number" >
7
+ <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
8
+ <span class="spanboder">{{row.header}}</span>
9
+ <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
10
+ <p></p>
11
+ </li>
12
+ <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
13
+ <route name='repair' :reuse="false"></route>
14
+ </div>
15
+ <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
16
+ v-if="$index > number && $index < faultshow.number ">
17
+ <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
18
+ <span class="spanboder">{{row.header}}</span>
19
+ <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
20
+ <p></p>
21
+ </li>
22
+ <div class="col-sm-12 col-xs-12 repair-bg" v-if="actionEnabled ">
23
+ <div class="auto select-overspread form-horizontal repair-bg " style="padding-bottom:5px;">
24
+ <div class="bq-parent">
25
+ <blockquote class="blockquote">
26
+ <p>安检上传</p>
27
+ </blockquote>
28
+ </div>
29
+ <div class="panel panel-default auto repair-info-content">
30
+ <div class="panel-body ">
31
+ <div class="row auto">
32
+ <!--<div class="col-xs-12 col-sm-12 col-md-12" :style="timeSet(this.isneedDate)?'':'display:none'">-->
33
+ <!--<label>请输入超期原因:</label><br/>-->
34
+ <!--<textarea style="width: 100%;" v-model=""></textarea>-->
35
+ <!--</div>-->
36
+ <div class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
37
+ <div class="col-xs-3 col-sm-3 col-md-3" v-if="parentPage=='CurrentCreate'">
38
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="save('temp')">
39
+ 临时保存
40
+ </button>
41
+ </div>
42
+ <div class="col-xs-3 col-sm-3 col-md-3">
43
+ <button class="col-sm-3 btn btn-primary" @click="save('finish')">
44
+ 本地缓存
45
+ </button>
46
+ </div>
47
+ <div class="col-xs-3 col-sm-3 col-md-3">
48
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
49
+ 上传
50
+ </button>
51
+ </div>
52
+ <div v-if="show_torepair">
53
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="showmod">
54
+ 转维修
55
+ </button>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </ul>
64
+ </div>
65
+ <modal :show.sync="showModal2" :backdrop="false" style="font-size: 15px">
66
+ <div slot="modal-header" class="modal-header upuserinfo_sel">
67
+ <h4 class="modal-title">
68
+ 转维修
69
+ </h4>
70
+ </div>
71
+ <div slot="modal-body" class="modal-body">
72
+ <div class="row">
73
+ <ol style="border: 1px solid green;padding: 15px 0 15px 20px">
74
+ <li v-for="row in repairDefect.data" >{{row}}</li>
75
+ </ol>
76
+ </div>
77
+ <div class="row" style="margin-top: 10px">
78
+ <label class="font_normal_body">派发类型</label>
79
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
80
+ :options='dispatchTypeOptions' placeholder='派发类型'
81
+ close-on-select>
82
+ </v-select>
83
+ </div>
84
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
85
+ <label class="font_normal_body">维&ensp;修&ensp;员</label>
86
+ <v-select
87
+ :value.sync="selectData.f_repairman"
88
+ :value-single="true"
89
+ :options='repairers'
90
+ placeholder='请选择维修员'
91
+ close-on-select></v-select>
92
+ </div>
93
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
94
+ <label class="font_normal_body">站&ensp;&ensp;&ensp;&ensp;点</label>
95
+ <right-tree
96
+ islist
97
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
98
+ @re-res="getSiteRes"></right-tree>
99
+ </div>
100
+ <!--<div class="row" style="margin-top: 10px">
101
+ <label class="font_normal_body">报修类型</label>
102
+ <v-select :value.sync="selectData.f_repairtype"
103
+ class="select select_list"
104
+ :value-single="true"
105
+ :options='repairTypeOptions'
106
+ close-on-select>
107
+ </v-select>
108
+ </div>-->
109
+ <div class="row" style="margin-top: 10px">
110
+ <label class="font_normal_body" >备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
111
+ <div class="btn-group" style="width:60%">
112
+ <textarea style="width:100%;height: 100px" v-model="selectData.f_remarks"></textarea>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
117
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="rectification">转维修</button>
118
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel1">取消</button>
119
+ </div>
120
+ </modal>
121
+ </div>
122
+ </template>
123
+
124
+ <script>
125
+ import Vue from 'vue'
126
+ import * as Util from '../../Util'
127
+ import { HttpResetClass } from 'vue-client'
128
+ import co from 'co'
129
+ import $ from "jquery";
130
+ let loadParamGem = async function (self) {
131
+ await self.$LoadParams.loadParam()
132
+ }
133
+
134
+ export default {
135
+ title: '安检单',
136
+ props: ['f_plan_id', 'item', 'role','parentPage','source'],
137
+ // props: ['f_plan_id', 'role'],
138
+ data() {
139
+ return {
140
+ //测试数据
141
+ // f_plan_id:'',
142
+ // role:'inspect',
143
+ // item:{"f_approved_time":null,"f_user_family_remarks":null,"f_street":"测试街道","f_repair_approved_time":null,
144
+ // "f_user_type":null,"f_approved_by":null,"f_card_id":null,"f_remark":null,"f_building":"1","f_batch_number":null,
145
+ // "f_idnumber":null,"f_state":"未检","id":"0EFE0EE2-B155-46F9-8DE0-38C022664A4D","f_complete":null,"f_check_state":null,"f_last_check_state":"拒检",
146
+ // "f_user_inhome_time":null,"f_residential_area":"测试小区1","version":1,"f_processid":null,"f_last_check_result":"{\"result\":\"正常\",\"data\":[]}",
147
+ // "f_area":null,"f_usegas":null,"f_user_phone":"16566546548","f_slice_area":"营业大区","f_approved":"未审核","f_upload_state":"未传","f_user_check_time":null,
148
+ // "f_unit":"1","f_user_spare_phone":null,"f_last_check_date":null,"f_userproperties":null,"f_userfile_id":null,"f_prearranged_date":null,"f_filialeid":"453",
149
+ // "f_branch":null,"f_orgstr":null,"f_plan_year":2020,"f_orgid":null,"f_approval_notified":null,"f_plan_month":4,"f_approved_note":null,"f_filialeids":null,
150
+ // "f_floor":"1","f_flag":null,"f_repair_approved_note":null,"f_userinfo_code":"00000002","f_create_time":"2020-05-10 18:56:03","f_meter_no":"","f_station":null,
151
+ // "f_repair_approved":"未审核","f_no_checkplan":"有计划安检","f_plan_name":"关于","f_repair_approved_by":null,"f_room":"1","f_office":null,"f_comments":null,
152
+ // "f_address":"兰山街道泰盛小区1栋1单元1层1室","id_back":null,"f_userinfoid":"2","f_subcompany":null,"f_addressid":null,"f_user_phone2":null,
153
+ // "f_user_equipment_remarks":null,"f_plan_id":"0819ea6707ad4d9dad217c06a87f4227","f_user_name":"用户二",
154
+ // "f_plan_meters":[{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2119035714","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":3,"f_maker":null,"f_metergasnums":0,"f_total_fee":100,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663},{"f_weizhi":null,"f_flow_direction":"右表","f_metertitles":"","f_prior_reading":0,"f_meter_no":"2118999901","f_collection_type":"按金额","f_aliasname":"先锋系统结算物联网表","f_meter_type":"物联网表","version":1,"f_maker":null,"f_metergasnums":0,"f_total_fee":0,"f_diaphgram_size":"G2.5","f_total_gas":0,"id":18663}]
155
+ // },
156
+
157
+ data: {
158
+ f_devices: [],
159
+ f_defect_content:'',
160
+ f_recording1_path:'',
161
+ f_visit_number:'',
162
+ f_remark:''
163
+ },
164
+ imgsnum:this.$appdata.getSingleValue('安检总体照片数量') ? this.$appdata.getSingleValue('安检总体照片数量'):1, // 安检整体照片默认必须拍1张
165
+ updateuserphone:false, //安检时是否更新用户电话
166
+ updatemetermodel:false, //安检时是否更新表型号
167
+ updatemeternumber:false, //安检时是否更新表号
168
+ beforephone:'',
169
+ isUpload:false,
170
+ show_torepair: false,
171
+ onlySave:true, //判断保存还是保存并上传
172
+ livedispose:'',
173
+ refuseinspection:'', // 拒捡拍照是否提示
174
+ notencountered:'', // 到访不遇拍照是否提示
175
+ startClick:false, //开始安检按钮是否可点击
176
+ isStrat: false, //是否开始安检
177
+ checkResult:{},//查询结果
178
+ newcheckResult:{},
179
+ repairDefect : {
180
+ result: '正常',
181
+ data: []
182
+ },
183
+ rowCodata:{},
184
+ repairers: [],
185
+ timer: null,
186
+ showModal: false,
187
+ showModal2:false,
188
+ pic_to_be_viewed: '',
189
+ showBack:true,
190
+ devices: [],
191
+ f_devices : [],
192
+ isToRepair:false,
193
+ clickBack:true, //是否点击返回按钮
194
+ isSafeCheckToRepair:false,//是否转维修
195
+ Url:this.$androidUtil.getProxyUrl(),
196
+ detail:{},
197
+ defectDevice:{},
198
+ user:{},
199
+ is_has_jingweidu: this.$appdata.getSingleValue('照片水印加经纬度') || 'false',
200
+ dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'},{label: '派发给站点', value: '派发给站点'}],
201
+ selectData:{
202
+ dispatchType:'派发给维修员',
203
+ f_repairman:'',
204
+ f_remarks:'',
205
+ f_repairtype:'整改'
206
+ },
207
+ model: { //转维修数据
208
+ // 一次派单
209
+ serviceacitivity: [{
210
+ f_service_acitivity_type: '派单'
211
+ }],
212
+ f_source:'安检',
213
+ f_service_id: '',
214
+ f_contact_phone: '',
215
+ f_meetunit: '',
216
+ f_phone: '',
217
+ f_user_name: '',
218
+ f_address: '',
219
+ f_repair_date: Util.toStandardTimeString(),
220
+ f_card_id: '',
221
+ // f_department: '', 站点选择
222
+ f_reciever:'',
223
+ f_remarks: '',
224
+ f_user_type: '',
225
+ f_area: '',
226
+ f_unit_name:'',
227
+ f_street: '',
228
+ f_residential_area: '',
229
+ f_building: '',
230
+ f_unit: '',
231
+ f_floor: '',
232
+ f_room: '',
233
+ aState: null,
234
+ f_repairtype: '',
235
+ f_repairitems:{},
236
+ },
237
+ repairitems:[],
238
+ meading:'转站点',
239
+ config: {
240
+ "燃气表":{
241
+ "checkmust":true,
242
+ "index":1,
243
+ "items":{
244
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
245
+ "表号":{"index":1,"type":"string","readonly":false},
246
+ "气表型号":{"index":2,"type":"string","readonly":true},
247
+ "气表品牌":{"index":3,"type":"string","readonly":true},
248
+ "进气方向":{"index":4,"type":"string","readonly":false},
249
+ "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
250
+ "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
251
+ "累购气量":{"index":7,"type":"number","readonly":true},
252
+ "累购金额":{"index":7,"type":"number","readonly":true},
253
+ "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
254
+ "已用金额":{"index":8,"type":"number","checkmust": false},
255
+ "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
256
+ //显示屏数 --实际剩余气量
257
+ "剩余金额":{"index":9,"type":"number","checkmust": false},
258
+ "气量异常差值":{"index":10,"type":"number","readonly": true},
259
+ "金额异常差值":{"index":10,"type":"number","readonly": true},
260
+ "系统余额":{"index":10,"type":"number","readonly": true},
261
+ "表封号":{"index":11,"type":"string"},
262
+ "燃气表照片":{"index":12,"type":"picture","checkmust": false}
263
+ }
264
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
265
+ },
266
+ // "燃气表2":{
267
+ // "checkmust":true,
268
+ // "index":2,src
269
+ // "items":{
270
+ // "燃气表照片":{"index":1,"type":"picture"},
271
+ // "表品牌":{"index":2,"type":"string","readonly":true},
272
+ // "表号":{"index":3,"type":"string","readonly":true},
273
+ // "表封号":{"index":4,"type":"number","readonly":true},
274
+ // "表型号":{"index":5,"type":"string","readonly":true},
275
+ // "位置":{"index":6,"type":"string","readonly":true},
276
+ // "表底数":{"index":7,"type":"number","readonly":true},
277
+ // "累购气量":{"index":8,"type":"number","readonly":true},
278
+ // "累购金额":{"index":8,"type":"number","readonly":true}
279
+ // }
280
+ // }
281
+ },
282
+ // 维修项
283
+ isneedDate:'',
284
+ routeShow:true,
285
+ number:0,
286
+ shupingshow:false,
287
+ pipeline: {},
288
+ details: [],
289
+ ids: '',
290
+ savevalid: {
291
+ uservalid: false,
292
+ doorvalid: true,
293
+ changetable: false
294
+ },
295
+ doordetails: {},
296
+ devicedetails: {},
297
+ cookdetails: {},
298
+ componentName: 'safecheck-userinfo',
299
+ header:'客户信息',
300
+ tabs: [
301
+ // 参数全部设置成空,在ready时,等model处理好了,再添加
302
+ {
303
+ header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
304
+ },
305
+ {
306
+ header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
307
+ }
308
+ ],
309
+ faultshow:{
310
+ number : 8
311
+ } // 控制 故障汇总 在 菜单里显示与否,
312
+ }
313
+ },
314
+ computed: {
315
+ actionEnabled: {
316
+ get() {
317
+ return this.role == 'inspect'
318
+ }
319
+ }
320
+ },
321
+ methods: {
322
+ //查询用户设备,表具是否快到期
323
+ getUserDevice(){
324
+ // 获取到期提醒天数,默认30天
325
+ var days = this.$appdata.getSingleValue('到期提醒天数') || 30
326
+ let http = new HttpResetClass()
327
+ http.load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy', {data: {
328
+ items: 'f_expire_date,f_devices_type',
329
+ tablename: 't_devices',
330
+ condition: `f_userinfo_id='${this.item.f_userinfo_id}' `,
331
+ orderitem: 'id'
332
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
333
+ const now = new Date(); // 当前时间
334
+ for (let i = 0; i < res.data.length; i++) {
335
+ // 判断f_expire_date和当前时间的关系
336
+ if(res.data[i].f_expire_date) {
337
+ const expireDate = new Date(res.data[i].f_expire_date);
338
+ const timeDiff = expireDate.getTime() - now.getTime();
339
+ const diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));
340
+ // 如果设备已过期
341
+ if(diffDays < 0) {
342
+ this.$showMessage(`设备${res.data[i].f_devices_type}已过期,请及时处理`);
343
+ }
344
+ // 如果设备在设定天数内到期,则提醒用户
345
+ else if(diffDays <= days) {
346
+ this.$showMessage(`设备${res.data[i].f_devices_type}将在${diffDays}天后到期,请及时处理`);
347
+ }
348
+ }
349
+ }
350
+ })
351
+ },
352
+ getUserfiles(){
353
+ // 获取到期提醒天数,默认30天
354
+ var days = this.$appdata.getSingleValue('到期提醒天数') || 30
355
+ let http = new HttpResetClass()
356
+ http.load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy', {data: {
357
+ items: 'f_scrap_date',
358
+ tablename: 't_userfiles',
359
+ condition: `f_userinfo_id='${this.item.f_userinfo_id}' and f_table_state in ('正常','停用','待开通') `,
360
+ orderitem: 'f_scrap_date'
361
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
362
+ const now = new Date(); // 当前时间
363
+ for (let i = 0; i < res.data.length; i++) {
364
+ // 判断f_scrap_date和当前时间的关系
365
+ if(res.data[i].f_scrap_date) {
366
+ const expireDate = new Date(res.data[i].f_scrap_date);
367
+ const timeDiff = expireDate.getTime() - now.getTime();
368
+ const diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));
369
+ // 如果表具已过期
370
+ if(diffDays < 0) {
371
+ this.$showMessage(`表具已过期,请及时处理`);
372
+ }
373
+ // 如果表具在设定天数内到期,则提醒用户
374
+ else if(diffDays <= days) {
375
+ this.$showMessage(`表具将在${diffDays}天后到期,请及时处理`);
376
+ }
377
+ }
378
+ }
379
+ })
380
+ },
381
+ showmod(){
382
+ // this.saveNoclick()
383
+ let errString = this.errorVerify()
384
+ if (errString) {
385
+ console.log(errString)
386
+ console.log('Vue.android',Vue.android)
387
+ console.log('this.isUpload',this.isUpload)
388
+ if (Vue.android){
389
+ this.$showMessage(errString)
390
+ }
391
+ return
392
+ }
393
+ //清空转维修列表重新进行数据组织
394
+ this.repairDefect = {
395
+ result: '正常',
396
+ data: []
397
+ }
398
+ this.data.f_complete = '已完成'
399
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
400
+ this.assemblyCodata()
401
+ if(this.repairDefect.result=='正常'){
402
+ this.$showMessage("未发现有选择需要转维修的隐患,请检查填写的数据。如需转维修请在处理方式中选择 '转维修' !")
403
+ return
404
+ }
405
+ console.log("准备保存!")
406
+ this.disableTimer()
407
+ this.getEmp()
408
+ this.showModal2=true
409
+ },
410
+ cancel1(){
411
+ this.showModal2=false
412
+ this.selectData={
413
+ dispatchType:'派发给维修员',
414
+ f_repairman:'',
415
+ f_remarks:'',
416
+ f_repairtype:'整改'
417
+ }
418
+ },
419
+ getSiteRes(obj) {
420
+ console.log('siteRes ---> ')
421
+ console.log(obj)
422
+ if(obj.resids[0]){
423
+ this.selectData.f_meetunit = obj.res.join('.')
424
+ this.selectData.f_reciever = obj.resids.join('.')
425
+ this.selectData.f_outlets = obj.res[obj.res.length - 1]
426
+ }else {
427
+ this.selectData.f_meetunit = ''
428
+ this.selectData.f_reciever = ''
429
+ this.selectData.f_outlets = ''
430
+ }
431
+ },
432
+ rectification(){
433
+ if(this.selectData.dispatchType){
434
+ if(this.selectData.dispatchType=='派发给站点'){
435
+ if(!this.selectData.f_reciever){
436
+ this.$showMessage('请选择部门!')
437
+ return
438
+ }
439
+ }else{
440
+ if(!this.selectData.f_repairman){
441
+ this.$showMessage('请选择维修员!')
442
+ return
443
+ }
444
+ }
445
+ }else {
446
+ this.$showMessage('请选择派发类型!')
447
+ return
448
+ }
449
+ /*if(!this.selectData.f_repairtype){
450
+ this.$showMessage('请选择报修类型!')
451
+ return
452
+ }*/
453
+ //关闭录音
454
+ this.closely(false) // 保存本地,不删除录音文件暂停录音
455
+ let act={}
456
+ let toRepair=''
457
+ if(this.selectData.dispatchType=='派发给站点'){
458
+ act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
459
+ toRepair=null
460
+ }else{
461
+ console.log('派发给维修员---------'+this.selectData.f_repairman)
462
+ act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
463
+ toRepair='一级派单'
464
+ }
465
+ let repData={
466
+ toRepair:toRepair,
467
+ activity:act,
468
+ deps:Vue.user.deps,
469
+ depids:Vue.user.depids,
470
+ f_remarks:this.selectData.f_remarks,
471
+ f_repairtype:this.selectData.f_repairtype,
472
+ f_attendant: Vue.user.name,
473
+ loginUser:{name:Vue.user.name,ename:Vue.user.id,id:Vue.user.id},
474
+ }
475
+ this.rowCodata.istoRepair='转维修'
476
+ this.rowCodata.repData=repData
477
+ console.log("当前组装好的转维修数据--"+JSON.stringify(repData))
478
+ this.onlySave = false
479
+ this.save()
480
+ },
481
+ // 获取维修员
482
+ getEmp() {
483
+ this.repairers=[]
484
+ let per = {source: 'this.getRights().where(row.getType()==$user$).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${Vue.user.id}`}
485
+ let http = new HttpResetClass()
486
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: per}, {resolveMsg: null, rejectMsg: null}).then((res) => {
487
+ res.data.forEach((user)=>{
488
+ this.repairers.push({label:user.name, value: user.name})
489
+ })
490
+ })
491
+ },
492
+ closely(isdelete){
493
+ try {
494
+ var startOrStopAudioClipStr;
495
+ if (isdelete===true) {
496
+ //tag
497
+ startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止并删除录音') //停止并删除录音
498
+ }else {
499
+ //tag
500
+ startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止录音') //停止录音
501
+ }
502
+ if (startOrStopAudioClipStr.code == 200) {
503
+ //tag
504
+ return true;
505
+ }else {
506
+ return false;
507
+ }
508
+ } catch (e) {
509
+ console.error("关闭录音方法异常")
510
+ console.error(e)
511
+ return false;
512
+ }
513
+ },
514
+ // 录音方法
515
+ record() {
516
+ //tag
517
+ if (this.role != 'inspect') {
518
+ if (this.data.f_recording1_path != '') {
519
+ window.location = "/rs/file"+this.data.f_recording1_path
520
+ }
521
+ } else {
522
+ //tag
523
+ let fileName
524
+ if (!this.data.f_recording1_path) {
525
+ fileName = Util.guid() + '.amr'
526
+ } else {
527
+ fileName = Util.getFileName(this.data.f_recording1_path)
528
+ }
529
+ //HostApp.__this__ = this
530
+ /*调用无限制录音模块*/
531
+ let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
532
+ //tag
533
+ if (startOrStopState.code == 200) {
534
+ this.data.f_recording1_path = "file:///storage/emulated/0/Download/safecheck/" + fileName
535
+ //tag
536
+ return true;
537
+ }else {
538
+ return false;
539
+ }
540
+ }
541
+ },
542
+ saveNoclick() {
543
+ // 禁用点击事件
544
+ $("#savebut").addClass("noclickbut");
545
+ //tag
546
+
547
+ // 5秒后启用点击事件
548
+ setTimeout(function(){
549
+ $("#savebut").removeClass("noclickbut");
550
+ },5000);
551
+ },
552
+ timeSet(val){
553
+ if (!val){
554
+ return
555
+ }
556
+ let time =new Date(val).getTime()
557
+ let time2=new Date().getTime()
558
+ if (time2>time) {
559
+ return true
560
+ }
561
+ },
562
+ imgback(val,isheader){
563
+ if(val && this.routeShow && isheader){
564
+ return require('../../../assets/xiangxia1.png')
565
+ }else{
566
+ return require('../../../assets/xiangyou1.png')
567
+ }
568
+ },
569
+ changediv(val){
570
+ return val
571
+ },
572
+ // 选择tab
573
+ tabSelect (item,number) {
574
+ this.header = item.header
575
+ // 处理关闭/显示 内容
576
+ if(this.number == number && !this.routeShow ){
577
+ this.routeShow = true
578
+ }else if(this.number == number && this.routeShow){
579
+ this.routeShow = false
580
+ }else if(this.number != item.complete){
581
+ this.routeShow = true
582
+ }
583
+ this.number = number
584
+ this.componentName = item.complete
585
+ if(item.complete == 'safecheck-devices'){
586
+ if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
587
+ this.data['device' + item.number].push({})
588
+ }
589
+ let idx=this.data['device' + item.number].length - 1
590
+ let itemprops = {
591
+ config:this.config,
592
+ device:this.devices[item.number-1],
593
+ idx:idx,
594
+ role:'inspect'
595
+ }
596
+ if(this.routeShow){
597
+ this.$goto(item.complete, itemprops, 'repair')
598
+ }
599
+ }else{
600
+ if(this.routeShow){
601
+ this.$goto(item.complete, {userinfo:this.data}, 'repair')
602
+ }
603
+ }
604
+ this.shupingshow = true
605
+ },
606
+ // 给组件添加参数
607
+ getImgPath() {
608
+ for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
609
+ this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
610
+ }
611
+ this.ids = this.ids.substring(0, this.ids.length - 1)
612
+ if(this.ids){
613
+ this.getImgGen();
614
+ }
615
+ },
616
+ getImgGen(){
617
+ let http = new HttpResetClass()
618
+ http.load('POST','api/af-safecheck/sql/safe_singleTable_OrderBy', {data: {
619
+ items: '*',
620
+ tablename: 't_files',
621
+ condition: `id in (${this.ids})`,
622
+ orderitem: 'id'
623
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
624
+ for (let i = 0; i < res.data.length; i++) {
625
+ for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
626
+ if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
627
+ this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
628
+ }
629
+ }
630
+
631
+ }
632
+ })
633
+ },
634
+
635
+ sortDetails(){
636
+ for (let i = 0; i < this.details.length; i++) {
637
+ if (this.details[i].details.length) {
638
+ for (let j = 0; j < this.details[i].details.length; j++) {
639
+ if (this.details[i].details[j].f_type === 'a') {
640
+ this.doordetails = {details: this.details[i].details}
641
+ break
642
+ }
643
+ if (this.details[i].details[j].f_type === 'b') {
644
+ this.devicedetails = {details: this.details[i].details}
645
+ break
646
+ }
647
+ if (this.details[i].details[j].f_type === 'c') {
648
+ this.cookdetails = {details: this.details[i].details}
649
+ break
650
+ }
651
+ }
652
+ }
653
+ }
654
+ },
655
+ // 复制数据
656
+ back () {
657
+ let _this = this
658
+ if(this.issee){
659
+ _this.$back()
660
+ return
661
+ }
662
+ this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
663
+ if (res === 'confirm') {
664
+ this.closely()
665
+ _this.$back()
666
+ }
667
+ })
668
+ },
669
+ confirm(){
670
+ this.$dispatch('confirm')
671
+ },
672
+ tick() {
673
+ this.timer = null
674
+ this.data.f_offsite_time = Util.toStandardTimeString()
675
+ this.timer = window.setTimeout(this.tick, 1000)
676
+ },
677
+ getRepairState() {
678
+ let repaired = true
679
+ this.data.f_defects.forEach((defect) => {
680
+ repaired = repaired & (defect.f_ratification == '已处理')
681
+ })
682
+ return repaired
683
+ },
684
+ verifyRepairDefects() {
685
+ this.data.f_repair_date = Util.toStandardTimeString()
686
+ this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
687
+ },
688
+ errorVerify() {
689
+ let hasError = this.verifyState()
690
+ if(hasError)
691
+ return hasError
692
+
693
+ if(this.data.f_entry_status != '入户' || this.data.f_usegas == '未用气')
694
+ return null
695
+ hasError = this.verifyUser()
696
+ if(hasError)
697
+ return hasError
698
+ hasError = this.verifyDevices()
699
+ if(hasError)
700
+ return hasError
701
+ hasError = this.verifyFeedback()
702
+ if(hasError)
703
+ return hasError
704
+ },
705
+ verifyState() {
706
+ if(Vue.android && this.data.f_usegas == '未用气' && (this.data.f_nongasuser_path == Vue.nopic || this.data.f_nongasuser_path == ''))
707
+ return '未使用天然气则必须拍照'
708
+ if(Vue.android && this.data.f_entry_status == '到访不遇' && this.notencountered && (this.data.f_noanswer_path == Vue.nopic || this.data.f_noanswer_path == ''))
709
+ return '到访不遇必须拍照'
710
+ if(Vue.android && this.data.f_entry_status == '拒检' && this.refuseinspection && (this.data.f_rejectcheck_path == Vue.nopic || this.data.f_rejectcheck_path == ''))
711
+ return '拒捡必须拍照'
712
+ },
713
+ verifyUser() {
714
+ let prefix = '用户基本信息:'
715
+ if(Util.required(this.data.f_user_name))
716
+ return prefix + '用户名必须输入'
717
+ if (!this.data.f_user_phone){
718
+ return '请输入正确的电话号码'
719
+ }
720
+ if(!(/^\d{11}$/.test(this.data.f_user_phone.trim()))) {
721
+ return '请输入正确的电话号码'
722
+ }
723
+ // if(Util.required(this.data.f_residential_area))
724
+ // return prefix + '小区名称必须输入'
725
+ // if(Util.required(this.data.f_address))
726
+ // return prefix + '地址必须输入'
727
+ },
728
+ verifyDevices() {
729
+ for (let dev in this.config) {
730
+ if (this.config[dev].checkmust == true) {
731
+ let error = true
732
+ for(let device in this.data) {
733
+ if (device.startsWith("device")) {
734
+ for (let item in this.data[device]) {
735
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
736
+ error = false
737
+ }
738
+ }
739
+ }
740
+ }
741
+ if (error) {
742
+ return "请检查" + dev
743
+ }
744
+ }
745
+ }
746
+
747
+ for (let dev in this.config) {
748
+ for(let device in this.data) {
749
+ if (device.startsWith("device")) {
750
+ for (let item in this.data[device]) {
751
+ //检查每一条安检结果
752
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
753
+ for (let i in this.data[device][item].f_items) {
754
+ for (let it in this.config[dev].items) {
755
+ if (it == this.data[device][item].f_items[i].f_item_name) {
756
+ let check=false
757
+ if (!this.data[device][item].f_items[i].f_item_value){
758
+ check=true
759
+ }else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)){
760
+ if (this.data[device][item].f_items[i].f_item_value.length==0){
761
+ check=true
762
+ }
763
+ }
764
+
765
+ if(this.config[dev].items[it].type=='picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path){
766
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
767
+ }
768
+ if (this.config[dev].items[it].type !='picture' && this.config[dev].items[it].checkmust == true && check) {
769
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
770
+ }
771
+ }
772
+ }
773
+ //检查安检下拉结果
774
+ if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
775
+ if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
776
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + this.data[device][item].f_items[i].f_item_value + "选中必须拍照"
777
+ }
778
+ }
779
+ }
780
+ }
781
+ }
782
+ }
783
+ }
784
+ }
785
+ },
786
+ verifyFeedback() {
787
+ let prefix = '拍照签名:'
788
+ if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length < this.imgsnum) && this.data.f_entry_status == '入户')
789
+ return prefix + `必须有${this.imgsnum}安检总体照片`
790
+ if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
791
+ return prefix + '必须有用户签名'
792
+ if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
793
+ return prefix + '下发安检通知书则必须给通知书拍照'
794
+ if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
795
+ return prefix + '请填写拉黑原因'
796
+ if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
797
+ return prefix + '请选择服务评价'
798
+ },
799
+ getAllDefect() {
800
+ let checkResults = {
801
+ result: '正常',
802
+ data: []
803
+ }
804
+ let value = ''
805
+ let codata = JSON.parse(JSON.stringify(this.data))
806
+ codata.f_devices = []
807
+ this.f_devices = []
808
+ for (let device in codata) {
809
+ let f_device_type
810
+ if (device.startsWith("device")) {
811
+ let hasOther = ''
812
+ let otherValue = null
813
+ for (let item in codata[device]) {
814
+ if(typeof codata[device][item]=='function'){
815
+ continue
816
+ }
817
+ codata[device][item].f_create_time = Util.toStandardTimeString()
818
+ if (codata[device].length > 1) {
819
+ let j = Number.parseInt(item) + 1
820
+ f_device_type = `${codata[device][item].f_device_type}${j}`
821
+ } else {
822
+ f_device_type = codata[device][item].f_device_type
823
+ }
824
+ if(item == 'sum' || item == 'removeEmpty'){
825
+ continue
826
+ }
827
+ for (let i = 0; i < codata[device][item].f_items.length ; i++) {
828
+ //tag
829
+ if(i == 'sum' || i == 'removeEmpty'){
830
+ continue
831
+ }
832
+ var items = codata[device][item].f_items[i]
833
+ items.f_create_time = Util.toStandardTimeString()
834
+ items.f_item_lists = []
835
+ if (items.type == 'selector') {
836
+ items.selected = []
837
+ } else if (items.type == 'inputSelector') {
838
+ items.selected = ''
839
+ }
840
+ //遍历配置项 将所选隐患项的配置信息放入保存的数据中
841
+ let f_is_defect //是否是隐患
842
+ let f_defect_level //是否是隐患
843
+ let f_item_name = items.f_item_name
844
+ let f_item_value
845
+ if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
846
+ for (let i in items.f_item_value) {
847
+ if(typeof items.f_item_value[i]=='function'){
848
+ continue
849
+ }
850
+ let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
851
+ //tag)
852
+ for (let k in configItems.options) {
853
+ if(typeof configItems.options[k]=='function'){
854
+ continue
855
+ }
856
+ //tag)
857
+ if (items.f_item_value[i] === configItems.options[k].data) {
858
+
859
+ f_is_defect = configItems.options[k].isdefect
860
+ f_item_value = items.f_item_value[i]
861
+ f_defect_level = configItems.options[k].level
862
+ if (f_is_defect) {
863
+ if (checkResults.result !== '有隐患') {
864
+ checkResults.result = '有隐患'
865
+ }
866
+ console.log('items'+items)
867
+ if(items.f_deal_dispose=='报修'){
868
+ console.log("检测到需要转维修++++++++++++")
869
+ this.repairDefect.result='未处理'
870
+ this.repairDefect.data.push(`${f_item_name} : ${f_item_value}`)
871
+ }
872
+ if (!this.checkResult.hasOwnProperty(f_device_type+'-'+f_item_name)) {
873
+ this.checkResult[f_device_type+'-'+f_item_name] = []
874
+ }
875
+ this.checkResult[f_device_type+'-'+f_item_name].push(f_item_value)
876
+
877
+ }
878
+
879
+ let items_list = {
880
+ f_is_defect: f_is_defect,
881
+ f_item_value: f_item_value,
882
+ f_defect_level: f_defect_level,
883
+ f_is_eliminate: null,
884
+ f_create_time: Util.toStandardTimeString()
885
+ }
886
+ if (!items.f_item_lists) {
887
+ items.f_item_lists = []
888
+ if (JSON.stringify(items_list) !== '{}') {
889
+ items.f_item_lists.push(items_list)
890
+ }
891
+ } else {
892
+ if (JSON.stringify(items_list) !== '{}') {
893
+ items.f_item_lists.push(items_list)
894
+ }
895
+ }
896
+ }
897
+ }
898
+ }
899
+ } else {
900
+ let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
901
+ f_is_defect = items.f_is_defect
902
+ f_defect_level = items.level
903
+ f_item_value = items.f_item_value
904
+ let items_list = {
905
+ f_is_defect: f_is_defect,
906
+ f_item_value: f_item_value,
907
+ f_defect_level: f_defect_level,
908
+ f_create_time: Util.toStandardTimeString()
909
+ }
910
+ if (f_is_defect && f_item_value) {
911
+ items.f_is_defect = true
912
+ if (checkResults.result !== '有隐患') {
913
+ checkResults.result = '有隐患'
914
+ }
915
+ if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
916
+ this.checkResult[items.f_item_name] = []
917
+ }
918
+
919
+ this.checkResult[items.f_item_name].push(f_item_value)
920
+
921
+ }
922
+ if (!items.f_item_lists) {
923
+ items.f_item_lists = []
924
+ if (JSON.stringify(items_list) != '{}') {
925
+ items.f_item_lists.push(items_list)
926
+ }
927
+ } else {
928
+ if (JSON.stringify(items_list) != '{}') {
929
+ items.f_item_lists.push(items_list)
930
+ }
931
+ }
932
+ }
933
+ if (hasOther !== '' && otherValue !== null) {
934
+ this.checkResult[hasOther].push(otherValue)
935
+ hasOther = ''
936
+ otherValue = null
937
+ }
938
+ items.f_item_value = ''
939
+ }
940
+ this.f_devices.push(codata[device][item])
941
+ }
942
+ }
943
+ }
944
+ if (this.checkResult) {
945
+ for (let key in this.checkResult) {
946
+ if(typeof this.checkResult[key]=='function'){
947
+ continue
948
+ }
949
+ // 上次安检结果数据组织
950
+ let temp = {}
951
+ temp[key] = this.checkResult[key].join(',')
952
+ checkResults.data.push(temp)
953
+ }
954
+ this.checkResult = {}
955
+ }
956
+ if (checkResults.data.length > 0) {
957
+ let msg = ''
958
+ for (let a = 0; a < checkResults.data.length; a++) {
959
+ for (let datumKey in checkResults.data[a]) {
960
+ msg += datumKey + ':' + checkResults.data[a][datumKey] + ';'
961
+ }
962
+ }
963
+ this.data.f_defect_text = msg
964
+ codata.f_defect_text = msg
965
+ }
966
+ codata.f_defect_content = JSON.stringify(checkResults)
967
+ this.data.f_defect_content = JSON.stringify(checkResults)
968
+ return codata
969
+ },
970
+ uploadCheckPaper(){
971
+ this.saveNoclick()
972
+ this.closely(false) // 保存本地,不删除录音文件停止录音
973
+ let errString = this.errorVerify()
974
+ if (errString) {
975
+ if (Vue.android){
976
+ this.$showMessage(errString)
977
+ }
978
+ return
979
+ } else {
980
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
981
+ this.$set('data.f_upload_time', Util.toStandardTimeString())
982
+ this.$set('data.f_upload_date', Util.toStandardTimeString())
983
+ this.data.f_complete = '已完成'
984
+ this.disableTimer()
985
+ }
986
+ this.onlySave = false
987
+ this.assemblyCodata()
988
+ if (this.repairDefect.result != '正常') {
989
+ return this.$showMessage('有隐患的处理方式为转维修,请点击转维修')
990
+ }
991
+ this.save()
992
+
993
+ },
994
+ //将数据组装提出
995
+ assemblyCodata(){
996
+ let codata = this.getAllDefect()
997
+ console.log(`codata类型 开始组装codeta数据-->${typeof codata}`)
998
+ console.log(`codata内容-->${JSON.stringify(codata)}`)
999
+ for (let key in codata) {
1000
+ if (key.startsWith("device")) {
1001
+ console.log('this.data.' + key + JSON.stringify(codata[key]))
1002
+ codata[key] = []
1003
+ }
1004
+ }
1005
+ codata.f_devices = this.f_devices
1006
+ this.rowCodata=codata
1007
+ },
1008
+ save(type) {
1009
+ if (type == 'temp' || type == 'finish') {
1010
+ this.assemblyCodata()
1011
+ }
1012
+ //禁用事件
1013
+ this.saveNoclick()
1014
+ if(type == 'temp'){
1015
+ this.data.f_complete = '未完成'
1016
+ this.rowCodata.f_complete = '未完成'
1017
+ // 关闭录音方法
1018
+ this.closely(true) //临时保存,删除录音文件并暂停录音
1019
+ this.disableTimer()
1020
+ }else {
1021
+ // 关闭录音方法
1022
+ this.closely(false) // 保存本地,不删除录音文件暂停录音
1023
+ let errString = this.errorVerify()
1024
+ if (errString) {
1025
+ if (Vue.android){
1026
+ this.$showMessage(errString)
1027
+ }
1028
+ return
1029
+ } else {
1030
+ this.data.f_complete = '已完成'
1031
+ this.rowCodata.f_complete = '已完成'
1032
+ this.$set('data.f_offsite_time', Util.toStandardTimeString())
1033
+ this.$set('rowCodata.f_offsite_time', Util.toStandardTimeString())
1034
+ this.disableTimer()
1035
+ }
1036
+ }
1037
+ if(this.data.f_blacklist!='是'){
1038
+ delete this.data.f_blocking_cause
1039
+ }
1040
+ if (this.data.f_entry_status == '入户') {
1041
+ this.data.f_rejectchecks_path = []
1042
+ this.data.f_rejectcheck_path = null
1043
+ this.data.f_rejectcheck1_path = null
1044
+ this.data.f_rejectcheck2_path = null
1045
+ this.data.f_noanswers_path=[]
1046
+ this.data.f_noanswer_path = null
1047
+ this.data.f_noanswer1_path = null
1048
+ this.data.f_noanswer2_path = null
1049
+ }else if (this.data.f_entry_status == '到访不遇') {
1050
+ this.data.f_rejectchecks_path = []
1051
+ this.data.f_rejectcheck_path = null
1052
+ this.data.f_rejectcheck1_path = null
1053
+ this.data.f_rejectcheck2_path = null
1054
+ }else if (this.data.f_entry_status == '拒检') {
1055
+ this.data.f_noanswers_path=[]
1056
+ this.data.f_noanswer_path = null
1057
+ this.data.f_noanswer1_path = null
1058
+ this.data.f_noanswer2_path = null
1059
+ }
1060
+ let codata = this.rowCodata
1061
+ for (let key in codata) {
1062
+ if (key.startsWith("device")) {
1063
+ codata[key] = []
1064
+ }
1065
+ }
1066
+ codata.f_complete = this.data.f_complete
1067
+ if (Vue.android) {
1068
+ let value = this.$androidUtil.path({
1069
+ alias: 'getUserinfomation',
1070
+ data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
1071
+ })
1072
+ if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') && this.item.f_no_checkplan != '打回') {
1073
+ codata.f_devices = this.f_devices
1074
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1075
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1076
+ } else {
1077
+ this.rowCodata = codata
1078
+ }
1079
+ let param = {
1080
+ f_check_item_id: this.data.f_check_item_id,
1081
+ f_checker_id: this.data.f_checker_id,
1082
+ f_upload_state: '未传',
1083
+ row: this.rowCodata
1084
+ }
1085
+ let paramStr = JSON.stringify(param)
1086
+ // 多长截断一次
1087
+ let subLength = 800
1088
+ for (let i = 0; i < paramStr.length; i += subLength) {
1089
+ HostApp.param_cache(paramStr.slice(i, i + subLength))
1090
+ }
1091
+ HostApp.__this__ = this
1092
+ HostApp.syncLogic({
1093
+ // logic别名,key必须为logic
1094
+ 'logic': 'SafeSaveNoPaper',
1095
+ // 回调执行方法名,key必须为callback
1096
+ 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1097
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1098
+ // 执行回调方法传入key为backresult
1099
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1100
+ 'backresult': 1
1101
+ })
1102
+ } else {
1103
+ codata.f_devices = this.f_devices
1104
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1105
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1106
+ } else {
1107
+ this.rowCodata = codata
1108
+ }
1109
+ let param = {
1110
+ f_check_item_id: this.data.f_check_item_id,
1111
+ f_checker_id: this.data.f_checker_id,
1112
+ row: this.rowCodata
1113
+ }
1114
+ let paramStr = JSON.stringify(param)
1115
+ // 多长截断一次
1116
+ let subLength = 800
1117
+ for (let i = 0; i < paramStr.length; i += subLength) {
1118
+ HostApp.param_cache(paramStr.slice(i, i + subLength))
1119
+ }
1120
+ HostApp.__this__ = this
1121
+ HostApp.syncLogic({
1122
+ // logic别名,key必须为logic
1123
+ 'logic': '保存安检单信息',
1124
+ // 回调执行方法名,key必须为callback
1125
+ 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1126
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1127
+ // 执行回调方法传入key为backresult
1128
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1129
+ 'backresult': 1
1130
+ })
1131
+ }
1132
+
1133
+ } else {
1134
+ let value = this.$androidUtil.path({
1135
+ alias: 'getUserinfomation',
1136
+ data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan in ('无计划安检','复检')"}
1137
+ })
1138
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1139
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1140
+ } else {
1141
+ this.rowCodata = codata
1142
+ }
1143
+ if ((this.item.f_no_checkplan == '无计划安检' || this.item.f_no_checkplan == '复检') && value.data.length == 0 && this.item.f_no_checkplan != '打回') {
1144
+ this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1145
+ f_check_item_id: this.data.f_check_item_id,
1146
+ f_checker_id: this.data.f_checker_id,
1147
+ f_upload_state: '未传',
1148
+ row: this.rowCodata
1149
+ }).then((res) => {
1150
+ if (res.data.code == 200) {
1151
+ //保存devices
1152
+ this.$androidUtil.bzLogic('getPaperInfo', {
1153
+ f_check_item_id: this.data.f_check_item_id
1154
+ }).then((res) => {
1155
+ if (res.data.code == 200) {
1156
+ let f_paper_id = res.data.data[0].id
1157
+ for (let device of this.f_devices) {
1158
+ device.f_paper_id = f_paper_id
1159
+ this.$androidUtil.bzLogic('saveDevice', {
1160
+ row: device
1161
+ }).then((ret) => {
1162
+ if (ret.code != 200) {
1163
+ //TODO 失败后处理
1164
+ this.$showMessage("保存失败!")
1165
+ return false
1166
+ }
1167
+ })
1168
+ }
1169
+ }
1170
+ })
1171
+ this.$showMessage('保存成功!')
1172
+ return true
1173
+ } else {
1174
+ this.$showMessage("保存失败!")
1175
+ return false
1176
+ }
1177
+ })
1178
+ }
1179
+ else {
1180
+ this.$androidUtil.bzLogic('保存安检单信息', {
1181
+ f_check_item_id: this.data.f_check_item_id,
1182
+ f_checker_id: this.data.f_checker_id,
1183
+ row: this.rowCodata
1184
+ }).then((res) => {
1185
+ if (res.data.code == 200) {
1186
+ //保存devices
1187
+ this.$androidUtil.bzLogic('getPaperInfo', {
1188
+ f_check_item_id: this.data.f_check_item_id
1189
+ }).then((res) => {
1190
+ if (res.data.code == 200) {
1191
+
1192
+ let f_paper_id = res.data.data[0].id
1193
+ for (let device of this.f_devices) {
1194
+ device.f_paper_id = f_paper_id
1195
+ this.$androidUtil.bzLogic('saveDevice', {
1196
+ row: device
1197
+ }).then((ret) => {
1198
+ if (ret.code != 200) {
1199
+ //TODO 失败后处理
1200
+ this.$showMessage("保存失败!")
1201
+ return false
1202
+ }
1203
+ })
1204
+ }
1205
+ }
1206
+ })
1207
+ this.$showMessage('保存成功!')
1208
+ return true
1209
+ } else {
1210
+ this.$showMessage("保存失败!")
1211
+ return false
1212
+ }
1213
+ })
1214
+ }
1215
+ }
1216
+ },
1217
+ runSyncLogic(logic,callback,backresult){
1218
+ HostApp.runSyncLogic({
1219
+ // logic别名,key必须为logic
1220
+ 'logic': logic,
1221
+ // 回调执行方法名,key必须为callback
1222
+ 'callback': callback,
1223
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1224
+ // 执行回调方法传入key为backresult
1225
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1226
+ 'backresult':backresult
1227
+ })
1228
+ },
1229
+ logicWithHint(logic,data,callback,backresult){
1230
+ HostApp.logicWithHint({
1231
+ // logic别名,key必须为logic
1232
+ 'logic': logic,
1233
+ // 回调执行方法名,key必须为callback
1234
+ 'callback': callback,
1235
+ // logic执行需要的业务参数
1236
+ 'data': data,
1237
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1238
+ // 执行回调方法传入key为backresult
1239
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1240
+ 'backresult':backresult
1241
+ })
1242
+ },
1243
+ saveCallBack(jo){
1244
+ if(jo.state == 'ok'){
1245
+ let res = JSON.parse(jo.result)
1246
+ if(res.code == 200){
1247
+ if(!this.onlySave){
1248
+ let codata = this.getAllDefect()
1249
+ //获取微信推送内容
1250
+ // let WxResult = this.getWeixin(codata)
1251
+ let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1252
+ f_check_item_id: this.data.f_check_item_id
1253
+ })
1254
+ //如果是转维修上传,则不做校验,上传完成后自动转维修
1255
+ if(!this.isToRepair){
1256
+ if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1257
+ if(!this.isSafeCheckToRepair){
1258
+
1259
+ }
1260
+ }
1261
+ }
1262
+ for (let key in codata){
1263
+ if(key.startsWith("device")){
1264
+ codata[key] = []
1265
+ }
1266
+ }
1267
+ codata.f_devices = this.f_devices
1268
+ if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1269
+ this.rowCodata = Object.assign({},this.rowCodata,codata)
1270
+ } else {
1271
+ this.rowCodata = codata
1272
+ }
1273
+ let param = {
1274
+ f_check_item_id: this.data.f_check_item_id,
1275
+ f_checker_id: this.data.f_checker_id,
1276
+ row: this.rowCodata
1277
+ }
1278
+ let paramStr = JSON.stringify(param)
1279
+ // 多长截断一次
1280
+ let subLength = 800
1281
+ for (let i = 0; i < paramStr.length; i += subLength) {
1282
+ HostApp.param_cache(paramStr.slice(i, i + subLength))
1283
+ }
1284
+ HostApp.__this__ = this
1285
+ HostApp.syncLogic({
1286
+ // logic别名,key必须为logic
1287
+ 'logic': '上传安检信息',
1288
+ // 回调执行方法名,key必须为callback
1289
+ 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1290
+ // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1291
+ // 执行回调方法传入key为backresult
1292
+ // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1293
+ 'backresult': 1
1294
+ })
1295
+ }else{
1296
+ this.$showMessage('保存成功!')
1297
+ if(this.clickBack){
1298
+ this.isStrat = false
1299
+ this.$dispatch('confirm')
1300
+ }
1301
+ }
1302
+ }else{
1303
+ this.$showMessage('保存失败!')
1304
+ return
1305
+ }
1306
+ }else{
1307
+ this.$showMessage('服务器内部错误,保存失败!')
1308
+ return
1309
+ }
1310
+ },
1311
+ uploadCallBack(jo){
1312
+ //获取微信推送路径
1313
+ let url = ""
1314
+ if(Vue.config.safecheck != undefined) {
1315
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1316
+ if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1317
+ url = Vue.config.safecheck.ApproveConfig.weixinurl
1318
+ }
1319
+ }
1320
+ }
1321
+ if(jo.state == 'ok'){
1322
+ let res = JSON.parse(jo.result)
1323
+ if(res.code == 200){
1324
+ this.$set('data.f_paper_id', res.id)
1325
+ this.isStrat=false
1326
+ if(url != ""){
1327
+ this.$resetpost(`${url}`,{data:WxResult})
1328
+ }
1329
+ // 预约安检回更预约安检单
1330
+ if(this.data.isupdateplanitem == 'true' && this.data.f_SafeToRepair_id){
1331
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/ReturnSafeService`, {data:{
1332
+ f_paper_id:this.data.f_paper_id,
1333
+ f_service_id:this.data.f_SafeToRepair_id
1334
+ }
1335
+ }).then((ret) => {
1336
+ if(ret.data && ret.data.code == 200){
1337
+ console.log('预约安检回更成功')
1338
+ }
1339
+ })
1340
+ }
1341
+ if(this.isToRepair){
1342
+ for (let device in this.data){
1343
+ if(device.startsWith("device")){
1344
+ this.data[device] = []
1345
+ if(res.data.length > 0){
1346
+ for(let i in res.data[0].f_devices){
1347
+ if(this.data[device].length > 0){
1348
+ if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1349
+ this.data[device].push(res.data[0].f_devices[i])
1350
+ res.data[0].f_devices.splice(i,1)
1351
+ }
1352
+ }else{
1353
+ this.data[device].push(res.data[0].f_devices[i])
1354
+ res.data[0].f_devices.splice(i,1)
1355
+ }
1356
+ }
1357
+ }
1358
+ }
1359
+ }
1360
+ this.todo()
1361
+ }else{
1362
+ this.$showMessage('上传成功!')
1363
+ this.$dispatch('confirm')
1364
+ }
1365
+ }else if(res.code == 309){
1366
+ this.$showMessage('该安检单已作废!')
1367
+ this.$dispatch('confirm')
1368
+ }else if(res.code == 310){
1369
+ this.$showMessage('该单已成功入户,请勿重复上传!')
1370
+ this.$dispatch('confirm')
1371
+ }else if(res.code == 311){
1372
+ this.$showMessage('该单已上传,请勿重复上传!')
1373
+ this.$dispatch('confirm')
1374
+ }else if(res.code == 710){
1375
+ this.$showMessage('上传照片失败,请检查网络是否正常!'+res.msg)
1376
+ this.onlySave = true
1377
+ return
1378
+ }else if(res.code == 711){
1379
+ this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1380
+ this.onlySave = true
1381
+ return
1382
+ }else if(res.code == 712){
1383
+ this.$showMessage('网络异常,请缓存后重新尝试上传,多次上传失败请联系管理员!')
1384
+ this.onlySave = true
1385
+ return
1386
+ }
1387
+ else{
1388
+ this.$showMessage('上传失败!')
1389
+ }
1390
+ }else {
1391
+ this.$showMessage('网络异常,上传失败!')
1392
+ }
1393
+ this.onlySave = true
1394
+ },
1395
+ safecheckToRepairCallBack(jo){
1396
+ //获取微信推送路径
1397
+ if(jo.state == 'ok'){
1398
+ let res = JSON.parse(jo.result)
1399
+ if(res.code == 200){
1400
+ if(res.data.code == 200){
1401
+ this.$showMessage('上传并转维修成功!')
1402
+ }else{
1403
+ this.$showMessage('上传并转维修成功,回写安检单失败!')
1404
+ }
1405
+ this.$dispatch('confirm')
1406
+ }else{
1407
+ this.$showMessage('上传失败!')
1408
+ this.onlySave = true
1409
+ }
1410
+ }else{
1411
+ this.$showMessage('网络异常,上传失败!')
1412
+ this.onlySave = true
1413
+ }
1414
+ },
1415
+ todo(){
1416
+ let gen = getRepairParam(this)
1417
+ co(gen)
1418
+ },
1419
+ undo(){
1420
+ this.showCheckToRepair = !this.showCheckToRepair
1421
+ this.model.serviceacitivity[0].f_reciever = ''
1422
+ this.model.serviceacitivity[0].f_meetunit = ''
1423
+ this.model.f_repairtype = ''
1424
+ this.meading = '转站点'
1425
+ },
1426
+ disableTimer() {
1427
+ if(this.timer) {
1428
+ window.clearTimeout(this.timer)
1429
+ this.timer = null
1430
+ }
1431
+ },
1432
+ loaded(paper) {
1433
+ if(!paper.hasOwnProperty('id')) {
1434
+ this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1435
+ this.init()
1436
+ } else {
1437
+ Util.booleanFilter(paper)
1438
+ HostApp.__this__.$set('data', paper)
1439
+ HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1440
+ // 如果打回重检则重新计时
1441
+ if(HostApp.__this__.role == 'inspect'
1442
+ && HostApp.__this__.data.f_approved
1443
+ && HostApp.__this__.data.f_approved == '打回') {
1444
+ HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1445
+ HostApp.__this__.tick()
1446
+ }
1447
+ }
1448
+ HostApp.__callback__ = null
1449
+ HostApp.__this__ = null
1450
+ },
1451
+ S4() {
1452
+ return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1453
+ },
1454
+ extend(initalObj, finalObj) {
1455
+ var obj = finalObj || {};
1456
+ for (var i in initalObj) {
1457
+ var prop = initalObj[i];
1458
+
1459
+ // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1460
+ if (prop === obj) {
1461
+ continue;
1462
+ }
1463
+
1464
+ if (typeof prop === 'object') {
1465
+ if (obj[i]) {
1466
+ this.extend(obj[i], prop)
1467
+ } else {
1468
+ obj[i] = prop;
1469
+ }
1470
+ }
1471
+ }
1472
+ return obj;
1473
+ },
1474
+ putDevices() {
1475
+ this.$set('data.approve', "true")
1476
+ this.$set('data.writeback', "false")
1477
+ if (Vue.config.safecheck != undefined) {
1478
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1479
+ if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1480
+ this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1481
+ }
1482
+ if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1483
+ this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1484
+ }
1485
+ if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1486
+ this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1487
+ }
1488
+ if (Vue.config.safecheck.ApproveConfig.showtorepair) {
1489
+ this.show_torepair = Vue.config.safecheck.ApproveConfig.showtorepair
1490
+ }
1491
+ if (Vue.config.safecheck.ApproveConfig.notencountered != undefined){
1492
+ this.notencountered = Vue.config.safecheck.ApproveConfig.notencountered
1493
+ }
1494
+ if (Vue.config.safecheck.ApproveConfig.refuseinspection != undefined){
1495
+ this.refuseinspection = Vue.config.safecheck.ApproveConfig.refuseinspection
1496
+ }
1497
+ }
1498
+ if(this.item.f_user_type == '非民用'){
1499
+ // 非民用
1500
+ if (Vue.config.safecheck.DevicesSetConfig != undefined){
1501
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined || !Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]) {
1502
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1503
+ }else{
1504
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1505
+ }
1506
+ }
1507
+
1508
+ }else{
1509
+ // 民用户
1510
+ if (Vue.config.safecheck.DevicesConfig != undefined){
1511
+ if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined || !Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]]) {
1512
+ this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1513
+ }else{
1514
+ this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type?this.item.f_user_type:'民用']])
1515
+ }
1516
+ }
1517
+ }
1518
+
1519
+ }
1520
+ // 预留设备项位置
1521
+ for (let i in this.config) {
1522
+ this.tabs.splice(1,0,null)
1523
+ }
1524
+ //遍历安检项配置
1525
+ for (let i in this.config) {
1526
+ //取得安检项索引值
1527
+ let n = this.config[i].index
1528
+ this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1529
+ this.$set('data.' + 'device' + n, [])
1530
+ this.tabs[n] = {
1531
+ header: i,
1532
+ complete: 'safecheck-devices',
1533
+ class: 'repair-details-class',
1534
+ number: n
1535
+ }
1536
+
1537
+ if(this.config[i].quantity && this.config[i].quantity >0){
1538
+ let items = []
1539
+ for (let it in this.config[i].items) {
1540
+ //赋值下拉选项
1541
+ if (this.config[i].items[it].type == 'selector') {
1542
+ for (let op in this.config[i].items[it].options) {
1543
+ if (this.config[i].items[it].options[op].isdefault == true) {
1544
+ items.push({
1545
+ f_defect_level: this.config[i].items[it].options[op].level,
1546
+ f_is_defect: this.config[i].items[it].options[op].isdefect,
1547
+ f_item_name: it,
1548
+ f_item_value: this.config[i].items[it].options[op].data,
1549
+ f_path: "",
1550
+ type: "selector"
1551
+ })
1552
+ }
1553
+ }
1554
+ }
1555
+ }
1556
+ for(let q =0;q<this.config[i].quantity;q++) {
1557
+ this.data['device' + n].push(
1558
+ {f_device_type: i, f_items:items}
1559
+ )
1560
+ }
1561
+ }
1562
+ n = n + 1
1563
+ }
1564
+ this.faultshow.number = this.tabs.length
1565
+ },
1566
+ init () {
1567
+ // 无计划安检是否回更待办计划
1568
+ this.data.isupdateplanitem = this.$appdata.getSingleValue('在线安检回更有计划') ? this.$appdata.getSingleValue('在线安检回更有计划') : 'false'
1569
+ // 预约安检单工单编号
1570
+ this.data.f_ins_stop_date = this.item.f_plan_meters[0].f_ins_stop_date
1571
+ this.data.f_SafeToRepair_id = this.item.f_service_id
1572
+ this.data.ename = Vue.user.ename
1573
+ this.data.f_outlets = Vue.user.f_parentname
1574
+ this.data.f_meetunit = Vue.user.orgpathnames
1575
+ this.data.orgpathstr = Vue.user.orgpathstr
1576
+ this.data.f_check_item_id = this.item.id
1577
+ this.data.f_check_plan_id = this.f_plan_id
1578
+ this.data.f_checker_id = Vue.user.id
1579
+ this.data.f_checker_name = Vue.user.name
1580
+ this.data.f_check_type = this.item.f_user_type
1581
+ this.data.f_safecheck_type = this.item.f_safecheck_type
1582
+ this.data.f_subcompany = this.item.f_subcompany
1583
+ this.data.f_approved = this.item.f_approvedf_read_instructions
1584
+ this.data.f_repair_approved = this.item.f_repair_approved
1585
+ this.data.f_no_checkplan = this.item.f_no_checkplan
1586
+ this.data.f_approved = this.item.f_approved
1587
+ this.data.f_filialeid = this.item.f_filialeid || Vue.user.orgid
1588
+ this.data.f_orgstr = this.item.f_orgstr
1589
+ this.data.version = this.item.version
1590
+ this.data.f_check_version=this.item.f_check_version
1591
+ this.$set('data.f_meters', this.item.f_plan_meters)
1592
+ this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1593
+ // 安检状态
1594
+ this.$set('data.f_entry_status', '入户')
1595
+ this.$set('data.f_safe_type', '年度安检')
1596
+ this.$set('data.f_usegas', '已使用')
1597
+ this.$set('data.f_state',this.item.f_state)
1598
+ this.$set('data.f_source', this.source?this.source:'安检')
1599
+ this.$set('data.f_other_checker_name', '')
1600
+ // 用户信息
1601
+ this.$set('data.f_user_name', this.item.f_user_name)
1602
+ this.$set('data.f_rent_phone', this.item.f_rent_phone)
1603
+ this.$set('data.f_user_phone', this.item.f_user_phone || this.item.f_plan_meters[0].f_user_phone)
1604
+ this.$set('data.f_userinfoid', this.item.f_userinfoid)
1605
+ this.$set('data.f_address', this.item.f_address)
1606
+ this.$set('data.f_card_id', this.item.f_card_id)
1607
+ this.$set('data.f_slice_area', this.item.f_slice_area)
1608
+ this.$set('data.f_recheck_id', this.item.id)
1609
+ this.$set('rowCodata.f_recheck_id', this.item.id)
1610
+ this.$set('data.f_street', this.item.f_street)
1611
+ this.$set('data.f_room', this.item.f_room)
1612
+ this.$set('data.f_building', this.item.f_building)
1613
+ this.$set('data.f_unit', this.item.f_unit)
1614
+ this.$set('data.f_floor', this.item.f_floor)
1615
+ this.$set('data.f_residential_area' , this.item.f_residential_area)
1616
+ this.$set('data.f_idnumber', this.item.f_idnumber)
1617
+ this.$set('data.f_comments', this.item.f_comments)
1618
+ this.$set('data.f_userproperties', this.item.f_userproperties)
1619
+ this.$set('data.f_client_evaluation', '满意')
1620
+ this.$set('data.f_userfiles_id', this.item.f_plan_meters[0].f_userfiles_id)
1621
+ this.$set('data.f_valve_state', this.item.f_plan_meters[0].f_valve_state)
1622
+ this.$set('data.f_off_valve_reason', this.item.f_plan_meters[0].f_off_valve_reason)
1623
+ // 处置方式
1624
+ this.$set('data.f_gas_guidelines', true)
1625
+ this.$set('data.f_safety_warning', true)
1626
+ this.$set('data.f_gas_manual', true)
1627
+ this.$set('data.f_no_gas_device', false)
1628
+ this.$set('data.f_close_valve', false)
1629
+ this.$set('data.f_unload_battery', false)
1630
+ if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检' ) {
1631
+ this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1632
+ }
1633
+ if(this.item.f_no_checkplan == '复检'){
1634
+ this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1635
+ }
1636
+ if(this.item.f_plan_meters) {
1637
+ for (let de in this.devices) {
1638
+ if(typeof this.devices[de]=='function'){
1639
+ continue
1640
+ }
1641
+ this.$set('data.device' + this.devices[de].n, [])
1642
+ for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1643
+ if (this.item.f_plan_meters[i].f_meter_type) {
1644
+ this.data.f_meter_type=this.item.f_plan_meters[i].f_meter_type
1645
+ //tag)
1646
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') >= 0) {
1647
+ this.data['device' + this.devices[de].n].push({
1648
+ f_device_type: "燃气表",
1649
+ f_items: [
1650
+ {
1651
+ f_defect_level: null,
1652
+ f_device_id: "",
1653
+ f_is_defect: "",
1654
+ f_item_name: "表号",
1655
+ f_item_value: this.item.f_plan_meters[i].f_meter_no,
1656
+ f_path: "",
1657
+ type: "number"
1658
+ },
1659
+ {
1660
+ f_defect_level: null,
1661
+ f_device_id: "",
1662
+ f_is_defect: "",
1663
+ f_item_name: "气表型号",
1664
+ f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1665
+ f_path: "",
1666
+ type: "string"
1667
+ },
1668
+ {
1669
+ f_defect_level: null,
1670
+ f_device_id: "",
1671
+ f_is_defect: "",
1672
+ f_item_name: "气表品牌",
1673
+ f_item_value: this.item.f_plan_meters[i].f_aliasname,
1674
+ f_path: "",
1675
+ type: "string"
1676
+ },
1677
+ {
1678
+ f_defect_level: null,
1679
+ f_device_id: "",
1680
+ f_is_defect: "",
1681
+ f_item_name: "进气方向",
1682
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1683
+ f_path: "",
1684
+ type: "string"
1685
+ },
1686
+ {
1687
+ f_defect_level: null,
1688
+ f_device_id: "",
1689
+ f_is_defect: "",
1690
+ f_item_name: "上期表读数",
1691
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1692
+ f_path: "",
1693
+ type: "number"
1694
+ },
1695
+ {
1696
+ f_defect_level: null,
1697
+ f_device_id: "",
1698
+ f_is_defect: "",
1699
+ f_item_name: "表封号",
1700
+ f_item_value: this.item.f_plan_meters[i].f_metertitles,
1701
+ f_path: "",
1702
+ type: "string"
1703
+ }
1704
+ ]
1705
+ })
1706
+ }
1707
+ else if (this.devices[de].device == "燃气表") {
1708
+ this.data['device' + this.devices[de].n].push({
1709
+ f_device_type: "燃气表",
1710
+ f_items: [
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_meter_no,
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: "string"
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_aliasname,
1735
+ f_path: "",
1736
+ type: "string"
1737
+ },
1738
+ {
1739
+ f_defect_level: null,
1740
+ f_device_id: "",
1741
+ f_is_defect: "",
1742
+ f_item_name: "进气方向",
1743
+ f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1744
+ f_path: "",
1745
+ type: "string"
1746
+ },
1747
+ {
1748
+ f_defect_level: null,
1749
+ f_device_id: "",
1750
+ f_is_defect: "",
1751
+ f_item_name: "上期表读数",
1752
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1753
+ f_path: "",
1754
+ type: "number"
1755
+ },
1756
+ {
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_metertitles,
1762
+ f_path: "",
1763
+ type: "string"
1764
+ }
1765
+ ]
1766
+ })
1767
+ }
1768
+ if(this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('物联网表') >= 0){
1769
+ // 物联网表:表号不可修改
1770
+ if (this.config && this.config['燃气表'] && this.config['燃气表']['items'] && this.config['燃气表']['items']['表号']) {
1771
+ this.config['燃气表']['items']['表号'].readonly = true
1772
+ }
1773
+ this.data['device' + this.devices[de].n].forEach(device => {
1774
+ if (!this.data.f_collection_type) {
1775
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1776
+ delete this.config['燃气表']['items']['累购气量']
1777
+ delete this.config['燃气表']['items']['已用金额']
1778
+ delete this.config['燃气表']['items']['剩余气量']
1779
+ delete this.config['燃气表']['items']['气量异常差值']
1780
+ delete this.config['燃气表']['items']['金额异常差值']
1781
+ device.f_items.push(
1782
+ {
1783
+ f_defect_level: null,
1784
+ f_device_id: "",
1785
+ f_is_defect: "",
1786
+ f_item_name: "初始表底",
1787
+ isshow: true,
1788
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
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_total_fee,
1798
+ f_path: "",
1799
+ type: "number"
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_meter_base,
1807
+ f_path: "",
1808
+ type: "number"
1809
+ },
1810
+ {
1811
+ f_defect_level: null,
1812
+ f_device_id: "",
1813
+ f_is_defect: "",
1814
+ f_item_name: "剩余金额",
1815
+ f_item_value: '',
1816
+ f_path: "",
1817
+ type: "number"
1818
+ },
1819
+ {
1820
+ f_defect_level: null,
1821
+ f_device_id: "",
1822
+ f_is_defect: "",
1823
+ f_item_name: "系统余额",
1824
+ f_item_value: this.item.f_plan_meters[i].f_balance_amount,
1825
+ f_path: "",
1826
+ type: "number"
1827
+ }
1828
+ )
1829
+ }
1830
+ })
1831
+ } else if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
1832
+ this.data['device' + this.devices[de].n].forEach(device => {
1833
+ /*
1834
+ "累购气量":{"index":8,"type":"number","readonly":true},
1835
+ "累购金额":{"index":8,"type":"number","readonly":true},
1836
+ "字轮读数":{"index":9,"type":"number","checkmust": true},
1837
+ "已用金额":{"index":9,"type":"number","checkmust": true},
1838
+ "剩余气量":{"index":10,"type":"number","checkmust": true},
1839
+ "剩余金额":{"index":10,"type":"number","checkmust": true},
1840
+ "气量异常差值":{"index":11,"type":"number","readonly": true},
1841
+ "金额异常差值":{"index":11,"type":"number","readonly": true}
1842
+ */
1843
+ if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
1844
+ if (!this.data.f_collection_type) {
1845
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1846
+ delete this.config['燃气表']['items']['累购气量']
1847
+ delete this.config['燃气表']['items']['已用气量']
1848
+ delete this.config['燃气表']['items']['剩余气量']
1849
+ delete this.config['燃气表']['items']['气量异常差值']
1850
+ delete this.config['燃气表']['items']['系统余额']
1851
+ device.f_items.push(
1852
+ {
1853
+ f_defect_level: null,
1854
+ f_device_id: "",
1855
+ f_is_defect: "",
1856
+ f_item_name: "初始表底",
1857
+ isshow: false,
1858
+ f_item_value: '',
1859
+ f_path: "",
1860
+ type: "number"
1861
+ },
1862
+ {
1863
+ f_defect_level: null,
1864
+ f_device_id: "",
1865
+ f_is_defect: "",
1866
+ f_item_name: "累购金额",
1867
+ f_item_value: this.item.f_plan_meters[i].f_total_fee,
1868
+ f_path: "",
1869
+ type: "number"
1870
+ },
1871
+ {
1872
+ f_defect_level: null,
1873
+ f_device_id: "",
1874
+ f_is_defect: "",
1875
+ f_item_name: "已用金额",
1876
+ f_item_value: null,
1877
+ f_path: "",
1878
+ type: "number"
1879
+ },
1880
+ {
1881
+ f_defect_level: null,
1882
+ f_device_id: "",
1883
+ f_is_defect: "",
1884
+ f_item_name: "剩余金额",
1885
+ f_item_value: null,
1886
+ f_path: "",
1887
+ type: "number"
1888
+ },
1889
+ {
1890
+ f_defect_level: null,
1891
+ f_device_id: "",
1892
+ f_is_defect: "",
1893
+ f_item_name: "金额异常差值",
1894
+ f_item_value: null,
1895
+ f_path: "",
1896
+ type: "number"
1897
+ }
1898
+ )
1899
+ }
1900
+ } else
1901
+ if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
1902
+ if (!this.data.f_collection_type) {
1903
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1904
+ delete this.config['燃气表']['items']['累购金额']
1905
+ delete this.config['燃气表']['items']['已用金额']
1906
+ delete this.config['燃气表']['items']['剩余金额']
1907
+ delete this.config['燃气表']['items']['金额异常差值']
1908
+ delete this.config['燃气表']['items']['系统余额']
1909
+ device.f_items.push(
1910
+ {
1911
+ f_defect_level: null,
1912
+ f_device_id: "",
1913
+ f_is_defect: "",
1914
+ f_item_name: "初始表底",
1915
+ isshow: true,
1916
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
1917
+ f_path: "",
1918
+ type: "number"
1919
+ },
1920
+ {
1921
+ f_defect_level: null,
1922
+ f_device_id: "",
1923
+ f_is_defect: "",
1924
+ f_item_name: "累购气量",
1925
+ f_item_value: this.item.f_plan_meters[i].f_total_gas,
1926
+ f_path: "",
1927
+ type: "number"
1928
+ },
1929
+ {
1930
+ f_defect_level: null,
1931
+ f_device_id: "",
1932
+ f_is_defect: "",
1933
+ f_item_name: "已用气量",
1934
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
1935
+ f_path: "",
1936
+ type: "number"
1937
+ },
1938
+ {
1939
+ f_defect_level: null,
1940
+ f_device_id: "",
1941
+ f_is_defect: "",
1942
+ f_item_name: "剩余气量",
1943
+ f_item_value: "",
1944
+ f_path: "",
1945
+ type: "number"
1946
+ },
1947
+ {
1948
+ f_defect_level: null,
1949
+ f_device_id: "",
1950
+ f_is_defect: "",
1951
+ f_item_name: "气量异常差值",
1952
+ f_item_value: null,
1953
+ f_path: "",
1954
+ type: "number"
1955
+ }
1956
+ )
1957
+ }
1958
+ }
1959
+ })
1960
+ } else if(this.devices[de].device == "燃气表"){
1961
+ this.data['device' + this.devices[de].n].forEach(device => {
1962
+ if (!this.data.f_collection_type) {
1963
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1964
+ delete this.config['燃气表']['items']['累购金额']
1965
+ delete this.config['燃气表']['items']['已用金额']
1966
+ delete this.config['燃气表']['items']['剩余金额']
1967
+ delete this.config['燃气表']['items']['金额异常差值']
1968
+ delete this.config['燃气表']['items']['系统余额']
1969
+ device.f_items.push(
1970
+ {
1971
+ f_defect_level: null,
1972
+ f_device_id: "",
1973
+ f_is_defect: "",
1974
+ f_item_name: "初始表底",
1975
+ isshow: true,
1976
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
1977
+ f_path: "",
1978
+ type: "number"
1979
+ },
1980
+ {
1981
+ f_defect_level: null,
1982
+ f_device_id: "",
1983
+ f_is_defect: "",
1984
+ f_item_name: "累购气量",
1985
+ f_item_value: this.item.f_plan_meters[i].f_total_gas,
1986
+ f_path: "",
1987
+ type: "number"
1988
+ },
1989
+ {
1990
+ f_defect_level: null,
1991
+ f_device_id: "",
1992
+ f_is_defect: "",
1993
+ f_item_name: "已用气量",
1994
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
1995
+ f_path: "",
1996
+ type: "number"
1997
+ },
1998
+ {
1999
+ f_defect_level: null,
2000
+ f_device_id: "",
2001
+ f_is_defect: "",
2002
+ f_item_name: "剩余气量",
2003
+ f_item_value: '',
2004
+ f_path: "",
2005
+ type: "number"
2006
+ },
2007
+ {
2008
+ f_defect_level: null,
2009
+ f_device_id: "",
2010
+ f_is_defect: "",
2011
+ f_item_name: "气量异常差值",
2012
+ isshow:false,
2013
+ f_item_value: null,
2014
+ f_path: "",
2015
+ type: "number"
2016
+ }
2017
+ )
2018
+ }
2019
+ })
2020
+ }
2021
+ }
2022
+ }
2023
+ }
2024
+ }
2025
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2026
+ }
2027
+ },
2028
+ watch: {
2029
+ 'row' () {
2030
+ //tag
2031
+ this.copy()
2032
+ }
2033
+ },
2034
+ async ready () {
2035
+ //送气超期功能
2036
+ //await this.isoverDate()
2037
+ this.putDevices()
2038
+ //如果已检,则提取安检单
2039
+ if (this.item.f_state != '未检') {
2040
+ if (this.role == 'inspect' || this.role == 'androidview') {
2041
+ HostApp.__callback__ = this.loaded
2042
+ HostApp.__this__ = this
2043
+ let that = this
2044
+ let value = {}
2045
+ if (this.role == 'inspect') {
2046
+ let condition=` f_check_item_id ='${this.item.id}'`
2047
+ if (this.item.f_no_checkplan == '无计划安检') {
2048
+ condition += ` and f_no_checkplan = '无计划安检'`
2049
+ }
2050
+ value = this.$androidUtil.bzLogic('path_getPhoneCheckPaper', {condition: condition})
2051
+ } else {
2052
+ value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
2053
+ }
2054
+ Util.replaceFalse(value)
2055
+ if (value.data.length != 0) {
2056
+ that.$set('data', value.data[0])
2057
+ if (this.data.f_collection_type == '按气量') {
2058
+ delete this.config['燃气表']['items']['累购金额']
2059
+ delete this.config['燃气表']['items']['已用金额']
2060
+ delete this.config['燃气表']['items']['剩余金额']
2061
+ delete this.config['燃气表']['items']['金额异常差值']
2062
+ delete this.config['燃气表']['items']['系统余额']
2063
+ } else if (this.data.f_collection_type == '按金额') {
2064
+ delete this.config['燃气表']['items']['累购气量']
2065
+ delete this.config['燃气表']['items']['已用气量']
2066
+ delete this.config['燃气表']['items']['剩余气量']
2067
+ delete this.config['燃气表']['items']['气量异常差值']
2068
+ delete this.config['燃气表']['items']['系统余额']
2069
+ }
2070
+ //tag)
2071
+ if (value.data[0].f_devices) {
2072
+ for (let da in that.devices) {
2073
+ if(typeof that.devices[da]=='function'){
2074
+ continue
2075
+ }
2076
+ that.$set('data.device' + that.devices[da].n, [])
2077
+ }
2078
+ value.data[0].f_devices.forEach((item) => {
2079
+ for (let i in item.f_items) {
2080
+ if(typeof item.f_items[i]=='function'){
2081
+ continue
2082
+ }
2083
+ for (let de in that.config[item.f_device_type].items) {
2084
+ if(typeof that.config[item.f_device_type].items[de]=='function'){
2085
+ continue
2086
+ }
2087
+ if (item.f_items[i].f_item_name == de) {
2088
+ if (that.config[item.f_device_type].items[de].type == 'selector' || that.config[item.f_device_type].items[de].type == 'checkbox') {
2089
+ item.f_items[i].f_item_value = []
2090
+ } else {
2091
+ item.f_items[i].f_item_value = ''
2092
+ }
2093
+ }
2094
+ }
2095
+ for (let j in item.f_items[i].f_item_lists) {
2096
+ if(typeof item.f_items[i].f_item_lists[j]=='function'){
2097
+ continue
2098
+ }
2099
+ if (item.f_items[i].f_item_value instanceof Array) {
2100
+ item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
2101
+ } else {
2102
+ item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
2103
+ }
2104
+ }
2105
+
2106
+ }
2107
+ for (let de in that.devices) {
2108
+ if(typeof that.devices[de]=='function'){
2109
+ continue
2110
+ }
2111
+ if (that.devices[de].device == item.f_device_type) {
2112
+ that.data['device' + that.devices[de].n].push({
2113
+ f_device_type: item.f_device_type,
2114
+ f_items: item.f_items
2115
+ })
2116
+ //tag)
2117
+ }
2118
+ }
2119
+ })
2120
+ if (this.role == 'androidview') {
2121
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2122
+ Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
2123
+ Util.booleanFilter(that.data)
2124
+ }
2125
+ //tag)
2126
+ }
2127
+ } else {
2128
+ this.init()
2129
+ }
2130
+ if(this.parentPage && this.parentPage=='CurrentCreate'){
2131
+ let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2132
+ if (isRecodr) {
2133
+ if (isRecodr=='true') {
2134
+ this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2135
+ // 初始化录音
2136
+ let resse = this.record()
2137
+ }
2138
+ }
2139
+ }
2140
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2141
+ } else {
2142
+ let that = this
2143
+ let id
2144
+ if (this.role == 'view') {
2145
+ id = this.item.id
2146
+ }
2147
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2148
+ if (respanse.data.length != 0) {
2149
+ that.data = Object.assign(that.data,respanse.data[0])
2150
+ if(respanse.data[0].f_devices) {
2151
+ for (let da in that.devices) {
2152
+ that.$set('data.device' + that.devices[da].n, [])
2153
+ }
2154
+ respanse.data[0].f_devices.forEach((item) => {
2155
+ for (let de in that.devices) {
2156
+ if (that.devices[de].device == item.f_device_type) {
2157
+ that.data['device' + that.devices[de].n].push({
2158
+ f_device_type: item.f_device_type,
2159
+ f_items: item.f_items
2160
+ })
2161
+ }
2162
+ }
2163
+ })
2164
+ }
2165
+ Util.replaceFalse(that.data)
2166
+ Util.booleanFilter(that.data)
2167
+ if(this.role == 'view'){
2168
+ Util.ratifyPics(that.data)
2169
+ }else{
2170
+ Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2171
+ }
2172
+ } else {
2173
+ alert("该安检单可能已不在本地!")
2174
+ this.init()
2175
+ }
2176
+ this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2177
+ }
2178
+ ).catch(
2179
+ (respanse) => {
2180
+ alert('查找安检单失败')
2181
+ })
2182
+ }
2183
+ }else{
2184
+ if(this.parentPage && (this.parentPage == 'CurrentCreate' || this.parentPage == 'AddPlanItem') ){
2185
+ //tag
2186
+ let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2187
+ if (isRecodr) {
2188
+ if (isRecodr=='true') {
2189
+ // this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2190
+ // 初始化录音
2191
+ let resse = this.record()
2192
+ }
2193
+ }
2194
+ }
2195
+ this.init()
2196
+ }
2197
+ this.getUserDevice()
2198
+ this.getUserfiles()
2199
+ },
2200
+ events: {
2201
+ 'tijiao': function () {
2202
+ // 事件回调内的 `this` 自动绑定到注册它的实例上
2203
+ this.confirm()
2204
+ }
2205
+ }
2206
+ }
2207
+ </script>
2208
+ <style lang="less">
2209
+ @import "../../../../src/bootstrap/less/variables.less";
2210
+ .noclickbut {
2211
+ pointer-events: none;
2212
+ }
2213
+ .tab-befor-img (@url) {
2214
+ content: '';
2215
+ background-image: url("@{url}");
2216
+ background-size: 20px;
2217
+ display: inline-block;
2218
+ margin-right: 8px;
2219
+ margin-top: 0.3em;
2220
+ height: 1.3em;
2221
+ width: 1.3em;
2222
+ vertical-align: -35%;
2223
+ }
2224
+
2225
+ @media screen and (min-width: 768px) {
2226
+ .android-repair-order > div > ul a {
2227
+ font-size: @font-size-h2;
2228
+ margin: 0.3em 0;
2229
+ }
2230
+ }
2231
+ .repair-details-class{
2232
+ &::before {
2233
+ .tab-befor-img("../../../assets/huneiweixiu1.png");
2234
+ }
2235
+ }
2236
+ .repair-info-class {
2237
+ &::before {
2238
+ .tab-befor-img("../../../assets/baoxiuxinxi1.png");
2239
+ }
2240
+ }
2241
+ .repair-user-info-class {
2242
+ &::before {
2243
+ .tab-befor-img("../../../assets/jibenxinxi1.png")
2244
+ }
2245
+ }
2246
+
2247
+ .door-service-class {
2248
+ &::before {
2249
+ .tab-befor-img("../../../assets/huneiweixiu1.png")
2250
+ }
2251
+ }
2252
+
2253
+ .pipeline-class {
2254
+ &::before {
2255
+ .tab-befor-img("../../../assets/guandao1.png")
2256
+ }
2257
+ }
2258
+
2259
+ .device-service-class {
2260
+ &::before {
2261
+ .tab-befor-img("../../../assets/shebeiweixiu1.png")
2262
+ }
2263
+ }
2264
+
2265
+ .trouble-removal-class {
2266
+ &::before {
2267
+ .tab-befor-img("../../../assets/shiguchuli.png")
2268
+ }
2269
+ }
2270
+
2271
+ .cooking-utensils-class {
2272
+ &::before {
2273
+ .tab-befor-img("../../../assets/zaoju1.png")
2274
+ }
2275
+ }
2276
+
2277
+ .outlay-class {
2278
+ &::before {
2279
+ .tab-befor-img("../../../assets/feiyong1.png")
2280
+ }
2281
+ }
2282
+
2283
+ .fault-all-class {
2284
+ &::before {
2285
+ .tab-befor-img("../../../assets/guzhanghuizong1.png")
2286
+ }
2287
+ }
2288
+ .photo-write-class {
2289
+ &::before {
2290
+ .tab-befor-img("../../../assets/zaoju.png")
2291
+ }
2292
+ }
2293
+ .delay-apply-class {
2294
+ &::before {
2295
+ .tab-befor-img("../../../assets/yonghubaoxiu.png")
2296
+ }
2297
+ }
2298
+
2299
+ .repair-back-class {
2300
+ &::before {
2301
+ .tab-befor-img("../../../assets/fanhui.png")
2302
+ }
2303
+ }
2304
+ .butt2 {
2305
+ display: inline;
2306
+ float: right;
2307
+ width: 10px;
2308
+ text-align: center;
2309
+ align-items:center;
2310
+ position: absolute;
2311
+ top:50%;
2312
+
2313
+ left:90%;
2314
+ transform: translate(-50%,-50%);
2315
+ }
2316
+ .linesty{
2317
+ display: inline-block;
2318
+ height:1px;
2319
+ width:100%;
2320
+ background:#d0d0d0;
2321
+ overflow:hidden;
2322
+ vertical-align: middle;
2323
+ }
2324
+ .spanboder{
2325
+ border-bottom:2px solid #499edf;
2326
+ padding-bottom: 8px
2327
+ }
2328
+ .app-botton {
2329
+ position:fixed;
2330
+ background: #87b2dd;
2331
+ right:8px;
2332
+ color: #FFF;
2333
+ padding: 8px;
2334
+ text-align: center;
2335
+ font-size: 1.2em;
2336
+ z-index: 10;
2337
+ opacity:0.5;
2338
+ bottom: 50px;
2339
+ margin-top: -10px;
2340
+ height: 40px;
2341
+ }
2342
+ .android-repair-order > div > ul a {
2343
+ font-size: 12px;
2344
+ color: #333333;
2345
+ padding: 13px 16px;
2346
+ }
2347
+ </style>