safecheck-client 3.1.1-gaomi-7 → 4.0.1

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 (694) hide show
  1. package/build/dev-server.js +70 -41
  2. package/build/example-server.js +4 -4
  3. package/build/webpack.base.conf.js +3 -1
  4. package/docs/FormPrint.md +1 -1
  5. package/docs/GridTree.md +4 -4
  6. package/docs/PrintFile.md +2 -2
  7. package/docs/tree.md +2 -2
  8. package/examples/ChangeConfig/comp.js +1 -1
  9. package/examples/PhoneSafePlan/comp.js +1 -1
  10. package/examples/SafePlan/App.vue +28 -58
  11. package/examples/SafePlan/comp.js +135 -334
  12. package/examples/SafePlan/index.html +0 -1
  13. package/examples/SafePlan-aode/App.vue +68 -17
  14. package/examples/SafePlan-aode/comp.js +496 -87
  15. package/examples/SafePlan-aode/index.html +1 -0
  16. package/examples/SafePlan-aode-ts/App.vue +90 -0
  17. package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/comp.js +633 -501
  18. package/examples/{SafePlan-shaoguan → SafePlan-aode-ts}/index.html +2 -2
  19. package/examples/SafePlan-aodezx/App.vue +89 -0
  20. package/examples/SafePlan-aodezx/comp.js +1538 -0
  21. package/examples/{SafePlanrongcheng → SafePlan-aodezx}/index.html +2 -2
  22. package/examples/SafePlan-aodezx-ts/App.vue +89 -0
  23. package/examples/SafePlan-aodezx-ts/comp.js +1532 -0
  24. package/examples/{SafePlan-liaoyuan → SafePlan-aodezx-ts}/index.html +2 -2
  25. package/examples/SafePlanItem/comp.js +2 -2
  26. package/examples/UserFiles/comp.js +4 -4
  27. package/package.json +9 -11
  28. package/src/AndroidApp.vue +10 -8
  29. package/src/App.vue +10 -3
  30. package/src/android.js +8 -2
  31. package/src/assets/Excelformat.png +0 -0
  32. package/src/assets/addnew.png +0 -0
  33. package/src/assets/addpic.png +0 -0
  34. package/src/assets/banner.jpg +0 -0
  35. package/src/assets/baochi.png +0 -0
  36. package/src/assets/baoxiuxinxi.png +0 -0
  37. package/src/assets/bg_mobile_foot.png +0 -0
  38. package/src/assets/bg_mobile_head.png +0 -0
  39. package/src/assets/caozuo.png +0 -0
  40. package/src/assets/chongxinpaifa.png +0 -0
  41. package/src/assets/cqzm.png +0 -0
  42. package/src/assets/cqzm1.png +0 -0
  43. package/src/assets/daibangongdan.png +0 -0
  44. package/src/assets/dancheng.png +0 -0
  45. package/src/assets/doc.jpg +0 -0
  46. package/src/assets/doubledown.png +0 -0
  47. package/src/assets/edit.png +0 -0
  48. package/src/assets/excel.jpg +0 -0
  49. package/src/assets/feiyong.png +0 -0
  50. package/src/assets/gongdantixing.png +0 -0
  51. package/src/assets/guaduan.png +0 -0
  52. package/src/assets/guanbishengyin.png +0 -0
  53. package/src/assets/guandao.png +0 -0
  54. package/src/assets/guzhanghuizong.png +0 -0
  55. package/src/assets/heart.png +0 -0
  56. package/src/assets/horse.mp3 +0 -0
  57. package/src/assets/huchu.png +0 -0
  58. package/src/assets/huifang.png +0 -0
  59. package/src/assets/huiyi.png +0 -0
  60. package/src/assets/huneiweixiu.png +0 -0
  61. package/src/assets/jianting.png +0 -0
  62. package/src/assets/jinbenxinxi.png +0 -0
  63. package/src/assets/jingyin.png +0 -0
  64. package/src/assets/juxing.png +0 -0
  65. package/src/assets/kaixiaochai.jpg +0 -0
  66. package/src/assets/lingsheng.mp3 +0 -0
  67. package/src/assets/list.png +0 -0
  68. package/src/assets/logo.png +0 -0
  69. package/src/assets/luyi.png +0 -0
  70. package/src/assets/movie.ogg +0 -0
  71. package/src/assets/mp3.png +0 -0
  72. package/src/assets/nopic.png +0 -0
  73. package/src/assets/novoice.png +0 -0
  74. package/src/assets/pdf.jpg +0 -0
  75. package/src/assets/person.png +0 -0
  76. package/src/assets/play.png +0 -0
  77. package/src/assets/psicon.png +0 -0
  78. package/src/assets/qrcode_no.png +0 -0
  79. package/src/assets/qrcode_no1.png +0 -0
  80. package/src/assets/quxiaobaochi.png +0 -0
  81. package/src/assets/quxiaojingyin.png +0 -0
  82. package/src/assets/scanCode.png +0 -0
  83. package/src/assets/search.png +0 -0
  84. package/src/assets/searchhover.png +0 -0
  85. package/src/assets/serachactive.png +0 -0
  86. package/src/assets/shangchuan.png +0 -0
  87. package/src/assets/shebeiweixiu.png +0 -0
  88. package/src/assets/shengyin1.png +0 -0
  89. package/src/assets/shengyin2.png +0 -0
  90. package/src/assets/shengyin3.png +0 -0
  91. package/src/assets/shipin1.mp4 +0 -0
  92. package/src/assets/shipinst1.jpg +0 -0
  93. package/src/assets/success.png +0 -0
  94. package/src/assets/telphonesend.png +0 -0
  95. package/src/assets/titleicon01.png +0 -0
  96. package/src/assets/usericon.png +0 -0
  97. package/src/assets/video.png +0 -0
  98. package/src/assets/waibo.png +0 -0
  99. package/src/assets/x.png +0 -0
  100. package/src/assets/xiangcheng.png +0 -0
  101. package/src/assets/xiaoxitixing.png +0 -0
  102. package/src/assets/xihua.png +0 -0
  103. package/src/assets/yinpin.mp3 +0 -0
  104. package/src/assets/zhimang.png +0 -0
  105. package/src/assets/zhixian.png +0 -0
  106. package/src/assets/zhoukou.png +0 -0
  107. package/src/assets/zhuan.png +0 -0
  108. package/src/assets/zhuanjie.png +0 -0
  109. package/src/assets/zhuanyi.png +0 -0
  110. package/src/assets//344/270/212/344/274/240.png +0 -0
  111. package/src/assets//344/270/213/347/256/255/345/244/264.png +0 -0
  112. package/src/assets//344/270/252/344/272/272/344/272/214/347/273/264/347/240/201.png +0 -0
  113. package/src/assets//344/273/273/345/212/241-hover.png +0 -0
  114. package/src/assets//344/273/273/345/212/241.png +0 -0
  115. package/src/assets//344/273/273/345/212/241/344/270/212/344/274/240-hover.png +0 -0
  116. package/src/assets//344/273/273/345/212/241/344/270/212/344/274/240.png +0 -0
  117. package/src/assets//344/277/235/345/255/230.png +0 -0
  118. package/src/assets//344/277/235/351/231/251/346/234/215/345/212/241.png +0 -0
  119. package/src/assets//345/205/266/344/273/226/345/212/237/350/203/275-hover.png +0 -0
  120. package/src/assets//345/205/266/344/273/226/345/212/237/350/203/275.png +0 -0
  121. package/src/assets//345/205/266/344/273/226/346/224/266/350/264/271.png +0 -0
  122. package/src/assets//345/205/266/344/273/226/346/224/266/350/264/2711.png +0 -0
  123. package/src/assets//345/215/225/345/205/203.png +0 -0
  124. package/src/assets//345/215/225/351/200/211/350/242/253/351/200/211@3x.png +0 -0
  125. package/src/assets//345/215/225/351/200/211/351/273/230/350/256/244@3x.png +0 -0
  126. package/src/assets//345/215/241/345/217/267 (1).png +0 -0
  127. package/src/assets//345/215/241/345/217/267.png +0 -0
  128. package/src/assets//345/216/206/345/217/262/346/237/245/350/257/242-hover.png +0 -0
  129. package/src/assets//345/216/206/345/217/262/346/237/245/350/257/242.png +0 -0
  130. package/src/assets//345/216/213/345/212/233.png +0 -0
  131. package/src/assets//345/217/226/346/266/210.png +0 -0
  132. package/src/assets//345/217/263/351/224/256/345/244/264.png +0 -0
  133. package/src/assets//345/220/216/351/200/200.png +0 -0
  134. package/src/assets//345/222/250/350/257/242/345/215/225.png +0 -0
  135. package/src/assets//345/224/256/346/260/2241.png +0 -0
  136. package/src/assets//345/233/236/346/224/266/347/253/231.png +0 -0
  137. package/src/assets//345/234/206/350/247/222/347/237/251/345/275/242-7.png +0 -0
  138. package/src/assets//345/244/251/347/204/266/346/260/224.png +0 -0
  139. package/src/assets//345/260/217/345/214/272.png +0 -0
  140. package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
  141. package/src/assets//345/267/245/345/215/225/344/270/212/344/274/240.png +0 -0
  142. package/src/assets//345/267/245/345/215/225/347/273/237/350/256/241.png +0 -0
  143. package/src/assets//345/267/256/345/200/274.png +0 -0
  144. package/src/assets//345/267/262/345/212/236/345/267/245/345/215/225.png +0 -0
  145. package/src/assets//345/267/262/345/217/226/346/266/210/345/267/245/345/215/225.png +0 -0
  146. package/src/assets//345/267/262/345/256/214/346/210/220/345/267/245/345/215/225.png +0 -0
  147. package/src/assets//345/267/262/345/256/214/347/273/223/345/267/245/345/215/225.png +0 -0
  148. package/src/assets//345/267/262/351/200/276/346/234/237/345/267/245/345/215/225.png +0 -0
  149. package/src/assets//345/274/200/345/247/213/346/227/266/351/227/264.png +0 -0
  150. package/src/assets//345/275/242/347/212/266-2.png +0 -0
  151. package/src/assets//345/275/242/347/212/266-4.png +0 -0
  152. package/src/assets//345/275/242/347/212/266-6.png +0 -0
  153. package/src/assets//345/276/205/345/212/236/345/267/245/345/215/225.png +0 -0
  154. package/src/assets//346/210/221-hover.png +0 -0
  155. package/src/assets//346/210/221.png +0 -0
  156. package/src/assets//346/211/213/346/234/272/346/212/204/350/241/250/347/263/273/347/273/237.png +0 -0
  157. package/src/assets//346/211/253/344/270/200/346/211/253.png +0 -0
  158. package/src/assets//346/211/253/347/240/2012.png +0 -0
  159. package/src/assets//346/212/204/350/241/250/344/273/273/345/212/241-hover.png +0 -0
  160. package/src/assets//346/212/204/350/241/250/344/273/273/345/212/241.png +0 -0
  161. package/src/assets//346/212/225/350/257/211/345/215/225.png +0 -0
  162. package/src/assets//346/213/215/347/205/247/347/255/276/345/220/215.png +0 -0
  163. package/src/assets//346/215/242/350/241/250.png +0 -0
  164. package/src/assets//346/215/242/350/241/2501.png +0 -0
  165. package/src/assets//346/224/266/350/264/271.png +0 -0
  166. package/src/assets//346/225/260/346/215/256.png +0 -0
  167. package/src/assets//346/237/245/350/257/242.png +0 -0
  168. package/src/assets//346/240/207/351/242/230.png +0 -0
  169. package/src/assets//346/243/200/346/237/245/345/215/225.png +0 -0
  170. package/src/assets//346/245/274/345/261/202.png +0 -0
  171. package/src/assets//346/266/210/346/201/257-hover.png +0 -0
  172. package/src/assets//346/266/210/346/201/257.png +0 -0
  173. package/src/assets//346/270/251/345/272/246.png +0 -0
  174. package/src/assets//347/205/247/347/211/207.png +0 -0
  175. package/src/assets//347/207/203/346/260/224/345/231/250/345/205/267/344/277/241/346/201/257.png +0 -0
  176. package/src/assets//347/207/203/346/260/224/350/241/250.png +0 -0
  177. package/src/assets//347/224/250/346/210/267ID.png +0 -0
  178. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215-/350/223/235/350/211/262.png +0 -0
  179. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
  180. package/src/assets//347/224/250/346/210/267/346/237/245/350/257/242-hover.png +0 -0
  181. package/src/assets//347/224/250/346/210/267/346/237/245/350/257/242.png +0 -0
  182. package/src/assets//347/224/250/346/210/267/347/261/273/345/236/213.png +0 -0
  183. package/src/assets//347/224/250/346/210/267/347/274/226/345/217/267.png +0 -0
  184. package/src/assets//347/236/254/346/227/266.png +0 -0
  185. package/src/assets//347/264/257/350/256/241.png +0 -0
  186. package/src/assets//347/264/257/350/256/241/345/215/225/346/225/260.png +0 -0
  187. package/src/assets//347/273/2045.png +0 -0
  188. package/src/assets//347/273/223/346/235/237/346/227/266/351/227/264.png +0 -0
  189. package/src/assets//347/273/264/344/277/256/345/215/225.png +0 -0
  190. package/src/assets//347/274/226/350/276/221.png +0 -0
  191. package/src/assets//347/274/264/350/264/271/350/257/246/346/203/205.png +0 -0
  192. package/src/assets//350/241/245/345/215/241 1.png +0 -0
  193. package/src/assets//350/241/245/345/215/241.png +0 -0
  194. package/src/assets//350/241/245/345/215/2411.png +0 -0
  195. package/src/assets//350/241/250/345/217/267.png +0 -0
  196. package/src/assets//350/241/250/345/220/215.png +0 -0
  197. package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
  198. package/src/assets//350/241/250/347/261/273/345/236/213icon.png +0 -0
  199. package/src/assets//350/256/242/345/215/225/347/212/266/346/200/201.png +0 -0
  200. package/src/assets//350/256/276/347/275/256-hover.png +0 -0
  201. package/src/assets//350/256/276/347/275/256.png +0 -0
  202. package/src/assets//350/257/273/345/215/241.png +0 -0
  203. package/src/assets//350/257/273/345/215/2411.png +0 -0
  204. package/src/assets//350/264/255/346/260/224/347/274/264/350/264/271.png +0 -0
  205. package/src/assets//350/277/233/350/241/214/344/270/255/345/267/245/345/215/225.png +0 -0
  206. package/src/assets//351/200/232/350/256/257/345/275/225-hover.png +0 -0
  207. package/src/assets//351/200/232/350/256/257/345/275/225.png +0 -0
  208. package/src/assets//351/227/250/347/211/214.png +0 -0
  209. package/src/assets//351/231/204/345/261/236/350/256/276/345/244/207/344/277/241/346/201/257.png +0 -0
  210. package/src/bootstrap/fonts/PINGFANG LIGHT.TTF +0 -0
  211. package/src/bootstrap/fonts/PingFangSC-Regular.ttf +0 -0
  212. package/src/bootstrap/fonts/pingfang-bold.ttf +0 -0
  213. package/src/bootstrap/fonts/pingfang-medium.ttf +0 -0
  214. package/src/bootstrap/fonts/pingfang-regular.ttf +0 -0
  215. package/src/bootstrap/fonts/trendstrends.ttf +0 -0
  216. package/src/bootstrap/less/bootstrap.less +3 -2
  217. package/src/bootstrap/less/fonts-list.less +25 -0
  218. package/src/bootstrap/less/glyphicons.less +2 -2
  219. package/src/bootstrap/less/stand.less +2 -2
  220. package/src/bootstrap/less/variables.less +2 -2
  221. package/src/components/Test.vue +45 -89
  222. package/src/components/Util/ImageViewer.vue +369 -0
  223. package/src/components/Util/ImgSelfSafe.vue +744 -81
  224. package/src/components/Util.js +86 -0
  225. package/src/components/android/AddGas.vue +2 -2
  226. package/src/components/android/AddPlanItem.vue +105 -224
  227. package/src/components/android/AdviseCommit.vue +1 -1
  228. package/src/components/android/AndroidCheckResult.vue +1 -1
  229. package/src/components/android/Announcement.vue +43 -42
  230. package/src/components/android/AreaPlan.vue +20 -34
  231. package/src/components/android/CheckMeterAlreadyReading.vue +475 -0
  232. package/src/components/android/CheckMeterReading.vue +657 -0
  233. package/src/components/android/CheckMeterReadingNoncivil.vue +1097 -0
  234. package/src/components/android/CheckNotice.vue +1 -1
  235. package/src/components/android/CheckPlan.vue +2 -2
  236. package/src/components/android/CheckPlanDown.vue +83 -34
  237. package/src/components/android/CheckPlanItems.vue +2 -2
  238. package/src/components/android/CheckerMonthly.vue +1 -1
  239. package/src/components/android/CurrentCreate.vue +1194 -985
  240. package/src/{filiale/wuan/android/CurrentCreate.vue → components/android/DailyworkloadQuery.vue} +172 -380
  241. package/src/components/android/Devices.vue +1 -2
  242. package/src/components/android/DevicesItemm.vue +28 -13
  243. package/src/components/android/Devicesm.vue +29 -8
  244. package/src/components/android/DoorService.vue +3 -3
  245. package/src/components/android/ExtractCheckPlan.vue +1 -1
  246. package/src/components/android/ExtractPlanItem.vue +61 -99
  247. package/src/components/android/InsureManagement.vue +258 -0
  248. package/src/components/android/LcheckUnplan.vue +1 -1
  249. package/src/components/android/Login.vue +1 -1
  250. package/src/components/android/PaperFeedback.vue +470 -566
  251. package/src/components/android/PaperFeedbackm.vue +5 -16
  252. package/src/components/android/PaperMessage.vue +62 -60
  253. package/src/components/android/PaperMessageNocivil.vue +79 -61
  254. package/src/components/android/PaperMeter.vue +1 -1
  255. package/src/components/android/PaperMeterNoncivil.vue +1 -1
  256. package/src/components/android/PaperSet.vue +5 -5
  257. package/src/components/android/PaperSetNoncivil.vue +4 -4
  258. package/src/components/android/PaperUser.vue +1 -1
  259. package/src/components/android/PaperUserNoncivil.vue +1 -1
  260. package/src/components/android/PhoneChangemeterInfo.vue +1 -1
  261. package/src/components/android/PhoneSellInfo.vue +1 -1
  262. package/src/components/android/PhoneState.vue +2 -2
  263. package/src/components/android/PhoneUserFind.vue +1 -1
  264. package/src/components/android/PlanChooserAndroid.vue +133 -0
  265. package/src/components/android/PrearrangedPlan.vue +1 -1
  266. package/src/components/android/QueryCheckHandplanAlreadyList.vue +408 -0
  267. package/src/components/android/QueryCheckHandplanList.vue +426 -0
  268. package/src/components/android/RepairList.vue +4 -4
  269. package/src/components/android/RepairQuery.vue +1 -1
  270. package/src/components/android/ResAreaList.vue +1 -1
  271. package/src/components/android/SafecheckDevices.vue +386 -80
  272. package/src/components/android/SafecheckOrderV.vue +1530 -412
  273. package/src/components/android/SafecheckState.vue +1 -1
  274. package/src/components/android/SafecheckUser.vue +1 -1
  275. package/src/components/android/SelectTask.vue +244 -0
  276. package/src/components/android/SystemSetting.vue +1 -1
  277. package/src/components/android/TableAnomalyRecords.vue +122 -0
  278. package/src/components/android/UploadImgList.vue +249 -0
  279. package/src/components/android/UploadPage.vue +44 -12
  280. package/src/components/android/changePlanId.vue +504 -0
  281. package/src/components/android/checkPlanResult.vue +2 -2
  282. package/src/components/android/old/PaperFeedback.vue +4 -4
  283. package/src/components/android/userinfo/PhoneUpUserinfo.vue +1120 -0
  284. package/src/components/android/userinfo/SafecheckUserInfo.vue +244 -239
  285. package/src/components/android/wasm/comp.js +1 -1
  286. package/src/components/attendance/DailyAttendance.vue +1 -1
  287. package/src/components/attendance/MonthlyAttendance.vue +4 -4
  288. package/src/components/callincheck/CallInCheckMain.vue +1 -1
  289. package/src/components/callincheck/CallInPlan.vue +1 -1
  290. package/src/components/callincheck/UserFileList.vue +1 -1
  291. package/src/components/checkerphonestate/Checker.vue +1 -1
  292. package/src/components/checkerphonestate/CheckerState.vue +1 -1
  293. package/src/components/checkplan/CheckDetail.vue +4 -21
  294. package/src/components/checkplan/CheckPlan.vue +12 -13
  295. package/src/components/checkplan/SelectCheckPlan.vue +200 -182
  296. package/src/components/checkplan/SelectMessage.vue +1 -1
  297. package/src/components/checkplan/checkmsg.vue +163 -354
  298. package/src/components/cockpit/Splash.vue +1 -1
  299. package/src/components/cockpit/SplashDetail.vue +1 -1
  300. package/src/components/createcheckplan/CreatePlan.vue +11 -11
  301. package/src/components/createcheckplan/DelPlanRepeat.vue +5 -5
  302. package/src/components/createcheckplan/PlanList.vue +6 -6
  303. package/src/components/createcheckplan/PlanUersList.vue +4 -4
  304. package/src/components/defect/DefectDetail.vue +3 -3
  305. package/src/components/defect/DefectList.vue +92 -39
  306. package/src/components/defect/DefectMain.vue +10 -20
  307. package/src/components/defect/DefectPaper.vue +499 -403
  308. package/src/components/defect/ImgButton.vue +7 -3
  309. package/src/components/defects/AddDefectModal.vue +2 -2
  310. package/src/components/defects/AddDevice.vue +1 -1
  311. package/src/components/defects/CheckPaperItem.vue +4 -4
  312. package/src/components/defects/CheckPaperItems.vue +1 -1
  313. package/src/components/defects/CheckPaperSearch.vue +3 -74
  314. package/src/components/defects/DefectSeting.vue +2 -2
  315. package/src/components/defects/DefectsQuery.vue +1 -1
  316. package/src/components/defects/DevicesSeting.vue +1 -1
  317. package/src/components/discrepancy/differenceMain.vue +47 -0
  318. package/src/components/discrepancy/differencePaper.vue +554 -0
  319. package/src/components/equipment/BoilerUsage.vue +1 -1
  320. package/src/components/equipment/CheckRate.vue +7 -7
  321. package/src/components/equipment/CheckerRate.vue +6 -6
  322. package/src/components/equipment/CookerUsage.vue +1 -1
  323. package/src/components/equipment/DeviceUsage.vue +1 -1
  324. package/src/components/equipment/FurnaceUsage.vue +1 -1
  325. package/src/components/equipment/GasMeterUsage.vue +1 -1
  326. package/src/components/equipment/HeaterUsage.vue +1 -1
  327. package/src/components/equipment/MonthCheckRate.vue +6 -6
  328. package/src/components/gasusage/GasUsage.vue +1 -1
  329. package/src/components/issueplan/IssuePlanAction.vue +2 -2
  330. package/src/components/issueplan/IssuePlanQuery.vue +1 -1
  331. package/src/components/levelplan/AdjustPlan.vue +3 -3
  332. package/src/components/levelplan/CheckerLeft.vue +2 -2
  333. package/src/components/levelplan/CheckerPlanAdjust.vue +94 -42
  334. package/src/components/levelplan/CheckerRight.vue +2 -2
  335. package/src/components/map/FootPrintList.vue +2 -2
  336. package/src/components/map/PersonTrack.vue +224 -0
  337. package/src/components/map/douglasPeuckerForAMap.js +88 -0
  338. package/src/components/metterfiles/AddUserfiles.vue +1 -1
  339. package/src/components/metterfiles/MetterFiles.vue +3 -3
  340. package/src/components/metterfiles/MetterfilesChange.vue +1 -1
  341. package/src/components/metterfiles/UserFiles.vue +2 -2
  342. package/src/components/metterfiles/Userfileschange.vue +3 -3
  343. package/src/components/newfile/NewfileList.vue +114 -0
  344. package/src/components/newfile/NewfileList1.vue +84 -0
  345. package/src/components/newfile/NewfileList2.vue +112 -0
  346. package/src/components/newfile/NewfileList3.vue +111 -0
  347. package/src/components/newfile/NewfileList4.vue +118 -0
  348. package/src/components/newfile/NewfileList5.vue +89 -0
  349. package/src/components/newfile/NewfileMain.vue +89 -0
  350. package/src/components/newfile/NewfilePaper.vue +160 -0
  351. package/src/components/newuser/MonthlyMeterReadingStatistics.vue +742 -0
  352. package/src/components/newuser/SearchCompanyCompletion.vue +212 -0
  353. package/src/components/newuser/SearchCompanyComprehensiveCompletionPJ.vue +251 -0
  354. package/src/components/newuser/SearchCompanyComprehensiveCompletionZX.vue +233 -0
  355. package/src/components/newuser/SearchComprehensivePlanSummary.vue +233 -0
  356. package/src/components/newuser/SearchGas.vue +576 -0
  357. package/src/components/newuser/SearchGasWlw.vue +291 -0
  358. package/src/components/newuser/SearchLargeAreaCompletion.vue +338 -0
  359. package/src/components/newuser/UserCheckState.vue +60 -0
  360. package/src/components/newuser/WorkCount.vue +58 -0
  361. package/src/components/newuser/common/TabButton.vue +152 -0
  362. package/src/components/newuser/common/Tabs.vue +67 -0
  363. package/src/components/niandu/CheckPaperListND.vue +129 -0
  364. package/src/components/{rongcheng/CheckPaperSearchUserNo.vue → niandu/CheckPaperSearchUserND.vue} +14 -6
  365. package/src/components/niandu/CheckSearchUserND.vue +739 -0
  366. package/src/components/notice/NoticeQuery.vue +1 -1
  367. package/src/components/outsideSafecheck/android/androidCheckPlanDown/CheckPlanDownTS.vue +253 -0
  368. package/src/components/{rongcheng/AspiratedAreaPlan.vue → outsideSafecheck/android/safecheckAlreadyDoneWork/AreaPlanTS.vue} +50 -44
  369. package/src/components/outsideSafecheck/android/safecheckUpload/UploadPageTS.vue +317 -0
  370. package/src/components/outsideSafecheck/android/safecheckWaitWork/CurrentCreateTS.vue +1166 -0
  371. package/src/components/{rongcheng/AspPaperFeedback.vue → outsideSafecheck/android/safecheckWaitWork/PaperFeedbackTS.vue} +233 -125
  372. package/src/components/{rongcheng/SafecheckDevices.vue → outsideSafecheck/android/safecheckWaitWork/SafecheckDevicesTS.vue} +368 -177
  373. package/src/{filiale/wenxi/android/SafecheckOrderV.vue → components/outsideSafecheck/android/safecheckWaitWork/SafecheckOrderVTS.vue} +814 -268
  374. package/src/components/{rongcheng/SafecheckUserInfo.vue → outsideSafecheck/android/safecheckWaitWork/SafecheckUserInfoTS.vue} +126 -65
  375. package/src/components/outsideSafecheck/pc/HiddenDangerView/DefectDetailTS.vue +177 -0
  376. package/src/components/{shaoguan/DefectList.vue → outsideSafecheck/pc/HiddenDangerView/DefectListTS.vue} +146 -94
  377. package/src/components/outsideSafecheck/pc/HiddenDangerView/DefectMainTS.vue +53 -0
  378. package/src/components/outsideSafecheck/pc/HiddenDangerView/DefectPaperTS.vue +607 -0
  379. package/src/components/outsideSafecheck/pc/HiddenDangerView/PlanChooserTS.vue +137 -0
  380. package/src/components/outsideSafecheck/pc/aggregateQuery/CheckPlanAreaListTS.vue +404 -0
  381. package/src/components/{CheckerCount/CheckCountAreaManage.vue → outsideSafecheck/pc/aggregateQuery/CheckPlanAreaManageTS.vue} +3 -6
  382. package/src/components/{shaoguan/CheckPlanUserList.vue → outsideSafecheck/pc/aggregateQuery/CheckPlanUserListTS.vue} +44 -16
  383. package/src/components/outsideSafecheck/pc/planadjustment/CheckerPlanAdjustTS.vue +354 -0
  384. package/src/components/outsideSafecheck/pc/planadjustment/SafecheckVisitInfoTS.vue +219 -0
  385. package/src/components/outsideSafecheck/pc/report/HiddenSituationTS.vue +135 -0
  386. package/src/components/outsideSafecheck/pc/report/SearchCompanyCompletionTS.vue +212 -0
  387. package/src/components/outsideSafecheck/pc/report/SearchCompanyComprehensiveCompletionPJTS.vue +251 -0
  388. package/src/components/outsideSafecheck/pc/report/SearchCompanyComprehensiveCompletionZXTS.vue +233 -0
  389. package/src/components/outsideSafecheck/pc/report/SearchComprehensivePlanSummaryTS.vue +223 -0
  390. package/src/components/outsideSafecheck/pc/report/SearchGasTS.vue +575 -0
  391. package/src/components/outsideSafecheck/pc/report/SearchLargeAreaCompletionTS.vue +338 -0
  392. package/src/components/outsideSafecheck/pc/safecheckAssess/CheckDetailTS.vue +74 -0
  393. package/src/components/outsideSafecheck/pc/safecheckAssess/CheckPlanTS.vue +58 -0
  394. package/src/components/outsideSafecheck/pc/safecheckAssess/SelectCheckPlanTS.vue +242 -0
  395. package/src/components/outsideSafecheck/pc/safecheckResultView/NewCheckpaperTS.vue +1256 -0
  396. package/src/components/outsideSafecheck/pc/safecheckResultView/PaperListTS.vue +553 -0
  397. package/src/components/outsideSafecheck/pc/userSafecheckSituation/CheckPaperListTS.vue +129 -0
  398. package/src/components/outsideSafecheck/pc/userSafecheckSituation/CheckPaperSearchUserTS.vue +63 -0
  399. package/src/components/outsideSafecheck/pc/userSafecheckSituation/CheckSearchUserTS.vue +805 -0
  400. package/src/components/paper/PaperList.vue +468 -504
  401. package/src/components/paper/PaperVerify.vue +1 -1
  402. package/src/components/paper/PlanChooser.vue +13 -7
  403. package/src/components/paper/RepairVerify.vue +1 -1
  404. package/src/components/paper/RepairVerifyForm.vue +1 -1
  405. package/src/components/paper/VerifyForm.vue +3 -3
  406. package/src/components/pc/AnnouncementPC.vue +51 -22
  407. package/src/components/pc/CheckHandPlanAllList.vue +1246 -0
  408. package/src/components/pc/CheckHandPlanAreaItemInfo.vue +177 -0
  409. package/src/components/pc/CheckHandPlanAreaList.vue +296 -0
  410. package/src/components/pc/CheckHandPlanAreaMain.vue +57 -0
  411. package/src/components/pc/DeviceChange.vue +140 -122
  412. package/src/components/pc/NewCheckpaper.vue +704 -569
  413. package/src/components/pc/PlanListStatistics.vue +321 -0
  414. package/src/components/pc/SafeFinInfo.vue +30 -0
  415. package/src/components/pc/SafeTreatment/SafeTreatmentList.vue +150 -0
  416. package/src/components/pc/SafeTreatment/SafeTreatmentMain.vue +53 -0
  417. package/src/components/pc/SafeTreatment/SafeTreatmentPaper.vue +136 -0
  418. package/src/components/pc/SafecheckResponseTimeList.vue +396 -0
  419. package/src/components/pc/SafecheckVisitHistory.vue +142 -0
  420. package/src/components/pc/SafecheckVisitInfo.vue +299 -0
  421. package/src/components/pc/SearchOverdueNoSafeCheck.vue +280 -0
  422. package/src/components/phonestate/DailyTraffic.vue +1 -1
  423. package/src/components/phonestate/FootprintMap.vue +1 -1
  424. package/src/components/phonestate/LastKnownState.vue +1 -1
  425. package/src/components/plan/RetailMain.vue +44 -0
  426. package/src/components/plan/Retailitem.vue +99 -0
  427. package/src/components/plan/Retailplan.vue +150 -0
  428. package/src/components/planmanage/PlanManage.vue +861 -0
  429. package/src/components/{Util → planmanage}/RightTreeSafe.vue +6 -1
  430. package/src/components/planmanage/checkPlanList.vue +397 -0
  431. package/src/components/planmanage/checkUserList.vue +773 -0
  432. package/src/components/planmanage/zxplan/PlanManageZX.vue +21 -0
  433. package/src/components/planmanagets/PlanManage.vue +862 -0
  434. package/src/components/planmanagets/checkPlanList.vue +397 -0
  435. package/src/components/planmanagets/checkUserList.vue +772 -0
  436. package/src/components/planmanagets/zxplan/PlanManageZX.vue +21 -0
  437. package/src/components/querycheckpaper/CheckPaperList.vue +6 -19
  438. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +10 -2
  439. package/src/components/querycheckpaper/CheckSearchUser.vue +374 -90
  440. package/src/components/querycheckpaper/PaperItems.vue +1 -1
  441. package/src/components/report/CheckPlanAreaList.vue +282 -252
  442. package/src/components/report/CheckPlanAreaManage.vue +0 -2
  443. package/src/components/report/CheckPlanUserList.vue +58 -43
  444. package/src/components/report/HiddenSituation.vue +49 -19
  445. package/src/components/report/MeterReadingRate.vue +131 -0
  446. package/src/components/report/ReportSql1.vue +345 -0
  447. package/src/components/report/SafePlanSale.vue +1 -1
  448. package/src/components/report/SafePlanStatistics.vue +1 -1
  449. package/src/components/rongcheng/AddPlanItem.vue +4 -13
  450. package/src/components/rongcheng/AspiratedCurrentCreate.vue +21 -72
  451. package/src/components/rongcheng/CheckCurrentCreate.vue +133 -201
  452. package/src/components/rongcheng/CheckSearchUser.vue +45 -302
  453. package/src/components/rongcheng/CheckSearchUserNo.vue +53 -240
  454. package/src/components/rongcheng/PaperListAJ.vue +25 -65
  455. package/src/components/rongcheng/PaperListNPAJ.vue +18 -56
  456. package/src/components/rongcheng/PaperListNPSQ.vue +17 -43
  457. package/src/components/rongcheng/PaperListSQ.vue +16 -42
  458. package/src/components/rongcheng/SafecheckOrderV.vue +108 -217
  459. package/src/components/rongcheng/UploadPage.vue +13 -17
  460. package/src/components/{rongcheng/AspiratedPaperFeedbackm.vue → shaoguan/PaperFeedbackm.vue} +15 -23
  461. package/src/components/task/RepairAnnual.vue +1 -1
  462. package/src/components/task/RepairAnnualDetail.vue +1 -1
  463. package/src/components/task/RepairMonthly.vue +1 -1
  464. package/src/components/task/TaskAnnual.vue +1 -1
  465. package/src/components/task/TaskAnnualDetail.vue +1 -1
  466. package/src/components/task/TaskMonthly.vue +1 -1
  467. package/src/components/tongcheng/AreaPlan.vue +2 -2
  468. package/src/components/tongcheng/CurrentCreate.vue +2 -2
  469. package/src/components/tongcheng/PaperFeedback.vue +4 -4
  470. package/src/components/tongcheng/PaperSet.vue +5 -5
  471. package/src/components/tongcheng/PaperUser.vue +1 -1
  472. package/src/components/userfile/InfoModifyModal.vue +3 -3
  473. package/src/components/userfile/UserFile.vue +2 -2
  474. package/src/components/userfile/UserInfoAudit.vue +5 -5
  475. package/src/components/userfile/UserfileChange.vue +2 -2
  476. package/src/components/userfileaudit/UserFileaudit.vue +1 -1
  477. package/src/components/userfileaudit/UserfileChangeaudit.vue +2 -2
  478. package/src/components/userplan/UserplanList.vue +166 -0
  479. package/src/components/userplan/UserplanMain.vue +71 -0
  480. package/src/components/userplan/UserplanPaper.vue +182 -0
  481. package/src/components/zhuanxiang/CheckPaperListZX.vue +129 -0
  482. package/src/components/{rongcheng/CheckPaperSearchUser.vue → zhuanxiang/CheckPaperSearchUserZX.vue} +14 -6
  483. package/src/components/zhuanxiang/CheckSearchUserZX.vue +739 -0
  484. package/src/expandcssAndroid.less +1 -1
  485. package/src/index.js +6 -0
  486. package/src/main.js +4 -3
  487. package/src/plugins/LocalPagedList.js +1 -2
  488. package/src/safecheck-android.js +39 -24
  489. package/src/safecheck.js +411 -149
  490. package/static/ManageHomePic//346/244/255/345/234/2064.png +0 -0
  491. package/static/ManagementControl/echarts10.png +0 -0
  492. package/static/ManagementControl/echarts11.png +0 -0
  493. package/static/ManagementControl/echarts12.png +0 -0
  494. package/static/ManagementControl/echarts13.png +0 -0
  495. package/static/ManagementControl/echarts14.png +0 -0
  496. package/static/ManagementControl/echarts15.png +0 -0
  497. package/static/ManagementControl/echarts16.png +0 -0
  498. package/static/ManagementControl/echarts17.png +0 -0
  499. package/static/ManagementControl/echarts18.png +0 -0
  500. package/static/ManagementControl/echarts4.png +0 -0
  501. package/static/ManagementControl/echarts5.png +0 -0
  502. package/static/ManagementControl/echarts51.png +0 -0
  503. package/static/ManagementControl/echarts6.png +0 -0
  504. package/static/ManagementControl/echarts7.png +0 -0
  505. package/static/ManagementControl/echarts71.png +0 -0
  506. package/static/ManagementControl/echarts8.png +0 -0
  507. package/static/ManagementControl//345/233/276/345/261/20211/346/213/267/350/264/235.png +0 -0
  508. package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2353.png +0 -0
  509. package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2355.png +0 -0
  510. package/static/ManagementControl//347/237/251/345/275/2425/346/213/267/350/264/2356.png +0 -0
  511. package/static/batchleft.png +0 -0
  512. package/static/batchright.png +0 -0
  513. package/static/bluemainbg.jpg +0 -0
  514. package/static/huangtengbiaozhi.png +0 -0
  515. package/static/jcwx.jpg +0 -0
  516. package/static/lefticon//345/215/241/346/234/215/345/212/241/347/256/241/347/220/206.png +0 -0
  517. package/static/lefticon//345/221/274/345/217/253/347/263/273/347/273/237.png +0 -0
  518. package/static/lefticon//345/224/256/346/260/224/346/224/266/350/264/271.png +0 -0
  519. package/static/lefticon//345/233/276/345/261/2023/346/213/267/350/264/2354.png +0 -0
  520. package/static/lefticon//345/233/276/345/261/202577.png +0 -0
  521. package/static/lefticon//345/233/276/345/261/2028/346/213/267/350/264/23513.png +0 -0
  522. package/static/lefticon//345/256/211/346/243/200/346/237/245/347/234/213.png +0 -0
  523. package/static/lefticon//345/256/211/346/243/200/350/256/241/345/210/222.png +0 -0
  524. package/static/lefticon//345/276/256/344/277/241/346/234/215/345/212/241.png +0 -0
  525. package/static/lefticon//346/212/245/345/273/272/347/263/273/347/273/237.png +0 -0
  526. package/static/lefticon//346/212/245/350/241/250/346/237/245/350/257/242.png +0 -0
  527. package/static/lefticon//346/227/245/345/270/270/347/256/241/347/220/206.png +0 -0
  528. package/static/lefticon//346/234/272/350/241/250/347/256/241/347/220/206.png +0 -0
  529. package/static/lefticon//346/237/245/350/257/242/345/210/227/350/241/250.png +0 -0
  530. package/static/lefticon//346/241/243/346/241/210/347/256/241/347/220/206.png +0 -0
  531. package/static/lefticon//347/211/251/350/201/224/347/275/221/350/241/250.png +0 -0
  532. package/static/lefticon//347/237/251/345/275/2421183.png +0 -0
  533. package/static/lefticon//347/263/273/347/273/237/347/256/241/347/220/206.png +0 -0
  534. package/static/lefticon//347/263/273/347/273/237/350/256/276/347/275/256.png +0 -0
  535. package/static/lefticon//347/273/217/350/220/245/347/256/241/346/216/247.png +0 -0
  536. package/static/lefticon//347/273/274/345/220/210/344/270/232/345/212/241.png +0 -0
  537. package/static/lefticon//347/273/274/345/220/210/346/237/245/350/257/242.png +0 -0
  538. package/static/lefticon//350/217/234/345/215/225/344/274/270/347/274/251.png +0 -0
  539. package/static/lefticon//351/200/200/345/207/272/347/263/273/347/273/237.png +0 -0
  540. package/static/login_bg.jpg +0 -0
  541. package/static/login_title.png +0 -0
  542. package/static/login_title1.png +0 -0
  543. package/static/loginbg.jpg +0 -0
  544. package/static/loginbg1.jpg +0 -0
  545. package/static/loginbg_jincheng.jpg +0 -0
  546. package/static/loginbgmain.jpg +0 -0
  547. package/static/loginlogo.png +0 -0
  548. package/static/main_logo.png +0 -0
  549. package/static/mainbg.jpg +0 -0
  550. package/static/mainicon/adddevice.png +0 -0
  551. package/static/mainicon/addmeter.png +0 -0
  552. package/static/mainicon/bank.png +0 -0
  553. package/static/mainicon/biaopan.png +0 -0
  554. package/static/mainicon/cad.jpg +0 -0
  555. package/static/mainicon/chaobiaoyuan.png +0 -0
  556. package/static/mainicon/danganguanli.png +0 -0
  557. package/static/mainicon/deletedevice.png +0 -0
  558. package/static/mainicon/excel.jpg +0 -0
  559. package/static/mainicon/huizong.png +0 -0
  560. package/static/mainicon/jibiaoguanli.png +0 -0
  561. package/static/mainicon/jibiaoguanli2.png +0 -0
  562. package/static/mainicon/jiezhang.png +0 -0
  563. package/static/mainicon/loginbg.jpg +0 -0
  564. package/static/mainicon/shouqishoufei.png +0 -0
  565. package/static/mainicon/treeopen.png +0 -0
  566. package/static/mainicon/treeout.png +0 -0
  567. package/static/mainicon/treeset.png +0 -0
  568. package/static/mainicon/word.jpg +0 -0
  569. package/static/mainicon/wulianwang.png +0 -0
  570. package/static/mainicon/yingyechaxun.png +0 -0
  571. package/static/mainicon/zongheyewu.png +0 -0
  572. package/static/menulogo.png +0 -0
  573. package/static/newStyle/fife.png +0 -0
  574. package/static/newStyle/hidden.png +0 -0
  575. package/static/newStyle/label-clear.png +0 -0
  576. package/static/newStyle/left-img.png +0 -0
  577. package/static/newStyle/login-f.png +0 -0
  578. package/static/newStyle/loginbg.gif +0 -0
  579. package/static/newStyle/loginbg1366.gif +0 -0
  580. package/static/newStyle/loginbg_1.gif +0 -0
  581. package/static/newStyle/searchin.png +0 -0
  582. package/static/newStyle/searchout.png +0 -0
  583. package/static/newStyle/setting.png +0 -0
  584. package/static/newStyle/setting1.png +0 -0
  585. package/static/newStyle/shirk.png +0 -0
  586. package/static/newStyle/system-off.png +0 -0
  587. package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
  588. package/static/newStyle.7z +0 -0
  589. package/static/newStyle.zip +0 -0
  590. package/static/newmainbg.jpg +0 -0
  591. package/static/psicon.png +0 -0
  592. package/static/refresh.png +0 -0
  593. package/static/singleleft.png +0 -0
  594. package/static/singleright.png +0 -0
  595. package/static/static.zip +0 -0
  596. package/static/treeclose.png +0 -0
  597. package/static/treeopen.png +0 -0
  598. package/static/treeout.png +0 -0
  599. package/static/treeset.png +0 -0
  600. package/static/usericon.png +0 -0
  601. package/static/xinxi.png +0 -0
  602. package/examples/SafePlan-liaoyuan/App.vue +0 -53
  603. package/examples/SafePlan-shaoguan/App.vue +0 -52
  604. package/examples/SafePlan-shaoguan/comp.js +0 -1190
  605. package/examples/SafePlanrongcheng/App.vue +0 -52
  606. package/examples/SafePlanrongcheng/comp.js +0 -1041
  607. package/src/assets/JsonEditor/jsoneditor.css +0 -930
  608. package/src/assets/JsonEditor/jsoneditor.js +0 -36377
  609. package/src/assets/bj.jpg +0 -0
  610. package/src/assets/jt.jpg +0 -0
  611. package/src/assets/marrio.jpg +0 -0
  612. package/src/assets/ss.jpg +0 -0
  613. package/src/assets/xl.jpg +0 -0
  614. package/src/assets//346/230/237/347/220/203/350/203/214/346/231/257.jpg +0 -0
  615. package/src/assets//351/232/220/346/202/243/345/210/206/346/236/220.png +0 -0
  616. package/src/components/CheckerCount/CheckCountAreaList.vue +0 -298
  617. package/src/components/CheckerCount/CheckCountUserList.vue +0 -144
  618. package/src/components/ExportExcel.vue +0 -201
  619. package/src/components/android/SwitchValve.vue +0 -189
  620. package/src/components/checkAreaClassification.vue +0 -285
  621. package/src/components/checkplan/checkmsgZG.vue +0 -519
  622. package/src/components/filialCircle/AddCircleFiliale.vue +0 -114
  623. package/src/components/filialCircle/CircleList.vue +0 -139
  624. package/src/components/filialCircle/CircleManage.vue +0 -69
  625. package/src/components/json-editor/SafeJsonEditor.vue +0 -212
  626. package/src/components/json-editor/assets/img/jsoneditor-icons.svg +0 -893
  627. package/src/components/json-editor/assets/jsoneditor-minimalist.js +0 -9751
  628. package/src/components/json-editor/assets/jsoneditor.css +0 -930
  629. package/src/components/json-editor/assets/jsoneditor.js +0 -36377
  630. package/src/components/json-editor/example/App.vue +0 -53
  631. package/src/components/json-editor/example/index.html +0 -9
  632. package/src/components/json-editor/example/main.js +0 -10
  633. package/src/components/json-editor/package.json +0 -71
  634. package/src/components/json-editor/vue-json-editor.vue +0 -189
  635. package/src/components/pc/HiddenChart.vue +0 -189
  636. package/src/components/pc/RoleSelector.vue +0 -89
  637. package/src/components/plan/PlanLeft.vue +0 -320
  638. package/src/components/plan/PlanManage.vue +0 -50
  639. package/src/components/plan/PlanRightUp.vue +0 -185
  640. package/src/components/plan/PlanRightdown.vue +0 -239
  641. package/src/components/plan/testss.vue +0 -116
  642. package/src/components/plancheck/CheckPlanAreaManage.vue +0 -116
  643. package/src/components/plancheck/CheckPlanList.vue +0 -282
  644. package/src/components/report/ManageBusSummary.vue +0 -242
  645. package/src/components/rongcheng/AreaPlan.vue +0 -463
  646. package/src/components/rongcheng/AspPaperStatem.vue +0 -339
  647. package/src/components/rongcheng/AspiratedDevices.vue +0 -965
  648. package/src/components/rongcheng/AspiratedOrderV.vue +0 -2361
  649. package/src/components/rongcheng/AspiratedPaperMessage.vue +0 -1378
  650. package/src/components/rongcheng/AspiratedPaperMessageNocivil.vue +0 -1288
  651. package/src/components/rongcheng/AspiratedUserInfo.vue +0 -399
  652. package/src/components/rongcheng/DefectList.vue +0 -560
  653. package/src/components/rongcheng/DefectPaper.vue +0 -582
  654. package/src/components/rongcheng/PaperFeedback.vue +0 -1318
  655. package/src/components/rongcheng/PaperMessage.vue +0 -1186
  656. package/src/components/rongcheng/PaperMessageNocivil.vue +0 -1211
  657. package/src/components/rongcheng/PaperStateNoncivilm.vue +0 -366
  658. package/src/components/rongcheng/PaperStatem.vue +0 -343
  659. package/src/components/rongcheng/PhoneDevicesInfo.vue +0 -233
  660. package/src/components/rongcheng/SafecheckOrderVCli.vue +0 -2538
  661. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +0 -245
  662. package/src/components/rongcheng/report/CheckPlanAreaList.vue +0 -419
  663. package/src/components/rongcheng/report/CheckPlanUserList.vue +0 -190
  664. package/src/components/shaoguan/DefectDetail.vue +0 -177
  665. package/src/components/shaoguan/DefectMain.vue +0 -53
  666. package/src/components/shaoguan/DefectPaper.vue +0 -217
  667. package/src/components/shaoguan/PaperList.vue +0 -532
  668. package/src/components/shaoguan/SafecheckOrderV.vue +0 -2140
  669. package/src/components/tongcheng/PaperMessage.vue +0 -1270
  670. package/src/components/tongcheng/PaperMessageNocivil.vue +0 -1228
  671. package/src/filiale/Util.js +0 -325
  672. package/src/filiale/liaoyuan/android/SafecheckDevices.vue +0 -928
  673. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +0 -2383
  674. package/src/filiale/liaoyuan/android.js +0 -13
  675. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +0 -1020
  676. package/src/filiale/liaoyuan/pc/PaperList.vue +0 -628
  677. package/src/filiale/liaoyuan/pc.js +0 -13
  678. package/src/filiale/wenxi/android.js +0 -9
  679. package/src/filiale/wenxi/pc/PaperList.vue +0 -627
  680. package/src/filiale/wenxi/pc/checkmsg.vue +0 -229
  681. package/src/filiale/wenxi/pc.js +0 -12
  682. package/src/filiale/wuan/android/SafecheckOrderV.vue +0 -2235
  683. package/src/filiale/wuan/android.js +0 -14
  684. package/src/filiale/wuan/pc/PaperList.vue +0 -625
  685. package/src/filiale/wuan/pc.js +0 -12
  686. package/src/rongcheng-android.js +0 -186
  687. package/src/rongcheng.js +0 -303
  688. /package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/TestData.js +0 -0
  689. /package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/main.js +0 -0
  690. /package/examples/{SafePlanrongcheng → SafePlan-aodezx}/TestData.js +0 -0
  691. /package/examples/{SafePlanrongcheng → SafePlan-aodezx}/main.js +0 -0
  692. /package/examples/{SafePlan-shaoguan → SafePlan-aodezx-ts}/TestData.js +0 -0
  693. /package/examples/{SafePlan-shaoguan → SafePlan-aodezx-ts}/main.js +0 -0
  694. /package/{git → static/.gitkeep} +0 -0
