safecheck-client 3.0.30-62-t4 → 3.0.30-62-t6

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