safecheck-client 4.0.0-10 → 4.0.0-101

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