@@ -1,2235 +0,0 @@
1
- <template>
2
- <!--<div class="app-botton" @click="back()">-->
3
- <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
- <!--</div>-->
5
- <div class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
- <div class="col-sm-12 col-xs-12" >
7
- <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
8
- <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
9
- v-if="$index < number+1 && $index < faultshow.number" >
10
- <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
11
- <span class="spanboder">{{row.header}}</span>
12
- <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
13
- <p></p>
14
- </li>
15
- <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
- <route name='repair' :reuse="false"></route>
17
- </div>
18
- <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
19
- v-if="$index > number && $index < faultshow.number ">
20
- <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun" :class="row.class">
21
- <span class="spanboder">{{row.header}}</span>
22
- <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
23
- <p></p>
24
- </li>
25
- <div class="col-sm-12 col-xs-12 repair-bg" v-if="actionEnabled ">
26
- <div class="auto select-overspread form-horizontal repair-bg " style="padding-bottom:5px;">
27
- <div class="bq-parent">
28
- <blockquote class="blockquote">
29
- <p>安检上传</p>
30
- </blockquote>
31
- </div>
32
- <div class="panel panel-default auto repair-info-content">
33
- <div class="panel-body ">
34
- <div class="row auto">
35
- <!--<div class="col-xs-12 col-sm-12 col-md-12" :style="timeSet(this.isneedDate)?'':'display:none'">-->
36
- <!--<label>请输入超期原因:</label><br/>-->
37
- <!--<textarea style="width: 100%;" v-model=""></textarea>-->
38
- <!--</div>-->
39
- <div id="savebut" class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
40
- <div class="col-xs-3 col-sm-3 col-md-3">
41
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="save('temp')">
42
- 临时保存
43
- </button>
44
- </div>
45
- <div class="col-xs-3 col-sm-3 col-md-3">
46
- <button class="col-sm-3 btn btn-primary" @click="save('finish')">
47
- 本地缓存
48
- </button>
49
- </div>
50
- <div class="col-xs-3 col-sm-3 col-md-3">
51
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
52
- 上传
53
- </button>
54
- </div>
55
-
56
- </div>
57
- </div>
58
- </div>
59
- </div>
60
- </div>
61
- </div>
62
- </ul>
63
- </div>
64
-
65
- </div>
66
- </template>
67
-
68
- <script>
69
- // 户内维修
70
- import Vue from 'vue'
71
- import * as Util from '../../Util'
72
- // import DoorService from './DoorService'
73
- // import Pipeline from './Pipeline'
74
- // import DeviceService from './DeviceService'
75
- // import TroubleRemoval from './TroubleRemoval'
76
- // import FirstGasCheck from './FirstGasCheck'
77
- // import RepairMatterInfo from './RepairMatterInfo'
78
- // import TelChangeMatter from './TelChangeMatter'
79
- import { HttpResetClass } from 'vue-client'
80
- import co from 'co'
81
- import $ from 'jquery'
82
- let loadParamGem = async function (self) {
83
- await self.$LoadParams.loadParam()
84
- }
85
-
86
- export default {
87
- title: '安检单',
88
- props: ['f_plan_id', 'item', 'role'],
89
- // props: ['f_plan_id', 'role'],
90
- data() {
91
- return {
92
-
93
-
94
- data: {
95
- f_devices: [],
96
- f_defect_content:''
97
- },
98
- isUpload:false,
99
- onlySave:true, //判断保存还是保存并上传
100
- livedispose:'',
101
- startClick:false, //开始安检按钮是否可点击
102
- isStrat: false, //是否开始安检
103
- checkResult:{},//查询结果
104
- newcheckResult:{},
105
- timer: null,
106
- showModal: false,
107
- pic_to_be_viewed: '',
108
- showBack:true,
109
- devices: [],
110
- f_devices : [],
111
- isToRepair:false,
112
- clickBack:true, //是否点击返回按钮
113
- isSafeCheckToRepair:false,//是否转维修
114
- Url:this.$androidUtil.getProxyUrl(),
115
- detail:{},
116
- defectDevice:{},
117
- user:{},
118
- model: { //转维修数据
119
- // 一次派单
120
- serviceacitivity: [{
121
- f_service_acitivity_type: '派单'
122
- }],
123
- f_source:'安检',
124
- f_service_id: '',
125
- f_contact_phone: '',
126
- f_meetunit: '',
127
- f_phone: '',
128
- f_user_name: '',
129
- f_address: '',
130
- f_repair_date: Util.toStandardTimeString(),
131
- f_card_id: '',
132
- // f_department: '', 站点选择
133
- f_reciever:'',
134
- f_remarks: '',
135
- f_user_type: '',
136
- f_area: '',
137
- f_unit_name:'',
138
- f_street: '',
139
- f_residential_area: '',
140
- f_building: '',
141
- f_unit: '',
142
- f_floor: '',
143
- f_room: '',
144
- aState: null,
145
- f_repairtype: '',
146
- f_repairitems:{},
147
- },
148
- repairitems:[],
149
- meading:'转站点',
150
- config: {
151
- "燃气表":{
152
- "checkmust":true,
153
- "index":1,
154
- "items":{
155
- //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
156
- "基表编号":{"index":1,"type":"string","readonly":true},
157
- "气表型号":{"index":2,"type":"string","readonly":true},
158
- "气表品牌":{"index":3,"type":"string","readonly":true},
159
- "进气方向":{"index":4,"type":"string","readonly":true},
160
- "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
161
- "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
162
- "累购气量":{"index":7,"type":"number","readonly":true},
163
- "累购金额":{"index":7,"type":"number","readonly":true},
164
- "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
165
- "已用金额":{"index":8,"type":"number","checkmust": false},
166
- "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
167
- //显示屏数 --实际剩余气量
168
- "剩余金额":{"index":9,"type":"number","checkmust": false},
169
- "气量异常差值":{"index":10,"type":"number","readonly": true},
170
- "金额异常差值":{"index":10,"type":"number","readonly": true}
171
- }
172
- // 注意,配置项的index必须与上面的固定配置保持'顺序'
173
- },
174
- // "燃气表2":{
175
- // "checkmust":true,
176
- // "index":2,src
177
- // "items":{
178
- // "燃气表照片":{"index":1,"type":"picture"},
179
- // "表品牌":{"index":2,"type":"string","readonly":true},
180
- // "表号":{"index":3,"type":"string","readonly":true},
181
- // "表封号":{"index":4,"type":"number","readonly":true},
182
- // "表型号":{"index":5,"type":"string","readonly":true},
183
- // "位置":{"index":6,"type":"string","readonly":true},
184
- // "表底数":{"index":7,"type":"number","readonly":true},
185
- // "累购气量":{"index":8,"type":"number","readonly":true},
186
- // "累购金额":{"index":8,"type":"number","readonly":true}
187
- // }
188
- // }
189
- },
190
- // 维修项
191
- isneedDate:'',
192
- routeShow:true,
193
- number:0,
194
- shupingshow:false,
195
- pipeline: {},
196
- details: [],
197
- ids: '',
198
- savevalid: {
199
- uservalid: false,
200
- doorvalid: true,
201
- changetable: false
202
- },
203
- doordetails: {},
204
- devicedetails: {},
205
- cookdetails: {},
206
- componentName: 'safecheck-userinfo',
207
- header:'客户信息',
208
- tabs: [
209
-
210
- // 参数全部设置成空,在ready时,等model处理好了,再添加
211
- {
212
- header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
213
- },
214
- {
215
- header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
216
- }
217
- ],
218
- faultshow:{
219
- number : 8
220
- } // 控制 故障汇总 在 菜单里显示与否,
221
- }
222
- },
223
- computed: {
224
- actionEnabled: {
225
- get() {
226
- return this.role == 'inspect'
227
- }
228
- }
229
- },
230
- methods: {
231
- saveNoclick() {
232
- // 禁用点击事件
233
- $("#savebut").addClass("noclickbut");
234
- console.log("进入禁用按钮事件")
235
-
236
- // 5秒后启用点击事件
237
- setTimeout(function(){
238
- $("#savebut").removeClass("noclickbut");
239
- },5000);
240
- },
241
- timeSet(val){
242
- if (!val){
243
- return
244
- }
245
- let time =new Date(val).getTime()
246
- let time2=new Date().getTime()
247
- if (time2>time) {
248
- return true
249
- }
250
- },
251
- imgback(val,isheader){
252
- if(val && this.routeShow && isheader){
253
- return require('../../../assets/xiangxia1.png')
254
- }else{
255
- return require('../../../assets/xiangyou1.png')
256
- }
257
- },
258
- changediv(val){
259
- console.log(val)
260
- return val
261
- },
262
- // 选择tab
263
- tabSelect (item,number) {
264
- this.header = item.header
265
- console.log('item',item)
266
- console.log('number',number)
267
- console.log('this.routeShow',this.routeShow)
268
- console.log('this.number',this.number)
269
- // 处理关闭/显示 内容
270
- if(this.number == number && !this.routeShow ){
271
- this.routeShow = true
272
- }else if(this.number == number && this.routeShow){
273
- this.routeShow = false
274
- }else if(this.number != item.complete){
275
- this.routeShow = true
276
- }
277
- this.number = number
278
- this.componentName = item.complete
279
- console.log('跳转前this.routeShow',this.routeShow)
280
- if(item.complete == 'safecheck-devices'){
281
- console.log('this.data', this.data)
282
- if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
283
- this.data['device' + item.number].push({})
284
- }
285
- console.log('length', this.data['device' + item.number])
286
- console.log('this.data[\'device\' + item.number] ===> ' + JSON.stringify(this.data['device' + item.number]))
287
- let idx=this.data['device' + item.number].length - 1
288
- let itemprops = {
289
- config:this.config,
290
- device:this.devices[item.number-1],
291
- idx:idx,
292
- role:'inspect'
293
- }
294
- console.log('tabSelect函数中赋值')
295
- console.log(JSON.stringify(itemprops))
296
- console.log('itemprops.device ===> ' + JSON.stringify(itemprops.device))
297
- console.log('item.complete',item.complete)
298
- if(this.routeShow){
299
- this.$goto(item.complete, itemprops, 'repair')
300
- console.log('跳转完成')
301
- }
302
- }else{
303
- console.log('页面跳转==》',this.tabs[number])
304
- if(this.routeShow){
305
- this.$goto(item.complete, {userinfo:this.data}, 'repair')
306
- }
307
- }
308
- this.shupingshow = true
309
- },
310
- // 给组件添加参数
311
- getImgPath() {
312
- for (var i = 0; i < this.model.serviceacitivity[0].imgs.length; i++) {
313
- this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
314
- }
315
- this.ids = this.ids.substring(0, this.ids.length - 1)
316
- if(this.ids){
317
- this.getImgGen();
318
- }
319
- },
320
- getImgGen(){
321
- let http = new HttpResetClass()
322
- http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
323
- items: '*',
324
- tablename: 't_files',
325
- condition: `id in (${this.ids})`,
326
- orderitem: 'id'
327
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
328
- for (let i = 0; i < res.data.length; i++) {
329
- for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
330
- console.log(res.data[i].id.toString())
331
- console.log(this.model.serviceacitivity[0].imgs[j].imgid)
332
- if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
333
- this.model.serviceacitivity[0].imgs[j] = Object.assign({}, res.data[i], this.model.serviceacitivity[0].imgs[j])
334
- }
335
- }
336
-
337
- }
338
- })
339
- },
340
-
341
- sortDetails(){
342
- for (let i = 0; i < this.details.length; i++) {
343
- if (this.details[i].details.length) {
344
- for (let j = 0; j < this.details[i].details.length; j++) {
345
- if (this.details[i].details[j].f_type === 'a') {
346
- this.doordetails = {details: this.details[i].details}
347
- break
348
- }
349
- if (this.details[i].details[j].f_type === 'b') {
350
- this.devicedetails = {details: this.details[i].details}
351
- break
352
- }
353
- if (this.details[i].details[j].f_type === 'c') {
354
- this.cookdetails = {details: this.details[i].details}
355
- break
356
- }
357
- }
358
- }
359
- }
360
- },
361
- // 复制数据
362
- back () {
363
- let _this = this
364
- if(this.issee){
365
- _this.$back()
366
- return
367
- }
368
- this.$showMessage('所填写内容将不可恢复!', ['confirm', 'cancel']).then((res) => {
369
- if (res === 'confirm') {
370
- _this.$back()
371
- }
372
- })
373
- },
374
- confirm(){
375
- this.$dispatch('confirm')
376
- },
377
- tick() {
378
- this.timer = null
379
- this.data.f_offsite_time = Util.toStandardTimeString()
380
- this.timer = window.setTimeout(this.tick, 1000)
381
- },
382
- getRepairState() {
383
- let repaired = true
384
- this.data.f_defects.forEach((defect) => {
385
- repaired = repaired & (defect.f_ratification == '已处理')
386
- })
387
- return repaired
388
- },
389
- verifyRepairDefects() {
390
- this.data.f_repair_date = Util.toStandardTimeString()
391
- this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
392
- },
393
- errorVerify() {
394
- let hasError = this.verifyState()
395
- if(hasError)
396
- return hasError
397
-
398
- if(this.data.f_entry_status != '入户')
399
- return null
400
- hasError = this.verifyUser()
401
- if(hasError)
402
- return hasError
403
- hasError = this.verifyDevices()
404
- if(hasError)
405
- return hasError
406
- hasError = this.verifyFeedback()
407
- if(hasError)
408
- return hasError
409
- },
410
- verifyState() {
411
- if(Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
412
- return '未使用天然气则必须拍照'
413
- if(Vue.android && this.data.f_entry_status == '到访不遇' && this.data.f_noanswer_path == Vue.nopic)
414
- return '到访不遇必须拍照'
415
- },
416
- verifyUser() {
417
- console.log('走了校验')
418
- console.log(this.data.f_user_phone)
419
- console.log(/^\d{11}$/.test(this.data.f_user_phone))
420
- let prefix = '用户基本信息:'
421
- if(Util.required(this.data.f_user_name))
422
- return prefix + '用户名必须输入'
423
- if(!(/^\d{11}$/.test(this.data.f_user_phone))) {
424
-
425
- return '请输入正确的电话号码'
426
- }
427
- // if(Util.required(this.data.f_residential_area))
428
- // return prefix + '小区名称必须输入'
429
- if(Util.required(this.data.f_address))
430
- return prefix + '地址必须输入'
431
- },
432
- verifyDevices() {
433
- for (let dev in this.config) {
434
- if (this.config[dev].checkmust == true) {
435
- let error = true
436
- for(let device in this.data) {
437
- if (device.startsWith("device")) {
438
- for (let item in this.data[device]) {
439
- if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
440
- error = false
441
- }
442
- }
443
- }
444
- }
445
- if (error) {
446
- return "请检查" + dev
447
- }
448
- }
449
- }
450
-
451
- for (let dev in this.config) {
452
- for(let device in this.data) {
453
- if (device.startsWith("device")) {
454
- for (let item in this.data[device]) {
455
- //检查每一条安检结果
456
- if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
457
- for (let i in this.data[device][item].f_items) {
458
- for (let it in this.config[dev].items) {
459
- if (it == this.data[device][item].f_items[i].f_item_name) {
460
- if (this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_item_value) {
461
- return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
462
- }
463
- }
464
- }
465
- //检查安检下拉结果
466
- if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
467
- if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
468
- 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 + "选中必须拍照"
469
- }
470
- }
471
- }
472
- }
473
- }
474
- }
475
- }
476
- }
477
- },
478
-
479
-
480
- verifyFeedback() {
481
- let prefix = '拍照签名:'
482
- console.log('this.data.f_overall_imgs==>'+JSON.stringify(this.data.f_overall_imgs))
483
- if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length == 0) && this.data.f_entry_status == '入户')
484
- return prefix + '必须有安检总体照片'
485
- if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
486
- return prefix + '必须有用户签名'
487
- if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
488
- return prefix + '下发安检通知书则必须给通知书拍照'
489
- if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
490
- return prefix + '请填写拉黑原因'
491
- if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
492
- return prefix + '请选择服务评价'
493
- },
494
-
495
- getAllDefect() {
496
- let checkResults = {
497
- result: '正常',
498
- data: []
499
- }
500
- let value = ''
501
- let codata = JSON.parse(JSON.stringify(this.data))
502
- console.log('config =====> ' + JSON.stringify(this.config))
503
- console.log('codata =====> ' + JSON.stringify(codata))
504
- codata.f_devices = []
505
- this.f_devices = []
506
- for (let device in codata) {
507
- let f_device_type
508
- if (device.startsWith("device")) {
509
- console.log('codata[device] =====> ' + JSON.stringify(codata[device]))
510
- let hasOther = ''
511
- let otherValue = null
512
- for (let item in codata[device]) {
513
- codata[device][item].f_create_time = Util.toStandardTimeString()
514
- // if (codata[device].length > 1) {
515
- // let j = Number.parseInt(item) + 1
516
- // f_device_type = `${codata[device][item].f_device_type}${j}`
517
- // } else {
518
- // f_device_type = codata[device][item].f_device_type
519
- // }
520
- console.log("aaaaaaaaa"+device)
521
- console.log("bbbbbbbbbb"+item)
522
- console.log("ccccccccccc"+JSON.stringify(codata[device]))
523
- console.log('codata[device][item]=>',JSON.stringify(codata[device][item]))
524
- for (let i = 0; i < codata[device][item].f_items.length ; i++) {
525
- console.log('i' + i)
526
- if(i == 'sum'){
527
- continue
528
- }
529
- console.log('codata[device][item].f_items' + JSON.stringify(codata[device][item].f_items))
530
- var items = codata[device][item].f_items[i]
531
- items.f_create_time = Util.toStandardTimeString()
532
- console.log('之前items' + JSON.stringify(items))
533
- items.f_item_lists = []
534
- console.log('之后items' + JSON.stringify(items))
535
- // console.log('items' + JSON.stringify(items))
536
- // console.log(`type => ${JSON.stringify(codata[device][item].f_device_type)} name => ${JSON.stringify(items.f_item_name)} value => ${JSON.stringify(items.f_item_value)}`)
537
- // console.log(`f_is_defect => ${this.config[codata[device][item]
538
- // .f_device_type]
539
- // .items[items.f_item_name]
540
- // .options
541
- // .find((option)=>option.data === items.f_item_value)
542
- // .map((option)=>option.f_is_defect)}`)
543
- // if (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true')) {
544
- // console.log('进入有隐患')
545
- // checkResults.result = '有隐患'
546
- // console.log('有隐患items.f_item_name==》' + JSON.stringify(items.f_item_name))
547
- // console.log('有隐患items.f_item_value==》' + JSON.stringify(items.f_item_value))
548
- // // this.$set('checkResult.' + items.f_item_name, items.f_item_value)
549
- // this.checkResult[items.f_item_name] = items.f_item_value
550
- // console.log('有隐患checkResult==》' + JSON.stringify(this.checkResult))
551
- // // this.$set('checkResultsss.' + items.f_item_name, `${f_device_type}${items.f_item_value}`)
552
- // // console.log('有隐患checkResultsss==》' + JSON.stringify(this.checkResultsss))
553
- // }
554
- if (items.type == 'selector') {
555
- items.selected = []
556
- } else if (items.type == 'inputSelector') {
557
- items.selected = ''
558
- }
559
- //遍历配置项 将所选隐患项的配置信息放入保存的数据中
560
- let f_is_defect //是否是隐患
561
- let f_defect_level //是否是隐患
562
- let f_item_name = items.f_item_name
563
- let f_item_value
564
- let f_is_eliminate //隐患是否消除
565
- let f_meternumber = ''
566
- let f_user_defects = [] // 用户所有隐患
567
- console.log('f_item_name=====>' + f_item_name)
568
- console.log('items.type=====>' + items.type)
569
- if (items.type == 'selector' || items.type == 'checkbox') {
570
- for (let i in items.f_item_value) {
571
- let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
572
- console.log('configItems=====>' + JSON.stringify(configItems))
573
- for (let k in configItems.options) {
574
- console.log('configItems.options[k]==>' + JSON.stringify(configItems.options[k]))
575
- if (items.f_item_value[i] === configItems.options[k].data) {
576
-
577
- f_is_defect = configItems.options[k].isdefect
578
- f_item_value = items.f_item_value[i]
579
- f_defect_level = configItems.options[k].level
580
-
581
- console.log('f_is_defect=====>' + f_is_defect)
582
- console.log('f_item_value=====>' + f_item_value)
583
- console.log('f_defect_level=====>' + f_defect_level)
584
-
585
- if (f_is_defect) {
586
- if (checkResults.result !== '有隐患') {
587
- checkResults.result = '有隐患'
588
- }
589
- if (!this.checkResult.hasOwnProperty(f_item_name)) {
590
- console.log(`The ${f_item_name} initialized`)
591
- this.checkResult[f_item_name] = []
592
- }
593
-
594
- console.log(`The ${f_item_name} was pushed ${f_item_value}`)
595
- this.checkResult[f_item_name].push(f_item_value)
596
-
597
- }
598
-
599
- let items_list = {
600
- f_is_defect: f_is_defect,
601
- f_item_value: f_item_value,
602
- f_defect_level: f_defect_level,
603
- f_is_eliminate: null,
604
- f_create_time: Util.toStandardTimeString()
605
- }
606
- if (!items.f_item_lists) {
607
- console.log('f_item_lists未定义')
608
- items.f_item_lists = []
609
- console.log('items_list=========>' + JSON.stringify(items_list))
610
- if (JSON.stringify(items_list) !== '{}') {
611
- console.log('放了')
612
- items.f_item_lists.push(items_list)
613
- }
614
- } else {
615
- console.log('items_list=========>' + JSON.stringify(items_list))
616
- if (JSON.stringify(items_list) !== '{}') {
617
- console.log('也放了')
618
- items.f_item_lists.push(items_list)
619
- }
620
- }
621
- }
622
- }
623
- }
624
- } else {
625
- let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
626
- console.log('configItems===>' + JSON.stringify(configItems))
627
- f_is_defect = configItems.isdefect
628
- f_defect_level = configItems.level
629
- f_item_value = items.f_item_value
630
- console.log('else f_is_defect=====>' + f_is_defect)
631
- console.log('else f_defect_level=====>' + f_defect_level)
632
- console.log('items.f_item_value==>' + items.f_item_value)
633
- let items_list = {
634
- f_is_defect: f_is_defect,
635
- f_item_value: f_item_value,
636
- f_defect_level: f_defect_level,
637
- f_create_time: Util.toStandardTimeString()
638
- }
639
- if (f_is_defect && f_item_value) {
640
- items.f_is_defect = true
641
- if (checkResults.result !== '有隐患') {
642
- checkResults.result = '有隐患'
643
- }
644
- if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
645
- console.log(`The ${items.f_item_name} initialized`)
646
- this.checkResult[items.f_item_name] = []
647
- }
648
-
649
- console.log(`The ${items.f_item_name} was pushed ${f_item_value}`)
650
- this.checkResult[items.f_item_name].push(f_item_value)
651
-
652
- }
653
- console.log('items_list=========>' + JSON.stringify(items_list))
654
- console.log('items.f_item_lists' + JSON.stringify(items.f_item_lists))
655
- if (!items.f_item_lists) {
656
- console.log('f_item_lists未定义')
657
- items.f_item_lists = []
658
- if (JSON.stringify(items_list) != '{}') {
659
- console.log('else放了')
660
- items.f_item_lists.push(items_list)
661
- }
662
- } else {
663
- // items.f_item_lists[0].f_item_value = f_item_value
664
- if (JSON.stringify(items_list) != '{}') {
665
- console.log('else也放了')
666
- console.log('放之后items_list=========>' + JSON.stringify(items_list))
667
- console.log('放之后items.f_item_lists' + JSON.stringify(items.f_item_lists))
668
- console.log('type=>items.f_item_lists' + typeof items.f_item_lists)
669
- items.f_item_lists.push(items_list)
670
- }
671
- }
672
- }
673
- if (hasOther !== '' && otherValue !== null) {
674
- console.log(`The other value was pushed.`)
675
- this.checkResult[hasOther].push(otherValue)
676
- hasOther = ''
677
- otherValue = null
678
- }
679
- items.f_item_value = ''
680
- }
681
- console.log('安检结果checkResult' + JSON.stringify(this.checkResult))
682
- this.f_devices.push(codata[device][item])
683
- }
684
- }
685
- }
686
- if (this.checkResult) {
687
- for (let key in this.checkResult) {
688
- // 上次安检结果数据组织
689
- console.log('key=>' + key)
690
- console.log('value=>' + this.checkResult[key])
691
- let temp = {}
692
- temp[key] = this.checkResult[key].join(',')
693
- checkResults.data.push(temp)
694
- // this.newcheckResult[key] = this.checkResult[key]
695
- // checkResults.data.push(this.newcheckResult)
696
- console.log('checkResults.data==>' + JSON.stringify(checkResults))
697
- // this.newcheckResult = {}
698
- }
699
- this.checkResult = {}
700
- }
701
- console.log(`typeof-checkResults-->${typeof checkResults}`)
702
- console.log('checkResults ==> ' + JSON.stringify(checkResults))
703
- codata.f_defect_content = JSON.stringify(checkResults)
704
- this.data.f_defect_content = JSON.stringify(checkResults)
705
- console.log('f_defect_content' + codata.f_defect_content)
706
- return codata
707
- },
708
- uploadCheckPaper(){
709
- this.saveNoclick()
710
- console.log('禁用事件执行完成')
711
- console.log('进入上传')
712
- let errString = this.errorVerify()
713
- if (errString) {
714
- console.log(errString)
715
- console.log('Vue.android',Vue.android)
716
- console.log('this.isUpload',this.isUpload)
717
- if (Vue.android){
718
- // if(this.isUpload){
719
- // this.isUpload = false
720
- // }
721
- this.$showMessage(errString)
722
- }
723
- return
724
- } else {
725
- this.$set('data.f_offsite_time', Util.toStandardTimeString())
726
- this.$set('data.f_upload_time', Util.toStandardTimeString())
727
- this.$set('data.f_upload_date', Util.toStandardTimeString())
728
- console.log('赋值后',this.data)
729
- this.data.f_complete = '已完成'
730
- this.disableTimer()
731
- }
732
- console.log('uploadCheckPaper-->isUpload'+this.isUpload)
733
- this.onlySave = false
734
- let res = this.save()
735
- // if(res) {
736
- // try {
737
- // let codata = this.getAllDefect()
738
- // //获取微信推送内容
739
- // let WxResult = this.getWeixin(codata)
740
- // let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
741
- // f_check_item_id: this.data.f_check_item_id
742
- // })
743
- // //如果是转维修上传,则不做校验,上传完成后自动转维修
744
- // console.log('this.isToRepair=======》'+this.isToRepair)
745
- // console.log('this.livedispose=======》'+this.livedispose)
746
- // if(!this.isToRepair){
747
- // if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
748
- // console.log('是否已转维修')
749
- // console.log(this.isSafeCheckToRepair)
750
- // if(!this.isSafeCheckToRepair){
751
- // this.$showMessage('有未处理的隐患,请前往拍照上传中将安检转为维修单!')
752
- // return
753
- // }
754
- // }
755
- // }
756
- // console.log(`codata类型-->${typeof codata}`)
757
- // for (let key in codata){
758
- // if(key.startsWith("device")){
759
- // codata[key] = []
760
- // }
761
- // }
762
- // console.log(`codata内容-->${JSON.stringify(codata)}`)
763
- //
764
- // console.log('遮挡上传')
765
- // let isStart = true
766
- // let res
767
- // for (let i in this.f_devices){
768
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
769
- // if(res.code == 200){
770
- // isStart = false
771
- // }else{
772
- // this.$showMessage("保存失败!")
773
- // }
774
- // }
775
- // let result = HostApp.organizeJSON({
776
- // isStart:false,
777
- // isJSON:true,
778
- // jsonstr:{
779
- // f_check_item_id: this.data.f_check_item_id,
780
- // f_checker_id: this.data.f_checker_id,
781
- // row: codata
782
- // }
783
- // })
784
- // if(result.code == 200){
785
- // HostApp.__this__ = this
786
- // this.runSyncLogic('上传安检信息','javascript:HostApp.__this__.uploadCallBack()',1)
787
- // }
788
- //
789
- //
790
- // // let response = this.$androidUtil.bzLogic('上传安检信息', {
791
- // // f_check_item_id: this.data.f_check_item_id,
792
- // // f_checker_id: this.data.f_checker_id,
793
- // // row: codata
794
- // // })
795
- // // if (response.code == 200) {
796
- // // console.log('=============response.data==================')
797
- // // console.log(JSON.stringify(response.data))
798
- // // let f_paper_id
799
- // // if(response.data != '' && response.data != null){
800
- // // f_paper_id = JSON.parse(response.data).id
801
- // // }
802
- // // this.$set('data.f_paper_id', f_paper_id)
803
- // // console.log('=============f_paper_id==================')
804
- // // console.log(JSON.stringify(f_paper_id))
805
- // // console.log(this.data.f_paper_id)
806
- // // console.log("===data"+JSON.stringify(this.data))
807
- // // for (let device in this.data){
808
- // // console.log("上传设备信息device=======>"+device)
809
- // // console.log("上传设备信息device=======>"+JSON.stringify(this.data[device]))
810
- // // if(device.startsWith("device")){
811
- // // for(let devices of this.data[device]) {
812
- // // devices.f_paper_id = f_paper_id
813
- // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
814
- // // row: devices
815
- // // })
816
- // // console.log(`上传设备信息结果res======${JSON.stringify(ret.data)}`)
817
- // // if(ret.code == 200){
818
- // // console.log(`设备信息id======${ret.data.f_device_id}`)
819
- // // devices.f_device_id = JSON.parse(ret.data.f_device_id).id
820
- // // }
821
- // // console.log('上传设备信息device======')
822
- // // console.log(JSON.stringify(devices))
823
- // // if (ret.code != 200) {
824
- // // //TODO 失败后处理
825
- // // // this.isUpload = false
826
- // // this.$showMessage("上传失败!")
827
- // // return false
828
- // // }
829
- // // }
830
- // // }
831
- // // }
832
- // // // for (let device of this.f_devices) {
833
- // // // device.f_paper_id = f_paper_id
834
- // // // console.log('上传设备信息device======')
835
- // // // console.log(JSON.stringify(device))
836
- // // // let ret = this.$androidUtil.bzLogic('UpCheckPaperDevices', {
837
- // // // row: device
838
- // // // })
839
- // // // console.log(`上传设备信息结果res======${ret}`)
840
- // // // if (ret.code != 200) {
841
- // // // //TODO 失败后处理
842
- // // // HostApp.alert("上传失败!")
843
- // // // return false
844
- // // // }
845
- // // // }
846
- // // let result = this.$androidUtil.bzLogic('FinishUpload',
847
- // // {
848
- // // f_check_item_id: this.data.f_check_item_id,
849
- // // f_userinfo_id: codata.f_userinfoid,
850
- // // f_last_check_result: codata.f_defect_content
851
- // // })
852
- // // if(result.code == 200){
853
- // // // this.$showAlert('上传成功!', 'success', 2000)
854
- // // this.$showMessage('上传成功!')
855
- // // this.isStrat=false
856
- // // if(url != "" ){
857
- // // this.$resetpost(`${url}`,{data:WxResult})
858
- // // }
859
- // // return true
860
- // // }else{
861
- // // // this.isUpload = false
862
- // // this.$showMessage("上传失败!")
863
- // // return false
864
- // // }
865
- // // }else{
866
- // // // this.isUpload = false
867
- // // this.$showMessage("上传失败!")
868
- // // return false
869
- // // }
870
- // }catch (e) {
871
- // console.log('上传失败==='+JSON.stringify(e))
872
- // // this.isUpload = false
873
- // this.$showMessage("上传失败!")
874
- // }
875
- // }
876
- },
877
- save(type) {
878
- this.saveNoclick()
879
- console.log('禁用事件完成')
880
- console.log('进入保存')
881
- if(type == 'temp'){
882
- this.data.f_complete = '未完成'
883
- this.disableTimer()
884
- }else {
885
- let errString = this.errorVerify()
886
- if (errString) {
887
- console.log(errString)
888
- console.log('Vue.android',Vue.android)
889
- console.log('this.isUpload',this.isUpload)
890
- if (Vue.android){
891
- this.$showMessage(errString)
892
- }
893
- return
894
- } else {
895
- this.data.f_complete = '已完成'
896
- this.$set('data.f_offsite_time', Util.toStandardTimeString())
897
- this.disableTimer()
898
- }
899
- }
900
- console.log("是否被拉黑-"+this.data.f_blacklist)
901
- if(this.data.f_blacklist!='是'){
902
- delete this.data.f_blocking_cause
903
- }
904
- // try {
905
- let codata = this.getAllDefect()
906
- console.log(`codata类型-->${typeof codata}`)
907
- console.log(`codata内容-->${JSON.stringify(codata)}`)
908
- for (let key in codata) {
909
- if (key.startsWith("device")) {
910
- console.log('this.data.' + key + JSON.stringify(codata[key]))
911
- codata[key] = []
912
- }
913
- }
914
- console.log(`codata内容-->${JSON.stringify(codata)}`)
915
- console.log(`codata内容-->${JSON.stringify(codata.f_user_defects)}`)
916
- console.log('安卓环境?=》' + Vue.android)
917
- if (Vue.android) {
918
- console.log('Vue.android is true')
919
- let value = this.$androidUtil.path({
920
- alias: 'getUserinfomation',
921
- data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
922
- })
923
- console.log('getUserinfomation value ==> ' + JSON.stringify(value))
924
- if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
925
- // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
926
- // f_check_item_id: this.data.f_check_item_id,
927
- // f_checker_id: this.data.f_checker_id,
928
- // f_upload_state:'未传',
929
- // row: codata
930
- // })
931
- console.log('无计划安检保存')
932
- let isStart = true
933
- // let res
934
- // for (let i in this.f_devices) {
935
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
936
- // if (res.code == 200) {
937
- // isStart = false
938
- // } else {
939
- // this.$showMessage("保存失败!")
940
- // }
941
- // }
942
- // let result = HostApp.organizeJSON({
943
- // isStart: false,
944
- // isJSON: true,
945
- // jsonstr: {
946
- // f_check_item_id: this.data.f_check_item_id,
947
- // f_checker_id: this.data.f_checker_id,
948
- // f_upload_state: '未传',
949
- // row: codata
950
- // }
951
- // })
952
- codata.f_devices = this.f_devices
953
- let param = {
954
- f_check_item_id: this.data.f_check_item_id,
955
- f_checker_id: this.data.f_checker_id,
956
- f_upload_state: '未传',
957
- row: codata
958
- }
959
- console.log('codata ===> ' + JSON.stringify(codata))
960
- let paramStr = JSON.stringify(param)
961
- // 多长截断一次
962
- let subLength = 800
963
- for (let i = 0; i < paramStr.length; i += subLength) {
964
- HostApp.param_cache(paramStr.substr(i, subLength))
965
- }
966
- HostApp.__this__ = this
967
- HostApp.syncLogic({
968
- // logic别名,key必须为logic
969
- 'logic': 'SafeSaveNoPaper',
970
- // 回调执行方法名,key必须为callback
971
- 'callback': 'javascript:HostApp.__this__.saveCallBack()',
972
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
973
- // 执行回调方法传入key为backresult
974
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
975
- 'backresult': 1
976
- })
977
- } else {
978
- console.log('非无计划安检保存')
979
- let isStart = true
980
- let res
981
- console.log('this.f_devices' + JSON.stringify(this.f_devices))
982
- // for (let i in this.f_devices) {
983
- // console.log('this.f_devices[i] ====>' + JSON.stringify(this.f_devices[i]))
984
- // for (let j = 0; j < this.f_devices[i].f_items.length; j++) {
985
- // console.log(`this.f_devices[i].f_items[${j}] ===> ` + JSON.stringify(this.f_devices[i].f_items[j]))
986
- // }
987
- // res = HostApp.organizeJSON({isStart: isStart, isDevice: true, device: this.f_devices[i]})
988
- // console.log('f_devices organizeJSON ==> ' + JSON.stringify(res))
989
- // if (res.code == 200) {
990
- // isStart = false
991
- // } else {
992
- // this.$showMessage("保存失败!")
993
- // }
994
- // }
995
- console.log('this.data ==> ' + JSON.stringify(this.data))
996
- console.log('f_check_item_id ==> ' + JSON.stringify(this.data.f_check_item_id))
997
- console.log('f_checker_id ==> ' + JSON.stringify(this.data.f_checker_id))
998
- // let result = HostApp.organizeJSON({
999
- // isStart: false,
1000
- // isJSON: true,
1001
- // jsonstr: {
1002
- // f_check_item_id: this.data.f_check_item_id,
1003
- // f_checker_id: this.data.f_checker_id,
1004
- // row: codata
1005
- // }
1006
- // })
1007
- codata.f_devices = this.f_devices
1008
- let param = {
1009
- f_check_item_id: this.data.f_check_item_id,
1010
- f_checker_id: this.data.f_checker_id,
1011
- row: codata
1012
- }
1013
- console.log('codata ===> ' + JSON.stringify(codata))
1014
- let paramStr = JSON.stringify(param)
1015
- // 多长截断一次
1016
- let subLength = 800
1017
- for (let i = 0; i < paramStr.length; i += subLength) {
1018
- HostApp.param_cache(paramStr.substr(i, subLength))
1019
- }
1020
- HostApp.__this__ = this
1021
- HostApp.syncLogic({
1022
- // logic别名,key必须为logic
1023
- 'logic': '保存安检单信息',
1024
- // 回调执行方法名,key必须为callback
1025
- 'callback': 'javascript:HostApp.__this__.saveCallBack()',
1026
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1027
- // 执行回调方法传入key为backresult
1028
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1029
- 'backresult': 1
1030
- })
1031
- }
1032
-
1033
- } else {
1034
- console.log("保存的值", codata)
1035
- let value = this.$androidUtil.path({
1036
- alias: 'getUserinfomation',
1037
- data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1038
- })
1039
-
1040
- if (this.item.f_no_checkplan == '无计划安检' && value.data.length == 0 && this.item.f_no_checkplan != '打回') {
1041
- this.$androidUtil.bzLogic('SafeSaveNoPaper', {
1042
- f_check_item_id: this.data.f_check_item_id,
1043
- f_checker_id: this.data.f_checker_id,
1044
- f_upload_state: '未传',
1045
- row: codata
1046
- }).then((res) => {
1047
- if (res.data.code == 200) {
1048
- //保存devices
1049
- this.$androidUtil.bzLogic('getPaperInfo', {
1050
- f_check_item_id: this.data.f_check_item_id
1051
- }).then((res) => {
1052
- console.log(`查询paper结果res======${res}`)
1053
- if (res.data.code == 200) {
1054
-
1055
- let f_paper_id = res.data.data[0].id
1056
- for (let device of this.f_devices) {
1057
- device.f_paper_id = f_paper_id
1058
- console.log('设备信息device======', device)
1059
- this.$androidUtil.bzLogic('saveDevice', {
1060
- row: device
1061
- }).then((ret) => {
1062
- console.log(`保存设备信息结果res======`, ret)
1063
- if (ret.code != 200) {
1064
- // if(this.isUpload){
1065
- // this.isUpload = false
1066
- // }
1067
- //TODO 失败后处理
1068
- this.$showMessage("保存失败!")
1069
- return false
1070
- }
1071
- })
1072
- }
1073
- }
1074
- })
1075
- // this.$showAlert('保存成功!', 'success', 2000)
1076
- this.$showMessage('保存成功!')
1077
- return true
1078
- } else {
1079
- // if(this.isUpload){
1080
- // this.isUpload = false
1081
- // }
1082
- this.$showMessage("保存失败!")
1083
- return false
1084
- }
1085
- })
1086
- } else {
1087
- this.$androidUtil.bzLogic('保存安检单信息', {
1088
- f_check_item_id: this.data.f_check_item_id,
1089
- f_checker_id: this.data.f_checker_id,
1090
- row: codata
1091
- }).then((res) => {
1092
- console.log('asdddddddddddddddddddddddddddddd')
1093
- if (res.data.code == 200) {
1094
- //保存devices
1095
- this.$androidUtil.bzLogic('getPaperInfo', {
1096
- f_check_item_id: this.data.f_check_item_id
1097
- }).then((res) => {
1098
- console.log(`查询paper结果res======${res}`)
1099
- if (res.data.code == 200) {
1100
-
1101
- let f_paper_id = res.data.data[0].id
1102
- for (let device of this.f_devices) {
1103
- device.f_paper_id = f_paper_id
1104
- console.log(`设备信息device======${device}`)
1105
- this.$androidUtil.bzLogic('saveDevice', {
1106
- row: device
1107
- }).then((ret) => {
1108
- console.log(`保存设备信息结果res======${ret}`)
1109
- if (ret.code != 200) {
1110
- // if(this.isUpload){
1111
- // this.isUpload = false
1112
- // }
1113
- //TODO 失败后处理
1114
- this.$showMessage("保存失败!")
1115
- return false
1116
- }
1117
- })
1118
- }
1119
- }
1120
- })
1121
- // this.$showAlert('保存成功!', 'success', 2000)
1122
- this.$showMessage('保存成功!')
1123
- return true
1124
- } else {
1125
- // if(this.isUpload){
1126
- // this.isUpload = false
1127
- // }
1128
- this.$showMessage("保存失败!")
1129
- return false
1130
- }
1131
- })
1132
- }
1133
- }
1134
- // }catch (e) {
1135
- // console.log('保存失败==='+JSON.stringify(e))
1136
- // // this.isUpload = false
1137
- // this.$showMessage("保存失败!")
1138
- // }
1139
- },
1140
- runSyncLogic(logic,callback,backresult){
1141
- HostApp.runSyncLogic({
1142
- // logic别名,key必须为logic
1143
- 'logic': logic,
1144
- // 回调执行方法名,key必须为callback
1145
- 'callback': callback,
1146
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1147
- // 执行回调方法传入key为backresult
1148
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1149
- 'backresult':backresult
1150
- })
1151
- },
1152
- logicWithHint(logic,data,callback,backresult){
1153
- HostApp.logicWithHint({
1154
- // logic别名,key必须为logic
1155
- 'logic': logic,
1156
- // 回调执行方法名,key必须为callback
1157
- 'callback': callback,
1158
- // logic执行需要的业务参数
1159
- 'data': data,
1160
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1161
- // 执行回调方法传入key为backresult
1162
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1163
- 'backresult':backresult
1164
- })
1165
- },
1166
- saveCallBack(jo){
1167
- console.log(JSON.stringify(jo))
1168
- if(jo.state == 'ok'){
1169
- let res = JSON.parse(jo.result)
1170
- console.log('保存结果===》'+JSON.stringify(res))
1171
- if(res.code == 200){
1172
- console.log('onlySave=====>'+this.onlySave)
1173
- if(!this.onlySave){
1174
- let codata = this.getAllDefect()
1175
- //获取微信推送内容
1176
- // let WxResult = this.getWeixin(codata)
1177
- let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1178
- f_check_item_id: this.data.f_check_item_id
1179
- })
1180
- //如果是转维修上传,则不做校验,上传完成后自动转维修
1181
- console.log('this.isToRepair=======》'+this.isToRepair)
1182
- console.log('this.livedispose=======》'+this.livedispose)
1183
- if(!this.isToRepair){
1184
- if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1185
- console.log('是否已转维修')
1186
- console.log(this.isSafeCheckToRepair)
1187
- if(!this.isSafeCheckToRepair){
1188
-
1189
- }
1190
- }
1191
- }
1192
- console.log(`codata类型-->${typeof codata}`)
1193
- for (let key in codata){
1194
- if(key.startsWith("device")){
1195
- codata[key] = []
1196
- }
1197
- }
1198
- console.log(`codata内容-->${JSON.stringify(codata)}`)
1199
-
1200
- console.log('遮挡上传')
1201
- // let isStart = true
1202
- // let res
1203
- // for (let i in this.f_devices){
1204
- // res = HostApp.organizeJSON({isStart:isStart,isDevice:true,device:this.f_devices[i]})
1205
- // if(res.code == 200){
1206
- // isStart = false
1207
- // }else{
1208
- // this.$showMessage("上传失败!")
1209
- // return
1210
- // }
1211
- // }
1212
- // let result = HostApp.organizeJSON({
1213
- // isStart:false,
1214
- // isJSON:true,
1215
- // jsonstr:{
1216
- // f_check_item_id: this.data.f_check_item_id,
1217
- // f_checker_id: this.data.f_checker_id,
1218
- // row: codata
1219
- // }
1220
- // })
1221
- codata.f_devices = this.f_devices
1222
- let param = {
1223
- f_check_item_id: this.data.f_check_item_id,
1224
- f_checker_id: this.data.f_checker_id,
1225
- row: codata
1226
- }
1227
- console.log('codata ===> ' + JSON.stringify(codata))
1228
- let paramStr = JSON.stringify(param)
1229
- // 多长截断一次
1230
- let subLength = 800
1231
- for (let i = 0; i < paramStr.length; i += subLength) {
1232
- HostApp.param_cache(paramStr.substr(i, subLength))
1233
- }
1234
- HostApp.__this__ = this
1235
- HostApp.syncLogic({
1236
- // logic别名,key必须为logic
1237
- 'logic': '上传安检信息',
1238
- // 回调执行方法名,key必须为callback
1239
- 'callback': 'javascript:HostApp.__this__.uploadCallBack()',
1240
- // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1241
- // 执行回调方法传入key为backresult
1242
- // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1243
- 'backresult': 1
1244
- })
1245
- }else{
1246
- this.$showMessage('保存成功!')
1247
- if(this.clickBack){
1248
- this.isStrat = false
1249
- this.$dispatch('confirm')
1250
- //this.$back()
1251
- }
1252
- }
1253
- }else{
1254
- this.$showMessage('保存失败!')
1255
- return
1256
- }
1257
- }else{
1258
- this.$showMessage('服务器内部错误,保存失败!')
1259
- return
1260
- }
1261
- },
1262
- uploadCallBack(jo){
1263
- //获取微信推送路径
1264
- let url = ""
1265
- if(Vue.config.safecheck != undefined) {
1266
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1267
- if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1268
- url = Vue.config.safecheck.ApproveConfig.weixinurl
1269
- }
1270
- }
1271
- }
1272
- console.log(JSON.stringify(jo))
1273
- console.log('jo ===> ' + JSON.stringify(jo))
1274
- if(jo.state == 'ok'){
1275
- let res = JSON.parse(jo.result)
1276
- console.log('上传结果===》'+JSON.stringify(res))
1277
- console.log('上传结果的f_paper_id===》'+JSON.stringify(res.id))
1278
- if(res.code == 200){
1279
- this.$set('data.f_paper_id', res.id)
1280
- this.isStrat=false
1281
- if(url != ""){
1282
- this.$resetpost(`${url}`,{data:WxResult})
1283
- }
1284
- console.log('this.isToRepair==============>'+this.isToRepair)
1285
- if(this.isToRepair){
1286
- for (let device in this.data){
1287
- if(device.startsWith("device")){
1288
- this.data[device] = []
1289
- if(res.data.length > 0){
1290
- for(let i in res.data[0].f_devices){
1291
- if(this.data[device].length > 0){
1292
- if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1293
- this.data[device].push(res.data[0].f_devices[i])
1294
- res.data[0].f_devices.splice(i,1)
1295
- }
1296
- }else{
1297
- this.data[device].push(res.data[0].f_devices[i])
1298
- res.data[0].f_devices.splice(i,1)
1299
- }
1300
- }
1301
- }
1302
- }
1303
- }
1304
- this.todo()
1305
- }else{
1306
- this.$showMessage('上传成功!')
1307
- console.log('上传结束back')
1308
- this.$dispatch('confirm')
1309
- // this.$back()
1310
- }
1311
- }else if(res.code == 309){
1312
- this.$showMessage('该安检单已作废!')
1313
- console.log('该安检单已作废')
1314
- this.$dispatch('confirm')
1315
- }else{
1316
- this.$showMessage('上传失败!')
1317
- this.onlySave = true
1318
- }
1319
- }else {
1320
- this.$showMessage('服务器内部错误,上传失败!')
1321
- this.onlySave = true
1322
- }
1323
- },
1324
- safecheckToRepairCallBack(jo){
1325
- //获取微信推送路径
1326
- if(jo.state == 'ok'){
1327
- let res = JSON.parse(jo.result)
1328
- console.log('安检转维修===》'+JSON.stringify(res))
1329
- if(res.code == 200){
1330
- console.log('安检转维修成功')
1331
- if(res.data.code == 200){
1332
- this.$showMessage('上传并转维修成功!')
1333
- }else{
1334
- this.$showMessage('上传并转维修成功,回写安检单失败!')
1335
- }
1336
- this.$dispatch('confirm')
1337
- // this.$back()
1338
- }else{
1339
- this.$showMessage('上传失败!')
1340
- this.onlySave = true
1341
- }
1342
- }else{
1343
- this.$showMessage('服务器内部错误,上传失败!')
1344
- this.onlySave = true
1345
- }
1346
- },
1347
- todo(){
1348
- let gen = getRepairParam(this)
1349
- co(gen)
1350
- },
1351
- undo(){
1352
- this.showCheckToRepair = !this.showCheckToRepair
1353
- this.model.serviceacitivity[0].f_reciever = ''
1354
- this.model.serviceacitivity[0].f_meetunit = ''
1355
- this.model.f_repairtype = ''
1356
- this.meading = '转站点'
1357
- },
1358
- disableTimer() {
1359
- if(this.timer) {
1360
- window.clearTimeout(this.timer)
1361
- this.timer = null
1362
- }
1363
- },
1364
- loaded(paper) {
1365
- if(!paper.hasOwnProperty('id')) {
1366
- this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1367
- this.init()
1368
- } else {
1369
- Util.booleanFilter(paper)
1370
- HostApp.__this__.$set('data', paper)
1371
- HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1372
- // 如果打回重检则重新计时
1373
- console.log('HostApp.__this__.role' + HostApp.__this__.role + ' HostApp.__this__.f_approved:' + HostApp.__this__.data.f_approved)
1374
- if(HostApp.__this__.role == 'inspect'
1375
- && HostApp.__this__.data.f_approved
1376
- && HostApp.__this__.data.f_approved == '打回') {
1377
- console.log('打回')
1378
- HostApp.__this__.data.f_onsite_time = Util.toStandardTimeString()
1379
- HostApp.__this__.tick()
1380
- }
1381
- }
1382
- HostApp.__callback__ = null
1383
- HostApp.__this__ = null
1384
- },
1385
- S4() {
1386
- return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1387
- },
1388
- extend(initalObj, finalObj) {
1389
- var obj = finalObj || {};
1390
- for (var i in initalObj) {
1391
- var prop = initalObj[i];
1392
-
1393
- // 避免相互引用对象导致死循环,如initalObj.a = initalObj的情况
1394
- if (prop === obj) {
1395
- continue;
1396
- }
1397
-
1398
- if (typeof prop === 'object') {
1399
- if (obj[i]) {
1400
- this.extend(obj[i], prop)
1401
- } else {
1402
- obj[i] = prop;
1403
- }
1404
- }
1405
- }
1406
- return obj;
1407
- },
1408
- // async isoverDate(){
1409
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
1410
- // condition:"f_plan_item_id='"+this.item.id+"'"
1411
- // }
1412
- // })
1413
- // this.isneedDate=res.data[0]["f_subscribe_date"]
1414
- // },
1415
- putDevices() {
1416
- console.log('Vue.config => ' + JSON.stringify(Vue.config))
1417
- console.log('Vue.config.DevicesConfig => ' + JSON.stringify(Vue.config.DevicesConfig))
1418
- this.$set('data.approve', "true")
1419
- this.$set('data.writeback', "false")
1420
- if (Vue.config.safecheck != undefined) {
1421
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1422
- if (Vue.config.safecheck.ApproveConfig.approve != undefined) {
1423
- this.$set('data.approve', Vue.config.safecheck.ApproveConfig.approve)
1424
- }
1425
- if (Vue.config.safecheck.ApproveConfig.writeback != undefined) {
1426
- this.$set('data.writeback', Vue.config.safecheck.ApproveConfig.writeback)
1427
- }
1428
- if (Vue.config.safecheck.ApproveConfig.livedispose != undefined) {
1429
- this.livedispose = Vue.config.safecheck.ApproveConfig.livedispose
1430
- }
1431
- }
1432
- console.log(Vue.config)
1433
- console.log('Vue.config.safecheck.DevicesConfig=>' + JSON.stringify(Vue.config.safecheck.DevicesConfig))
1434
- console.log('赋值前的config=>' + JSON.stringify(this.config))
1435
- console.log("当前用户类型"+this.item.f_user_type)
1436
- if(this.item.f_user_type == '民用'){
1437
- // 民用户
1438
-
1439
- if (Vue.config.safecheck.DevicesConfig != undefined){
1440
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1441
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1442
- }else{
1443
- console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1444
- console.log("当前用户类型-Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type])
1445
- console.log("当前用户类型"+Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1446
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1447
- }
1448
- // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1449
- }
1450
- }else {
1451
- // 非民用
1452
- if (Vue.config.safecheck.DevicesSetConfig != undefined){
1453
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1454
- this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1455
- }else{
1456
- console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1457
- console.log("当前用户类型-Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type])
1458
- console.log("当前用户类型"+Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1459
- this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1460
- }
1461
- //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1462
- }
1463
- }
1464
-
1465
- }
1466
- console.log('赋值后的config=>' + JSON.stringify(this.config))
1467
- // 预留设备项位置
1468
- for (let i in this.config) {
1469
- this.tabs.splice(1,0,null)
1470
- }
1471
- //遍历安检项配置
1472
- for (let i in this.config) {
1473
- //取得安检项索引值
1474
- let n = this.config[i].index
1475
- console.log('type '+ typeof n)
1476
- this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1477
- this.$set('data.' + 'device' + n, [])
1478
- console.log('data.device'+ n,this.data)
1479
- // this.tabs.splice(2 + n - 1, 0,
1480
- // {
1481
- // header:i,
1482
- // complete:'safecheck-devices',
1483
- // class:'repair-details-class',
1484
- // number:n
1485
- // })
1486
- this.tabs[n] = {
1487
- header: i,
1488
- complete: 'safecheck-devices',
1489
- class: 'repair-details-class',
1490
- number: n
1491
- }
1492
-
1493
- if(this.config[i].quantity && this.config[i].quantity >0){
1494
- let items = []
1495
- for (let it in this.config[i].items) {
1496
- //赋值下拉选项
1497
- if (this.config[i].items[it].type == 'selector') {
1498
- for (let op in this.config[i].items[it].options) {
1499
- if (this.config[i].items[it].options[op].isdefault == true) {
1500
- items.push({
1501
- f_defect_level: this.config[i].items[it].options[op].level,
1502
- f_is_defect: this.config[i].items[it].options[op].isdefect,
1503
- f_item_name: it,
1504
- f_item_value: this.config[i].items[it].options[op].data,
1505
- f_path: "",
1506
- type: "selector"
1507
- })
1508
- }
1509
- }
1510
- }
1511
- }
1512
- for(let q =0;q<this.config[i].quantity;q++) {
1513
- this.data['device' + n].push(
1514
- {f_device_type: i, f_items:items}
1515
- )
1516
- }
1517
- }
1518
- // this.data['device' + n].push(
1519
- // {f_device_type: i, f_items: items}
1520
- // )
1521
- n = n + 1
1522
- }
1523
- console.log('tbs合并数组')
1524
- this.faultshow.number = this.tabs.length
1525
- },
1526
- init () {
1527
- console.log("123456789")
1528
- // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1529
- this.data.ename = Vue.user.ename
1530
- this.data.f_outlets = Vue.user.f_parentname
1531
- this.data.f_meetunit = Vue.user.orgpathnames
1532
- this.data.orgpathstr = Vue.user.orgpathstr
1533
- this.data.f_check_item_id = this.item.id
1534
- this.data.f_check_plan_id = this.f_plan_id
1535
- this.data.f_checker_id = Vue.user.id
1536
- this.data.f_checker_name = Vue.user.name
1537
- this.data.f_check_type = this.item.f_user_type
1538
- this.data.f_safecheck_type = this.item.f_safecheck_type
1539
- //this.data.f_exceed_reason = ''//存放送气超期原因
1540
- console.log('设置参数2')
1541
- this.data.f_subcompany = this.item.f_subcompany
1542
- this.data.f_approved = this.item.f_approved
1543
- this.data.f_repair_approved = this.item.f_repair_approved
1544
- this.data.f_no_checkplan = this.item.f_no_checkplan
1545
- this.data.f_approved = this.item.f_approved
1546
- this.data.f_filialeid = this.item.f_filialeid
1547
- this.data.f_orgstr = this.item.f_orgstr
1548
- this.data.version = this.item.version
1549
- this.$set('data.f_meters', this.item.f_plan_meters)
1550
- this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1551
- // 安检状态
1552
- this.$set('data.f_entry_status', '入户')
1553
- this.$set('data.f_usegas', '已使用')
1554
- this.$set('data.f_state',this.item.f_state)
1555
- console.log('设置参数3')
1556
- // 用户信息
1557
- this.$set('data.f_user_name', this.item.f_user_name)
1558
- this.$set('data.f_user_phone', this.item.f_user_phone)
1559
- this.$set('data.f_userinfoid', this.item.f_userinfoid)
1560
- this.$set('data.f_address', this.item.f_address)
1561
- this.$set('data.f_card_id', this.item.f_card_id)
1562
- this.$set('data.f_area', this.item.f_area)
1563
- this.$set('data.f_street', this.item.f_street)
1564
- this.$set('data.f_room', this.item.f_room)
1565
- this.$set('data.f_building', this.item.f_building)
1566
- this.$set('data.f_unit', this.item.f_unit)
1567
- console.log('设置参数4')
1568
- this.$set('data.f_floor', this.item.f_floor)
1569
- this.$set('data.f_residential_area' , this.item.f_residential_area)
1570
- this.$set('data.f_idnumber', this.item.f_idnumber)
1571
- this.$set('data.f_comments', this.item.f_comments)
1572
- this.$set('data.f_userproperties', this.item.f_userproperties)
1573
- // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1574
- // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1575
- // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
1576
- // this.$set('data.f_user_family_remarks', this.item.f_user_family_remarks)
1577
- // this.$set('data.f_user_equipment_remarks', this.item.f_user_equipment_remarks)
1578
- // 处置方式
1579
- console.log('设置参数5')
1580
- this.$set('data.f_no_gas_device', false)
1581
- this.$set('data.f_close_valve', false)
1582
- this.$set('data.f_unload_battery', false)
1583
- console.log('设置参数6')
1584
- if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1585
- this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1586
- }
1587
- console.log("item.f_plan_meters",this.item.f_plan_meters)
1588
- if(this.item.f_plan_meters) {
1589
- for (let de in this.devices) {
1590
- this.$set('data.device' + this.devices[de].n, [])
1591
- for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1592
- if (this.item.f_plan_meters[i].f_meter_type) {
1593
- console.log('this.item.f_plan_meters[i] ===> ' + JSON.stringify(this.item.f_plan_meters[i]))
1594
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1595
- this.data['device' + this.devices[de].n].push({
1596
- f_device_type: "燃气表",
1597
- f_items: [
1598
- {
1599
- f_defect_level: null,
1600
- f_device_id: "",
1601
- f_is_defect: "",
1602
- f_item_name: "基表编号",
1603
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1604
- f_path: "",
1605
- type: "number"
1606
- },
1607
- {
1608
- f_defect_level: null,
1609
- f_device_id: "",
1610
- f_is_defect: "",
1611
- f_item_name: "气表型号",
1612
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1613
- f_path: "",
1614
- type: "string"
1615
- },
1616
- {
1617
- f_defect_level: null,
1618
- f_device_id: "",
1619
- f_is_defect: "",
1620
- f_item_name: "气表品牌",
1621
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1622
- f_path: "",
1623
- type: "string"
1624
- },
1625
- {
1626
- f_defect_level: null,
1627
- f_device_id: "",
1628
- f_is_defect: "",
1629
- f_item_name: "进气方向",
1630
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1631
- f_path: "",
1632
- type: "string"
1633
- },
1634
- {
1635
- f_defect_level: null,
1636
- f_device_id: "",
1637
- f_is_defect: "",
1638
- f_item_name: "上期表读数",
1639
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1640
- f_path: "",
1641
- type: "number"
1642
- }
1643
- ]
1644
- })
1645
- }
1646
- else if (this.devices[de].device == "燃气表") {
1647
- // delete this.config['燃气表']['items']['表底数']
1648
- this.data['device' + this.devices[de].n].push({
1649
- f_device_type: "燃气表",
1650
- f_items: [
1651
- {
1652
- f_defect_level: null,
1653
- f_device_id: "",
1654
- f_is_defect: "",
1655
- f_item_name: "基表编号",
1656
- f_item_value: this.item.f_plan_meters[i].f_meter_no,
1657
- f_path: "",
1658
- type: "number"
1659
- },
1660
- {
1661
- f_defect_level: null,
1662
- f_device_id: "",
1663
- f_is_defect: "",
1664
- f_item_name: "气表型号",
1665
- f_item_value: this.item.f_plan_meters[i].f_diaphgram_size,
1666
- f_path: "",
1667
- type: "string"
1668
- },
1669
- {
1670
- f_defect_level: null,
1671
- f_device_id: "",
1672
- f_is_defect: "",
1673
- f_item_name: "气表品牌",
1674
- f_item_value: this.item.f_plan_meters[i].f_aliasname,
1675
- f_path: "",
1676
- type: "string"
1677
- },
1678
- {
1679
- f_defect_level: null,
1680
- f_device_id: "",
1681
- f_is_defect: "",
1682
- f_item_name: "进气方向",
1683
- f_item_value: this.item.f_plan_meters[i].f_flow_direction,
1684
- f_path: "",
1685
- type: "string"
1686
- },
1687
- {
1688
- f_defect_level: null,
1689
- f_device_id: "",
1690
- f_is_defect: "",
1691
- f_item_name: "上期表读数",
1692
- f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1693
- f_path: "",
1694
- type: "number"
1695
- }
1696
- ]
1697
- })
1698
- }
1699
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
1700
- this.data['device' + this.devices[de].n].forEach(device => {
1701
- console.log('device ===> ' + JSON.stringify(device))
1702
- console.log('this.item.f_plan_meters[i].f_collection_type ===> ' + JSON.stringify(this.item.f_plan_meters[i].f_collection_type))
1703
- /*
1704
- "累购气量":{"index":8,"type":"number","readonly":true},
1705
- "累购金额":{"index":8,"type":"number","readonly":true},
1706
- "字轮读数":{"index":9,"type":"number","checkmust": true},
1707
- "已用金额":{"index":9,"type":"number","checkmust": true},
1708
- "剩余气量":{"index":10,"type":"number","checkmust": true},
1709
- "剩余金额":{"index":10,"type":"number","checkmust": true},
1710
- "气量异常差值":{"index":11,"type":"number","readonly": true},
1711
- "金额异常差值":{"index":11,"type":"number","readonly": true}
1712
- */
1713
- if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
1714
- if (!this.data.f_collection_type) {
1715
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1716
- delete this.config['燃气表']['items']['累购气量']
1717
- delete this.config['燃气表']['items']['已用气量']
1718
- delete this.config['燃气表']['items']['剩余气量']
1719
- delete this.config['燃气表']['items']['气量异常差值']
1720
- device.f_items.push(
1721
- {
1722
- f_defect_level: null,
1723
- f_device_id: "",
1724
- f_is_defect: "",
1725
- f_item_name: "初始表底",
1726
- isshow: false,
1727
- f_item_value: '',
1728
- f_path: "",
1729
- type: "number"
1730
- },
1731
- {
1732
- f_defect_level: null,
1733
- f_device_id: "",
1734
- f_is_defect: "",
1735
- f_item_name: "累购金额",
1736
- f_item_value: this.item.f_plan_meters[i].f_total_fee,
1737
- f_path: "",
1738
- type: "number"
1739
- },
1740
- {
1741
- f_defect_level: null,
1742
- f_device_id: "",
1743
- f_is_defect: "",
1744
- f_item_name: "已用金额",
1745
- f_item_value: null,
1746
- f_path: "",
1747
- type: "number"
1748
- },
1749
- {
1750
- f_defect_level: null,
1751
- f_device_id: "",
1752
- f_is_defect: "",
1753
- f_item_name: "剩余金额",
1754
- f_item_value: null,
1755
- f_path: "",
1756
- type: "number"
1757
- },
1758
- {
1759
- f_defect_level: null,
1760
- f_device_id: "",
1761
- f_is_defect: "",
1762
- f_item_name: "金额异常差值",
1763
- f_item_value: null,
1764
- f_path: "",
1765
- type: "number"
1766
- }
1767
- )
1768
- console.log('this.config[\'燃气表\'][\'items\'] ===> ' + JSON.stringify(this.config['燃气表']['items']))
1769
- }
1770
- } else if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
1771
- if (!this.data.f_collection_type) {
1772
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1773
- delete this.config['燃气表']['items']['累购金额']
1774
- delete this.config['燃气表']['items']['已用金额']
1775
- delete this.config['燃气表']['items']['剩余金额']
1776
- delete this.config['燃气表']['items']['金额异常差值']
1777
- device.f_items.push(
1778
- {
1779
- f_defect_level: null,
1780
- f_device_id: "",
1781
- f_is_defect: "",
1782
- f_item_name: "初始表底",
1783
- isshow: true,
1784
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
1785
- f_path: "",
1786
- type: "number"
1787
- },
1788
- {
1789
- f_defect_level: null,
1790
- f_device_id: "",
1791
- f_is_defect: "",
1792
- f_item_name: "累购气量",
1793
- f_item_value: this.item.f_plan_meters[i].f_total_gas,
1794
- f_path: "",
1795
- type: "number"
1796
- },
1797
- {
1798
- f_defect_level: null,
1799
- f_device_id: "",
1800
- f_is_defect: "",
1801
- f_item_name: "已用气量",
1802
- f_item_value: this.item.f_plan_meters[i].f_meter_base,
1803
- f_path: "",
1804
- type: "number"
1805
- },
1806
- {
1807
- f_defect_level: null,
1808
- f_device_id: "",
1809
- f_is_defect: "",
1810
- f_item_name: "剩余气量",
1811
- f_item_value: "",
1812
- f_path: "",
1813
- type: "number"
1814
- },
1815
- {
1816
- f_defect_level: null,
1817
- f_device_id: "",
1818
- f_is_defect: "",
1819
- f_item_name: "气量异常差值",
1820
- f_item_value: null,
1821
- f_path: "",
1822
- type: "number"
1823
- }
1824
- )
1825
- console.log('this.config[\'燃气表\'][\'items\'] ---> ' + JSON.stringify(this.config['燃气表']['items']))
1826
- }
1827
- }
1828
- })
1829
- }
1830
- else if(this.devices[de].device == "燃气表"){
1831
- console.log("没有this.item.f_plan_meters[i].f_collection_type")
1832
- this.data['device' + this.devices[de].n].forEach(device => {
1833
- console.log('device ===> ' + JSON.stringify(device))
1834
- if (!this.data.f_collection_type) {
1835
- this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
1836
- delete this.config['燃气表']['items']['累购金额']
1837
- delete this.config['燃气表']['items']['已用金额']
1838
- delete this.config['燃气表']['items']['剩余金额']
1839
- delete this.config['燃气表']['items']['金额异常差值']
1840
- device.f_items.push(
1841
- {
1842
- f_defect_level: null,
1843
- f_device_id: "",
1844
- f_is_defect: "",
1845
- f_item_name: "初始表底",
1846
- isshow: true,
1847
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
1848
- f_path: "",
1849
- type: "number"
1850
- },
1851
- {
1852
- f_defect_level: null,
1853
- f_device_id: "",
1854
- f_is_defect: "",
1855
- f_item_name: "累购气量",
1856
- f_item_value: this.item.f_plan_meters[i].f_total_gas,
1857
- f_path: "",
1858
- type: "number"
1859
- },
1860
- {
1861
- f_defect_level: null,
1862
- f_device_id: "",
1863
- f_is_defect: "",
1864
- f_item_name: "已用气量",
1865
- f_item_value: this.item.f_plan_meters[i].f_meter_base,
1866
- f_path: "",
1867
- type: "number"
1868
- },
1869
- {
1870
- f_defect_level: null,
1871
- f_device_id: "",
1872
- f_is_defect: "",
1873
- f_item_name: "剩余气量",
1874
- f_item_value: '',
1875
- f_path: "",
1876
- type: "number"
1877
- },
1878
- {
1879
- f_defect_level: null,
1880
- f_device_id: "",
1881
- f_is_defect: "",
1882
- f_item_name: "气量异常差值",
1883
- isshow:false,
1884
- f_item_value: null,
1885
- f_path: "",
1886
- type: "number"
1887
- }
1888
- )
1889
- console.log('this.config[\'燃气表\'][\'items\'] ---> ' + JSON.stringify(this.config['燃气表']['items']))
1890
- }
1891
- })
1892
- }
1893
- }
1894
- }
1895
- }
1896
- }
1897
- var pardate = {
1898
- _this:this,
1899
- tittle:'安检详情',
1900
- safe:true
1901
- }
1902
- // this.$dispatch('gotoson',pardate)
1903
- console.log('页面跳转')
1904
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
1905
- }
1906
- },
1907
- watch: {
1908
- 'row' () {
1909
- console.log('row changed')
1910
- this.copy()
1911
- }
1912
- },
1913
- async ready () {
1914
- //送气超期功能
1915
- //await this.isoverDate()
1916
- this.putDevices()
1917
- //如果已检,则提取安检单
1918
- if (this.item.f_state != '未检') {
1919
- if (this.role == 'inspect' || this.role == 'androidview') {
1920
- HostApp.__callback__ = this.loaded
1921
- HostApp.__this__ = this
1922
- let that = this
1923
- let value = {}
1924
- console.log('this.item.f_no_checkplan',this.item.f_no_checkplan)
1925
- if (this.role == 'inspect') {
1926
- console.log('this.item.f_no_checkplan', this.item.f_no_checkplan)
1927
- if (this.item.f_no_checkplan == '无计划安检') {
1928
- value = this.$androidUtil.path({
1929
- alias: 'getUserinfomation',
1930
- data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
1931
- })
1932
- } else {
1933
- value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
1934
- }
1935
- } else {
1936
- value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
1937
- }
1938
- Util.replaceFalse(value)
1939
- console.log("value:" + JSON.stringify(value))
1940
- if (value.data.length != 0) {
1941
- that.$set('data', value.data[0])
1942
- console.log("this.data.f_collection_type:" + JSON.stringify(this.data.f_collection_type))
1943
- if (this.data.f_collection_type == '按气量') {
1944
- delete this.config['燃气表']['items']['累购金额']
1945
- delete this.config['燃气表']['items']['已用金额']
1946
- delete this.config['燃气表']['items']['剩余金额']
1947
- delete this.config['燃气表']['items']['金额异常差值']
1948
- } else if (this.data.f_collection_type == '按金额') {
1949
- delete this.config['燃气表']['items']['累购气量']
1950
- delete this.config['燃气表']['items']['已用气量']
1951
- delete this.config['燃气表']['items']['剩余气量']
1952
- delete this.config['燃气表']['items']['气量异常差值']
1953
- }
1954
- console.log("f_devices:" + JSON.stringify(value.data[0].f_devices))
1955
- if (value.data[0].f_devices) {
1956
- for (let da in that.devices) {
1957
- that.$set('data.device' + that.devices[da].n, [])
1958
- }
1959
- value.data[0].f_devices.forEach((item) => {
1960
- console.log('回写数据=>' + JSON.stringify(item))
1961
- for (let i in item.f_items) {
1962
- // if (item.f_items[i].f_path != '' && item.f_items[i].f_path != null) {
1963
- // this.picture.push({f_path: item.f_items[i].f_path, name: item.f_items[i].f_item_name})
1964
- // }
1965
- for (let de in that.config[item.f_device_type].items) {
1966
- if (item.f_items[i].f_item_name == de) {
1967
- if (that.config[item.f_device_type].items[de].type == 'selector' || that.config[item.f_device_type].items[de].type == 'checkbox') {
1968
- item.f_items[i].f_item_value = []
1969
- } else {
1970
- item.f_items[i].f_item_value = ''
1971
- }
1972
- }
1973
- }
1974
- console.log('回写数据item.f_items[i]=======>' + JSON.stringify(item.f_items[i]))
1975
- for (let j in item.f_items[i].f_item_lists) {
1976
- console.log('回写数据item.f_items.f_item_lists[j]=======>' + JSON.stringify(item.f_items[i].f_item_lists[j]))
1977
- if (item.f_items[i].f_item_value instanceof Array) {
1978
- item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
1979
- } else {
1980
- item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
1981
- }
1982
-
1983
- }
1984
- }
1985
- for (let de in that.devices) {
1986
- if (that.devices[de].device == item.f_device_type) {
1987
- that.data['device' + that.devices[de].n].push({
1988
- f_device_type: item.f_device_type,
1989
- f_items: item.f_items
1990
- })
1991
- console.log("device:" + JSON.stringify(that.data['device' + that.devices[de].n]))
1992
- }
1993
- }
1994
- })
1995
- if (this.role == 'androidview') {
1996
- Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
1997
- Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
1998
- Util.booleanFilter(that.data)
1999
- }
2000
- console.log('回写数据完成后'+JSON.stringify(that.data))
2001
- }
2002
- } else {
2003
- console.log("该安检单可能已不在本地!")
2004
- this.init()
2005
- }
2006
- console.log('页面跳转')
2007
- var pardate = {
2008
- _this:this,
2009
- tittle:'安检详情',
2010
- safe:true
2011
- }
2012
- // this.$dispatch('gotoson',pardate)getImgPath
2013
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
2014
- } else {
2015
- let that = this
2016
- let id
2017
- if (this.role == 'view') {
2018
- id = this.item.id
2019
- }
2020
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2021
- if (respanse.data.length != 0) {
2022
- that.data = Object.assign(that.data,respanse.data[0])
2023
- if(respanse.data[0].f_devices) {
2024
- for (let da in that.devices) {
2025
- that.$set('data.device' + that.devices[da].n, [])
2026
- }
2027
- respanse.data[0].f_devices.forEach((item) => {
2028
- for (let de in that.devices) {
2029
- if (that.devices[de].device == item.f_device_type) {
2030
- that.data['device' + that.devices[de].n].push({
2031
- f_device_type: item.f_device_type,
2032
- f_items: item.f_items
2033
- })
2034
- }
2035
- }
2036
- })
2037
- }
2038
- Util.replaceFalse(that.data)
2039
- Util.booleanFilter(that.data)
2040
- if(this.role == 'view'){
2041
- Util.ratifyPics(that.data)
2042
- }else{
2043
- Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2044
- }
2045
- console.log("that.data:", that.data)
2046
- } else {
2047
- alert("该安检单可能已不在本地!")
2048
- this.init()
2049
- }
2050
- var pardate = {
2051
- _this:this,
2052
- tittle:'安检详情',
2053
- safe:true
2054
- }
2055
- // this.$dispatch('gotoson',pardate)
2056
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2057
- }
2058
- ).catch(
2059
- (respanse) => {
2060
- alert('查找安检单失败')
2061
- })
2062
- }
2063
- }else{
2064
- this.init()
2065
- }
2066
- // tbs合并数组
2067
- // if( this.model.serviceacitivity[0].servicerepair.length > 0){
2068
- // for(let i = 0;i < this.model.serviceacitivity[0].servicerepair.length;i++ ){
2069
- //
2070
- // }
2071
- // }
2072
- },
2073
- components: {
2074
- // 'door-service': DoorService,
2075
- // 'repair-info': RepairInfo,
2076
- // 'repair-user-info': RepairUserInfo,
2077
- // 'outlay': Outlay,
2078
- // 'fault-all': FaultAll,
2079
- // 'repair-details':RepairDetails
2080
- // 'pipeline': Pipeline,
2081
- // 'device-service': DeviceService,
2082
- // 'trouble-removal': TroubleRemoval,
2083
- // 'cooking-utensils': CookingUtensils,
2084
- // 'repair-matter-info': RepairMatterInfo,
2085
- // 'first-gas-check': FirstGasCheck,
2086
- // 'tel-change-matter': TelChangeMatter/
2087
- },
2088
- events: {
2089
- 'tijiao': function () {
2090
- // 事件回调内的 `this` 自动绑定到注册它的实例上
2091
- this.confirm()
2092
- }
2093
- }
2094
- }
2095
- </script>
2096
- <style lang="less">
2097
- @import "../../../../src/bootstrap/less/variables.less";
2098
- .noclickbut {
2099
- pointer-events: none;
2100
- }
2101
- .tab-befor-img (@url) {
2102
- content: '';
2103
- background-image: url("@{url}");
2104
- background-size: 20px;
2105
- display: inline-block;
2106
- margin-right: 8px;
2107
- margin-top: 0.3em;
2108
- height: 1.3em;
2109
- width: 1.3em;
2110
- vertical-align: -35%;
2111
- }
2112
-
2113
- @media screen and (min-width: 768px) {
2114
- .android-repair-order > div > ul a {
2115
- font-size: @font-size-h2;
2116
- margin: 0.3em 0;
2117
- }
2118
- }
2119
- .repair-details-class{
2120
- &::before {
2121
- .tab-befor-img("../../../assets/huneiweixiu1.png");
2122
- }
2123
- }
2124
- .repair-info-class {
2125
- &::before {
2126
- .tab-befor-img("../../../assets/baoxiuxinxi1.png");
2127
- }
2128
- }
2129
- .repair-user-info-class {
2130
- &::before {
2131
- .tab-befor-img("../../../assets/jibenxinxi1.png")
2132
- }
2133
- }
2134
-
2135
- .door-service-class {
2136
- &::before {
2137
- .tab-befor-img("../../../assets/huneiweixiu1.png")
2138
- }
2139
- }
2140
-
2141
- .pipeline-class {
2142
- &::before {
2143
- .tab-befor-img("../../../assets/guandao1.png")
2144
- }
2145
- }
2146
-
2147
- .device-service-class {
2148
- &::before {
2149
- .tab-befor-img("../../../assets/shebeiweixiu1.png")
2150
- }
2151
- }
2152
-
2153
- .trouble-removal-class {
2154
- &::before {
2155
- .tab-befor-img("../../../assets/shiguchuli.png")
2156
- }
2157
- }
2158
-
2159
- .cooking-utensils-class {
2160
- &::before {
2161
- .tab-befor-img("../../../assets/zaoju1.png")
2162
- }
2163
- }
2164
-
2165
- .outlay-class {
2166
- &::before {
2167
- .tab-befor-img("../../../assets/feiyong1.png")
2168
- }
2169
- }
2170
-
2171
- .fault-all-class {
2172
- &::before {
2173
- .tab-befor-img("../../../assets/guzhanghuizong1.png")
2174
- }
2175
- }
2176
- .photo-write-class {
2177
- &::before {
2178
- .tab-befor-img("../../../assets/zaoju.png")
2179
- }
2180
- }
2181
- .delay-apply-class {
2182
- &::before {
2183
- .tab-befor-img("../../../assets/yonghubaoxiu.png")
2184
- }
2185
- }
2186
-
2187
- .repair-back-class {
2188
- &::before {
2189
- .tab-befor-img("../../../assets/fanhui.png")
2190
- }
2191
- }
2192
- .butt2 {
2193
- display: inline;
2194
- float: right;
2195
- width: 10px;
2196
- text-align: center;
2197
- align-items:center;
2198
- position: absolute;
2199
- top:50%;
2200
-
2201
- left:90%;
2202
- transform: translate(-50%,-50%);
2203
- }
2204
- .linesty{
2205
- display: inline-block;
2206
- height:1px;
2207
- width:100%;
2208
- background:#d0d0d0;
2209
- overflow:hidden;
2210
- vertical-align: middle;
2211
- }
2212
- .spanboder{
2213
- border-bottom:2px solid #499edf;
2214
- padding-bottom: 8px
2215
- }
2216
- .app-botton {
2217
- position:fixed;
2218
- background: #87b2dd;
2219
- right:8px;
2220
- color: #FFF;
2221
- padding: 8px;
2222
- text-align: center;
2223
- font-size: 1.2em;
2224
- z-index: 10;
2225
- opacity:0.5;
2226
- bottom: 50px;
2227
- margin-top: -10px;
2228
- height: 40px;
2229
- }
2230
- .android-repair-order > div > ul a {
2231
- font-size: 12px;
2232
- color: #333333;
2233
- padding: 13px 16px;
2234
- }
2235
- </style>