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