safecheck-client 3.1.1-gaomi-5 → 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 (696) 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-liaoyuan → 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/{SafePlan-shaoguan → 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/{SafePlanrongcheng → 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 +49 -551
  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 +246 -241
  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/.npmignore +0 -15
  603. package/examples/SafePlan-liaoyuan/App.vue +0 -53
  604. package/examples/SafePlan-shaoguan/App.vue +0 -52
  605. package/examples/SafePlan-shaoguan/comp.js +0 -1190
  606. package/examples/SafePlanrongcheng/App.vue +0 -52
  607. package/examples/SafePlanrongcheng/comp.js +0 -1041
  608. package/package-lock.json +0 -10779
  609. package/src/assets/JsonEditor/jsoneditor.css +0 -930
  610. package/src/assets/JsonEditor/jsoneditor.js +0 -36377
  611. package/src/assets/bj.jpg +0 -0
  612. package/src/assets/jt.jpg +0 -0
  613. package/src/assets/marrio.jpg +0 -0
  614. package/src/assets/ss.jpg +0 -0
  615. package/src/assets/xl.jpg +0 -0
  616. package/src/assets//346/230/237/347/220/203/350/203/214/346/231/257.jpg +0 -0
  617. package/src/assets//351/232/220/346/202/243/345/210/206/346/236/220.png +0 -0
  618. package/src/components/CheckerCount/CheckCountAreaList.vue +0 -298
  619. package/src/components/CheckerCount/CheckCountUserList.vue +0 -144
  620. package/src/components/ExportExcel.vue +0 -201
  621. package/src/components/android/SwitchValve.vue +0 -189
  622. package/src/components/checkAreaClassification.vue +0 -285
  623. package/src/components/checkplan/checkmsgZG.vue +0 -519
  624. package/src/components/filialCircle/AddCircleFiliale.vue +0 -114
  625. package/src/components/filialCircle/CircleList.vue +0 -139
  626. package/src/components/filialCircle/CircleManage.vue +0 -69
  627. package/src/components/json-editor/SafeJsonEditor.vue +0 -212
  628. package/src/components/json-editor/assets/img/jsoneditor-icons.svg +0 -893
  629. package/src/components/json-editor/assets/jsoneditor-minimalist.js +0 -9751
  630. package/src/components/json-editor/assets/jsoneditor.css +0 -930
  631. package/src/components/json-editor/assets/jsoneditor.js +0 -36377
  632. package/src/components/json-editor/example/App.vue +0 -53
  633. package/src/components/json-editor/example/index.html +0 -9
  634. package/src/components/json-editor/example/main.js +0 -10
  635. package/src/components/json-editor/package.json +0 -71
  636. package/src/components/json-editor/vue-json-editor.vue +0 -189
  637. package/src/components/pc/HiddenChart.vue +0 -189
  638. package/src/components/pc/RoleSelector.vue +0 -89
  639. package/src/components/plan/PlanLeft.vue +0 -320
  640. package/src/components/plan/PlanManage.vue +0 -50
  641. package/src/components/plan/PlanRightUp.vue +0 -185
  642. package/src/components/plan/PlanRightdown.vue +0 -239
  643. package/src/components/plan/testss.vue +0 -116
  644. package/src/components/plancheck/CheckPlanAreaManage.vue +0 -116
  645. package/src/components/plancheck/CheckPlanList.vue +0 -282
  646. package/src/components/report/ManageBusSummary.vue +0 -242
  647. package/src/components/rongcheng/AreaPlan.vue +0 -463
  648. package/src/components/rongcheng/AspPaperStatem.vue +0 -339
  649. package/src/components/rongcheng/AspiratedDevices.vue +0 -965
  650. package/src/components/rongcheng/AspiratedOrderV.vue +0 -2361
  651. package/src/components/rongcheng/AspiratedPaperMessage.vue +0 -1378
  652. package/src/components/rongcheng/AspiratedPaperMessageNocivil.vue +0 -1288
  653. package/src/components/rongcheng/AspiratedUserInfo.vue +0 -399
  654. package/src/components/rongcheng/DefectList.vue +0 -560
  655. package/src/components/rongcheng/DefectPaper.vue +0 -582
  656. package/src/components/rongcheng/PaperFeedback.vue +0 -1318
  657. package/src/components/rongcheng/PaperMessage.vue +0 -1186
  658. package/src/components/rongcheng/PaperMessageNocivil.vue +0 -1211
  659. package/src/components/rongcheng/PaperStateNoncivilm.vue +0 -366
  660. package/src/components/rongcheng/PaperStatem.vue +0 -343
  661. package/src/components/rongcheng/PhoneDevicesInfo.vue +0 -233
  662. package/src/components/rongcheng/SafecheckOrderVCli.vue +0 -2538
  663. package/src/components/rongcheng/checkerplan/SelectCheckPlan.vue +0 -245
  664. package/src/components/rongcheng/report/CheckPlanAreaList.vue +0 -419
  665. package/src/components/rongcheng/report/CheckPlanUserList.vue +0 -190
  666. package/src/components/shaoguan/DefectDetail.vue +0 -177
  667. package/src/components/shaoguan/DefectMain.vue +0 -53
  668. package/src/components/shaoguan/DefectPaper.vue +0 -217
  669. package/src/components/shaoguan/PaperList.vue +0 -532
  670. package/src/components/shaoguan/SafecheckOrderV.vue +0 -2140
  671. package/src/components/tongcheng/PaperMessage.vue +0 -1270
  672. package/src/components/tongcheng/PaperMessageNocivil.vue +0 -1228
  673. package/src/filiale/Util.js +0 -325
  674. package/src/filiale/liaoyuan/android/SafecheckDevices.vue +0 -928
  675. package/src/filiale/liaoyuan/android/SafecheckOrderV.vue +0 -2383
  676. package/src/filiale/liaoyuan/android.js +0 -13
  677. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +0 -1020
  678. package/src/filiale/liaoyuan/pc/PaperList.vue +0 -628
  679. package/src/filiale/liaoyuan/pc.js +0 -13
  680. package/src/filiale/wenxi/android.js +0 -9
  681. package/src/filiale/wenxi/pc/PaperList.vue +0 -627
  682. package/src/filiale/wenxi/pc/checkmsg.vue +0 -229
  683. package/src/filiale/wenxi/pc.js +0 -12
  684. package/src/filiale/wuan/android/SafecheckOrderV.vue +0 -2235
  685. package/src/filiale/wuan/android.js +0 -14
  686. package/src/filiale/wuan/pc/PaperList.vue +0 -625
  687. package/src/filiale/wuan/pc.js +0 -12
  688. package/src/rongcheng-android.js +0 -186
  689. package/src/rongcheng.js +0 -303
  690. /package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/TestData.js +0 -0
  691. /package/examples/{SafePlan-liaoyuan → SafePlan-aode-ts}/main.js +0 -0
  692. /package/examples/{SafePlanrongcheng → SafePlan-aodezx}/TestData.js +0 -0
  693. /package/examples/{SafePlanrongcheng → SafePlan-aodezx}/main.js +0 -0
  694. /package/examples/{SafePlan-shaoguan → SafePlan-aodezx-ts}/TestData.js +0 -0
  695. /package/examples/{SafePlan-shaoguan → SafePlan-aodezx-ts}/main.js +0 -0
  696. /package/{git → static/.gitkeep} +0 -0
@@ -2,23 +2,25 @@
2
2
  <!--<div class="app-botton" @click="back()">-->
3
3
  <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
4
  <!--</div>-->
5
- <div class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
- <div class="col-sm-12 col-xs-12" >
5
+ <div id="savebut" class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
+ <div class="col-sm-12 col-xs-12">
7
7
  <ul class="nav nav-tabs" style="background:#ffffff;overflow-y: hidden">
8
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>
9
+ v-if="$index < number+1 && $index < faultshow.number">
10
+ <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun"
11
+ :class="row.class">
12
+ <span class="spanboder">{{ row.header }}</span>
12
13
  <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
13
14
  <p></p>
14
15
  </li>
15
- <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
+ <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
17
  <route name='repair' :reuse="false"></route>
17
18
  </div>
18
19
  <li v-for="row in tabs" @click="tabSelect(row,$index)" :class="{active1: row.complete === componentName}"
19
20
  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>
21
+ <a href="#" style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun"
22
+ :class="row.class">
23
+ <span class="spanboder">{{ row.header }}</span>
22
24
  <img class="butt2" :src="imgback(row.complete === componentName,row.header === header)"></a>
23
25
  <p></p>
24
26
  </li>
@@ -36,23 +38,28 @@
36
38
  <!--<label>请输入超期原因:</label><br/>-->
37
39
  <!--<textarea style="width: 100%;" v-model=""></textarea>-->
38
40
  <!--</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')">
41
+ <div class="col-xs-12 col-sm-12 col-md-12 flex-between"
42
+ style="margin-top: 20px;justify-content: space-around;">
43
+ <div class="col-xs-3 col-sm-3 col-md-3" v-if="buttonState">
44
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="save('temp')" >
42
45
  临时保存
43
46
  </button>
44
47
  </div>
45
- <div class="col-xs-3 col-sm-3 col-md-3">
48
+ <div class="col-xs-3 col-sm-3 col-md-3" v-show="data.f_entry_status == '结案'">
49
+ <button class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
50
+ 结案
51
+ </button>
52
+ </div>
53
+ <div class="col-xs-3 col-sm-3 col-md-3" v-show="buttonsty">
46
54
  <button class="col-sm-3 btn btn-primary" @click="save('finish')">
47
55
  本地缓存
48
56
  </button>
49
57
  </div>
50
- <div class="col-xs-3 col-sm-3 col-md-3">
58
+ <div class="col-xs-3 col-sm-3 col-md-3" v-show="buttonsty">
51
59
  <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
52
60
  上传
53
61
  </button>
54
62
  </div>
55
-
56
63
  </div>
57
64
  </div>
58
65
  </div>
@@ -69,26 +76,21 @@
69
76
  // 户内维修
70
77
  import Vue from 'vue'
71
78
  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'
79
+ import $ from 'jquery'
80
+ import {HttpResetClass} from 'vue-client'
80
81
  import co from 'co'
81
- import $ from "jquery";
82
+
82
83
  let loadParamGem = async function (self) {
83
84
  await self.$LoadParams.loadParam()
84
85
  }
85
86
 
86
87
  export default {
87
88
  title: '安检单',
88
- props: ['f_plan_id', 'item', 'role'],
89
+ props: ['f_plan_id', 'item', 'role', 'buttonState'],
89
90
  // props: ['f_plan_id', 'role'],
90
91
  data() {
91
92
  return {
93
+ gps:{},
92
94
  //测试数据
93
95
  // f_plan_id:'',
94
96
  // role:'inspect',
@@ -108,36 +110,47 @@ export default {
108
110
 
109
111
  data: {
110
112
  f_devices: [],
111
- f_defect_content:''
113
+ f_defect_content: '',
114
+ f_table_anomaly_path:'',
115
+ f_table_anomaly_remark:'',
116
+ f_repaired: '',
117
+ f_bigualu: '否',
118
+ f_reshuiqi: '否',
112
119
  },
113
- updateuserphone:false, //安检时是否更新用户电话
114
- beforephone:'',
115
- isUpload:false,
116
- onlySave:true, //判断保存还是保存并上传
117
- livedispose:'',
118
- startClick:false, //开始安检按钮是否可点击
120
+ classnodu: false,
121
+ showmodel: false, // 控制用户基本信息中的拉黑框
122
+ backlistisselect: false, // 是否选择拉黑用户
123
+ enabled: false,//控制限制购气是否可选
124
+ cause: '', // 拉黑备注
125
+ buttonsty: true,
126
+ isUpload: false,
127
+ onlySave: true, //判断保存还是保存并上传
128
+ livedispose: '',
129
+ startClick: false, //开始安检按钮是否可点击
119
130
  isStrat: false, //是否开始安检
120
- checkResult:{},//查询结果
121
- newcheckResult:{},
131
+ checkResult: {},//查询结果
132
+ paper_f_repaired: '', // 安检单的f_repaired字段
133
+ newcheckResult: {},
122
134
  timer: null,
123
135
  showModal: false,
124
136
  pic_to_be_viewed: '',
125
- showBack:true,
137
+ showBack: true,
126
138
  devices: [],
127
- f_devices : [],
128
- isToRepair:false,
129
- clickBack:true, //是否点击返回按钮
130
- isSafeCheckToRepair:false,//是否转维修
131
- Url:this.$androidUtil.getProxyUrl(),
132
- detail:{},
133
- defectDevice:{},
134
- user:{},
139
+ f_devices: [],
140
+ isToRepair: false,
141
+ clickBack: true, //是否点击返回按钮
142
+ isSafeCheckToRepair: false,//是否转维修
143
+ Url: this.$androidUtil.getProxyUrl(),
144
+ detail: {},
145
+ defectDevice: {},
146
+ user: {},
147
+ warnModalCount:1,
135
148
  model: { //转维修数据
136
149
  // 一次派单
137
150
  serviceacitivity: [{
138
151
  f_service_acitivity_type: '派单'
139
152
  }],
140
- f_source:'安检',
153
+ f_source: '安检',
141
154
  f_service_id: '',
142
155
  f_contact_phone: '',
143
156
  f_meetunit: '',
@@ -147,11 +160,11 @@ export default {
147
160
  f_repair_date: Util.toStandardTimeString(),
148
161
  f_card_id: '',
149
162
  // f_department: '', 站点选择
150
- f_reciever:'',
163
+ f_reciever: '',
151
164
  f_remarks: '',
152
165
  f_user_type: '',
153
166
  f_area: '',
154
- f_unit_name:'',
167
+ f_unit_name: '',
155
168
  f_street: '',
156
169
  f_residential_area: '',
157
170
  f_building: '',
@@ -160,32 +173,35 @@ export default {
160
173
  f_room: '',
161
174
  aState: null,
162
175
  f_repairtype: '',
163
- f_repairitems:{},
176
+ f_repairitems: {},
164
177
  },
165
- repairitems:[],
166
- meading:'转站点',
178
+ repairitems: [],
179
+ tableAnomalyRecords:{},
180
+ meading: '转站点',
167
181
  config: {
168
- "燃气表":{
169
- "checkmust":true,
170
- "index":1,
171
- "items":{
182
+ "燃气表": {
183
+ "checkmust": true,
184
+ "index": 1,
185
+ "items": {
172
186
  //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
173
- "基表编号":{"index":1,"type":"string","readonly":true},
174
- "气表型号":{"index":2,"type":"string","readonly":true},
175
- "气表品牌":{"index":3,"type":"string","readonly":true},
176
- "进气方向":{"index":4,"type":"string","readonly":true},
177
- "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
178
- "上期表读数":{"index":6,"type":"number","readonly":true,isshow:false},
179
- "累购气量":{"index":7,"type":"number","readonly":true},
180
- "累购金额":{"index":7,"type":"number","readonly":true},
181
- "已用气量":{"index":8,"type":"number","checkmust": false},//基表数
182
- "已用金额":{"index":8,"type":"number","checkmust": false},
183
- "剩余气量":{"index":9,"type":"number","checkmust": false},//累购-已用
187
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
188
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
189
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
190
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
191
+ // "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
192
+ "上期表读数": {"index": 5, "type": "number", "readonly": true, isshow: false},
193
+ "户累购气量": {"index": 6, "type": "number", "readonly": true},
194
+ "户累购金额": {"index": 6, "type": "number", "readonly": true},
195
+ "累购气量": {"index": 7, "type": "number", "readonly": true},
196
+ "累购金额": {"index": 7, "type": "number", "readonly": true},
197
+ "已用气量": {"index": 8, "type": "number", "checkmust": true},//基表数
198
+ "已用金额": {"index": 8, "type": "number", "checkmust": true},
199
+ "剩余气量": {"index": 9, "type": "number", "checkmust": true},//累购-已用
184
200
  //显示屏数 --实际剩余气量
185
- "剩余金额":{"index":9,"type":"number","checkmust": false},
186
- "气量异常差值":{"index":10,"type":"number","readonly": true},
187
- "金额异常差值":{"index":10,"type":"number","readonly": true},
188
- "表箱号":{"index":11,"type":"string","readonly": true}
201
+ "剩余金额": {"index": 9, "type": "number", "checkmust": true},
202
+ "气量异常差值": {"index": 10, "type": "number", "readonly": true},
203
+ "金额异常差值": {"index": 10, "type": "number", "readonly": true},
204
+ "差值备注": {"index": 11, "type": "string", "readonly": false}
189
205
  }
190
206
  // 注意,配置项的index必须与上面的固定配置保持'顺序'
191
207
  },
@@ -205,12 +221,38 @@ export default {
205
221
  // }
206
222
  // }
207
223
  },
224
+ config2: {
225
+ "燃气表": {
226
+ "checkmust": true,
227
+ "index": 1,
228
+ "items": {
229
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
230
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
231
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
232
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
233
+ "上期表读数": {"index": 5, "type": "number", "readonly": true, isshow: false},
234
+ "户累购气量": {"index": 6, "type": "number", "readonly": true},
235
+ "户累购金额": {"index": 6, "type": "number", "readonly": true},
236
+ "累购气量": {"index": 7, "type": "number", "readonly": true},
237
+ "累购金额": {"index": 7, "type": "number", "readonly": true},
238
+ "已用气量": {"index": 8, "type": "number", "checkmust": true},
239
+ "已用金额": {"index": 8, "type": "number", "checkmust": true},
240
+ "剩余气量": {"index": 9, "type": "number", "checkmust": true},
241
+ "剩余金额": {"index": 9, "type": "number", "checkmust": true},
242
+ "气量异常差值": {"index": 10, "type": "number", "readonly": true},
243
+ "金额异常差值": {"index": 10, "type": "number", "readonly": true},
244
+ "差值备注": {"index": 11, "type": "string", "readonly": false}
245
+ }
246
+ }
247
+ },
208
248
  // 维修项
209
- isneedDate:'',
210
- routeShow:true,
211
- number:0,
212
- shupingshow:false,
249
+ isneedDate: '',
250
+ routeShow: true,
251
+ number: 0,
252
+ shupingshow: false,
213
253
  pipeline: {},
254
+ warnModal:false,
255
+ bzisno:false,
214
256
  details: [],
215
257
  ids: '',
216
258
  savevalid: {
@@ -221,20 +263,24 @@ export default {
221
263
  doordetails: {},
222
264
  devicedetails: {},
223
265
  cookdetails: {},
266
+ valueInfo: {},
224
267
  componentName: 'safecheck-userinfo',
225
- header:'客户信息',
268
+ header: '客户信息',
226
269
  tabs: [
227
270
 
228
271
  // 参数全部设置成空,在ready时,等model处理好了,再添加
229
272
  {
230
- header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
273
+ header: '客户信息', complete: 'safecheck-userinfo', class: 'repair-info-class', props: null
274
+ },
275
+ {
276
+ header: '表具异常记录', complete: 'table-anomaly-records', class: 'repair-info-class', props: null
231
277
  },
232
278
  {
233
- header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
279
+ header: '拍照签名', complete: 'paper-feedback', class: 'outlay-class', props: null
234
280
  }
235
281
  ],
236
- faultshow:{
237
- number : 8
282
+ faultshow: {
283
+ number: 8
238
284
  } // 控制 故障汇总 在 菜单里显示与否,
239
285
  }
240
286
  },
@@ -246,84 +292,106 @@ export default {
246
292
  }
247
293
  },
248
294
  methods: {
295
+
249
296
  saveNoclick() {
250
297
  // 禁用点击事件
251
298
  $("#savebut").addClass("noclickbut");
252
299
  console.log("进入禁用按钮事件")
253
300
 
254
301
  // 5秒后启用点击事件
255
- setTimeout(function(){
302
+ setTimeout(function () {
256
303
  $("#savebut").removeClass("noclickbut");
257
- },5000);
304
+ }, 10000);
258
305
  },
259
- timeSet(val){
260
- if (!val){
306
+
307
+ timeSet(val) {
308
+ if (!val) {
261
309
  return
262
310
  }
263
- let time =new Date(val).getTime()
264
- let time2=new Date().getTime()
265
- if (time2>time) {
311
+ let time = new Date(val).getTime()
312
+ let time2 = new Date().getTime()
313
+ if (time2 > time) {
266
314
  return true
267
315
  }
268
316
  },
269
- imgback(val,isheader){
270
- if(val && this.routeShow && isheader){
317
+ imgback(val, isheader) {
318
+ if (val && this.routeShow && isheader) {
271
319
  return require('../../assets/xiangxia1.png')
272
- }else{
320
+ } else {
273
321
  return require('../../assets/xiangyou1.png')
274
322
  }
275
323
  },
276
- changediv(val){
324
+ changediv(val) {
277
325
  console.log(val)
278
326
  return val
279
327
  },
280
328
  // 选择tab
281
- tabSelect (item,number) {
282
- this.header = item.header
283
- console.log('item',item)
284
- console.log('number',number)
285
- console.log('this.routeShow',this.routeShow)
286
- console.log('this.number',this.number)
287
- // 处理关闭/显示 内容
288
- if(this.number == number && !this.routeShow ){
289
- this.routeShow = true
290
- }else if(this.number == number && this.routeShow){
291
- this.routeShow = false
292
- }else if(this.number != item.complete){
293
- this.routeShow = true
294
- }
295
- this.number = number
296
- this.componentName = item.complete
297
- console.log('跳转前this.routeShow',this.routeShow)
298
- if(item.complete == 'safecheck-devices'){
299
- console.log('this.data', this.data)
300
- if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
301
- this.data['device' + item.number].push({})
302
- }
303
- console.log('length', this.data['device' + item.number])
304
- console.log('this.data[\'device\' + item.number] ===> ' + JSON.stringify(this.data['device' + item.number]))
305
- let idx=this.data['device' + item.number].length - 1
306
- let itemprops = {
307
- config:this.config,
308
- device:this.devices[item.number-1],
309
- idx:idx,
310
- role:'inspect'
311
- }
312
- console.log('tabSelect函数中赋值')
313
- console.log(JSON.stringify(itemprops))
314
- console.log('itemprops.device ===> ' + JSON.stringify(itemprops.device))
315
- console.log('item.complete',item.complete)
316
- if(this.routeShow){
317
- this.$goto(item.complete, itemprops, 'repair')
318
- console.log('跳转完成')
329
+ tabSelect(item, number) {
330
+ if (this.data.f_entry_status != '入户' && !(this.data.f_entry_status == '到访不遇' && (item.header == '燃气表' || item.header == '客户信息') && this.data.f_is_outdoor == '是')) {
331
+ this.$showMessage("非入户状态,拍完照后请直接进行上传!")
332
+ } else {
333
+ this.header = item.header
334
+ console.log('item', item)
335
+ console.log('number', number)
336
+ console.log('this.routeShow', this.routeShow)
337
+ console.log('this.number', this.number)
338
+ // 处理关闭/显示 内容
339
+ if (this.number == number && !this.routeShow) {
340
+ this.routeShow = true
341
+ } else if (this.number == number && this.routeShow) {
342
+ this.routeShow = false
343
+ } else if (this.number != item.complete) {
344
+ this.routeShow = true
319
345
  }
320
- }else{
321
- console.log('页面跳转==》',this.tabs[number])
322
- if(this.routeShow){
323
- this.$goto(item.complete, {userinfo:this.data}, 'repair')
346
+ this.number = number
347
+ this.componentName = item.complete
348
+ console.log('跳转前this.routeShow', this.routeShow)
349
+ if (item.complete == 'safecheck-devices') {
350
+ console.log('this.data', this.data)
351
+ if (item.header != '燃气表' && this.data['device' + item.number].length == 0) {
352
+ this.data['device' + item.number].push({})
353
+ }
354
+ console.log('length', this.data['device' + item.number])
355
+ console.log('this.data[\'device\' + item.number] ===> ' + JSON.stringify(this.data['device' + item.number]))
356
+ let idx = this.data['device' + item.number].length - 1
357
+ let itemprops = {
358
+ config: this.config,
359
+ device: this.devices[item.number - 1],
360
+ idx: idx,
361
+ role: 'inspect'
362
+ }
363
+ console.log('tabSelect函数中赋值')
364
+ console.log(JSON.stringify(itemprops))
365
+ console.log('itemprops.device ===> ' + JSON.stringify(itemprops.device))
366
+ console.log('item.complete', item.complete)
367
+ if (this.routeShow) {
368
+ this.$goto(item.complete, itemprops, 'repair')
369
+ console.log('跳转完成')
370
+ }
371
+ } else {
372
+ console.log('页面跳转==》', this.tabs[number])
373
+ if (this.routeShow) {
374
+ this.$goto(item.complete, {userinfo: this.data}, 'repair')
375
+ }
324
376
  }
377
+ this.shupingshow = true
378
+ }
379
+
380
+ },
381
+ getClassimg(val) {
382
+ if (val == '保险服务') {
383
+ return 'baoxian-details-class'
325
384
  }
326
- this.shupingshow = true
385
+ if (val == '燃气表') {
386
+ return 'ranqibiao-details-class'
387
+ }
388
+ if (val == '燃气器具信息') {
389
+ return 'ranqiqiju-details-class'
390
+ }
391
+ if (val == '附属设备信息') {
392
+ return 'fushushebei-details-class'
393
+ }
394
+ return 'repair-details-class'
327
395
  },
328
396
  // 给组件添加参数
329
397
  getImgPath() {
@@ -331,18 +399,20 @@ export default {
331
399
  this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
332
400
  }
333
401
  this.ids = this.ids.substring(0, this.ids.length - 1)
334
- if(this.ids){
402
+ if (this.ids) {
335
403
  this.getImgGen();
336
404
  }
337
405
  },
338
- getImgGen(){
406
+ getImgGen() {
339
407
  let http = new HttpResetClass()
340
- http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
408
+ http.load('POST', 'api/af-safecheck/sql/safe_singleTable_OrderBy', {
409
+ data: {
341
410
  items: '*',
342
411
  tablename: 't_files',
343
412
  condition: `id in (${this.ids})`,
344
413
  orderitem: 'id'
345
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
414
+ }
415
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
346
416
  for (let i = 0; i < res.data.length; i++) {
347
417
  for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
348
418
  console.log(res.data[i].id.toString())
@@ -356,7 +426,7 @@ export default {
356
426
  })
357
427
  },
358
428
 
359
- sortDetails(){
429
+ sortDetails() {
360
430
  for (let i = 0; i < this.details.length; i++) {
361
431
  if (this.details[i].details.length) {
362
432
  for (let j = 0; j < this.details[i].details.length; j++) {
@@ -377,9 +447,9 @@ export default {
377
447
  }
378
448
  },
379
449
  // 复制数据
380
- back () {
450
+ back() {
381
451
  let _this = this
382
- if(this.issee){
452
+ if (this.issee) {
383
453
  _this.$back()
384
454
  return
385
455
  }
@@ -389,7 +459,7 @@ export default {
389
459
  }
390
460
  })
391
461
  },
392
- confirm(){
462
+ confirm() {
393
463
  this.$dispatch('confirm')
394
464
  },
395
465
  tick() {
@@ -408,50 +478,115 @@ export default {
408
478
  this.data.f_repair_date = Util.toStandardTimeString()
409
479
  this.data.f_repaired = this.getRepairState() ? '已修' : '在修'
410
480
  },
481
+ verifyDevices2() {
482
+ for (let dev in this.config2) {
483
+ if (this.config2[dev].checkmust == true) {
484
+ let error = true
485
+ for (let device in this.data) {
486
+ if (device.startsWith("device")) {
487
+ for (let item in this.data[device]) {
488
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
489
+ error = false
490
+ }
491
+ }
492
+ }
493
+ }
494
+ if (error) {
495
+ return "请检查" + dev
496
+ }
497
+ }
498
+ }
499
+ for (let dev in this.config2) {
500
+ for (let device in this.data) {
501
+ if (device.startsWith("device")) {
502
+ for (let item in this.data[device]) {
503
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
504
+ let idx = 0
505
+ for (let i in this.data[device][item].f_items) {
506
+ if (idx != 0) {
507
+ idx = idx - 1
508
+ continue
509
+ }
510
+ for (let it in this.config2[dev].items) {
511
+ if (it == this.data[device][item].f_items[i].f_item_name) {
512
+ if (this.data[device][item].f_items[i].correlation) {
513
+ for (let x = 0; x < this.data[device][item].f_items[i].options.length; x++) {
514
+ if (this.data[device][item].f_items[i].options[x].value == this.data[device][item].f_items[i].f_item_value) {
515
+ if (this.data[device][item].f_items[i].options[x].selcorrelation) {
516
+ idx = this.data[device][item].f_items[i].correlationnum
517
+ }
518
+ }
519
+ }
520
+ }
521
+ if (this.config2[dev].items[it].type == 'picture' && this.config2[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path) {
522
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
523
+ }
524
+ if (this.config2[dev].items[it].type != 'picture' && this.config2[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_item_value) {
525
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
526
+ }
527
+ }
528
+ }
529
+ if (this.data[device][item].f_items[i].type == 'selector' || this.data[device][item].f_items[i].type == 'radio') {
530
+ if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
531
+ 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 + "选中必须拍照"
532
+ }
533
+ }
534
+ }
535
+ }
536
+ }
537
+ }
538
+ }
539
+ }
540
+ },
411
541
  errorVerify() {
412
542
  let hasError = this.verifyState()
413
- if(hasError)
543
+ if (hasError)
414
544
  return hasError
415
545
 
416
- if(this.data.f_entry_status != '入户')
546
+ if (this.data.f_entry_status == '到访不遇' && this.data.f_is_outdoor == '是'){
547
+ hasError = this.verifyDevices2()
548
+ if (hasError)
549
+ return hasError
550
+ }
551
+ if (this.data.f_entry_status == '入户' && this.tableAnomalyRecords.warninfo && this.tableAnomalyRecords.warninfo.length > 0 ){
552
+ if (!this.data.f_table_anomaly_remark){
553
+ return `表具有异常记录,请查看`
554
+ }
555
+ }
556
+ if (this.data.f_entry_status != '入户')
417
557
  return null
418
558
  hasError = this.verifyUser()
419
- if(hasError)
559
+ if (hasError)
420
560
  return hasError
421
561
  hasError = this.verifyDevices()
422
- if(hasError)
562
+ if (hasError)
423
563
  return hasError
424
564
  hasError = this.verifyFeedback()
425
- if(hasError)
565
+ if (hasError)
426
566
  return hasError
427
567
  },
428
568
  verifyState() {
429
- if(Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
569
+ if (Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
430
570
  return '未使用天然气则必须拍照'
431
- if(Vue.android && this.data.f_entry_status == '到访不遇' && this.data.f_noanswer_path == Vue.nopic)
432
- return '到访不遇必须拍照'
571
+ if (Vue.android && this.data.f_entry_status == '到访不遇' && this.data.f_noanswer_path == Vue.nopic)
572
+ return '到访不遇必须拍照'
433
573
  },
434
574
  verifyUser() {
435
- console.log('走了校验')
436
- console.log(this.data.f_user_phone)
437
- console.log(/^\d{11}$/.test(this.data.f_user_phone))
438
575
  let prefix = '用户基本信息:'
439
- if(Util.required(this.data.f_user_name))
440
- return prefix + '用户名必须输入'
441
- if(!(/^\d{11}$/.test(this.data.f_user_phone))) {
442
-
443
- return '请输入正确的电话号码'
444
- }
576
+ // if(Util.required(this.data.f_user_name))
577
+ // return prefix + '用户名必须输入'
578
+ if (Util.required(this.data.f_user_phone))
579
+ return prefix + '用户电话必须输入'
445
580
  // if(Util.required(this.data.f_residential_area))
446
581
  // return prefix + '小区名称必须输入'
447
- if(Util.required(this.data.f_address))
448
- return prefix + '地址必须输入'
582
+ // if(Util.required(this.data.f_address))
583
+ // return prefix + '地址必须输入'
449
584
  },
450
585
  verifyDevices() {
451
586
  for (let dev in this.config) {
452
587
  if (this.config[dev].checkmust == true) {
453
588
  let error = true
454
- for(let device in this.data) {
589
+ for (let device in this.data) {
455
590
  if (device.startsWith("device")) {
456
591
  for (let item in this.data[device]) {
457
592
  if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
@@ -467,15 +602,46 @@ export default {
467
602
  }
468
603
 
469
604
  for (let dev in this.config) {
470
- for(let device in this.data) {
605
+ for (let device in this.data) {
471
606
  if (device.startsWith("device")) {
472
607
  for (let item in this.data[device]) {
473
608
  //检查每一条安检结果
474
609
  if (this.data[device].length != 0 && this.data[device][item].f_device_type == dev) {
610
+ let idx = 0
475
611
  for (let i in this.data[device][item].f_items) {
612
+ console.log("idx---------------------------------" + idx)
613
+ if (idx != 0) {
614
+ idx = idx - 1
615
+ console.log("idx---" + idx)
616
+ continue
617
+ }
476
618
  for (let it in this.config[dev].items) {
477
619
  if (it == this.data[device][item].f_items[i].f_item_name) {
478
- if (this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_item_value) {
620
+ console.log("-----this.data[device][item].f_items[i].f_item_name-----" + this.data[device][item].f_items[i].f_item_name)
621
+ console.log("-----it-----" + it)
622
+ console.log("-----this.config[dev].items[it]-----" + JSON.stringify(this.config[dev].items[it]))
623
+ console.log("-----this.data[device][item].f_items[i]-----" + JSON.stringify(this.data[device][item].f_items[i]))
624
+ if (this.data[device][item].f_items[i].correlation) {
625
+ console.log("----1--" + this.data[device][item].f_items[i].correlation)
626
+ console.log("----1--" + JSON.stringify(this.data[device][item].f_items[i].options))
627
+ for (let x = 0; x < this.data[device][item].f_items[i].options.length; x++) {
628
+ console.log("---2---" + this.data[device][item].f_items[i].options[x].value)
629
+ console.log("---2---" + this.data[device][item].f_items[i].f_item_value)
630
+ if (this.data[device][item].f_items[i].options[x].value == this.data[device][item].f_items[i].f_item_value) {
631
+ console.log("---2---" + this.data[device][item].f_items[i].options[x].selcorrelation)
632
+ console.log("---2---" + JSON.stringify(this.data[device][item].f_items[i].options[x]))
633
+ if (this.data[device][item].f_items[i].options[x].selcorrelation) {
634
+ console.log("跳过子项非空判断")
635
+ idx = this.data[device][item].f_items[i].correlationnum
636
+ console.log("进入" + idx)
637
+ }
638
+ }
639
+ }
640
+ }
641
+ if (this.config[dev].items[it].type == 'picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path) {
642
+ return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
643
+ }
644
+ if (this.config[dev].items[it].type != 'picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_item_value) {
479
645
  return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
480
646
  }
481
647
  }
@@ -493,23 +659,22 @@ export default {
493
659
  }
494
660
  }
495
661
  },
496
-
497
-
498
662
  verifyFeedback() {
499
663
  let prefix = '拍照签名:'
500
- console.log('this.data.f_overall_imgs==>'+JSON.stringify(this.data.f_overall_imgs))
501
- if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length == 0) && this.data.f_entry_status == '入户')
664
+ console.log('this.data.f_overall_imgs==>' + JSON.stringify(this.data.f_overall_imgs))
665
+ if (Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length == 0) && this.data.f_entry_status == '入户')
502
666
  return prefix + '必须有安检总体照片'
503
- if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
667
+ if (Vue.android && this.data.f_overall_imgs.length < 3 && this.data.f_entry_status == '入户')
668
+ return prefix + '总体安检照片低于3张照片禁止上传'
669
+ if (Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
504
670
  return prefix + '必须有用户签名'
505
- if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
671
+ if (Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
506
672
  return prefix + '下发安检通知书则必须给通知书拍照'
507
- if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
673
+ if (Vue.android && this.data.f_blacklist && this.data.f_blocking_cause == '')
508
674
  return prefix + '请填写拉黑原因'
509
- if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
510
- return prefix + '请选择服务评价'
675
+ if (!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
676
+ return prefix + '请选择服务评价'
511
677
  },
512
-
513
678
  getAllDefect() {
514
679
  let checkResults = {
515
680
  result: '正常',
@@ -521,6 +686,7 @@ export default {
521
686
  console.log('codata =====> ' + JSON.stringify(codata))
522
687
  codata.f_devices = []
523
688
  this.f_devices = []
689
+ this.paper_f_repaired = '' //默认安检单(t_check_paper)的f_repaired为未修(当这个安检单的每条安检项(t_device_items)的f_is_repaired有一条是需转维修,则安检单整体为未修,否则为''空串)
524
690
  for (let device in codata) {
525
691
  let f_device_type
526
692
  if (device.startsWith("device")) {
@@ -535,18 +701,16 @@ export default {
535
701
  // } else {
536
702
  // f_device_type = codata[device][item].f_device_type
537
703
  // }
538
- console.log("aaaaaaaaa"+device)
539
- console.log("bbbbbbbbbb"+item)
540
- console.log("ccccccccccc"+JSON.stringify(codata[device]))
541
- console.log('codata[device][item]=>',JSON.stringify(codata[device][item]))
542
- for (let i = 0; i < codata[device][item].f_items.length ; i++) {
704
+ // console.log('codata[device][item]=>',codata[device][item])
705
+ for (let i = 0; i < codata[device][item].f_items.length; i++) {
543
706
  console.log('i' + i)
544
- if(i == 'sum'){
707
+ if (i == 'sum') {
545
708
  continue
546
709
  }
547
710
  console.log('codata[device][item].f_items' + JSON.stringify(codata[device][item].f_items))
548
711
  var items = codata[device][item].f_items[i]
549
712
  items.f_create_time = Util.toStandardTimeString()
713
+
550
714
  console.log('之前items' + JSON.stringify(items))
551
715
  items.f_item_lists = []
552
716
  console.log('之后items' + JSON.stringify(items))
@@ -588,6 +752,7 @@ export default {
588
752
  for (let i in items.f_item_value) {
589
753
  let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
590
754
  console.log('configItems=====>' + JSON.stringify(configItems))
755
+
591
756
  for (let k in configItems.options) {
592
757
  console.log('configItems.options[k]==>' + JSON.stringify(configItems.options[k]))
593
758
  if (items.f_item_value[i] === configItems.options[k].data) {
@@ -599,7 +764,6 @@ export default {
599
764
  console.log('f_is_defect=====>' + f_is_defect)
600
765
  console.log('f_item_value=====>' + f_item_value)
601
766
  console.log('f_defect_level=====>' + f_defect_level)
602
-
603
767
  if (f_is_defect) {
604
768
  if (checkResults.result !== '有隐患') {
605
769
  checkResults.result = '有隐患'
@@ -608,10 +772,8 @@ export default {
608
772
  console.log(`The ${f_item_name} initialized`)
609
773
  this.checkResult[f_item_name] = []
610
774
  }
611
-
612
775
  console.log(`The ${f_item_name} was pushed ${f_item_value}`)
613
776
  this.checkResult[f_item_name].push(f_item_value)
614
-
615
777
  }
616
778
 
617
779
  let items_list = {
@@ -642,12 +804,25 @@ export default {
642
804
  } else {
643
805
  let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
644
806
  console.log('configItems===>' + JSON.stringify(configItems))
645
- f_is_defect = configItems.isdefect
646
- f_defect_level = configItems.level
807
+ f_is_defect = items.f_is_defect
808
+ f_defect_level = items.f_defect_level
647
809
  f_item_value = items.f_item_value
648
810
  console.log('else f_is_defect=====>' + f_is_defect)
649
811
  console.log('else f_defect_level=====>' + f_defect_level)
650
812
  console.log('items.f_item_value==>' + items.f_item_value)
813
+ if (f_item_name === '是否为热水器用户') {
814
+ codata.f_reshuiqi = f_item_value
815
+ }
816
+ if (f_item_name === '是否为壁挂炉用户') {
817
+ codata.f_bigualu = f_item_value
818
+ }
819
+ // && this.data.f_meter_classify.includes('卡表') 客户要求物联网表也生效
820
+ if (['气量异常差值', '表金额异常差值'].includes(f_item_name) && Math.abs(f_item_value)>=5 ) {
821
+ this.warnModal = true
822
+ }
823
+ if (f_item_name === '差值备注' && this.warnModal === true && (f_item_value=='' || f_item_value==null) ){
824
+ this.bzisno = true
825
+ }
651
826
  let items_list = {
652
827
  f_is_defect: f_is_defect,
653
828
  f_item_value: f_item_value,
@@ -658,7 +833,9 @@ export default {
658
833
  items.f_is_defect = true
659
834
  if (checkResults.result !== '有隐患') {
660
835
  checkResults.result = '有隐患'
836
+
661
837
  }
838
+
662
839
  if (!this.checkResult.hasOwnProperty(items.f_item_name)) {
663
840
  console.log(`The ${items.f_item_name} initialized`)
664
841
  this.checkResult[items.f_item_name] = []
@@ -688,6 +865,11 @@ export default {
688
865
  }
689
866
  }
690
867
  }
868
+ // 无隐患
869
+ if (this.paper_f_repaired != '未修' && items.f_is_repaired == '需转维修' && (items.f_is_defect && (items.f_is_defect == true || items.f_is_defect == 'true'))) {
870
+ //默认安检单(t_check_paper)的f_repaired为空串(当这个安检单的每条安检项(t_device_items)的f_is_repaired有一条是需转维修,则安检单整体为未修,否则为''空串)
871
+ this.paper_f_repaired = '未修'
872
+ }
691
873
  if (hasOther !== '' && otherValue !== null) {
692
874
  console.log(`The other value was pushed.`)
693
875
  this.checkResult[hasOther].push(otherValue)
@@ -698,6 +880,7 @@ export default {
698
880
  }
699
881
  console.log('安检结果checkResult' + JSON.stringify(this.checkResult))
700
882
  this.f_devices.push(codata[device][item])
883
+ // codata.f_devices.push(codata[device][item])
701
884
  }
702
885
  }
703
886
  }
@@ -718,38 +901,85 @@ export default {
718
901
  }
719
902
  console.log(`typeof-checkResults-->${typeof checkResults}`)
720
903
  console.log('checkResults ==> ' + JSON.stringify(checkResults))
904
+ if (checkResults.data.length > 0) {
905
+ let msg = ''
906
+ for (let a = 0; a < checkResults.data.length; a++) {
907
+ for (let datumKey in checkResults.data[a]) {
908
+ msg += datumKey + ':' + checkResults.data[a][datumKey] + ';'
909
+ }
910
+ }
911
+ this.data.f_defect_text = msg
912
+ codata.f_defect_text = msg
913
+ }
721
914
  codata.f_defect_content = JSON.stringify(checkResults)
915
+ codata.f_repaired = this.paper_f_repaired //
722
916
  this.data.f_defect_content = JSON.stringify(checkResults)
917
+ this.data.f_repaired = this.paper_f_repaired
723
918
  console.log('f_defect_content' + codata.f_defect_content)
724
- return codata
919
+
920
+ return this.addPaperHiddens(codata)
921
+ },
922
+ addPaperHiddens(codata) {
923
+ const f_hiddens = [];
924
+ const f_devices = this.f_devices;
925
+ for (let i = 0; i < f_devices.length; i++) {
926
+ const f_items = f_devices[i].f_items;
927
+ for (let j = 0; j < f_items.length; j++) {
928
+ const f_item_lists = f_items[j].f_item_lists;
929
+ if (f_items[j].f_is_defect === true) {
930
+ for (let k = 0; k < f_item_lists.length; k++) {
931
+ const newDevice = {};
932
+ for (const key in f_devices[i]) {
933
+ if (key !== 'f_items') {
934
+ newDevice[key] = f_devices[i][key];
935
+ }
936
+ }
937
+ const newItem = {};
938
+ for (const key in f_items[j]) {
939
+ if (key !== 'f_item_lists') {
940
+ newItem[key] = f_items[j][key];
941
+ }
942
+ }
943
+ const newItemList = f_item_lists[k]
944
+ f_hiddens.push({
945
+ ...newDevice,
946
+ ...newItem,
947
+ ...newItemList
948
+ });
949
+ }
950
+ }
951
+ }
952
+ }
953
+ console.log("888899999", JSON.stringify({...codata, f_hiddens}))
954
+ return {...codata, f_hiddens}
725
955
  },
726
- uploadCheckPaper(){
956
+ uploadCheckPaper() {
727
957
  this.saveNoclick()
728
- console.log('禁用事件完成')
729
958
  console.log('进入上传')
730
959
  let errString = this.errorVerify()
731
960
  if (errString) {
732
961
  console.log(errString)
733
- console.log('Vue.android',Vue.android)
734
- console.log('this.isUpload',this.isUpload)
735
- if (Vue.android){
962
+ console.log('Vue.android', Vue.android)
963
+ console.log('this.isUpload', this.isUpload)
964
+ if (Vue.android) {
736
965
  // if(this.isUpload){
737
966
  // this.isUpload = false
738
967
  // }
739
968
  this.$showMessage(errString)
740
969
  }
970
+ $("#savebut").removeClass("noclickbut");
741
971
  return
742
972
  } else {
743
973
  this.$set('data.f_offsite_time', Util.toStandardTimeString())
744
974
  this.$set('data.f_upload_time', Util.toStandardTimeString())
745
975
  this.$set('data.f_upload_date', Util.toStandardTimeString())
746
- console.log('赋值后',this.data)
976
+ console.log('赋值后', this.data)
747
977
  this.data.f_complete = '已完成'
748
978
  this.disableTimer()
749
979
  }
750
- console.log('uploadCheckPaper-->isUpload'+this.isUpload)
980
+ console.log('uploadCheckrr-->isUpload' + this.isUpload)
751
981
  this.onlySave = false
752
- let res = this.save()
982
+ let res = this.save()
753
983
  // if(res) {
754
984
  // try {
755
985
  // let codata = this.getAllDefect()
@@ -892,35 +1122,149 @@ export default {
892
1122
  // }
893
1123
  // }
894
1124
  },
895
- save(type) {
1125
+ saveZZ(reqdata) {
1126
+ console.log(this.item.f_userinfoid)
1127
+ console.log(this.item.f_plan_meters[0].f_userfiles_id)
1128
+ console.log(reqdata)
1129
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/valueaddinfo`, {
1130
+ data: {
1131
+ f_userinfo_id: this.item.f_userinfoid,
1132
+ f_userfiles_id: this.item.f_plan_meters[0].f_userfiles_id,
1133
+ }
1134
+ }).then((res) => {
1135
+ this.oldvalueinfo = JSON.parse(JSON.stringify(res.data.valaddinfo))
1136
+ this.valueinfo = JSON.parse(JSON.stringify(res.data.valaddinfo))
1137
+ let isok = '否'
1138
+ let buytime = ''
1139
+ let type = ''
1140
+ this.valueinfo.forEach(item => {
1141
+ reqdata.f_devices.forEach(res1 => {
1142
+ if (res1.f_device_type == '附属设备信息' || res1.f_device_type == '燃气器具信息' || res1.f_device_type == '保险服务') {
1143
+ res1.f_items.forEach(res2 => {
1144
+ if (res2.f_item_name.includes('连接管')) {
1145
+ if (res2.f_item_name == '连接管产品现状' && res2.f_item_lists[0].f_item_value == '有') {
1146
+ isok = '是'
1147
+ }
1148
+ if (res2.f_item_name == '连接管购买时间') {
1149
+ buytime = res2.f_item_lists[0].f_item_value
1150
+ }
1151
+ if (res2.f_item_name == '连接管产品类型') {
1152
+ type = res2.f_item_lists[0].f_item_value
1153
+ }
1154
+ } else {
1155
+ if (item.value_type + '购买时间' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1156
+ item.startDate = res2.f_item_lists[0].f_item_value
1157
+ item.startdate = res2.f_item_lists[0].f_item_value
1158
+ item.f_operator_date = Util.getNowDate()
1159
+ }
1160
+ if (item.value_type + '产品现状' == res2.f_item_name && res2.f_item_lists[0].f_item_value == '有') {
1161
+ item.isuse = '是'
1162
+ }
1163
+ if (item.value_type + '产品类型' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1164
+ item.f_product_type = res2.f_item_lists[0].f_item_value
1165
+ }
1166
+ if (item.value_type + '熄火保护' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1167
+ item.f_value_protect = res2.f_item_lists[0].f_item_value
1168
+ }
1169
+ if (item.value_type + '产品品牌' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1170
+ item.f_value_brand = res2.f_item_lists[0].f_item_value
1171
+ }
1172
+ if (item.value_type + '是否正常' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1173
+ item.f_normal_state = res2.f_item_lists[0].f_item_value
1174
+ }
1175
+ if (item.value_type + '安装位置是否合适' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1176
+ item.f_position_is_suitable = res2.f_item_lists[0].f_item_value
1177
+ }
1178
+ if (item.value_type + '备注' == res2.f_item_name && res2.f_item_lists[0].f_item_value != '') {
1179
+ item.f_comments = res2.f_item_lists[0].f_item_value
1180
+ }
1181
+ if ('有无' + item.value_type == res2.f_item_name && res2.f_item_lists[0].f_item_value == '有') {
1182
+ item.isuse = '是'
1183
+ }
1184
+ }
1185
+ })
1186
+ }
1187
+ })
1188
+ })
1189
+ if (isok == '是') {
1190
+ this.valueinfo.push({
1191
+ "isuse": isok,
1192
+ "value_type": type,
1193
+ "enddate": "1990-01-01 00:00:00",
1194
+ "endDate": "",
1195
+ "f_operator_date": Util.getNowDate(),
1196
+ "startdate": buytime,
1197
+ "startDate": buytime
1198
+ })
1199
+ }
1200
+ let commit_data = []
1201
+ commit_data = this.valueinfo.filter(obj1 => {
1202
+ return this.oldvalueinfo.findIndex(obj2 => JSON.stringify(obj1) === JSON.stringify(obj2)) === -1;
1203
+ });
1204
+ if (commit_data.length===0){
1205
+ return false
1206
+ }
1207
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/chargevaluesave`, {
1208
+ data: {
1209
+ oldvalueinfo: this.oldvalueinfo,
1210
+ valueinfo: commit_data,
1211
+ f_resource: '安检',
1212
+ userinfo: {
1213
+ f_userinfo_id: this.item.f_userinfoid,
1214
+ f_user_name: this.item.f_user_name
1215
+ },
1216
+ f_operator: Vue.user.name,
1217
+ f_operatorid: Vue.user.id,
1218
+ f_orgid: Vue.user.orgid,
1219
+ f_orgname: Vue.user.orgs,
1220
+ f_depid: Vue.user.depids,
1221
+ f_depname: Vue.user.deps,
1222
+ f_zoneid: Vue.user.zoneid,
1223
+ f_zones: Vue.user.zones
1224
+ }
1225
+ })
1226
+ })
1227
+ },
1228
+ async save(type) {
896
1229
  this.saveNoclick()
897
- console.log('禁用事件完成')
1230
+ this.classnodu = true
898
1231
  console.log('进入保存')
899
- if(type == 'temp'){
1232
+ if (type == 'temp') {
900
1233
  this.data.f_complete = '未完成'
901
1234
  this.disableTimer()
902
- }else {
1235
+ } else {
903
1236
  let errString = this.errorVerify()
904
1237
  if (errString) {
905
1238
  console.log(errString)
906
- console.log('Vue.android',Vue.android)
907
- console.log('this.isUpload',this.isUpload)
908
- if (Vue.android){
1239
+ console.log('Vue.android', Vue.android)
1240
+ console.log('this.isUpload', this.isUpload)
1241
+ if (Vue.android) {
909
1242
  this.$showMessage(errString)
910
1243
  }
1244
+ $("#savebut").removeClass("noclickbut");
911
1245
  return
912
1246
  } else {
913
1247
  this.data.f_complete = '已完成'
914
1248
  this.$set('data.f_offsite_time', Util.toStandardTimeString())
915
1249
  this.disableTimer()
916
1250
  }
1251
+ if (!this.data.valueAddedState && this.data.f_entry_status == '入户') {
1252
+ return this.$showMessage("请检查增值业务信息!",['confirm'])
1253
+ }
917
1254
  }
918
- console.log("是否被拉黑-"+this.data.f_blacklist)
919
- if(this.data.f_blacklist!='是'){
1255
+ console.log("是否被拉黑-" + this.data.f_blacklist)
1256
+ if (this.data.f_blacklist != '是') {
920
1257
  delete this.data.f_blocking_cause
921
1258
  }
922
1259
  // try {
923
1260
  let codata = this.getAllDefect()
1261
+ if(this.bzisno){
1262
+ this.warnModal = false
1263
+ this.bzisno = false
1264
+ this.$showMessage("当前差值量超过5立方以上,请核对,并填写差值备注",['cancel', 'confirm'])
1265
+ $("#savebut").removeClass("noclickbut");
1266
+ return
1267
+ }
924
1268
  console.log(`codata类型-->${typeof codata}`)
925
1269
  console.log(`codata内容-->${JSON.stringify(codata)}`)
926
1270
  for (let key in codata) {
@@ -934,12 +1278,12 @@ export default {
934
1278
  console.log('安卓环境?=》' + Vue.android)
935
1279
  if (Vue.android) {
936
1280
  console.log('Vue.android is true')
937
- let value = this.$androidUtil.path({
1281
+ /*let value = this.$androidUtil.path({
938
1282
  alias: 'getUserinfomation',
939
1283
  data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
940
1284
  })
941
- console.log('getUserinfomation value ==> ' + JSON.stringify(value))
942
- if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
1285
+ console.log('getUserinfomation value ==> ' + JSON.stringify(value))*/
1286
+ if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
943
1287
  // let result = this.$androidUtil.bzLogic('SafeSaveNoPaper', {
944
1288
  // f_check_item_id: this.data.f_check_item_id,
945
1289
  // f_checker_id: this.data.f_checker_id,
@@ -1084,6 +1428,7 @@ export default {
1084
1428
  // }
1085
1429
  //TODO 失败后处理
1086
1430
  this.$showMessage("保存失败!")
1431
+ this.classnodu = false
1087
1432
  return false
1088
1433
  }
1089
1434
  })
@@ -1098,6 +1443,7 @@ export default {
1098
1443
  // this.isUpload = false
1099
1444
  // }
1100
1445
  this.$showMessage("保存失败!")
1446
+ this.classnodu = false
1101
1447
  return false
1102
1448
  }
1103
1449
  })
@@ -1130,6 +1476,7 @@ export default {
1130
1476
  // }
1131
1477
  //TODO 失败后处理
1132
1478
  this.$showMessage("保存失败!")
1479
+ this.classnodu = false
1133
1480
  return false
1134
1481
  }
1135
1482
  })
@@ -1144,6 +1491,7 @@ export default {
1144
1491
  // this.isUpload = false
1145
1492
  // }
1146
1493
  this.$showMessage("保存失败!")
1494
+ this.classnodu = false
1147
1495
  return false
1148
1496
  }
1149
1497
  })
@@ -1155,7 +1503,7 @@ export default {
1155
1503
  // this.$showMessage("保存失败!")
1156
1504
  // }
1157
1505
  },
1158
- runSyncLogic(logic,callback,backresult){
1506
+ runSyncLogic(logic, callback, backresult) {
1159
1507
  HostApp.runSyncLogic({
1160
1508
  // logic别名,key必须为logic
1161
1509
  'logic': logic,
@@ -1164,10 +1512,10 @@ export default {
1164
1512
  // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1165
1513
  // 执行回调方法传入key为backresult
1166
1514
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1167
- 'backresult':backresult
1515
+ 'backresult': backresult
1168
1516
  })
1169
1517
  },
1170
- logicWithHint(logic,data,callback,backresult){
1518
+ logicWithHint(logic, data, callback, backresult) {
1171
1519
  HostApp.logicWithHint({
1172
1520
  // logic别名,key必须为logic
1173
1521
  'logic': logic,
@@ -1178,38 +1526,39 @@ export default {
1178
1526
  // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1179
1527
  // 执行回调方法传入key为backresult
1180
1528
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1181
- 'backresult':backresult
1529
+ 'backresult': backresult
1182
1530
  })
1183
1531
  },
1184
- saveCallBack(jo){
1532
+ saveCallBack(jo) {
1185
1533
  console.log(JSON.stringify(jo))
1186
- if(jo.state == 'ok'){
1534
+ if (jo.state == 'ok') {
1187
1535
  let res = JSON.parse(jo.result)
1188
- console.log('保存结果===》'+JSON.stringify(res))
1189
- if(res.code == 200){
1190
- console.log('onlySave=====>'+this.onlySave)
1191
- if(!this.onlySave){
1536
+ console.log('保存结果===》' + JSON.stringify(res))
1537
+ if (res.code == 200) {
1538
+ console.log('onlySave=====>' + this.onlySave)
1539
+ if (!this.onlySave) {
1192
1540
  let codata = this.getAllDefect()
1541
+ this.saveZZ(codata)
1193
1542
  //获取微信推送内容
1194
1543
  // let WxResult = this.getWeixin(codata)
1195
1544
  let haslivedispose = this.$androidUtil.bzLogic('getLiveDispose', {
1196
1545
  f_check_item_id: this.data.f_check_item_id
1197
1546
  })
1198
1547
  //如果是转维修上传,则不做校验,上传完成后自动转维修
1199
- console.log('this.isToRepair=======》'+this.isToRepair)
1200
- console.log('this.livedispose=======》'+this.livedispose)
1201
- if(!this.isToRepair){
1202
- if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1548
+ console.log('this.isToRepair=======》' + this.isToRepair)
1549
+ console.log('this.livedispose=======》' + this.livedispose)
1550
+ if (!this.isToRepair) {
1551
+ if (haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)) {
1203
1552
  console.log('是否已转维修')
1204
1553
  console.log(this.isSafeCheckToRepair)
1205
- if(!this.isSafeCheckToRepair){
1554
+ if (!this.isSafeCheckToRepair) {
1206
1555
 
1207
1556
  }
1208
1557
  }
1209
1558
  }
1210
1559
  console.log(`codata类型-->${typeof codata}`)
1211
- for (let key in codata){
1212
- if(key.startsWith("device")){
1560
+ for (let key in codata) {
1561
+ if (key.startsWith("device")) {
1213
1562
  codata[key] = []
1214
1563
  }
1215
1564
  }
@@ -1260,27 +1609,29 @@ export default {
1260
1609
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1261
1610
  'backresult': 1
1262
1611
  })
1263
- }else{
1612
+ } else {
1264
1613
  this.$showMessage('保存成功!')
1265
- if(this.clickBack){
1614
+ if (this.clickBack) {
1266
1615
  this.isStrat = false
1267
1616
  this.$dispatch('confirm')
1268
1617
  //this.$back()
1269
1618
  }
1270
1619
  }
1271
- }else{
1620
+ } else {
1272
1621
  this.$showMessage('保存失败!')
1273
- return
1622
+ this.classnodu = false
1623
+ this.onlySave = true
1274
1624
  }
1275
- }else{
1276
- this.$showMessage('服务器内部错误,保存失败!')
1277
- return
1625
+ } else {
1626
+ this.$showMessage('移动网络异常,请稍后再试,本地保存失败!'+jo.err_msg)
1627
+ this.classnodu = false
1628
+ this.onlySave = true
1278
1629
  }
1279
1630
  },
1280
- uploadCallBack(jo){
1631
+ uploadCallBack(jo) {
1281
1632
  //获取微信推送路径
1282
1633
  let url = ""
1283
- if(Vue.config.safecheck != undefined) {
1634
+ if (Vue.config.safecheck != undefined) {
1284
1635
  if (Vue.config.safecheck.ApproveConfig != undefined) {
1285
1636
  if (Vue.config.safecheck.ApproveConfig.weixinurl != undefined) {
1286
1637
  url = Vue.config.safecheck.ApproveConfig.weixinurl
@@ -1289,84 +1640,98 @@ export default {
1289
1640
  }
1290
1641
  console.log(JSON.stringify(jo))
1291
1642
  console.log('jo ===> ' + JSON.stringify(jo))
1292
- if(jo.state == 'ok'){
1643
+ if (jo.state == 'ok') {
1293
1644
  let res = JSON.parse(jo.result)
1294
- console.log('上传结果===》'+JSON.stringify(res))
1295
- console.log('上传结果的f_paper_id===》'+JSON.stringify(res.id))
1296
- if(res.code == 200){
1645
+ console.log('上传结果===》' + JSON.stringify(res))
1646
+ console.log('上传结果的f_paper_id===》' + JSON.stringify(res.id))
1647
+ if (res.code == 200) {
1297
1648
  this.$set('data.f_paper_id', res.id)
1298
- this.isStrat=false
1299
- if(url != ""){
1300
- this.$resetpost(`${url}`,{data:WxResult})
1649
+ this.isStrat = false
1650
+ if (url != "") {
1651
+ this.$resetpost(`${url}`, {data: WxResult})
1301
1652
  }
1302
- console.log('this.isToRepair==============>'+this.isToRepair)
1303
- if(this.isToRepair){
1304
- for (let device in this.data){
1305
- if(device.startsWith("device")){
1653
+ console.log('this.isToRepair==============>' + this.isToRepair)
1654
+ if (this.isToRepair) {
1655
+ for (let device in this.data) {
1656
+ if (device.startsWith("device")) {
1306
1657
  this.data[device] = []
1307
- if(res.data.length > 0){
1308
- for(let i in res.data[0].f_devices){
1309
- if(this.data[device].length > 0){
1310
- if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1658
+ if (res.data.length > 0) {
1659
+ for (let i in res.data[0].f_devices) {
1660
+ if (this.data[device].length > 0) {
1661
+ if (this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type) {
1311
1662
  this.data[device].push(res.data[0].f_devices[i])
1312
- res.data[0].f_devices.splice(i,1)
1663
+ res.data[0].f_devices.splice(i, 1)
1313
1664
  }
1314
- }else{
1665
+ } else {
1315
1666
  this.data[device].push(res.data[0].f_devices[i])
1316
- res.data[0].f_devices.splice(i,1)
1667
+ res.data[0].f_devices.splice(i, 1)
1317
1668
  }
1318
1669
  }
1319
1670
  }
1320
1671
  }
1321
1672
  }
1322
1673
  this.todo()
1323
- }else{
1674
+ } else {
1324
1675
  this.$showMessage('上传成功!')
1325
1676
  console.log('上传结束back')
1326
1677
  this.$dispatch('confirm')
1327
1678
  // this.$back()
1328
1679
  }
1329
- }else if(res.code == 309){
1330
- this.$showMessage('该安检单已作废!')
1331
- console.log('该安检单已作废')
1332
- this.$dispatch('confirm')
1333
- }else{
1680
+ } else if (res.code == 309) {
1681
+ this.$showMessage('该安检单已作废,无法上传!')
1682
+ } else if (res.code == 710) {
1683
+ this.$showMessage('上传照片失败,请检查网络是否正常!'+res.msg)
1684
+ } else if (res.code == 711) {
1685
+ this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1686
+ } else if (res.code == 712) {
1687
+ this.$showMessage('网络异常,请重新上传,多次上传失败请联系管理员!')
1688
+ } else if (res.code == 308) {
1689
+ this.$showMessage('上次安检是到访不遇,距离现在不超过1天,禁止提交')
1690
+ } else {
1691
+ this.classnodu = false
1334
1692
  this.$showMessage('上传失败!')
1335
- this.onlySave = true
1336
1693
  }
1337
- }else {
1338
- this.$showMessage('服务器内部错误,上传失败!')
1694
+ this.in_save = false
1695
+ this.onlySave = true
1696
+ $("#savebut").removeClass("noclickbut");
1697
+ } else {
1698
+ this.$showMessage('移动网络异常,请稍后再试,上传失败!')
1699
+ $("#savebut").removeClass("noclickbut");
1700
+ this.classnodu = false
1339
1701
  this.onlySave = true
1340
1702
  }
1341
1703
  },
1342
- safecheckToRepairCallBack(jo){
1704
+ safecheckToRepairCallBack(jo) {
1343
1705
  //获取微信推送路径
1344
- if(jo.state == 'ok'){
1706
+ if (jo.state == 'ok') {
1345
1707
  let res = JSON.parse(jo.result)
1346
- console.log('安检转维修===》'+JSON.stringify(res))
1347
- if(res.code == 200){
1708
+ console.log('安检转维修===》' + JSON.stringify(res))
1709
+ if (res.code == 200) {
1348
1710
  console.log('安检转维修成功')
1349
- if(res.data.code == 200){
1711
+ if (res.data.code == 200) {
1350
1712
  this.$showMessage('上传并转维修成功!')
1351
- }else{
1713
+ } else {
1352
1714
  this.$showMessage('上传并转维修成功,回写安检单失败!')
1715
+ this.classnodu = false
1353
1716
  }
1354
1717
  this.$dispatch('confirm')
1355
1718
  // this.$back()
1356
- }else{
1719
+ } else {
1357
1720
  this.$showMessage('上传失败!')
1721
+ this.classnodu = false
1358
1722
  this.onlySave = true
1359
1723
  }
1360
- }else{
1361
- this.$showMessage('服务器内部错误,上传失败!')
1724
+ } else {
1725
+ this.$showMessage('移动网络异常,请稍后再试,上传失败!')
1726
+ this.classnodu = false
1362
1727
  this.onlySave = true
1363
1728
  }
1364
1729
  },
1365
- todo(){
1730
+ todo() {
1366
1731
  let gen = getRepairParam(this)
1367
1732
  co(gen)
1368
1733
  },
1369
- undo(){
1734
+ undo() {
1370
1735
  this.showCheckToRepair = !this.showCheckToRepair
1371
1736
  this.model.serviceacitivity[0].f_reciever = ''
1372
1737
  this.model.serviceacitivity[0].f_meetunit = ''
@@ -1374,13 +1739,13 @@ export default {
1374
1739
  this.meading = '转站点'
1375
1740
  },
1376
1741
  disableTimer() {
1377
- if(this.timer) {
1742
+ if (this.timer) {
1378
1743
  window.clearTimeout(this.timer)
1379
1744
  this.timer = null
1380
1745
  }
1381
1746
  },
1382
1747
  loaded(paper) {
1383
- if(!paper.hasOwnProperty('id')) {
1748
+ if (!paper.hasOwnProperty('id')) {
1384
1749
  this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1385
1750
  this.init()
1386
1751
  } else {
@@ -1389,7 +1754,7 @@ export default {
1389
1754
  HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1390
1755
  // 如果打回重检则重新计时
1391
1756
  console.log('HostApp.__this__.role' + HostApp.__this__.role + ' HostApp.__this__.f_approved:' + HostApp.__this__.data.f_approved)
1392
- if(HostApp.__this__.role == 'inspect'
1757
+ if (HostApp.__this__.role == 'inspect'
1393
1758
  && HostApp.__this__.data.f_approved
1394
1759
  && HostApp.__this__.data.f_approved == '打回') {
1395
1760
  console.log('打回')
@@ -1401,7 +1766,7 @@ export default {
1401
1766
  HostApp.__this__ = null
1402
1767
  },
1403
1768
  S4() {
1404
- return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1769
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1405
1770
  },
1406
1771
  extend(initalObj, finalObj) {
1407
1772
  var obj = finalObj || {};
@@ -1424,7 +1789,7 @@ export default {
1424
1789
  return obj;
1425
1790
  },
1426
1791
  // async isoverDate(){
1427
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/sql/androidGetuserinfo`, {data:{
1792
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
1428
1793
  // condition:"f_plan_item_id='"+this.item.id+"'"
1429
1794
  // }
1430
1795
  // })
@@ -1432,7 +1797,7 @@ export default {
1432
1797
  // },
1433
1798
  putDevices() {
1434
1799
  console.log('Vue.config => ' + JSON.stringify(Vue.config))
1435
- console.log('Vue.config.DevicesConfig => ' + JSON.stringify(Vue.config.DevicesConfig))
1800
+ console.log('Vue.config.safecheck.DevicesConfig => ' + JSON.stringify(Vue.config.safecheck.DevicesConfig))
1436
1801
  this.$set('data.approve', "true")
1437
1802
  this.$set('data.writeback', "false")
1438
1803
  if (Vue.config.safecheck != undefined) {
@@ -1450,50 +1815,140 @@ export default {
1450
1815
  console.log(Vue.config)
1451
1816
  console.log('Vue.config.safecheck.DevicesConfig=>' + JSON.stringify(Vue.config.safecheck.DevicesConfig))
1452
1817
  console.log('赋值前的config=>' + JSON.stringify(this.config))
1453
- console.log("当前用户类型"+this.item.f_user_type)
1454
- if(this.item.f_user_type == '民用'){
1818
+ console.log("当前用户类型" + this.item.f_user_type)
1819
+ if (this.item.f_user_type == '民用') {
1455
1820
  // 民用户
1456
1821
 
1457
- if (Vue.config.safecheck.DevicesConfig != undefined){
1458
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1822
+ if (Vue.config.safecheck.DevicesConfig != undefined) {
1823
+ if (this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1824
+ //this.config = Object.assign({}, Vue.config.safecheck.DevicesConfig,this.config)
1459
1825
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1460
- }else{
1461
- console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1462
- 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])
1463
- console.log("当前用户类型"+Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1826
+ // this.config=this.extend({},this.config,Vue.config.safecheck.DevicesConfig)
1827
+ } else {
1828
+ console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------" + Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1829
+ 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])
1830
+ console.log("当前用户类型" + Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1831
+ //this.config = Object.assign({}, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]],this.config)
1464
1832
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1465
1833
  }
1466
1834
  // this.config = this.extend(this.config, Vue.config.safecheck.DevicesConfig)
1467
1835
  }
1468
- }else {
1836
+ } else {
1469
1837
  // 非民用
1470
- if (Vue.config.safecheck.DevicesSetConfig != undefined){
1471
- if(this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1838
+ if (Vue.config.safecheck.DevicesSetConfig != undefined) {
1839
+ if (this.item.f_safecheck_type == undefined || this.item.f_safecheck_type == '' || Vue.config.safecheck.SafecheckType == undefined) {
1840
+ //this.config = Object.assign({}, Vue.config.safecheck.DevicesSetConfig,this.config)
1472
1841
  this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1473
- }else{
1474
- console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------"+Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1475
- 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])
1476
- console.log("当前用户类型"+Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1842
+ } else {
1843
+ console.log("看看数据Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type]------" + Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type])
1844
+ 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])
1845
+ console.log("当前用户类型" + Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1846
+ //this.config = Object.assign({}, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]],this.config)
1477
1847
  this.config = this.extend(this.config, Vue.config.safecheck[Vue.config.safecheck.SafecheckType[this.item.f_safecheck_type][this.item.f_user_type]])
1478
1848
  }
1849
+
1850
+
1479
1851
  //this.config = this.extend(this.config, Vue.config.safecheck.DevicesSetConfig)
1480
1852
  }
1481
1853
  }
1482
1854
 
1483
1855
  }
1856
+ if (this.item.f_plan_meters[0].f_meter_type == '物联网表') {
1857
+ console.log("是物联网表")
1858
+ let rqb = {
1859
+ "checkmust": true,
1860
+ "index": 1,
1861
+ "items": {
1862
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
1863
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
1864
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
1865
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
1866
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
1867
+ // "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
1868
+ "上期表读数": {"index": 5, "type": "number", "readonly": true, isshow: false},
1869
+ "表读数": {"index": 6, "type": "number", "readonly": true},
1870
+ "表剩余金额": {"index": 7, "type": "number", "readonly": true},
1871
+ "字轮数": {
1872
+ "index": 8,
1873
+ "type": "number",
1874
+ "checkmust": this.item.f_user_type == '民用' ? true : false,
1875
+ "readonly": this.item.f_user_type == '民用' ? false : true
1876
+ },//基表数
1877
+ "表余额": {
1878
+ "index": 9,
1879
+ "type": "number",
1880
+ "checkmust": this.item.f_user_type == '民用' ? true : false,
1881
+ "readonly": this.item.f_user_type == '民用' ? false : true
1882
+ },
1883
+ //显示屏数 --实际剩余气量
1884
+ "表数异常差值": {"index": 10, "type": "number", "readonly": true},
1885
+ "表金额异常差值": {"index": 11, "type": "number", "readonly": true},
1886
+ "差值备注": {"index": 12, "type": "string", "readonly": false}
1887
+ }
1888
+ }
1889
+ this.config["燃气表"] = rqb
1890
+ } else {
1891
+ let rqb = {
1892
+ "checkmust": true,
1893
+ "index": 1,
1894
+ "items": {
1895
+ //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
1896
+ "基表编号": {"index": 1, "type": "string", "readonly": true},
1897
+ "气表型号": {"index": 2, "type": "string", "readonly": true},
1898
+ "气表品牌": {"index": 3, "type": "string", "readonly": true},
1899
+ "进气方向": {"index": 4, "type": "string", "readonly": true},
1900
+ // "初始表底":{"index":5,"type":"number","isshow":false,"readonly":true},
1901
+ "上期表读数": {"index": 5, "type": "number", "readonly": true, isshow: false},
1902
+ "户累购气量": {"index": 6, "type": "number", "readonly": true},
1903
+ "户累购金额": {"index": 6, "type": "number", "readonly": true},
1904
+ "累购气量": {"index": 7, "type": "number", "readonly": true},
1905
+ "累购金额": {"index": 7, "type": "number", "readonly": true},
1906
+ "已用气量": {
1907
+ "index": 8,
1908
+ "type": "number",
1909
+ "checkmust": this.item.f_user_type == '民用' ? true : false,
1910
+ "readonly": this.item.f_user_type == '民用' ? false : true
1911
+ },//基表数
1912
+ "已用金额": {
1913
+ "index": 8,
1914
+ "type": "number",
1915
+ "checkmust": this.item.f_user_type == '民用' ? true : false,
1916
+ "readonly": this.item.f_user_type == '民用' ? false : true
1917
+ },
1918
+ "剩余气量": {
1919
+ "index": 9,
1920
+ "type": "number",
1921
+ "checkmust": this.item.f_user_type == '民用' ? true : false,
1922
+ "readonly": this.item.f_user_type == '民用' ? false : true
1923
+ },//累购-已用
1924
+ //显示屏数 --实际剩余气量
1925
+ "剩余金额": {
1926
+ "index": 9,
1927
+ "type": "number",
1928
+ "checkmust": this.item.f_user_type == '民用' ? true : false,
1929
+ "readonly": this.item.f_user_type == '民用' ? false : true
1930
+ },
1931
+ "气量异常差值": {"index": 10, "type": "number", "readonly": true},
1932
+ "金额异常差值": {"index": 10, "type": "number", "readonly": true},
1933
+ "差值备注": {"index": 11, "type": "string", "readonly": false}
1934
+ }
1935
+ // 注意,配置项的index必须与上面的固定配置保持'顺序'
1936
+ }
1937
+ this.config["燃气表"] = rqb
1938
+ }
1484
1939
  console.log('赋值后的config=>' + JSON.stringify(this.config))
1485
1940
  // 预留设备项位置
1486
1941
  for (let i in this.config) {
1487
- this.tabs.splice(1,0,null)
1942
+ this.tabs.splice(1, 0, null)
1488
1943
  }
1489
1944
  //遍历安检项配置
1490
1945
  for (let i in this.config) {
1491
1946
  //取得安检项索引值
1492
1947
  let n = this.config[i].index
1493
- console.log('type '+ typeof n)
1948
+ console.log('type ' + typeof n)
1494
1949
  this.devices[n - 1] = {device: i, n: n, checkmust: this.config[i].checkmust}
1495
1950
  this.$set('data.' + 'device' + n, [])
1496
- console.log('data.device'+ n,this.data)
1951
+ console.log('data.device' + n, JSON.stringify(this.data))
1497
1952
  // this.tabs.splice(2 + n - 1, 0,
1498
1953
  // {
1499
1954
  // header:i,
@@ -1501,14 +1956,16 @@ export default {
1501
1956
  // class:'repair-details-class',
1502
1957
  // number:n
1503
1958
  // })
1959
+ let aa = 'device' + n
1960
+ console.log(i)
1504
1961
  this.tabs[n] = {
1505
1962
  header: i,
1506
1963
  complete: 'safecheck-devices',
1507
- class: 'repair-details-class',
1964
+ class: this.getClassimg(i),
1508
1965
  number: n
1509
1966
  }
1510
1967
 
1511
- if(this.config[i].quantity && this.config[i].quantity >0){
1968
+ if (this.config[i].quantity && this.config[i].quantity > 0) {
1512
1969
  let items = []
1513
1970
  for (let it in this.config[i].items) {
1514
1971
  //赋值下拉选项
@@ -1527,9 +1984,9 @@ export default {
1527
1984
  }
1528
1985
  }
1529
1986
  }
1530
- for(let q =0;q<this.config[i].quantity;q++) {
1987
+ for (let q = 0; q < this.config[i].quantity; q++) {
1531
1988
  this.data['device' + n].push(
1532
- {f_device_type: i, f_items:items}
1989
+ {f_device_type: i, f_items: items}
1533
1990
  )
1534
1991
  }
1535
1992
  }
@@ -1541,8 +1998,9 @@ export default {
1541
1998
  console.log('tbs合并数组')
1542
1999
  this.faultshow.number = this.tabs.length
1543
2000
  },
1544
- init () {
1545
- console.log("123456789")
2001
+ init() {
2002
+ console.log("123456789" + JSON.stringify(this.item))
2003
+ this.data.f_userfiles_id = this.item.f_plan_meters[0].f_userfiles_id //给安检单传的表具编号
1546
2004
  // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1547
2005
  this.data.ename = Vue.user.ename
1548
2006
  this.data.f_outlets = Vue.user.f_parentname
@@ -1564,16 +2022,24 @@ export default {
1564
2022
  this.data.f_filialeid = this.item.f_filialeid
1565
2023
  this.data.f_orgstr = this.item.f_orgstr
1566
2024
  this.data.version = this.item.version
2025
+ this.data.f_check_version = this.item.f_check_version
2026
+ this.data.f_year_plan_id = this.item.f_year_plan_id
2027
+ this.data.f_meter_classify = this.item.f_plan_meters[0].f_meter_type
1567
2028
  this.$set('data.f_meters', this.item.f_plan_meters)
1568
2029
  this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1569
2030
  // 安检状态
1570
2031
  this.$set('data.f_entry_status', '入户')
1571
2032
  this.$set('data.f_usegas', '已使用')
1572
- this.$set('data.f_state',this.item.f_state)
1573
- console.log('设置参数3')
2033
+ this.$set('data.f_state', this.item.f_state)
2034
+ this.$set('data.f_airintake_seal_no', this.item.f_plan_meters[0].f_airintake_seal_no)
2035
+ this.$set('data.f_airouttake_seal_no', this.item.f_plan_meters[0].f_airouttake_seal_no)
2036
+ this.$set('data.f_novisit_reason', null)//到访不遇备注
2037
+ console.log('设置参数3' + this.data.f_check_version)
1574
2038
  // 用户信息
1575
2039
  this.$set('data.f_user_name', this.item.f_user_name)
2040
+ this.$set('data.f_is_outdoor', '否')
1576
2041
  this.$set('data.f_user_phone', this.item.f_user_phone)
2042
+ this.$set('data.f_user_phone2', this.item.f_user_phone2)
1577
2043
  this.$set('data.f_userinfoid', this.item.f_userinfoid)
1578
2044
  this.$set('data.f_address', this.item.f_address)
1579
2045
  this.$set('data.f_card_id', this.item.f_card_id)
@@ -1584,10 +2050,12 @@ export default {
1584
2050
  this.$set('data.f_unit', this.item.f_unit)
1585
2051
  console.log('设置参数4')
1586
2052
  this.$set('data.f_floor', this.item.f_floor)
1587
- this.$set('data.f_residential_area' , this.item.f_residential_area)
2053
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1588
2054
  this.$set('data.f_idnumber', this.item.f_idnumber)
1589
2055
  this.$set('data.f_comments', this.item.f_comments)
1590
2056
  this.$set('data.f_userproperties', this.item.f_userproperties)
2057
+ this.$set('data.f_remark', this.item.f_remark)
2058
+ this.$set('data.f_open_date', this.item.f_open_date)
1591
2059
  // this.$set('data.f_user_inhome_time', this.item.f_user_inhome_time)
1592
2060
  // this.$set('data.f_user_check_time', this.item.f_user_check_time)
1593
2061
  // this.$set('data.f_user_spare_phone', this.item.f_user_spare_phone)
@@ -1602,13 +2070,14 @@ export default {
1602
2070
  if (this.data.f_check_item_id == '' && this.item.f_no_checkplan == '无计划安检') {
1603
2071
  this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1604
2072
  }
1605
- console.log("item.f_plan_meters",this.item.f_plan_meters)
1606
- if(this.item.f_plan_meters) {
2073
+ console.log("this.config------11111" + JSON.stringify(this.config))
2074
+ console.log("item.f_plan_meters", this.item.f_plan_meters)
2075
+ if (this.item.f_plan_meters) {
1607
2076
  for (let de in this.devices) {
1608
2077
  this.$set('data.device' + this.devices[de].n, [])
1609
2078
  for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1610
2079
  if (this.item.f_plan_meters[i].f_meter_type) {
1611
- console.log('this.item.f_plan_meters[i] ===> ' + JSON.stringify(this.item.f_plan_meters[i]))
2080
+ console.log('this.item.f_plan_meters[i] ===>1 ' + JSON.stringify(this.item.f_plan_meters[i]))
1612
2081
  if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1613
2082
  this.data['device' + this.devices[de].n].push({
1614
2083
  f_device_type: "燃气表",
@@ -1657,20 +2126,10 @@ export default {
1657
2126
  f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1658
2127
  f_path: "",
1659
2128
  type: "number"
1660
- },
1661
- {
1662
- f_defect_level: null,
1663
- f_device_id: "",
1664
- f_is_defect: "",
1665
- f_item_name: "表箱号",
1666
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
1667
- f_path: "",
1668
- type: "string"
1669
2129
  }
1670
2130
  ]
1671
2131
  })
1672
- }
1673
- else if (this.devices[de].device == "燃气表") {
2132
+ } else if (this.devices[de].device == "燃气表") {
1674
2133
  // delete this.config['燃气表']['items']['表底数']
1675
2134
  this.data['device' + this.devices[de].n].push({
1676
2135
  f_device_type: "燃气表",
@@ -1719,48 +2178,132 @@ export default {
1719
2178
  f_item_value: this.item.f_plan_meters[i].f_prior_reading,
1720
2179
  f_path: "",
1721
2180
  type: "number"
2181
+ }
2182
+ ]
2183
+ })
2184
+ }
2185
+ console.log("this.config-----xxxxx-" + i + "----" + JSON.stringify(this.config))
2186
+ console.log("当前表类型--------------" + this.item.f_plan_meters[i].f_meter_type)
2187
+ if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_meter_type == '物联网表') {
2188
+ console.log("没有this.item.f_plan_meters[i].f_collection_type")
2189
+ this.data['device' + this.devices[de].n].forEach(device => {
2190
+ console.log('device ===> ' + JSON.stringify(device))
2191
+ this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2192
+ device.f_items.push(
2193
+ /*{
2194
+ f_defect_level: null,
2195
+ f_device_id: "",
2196
+ f_is_defect: "",
2197
+ f_item_name: "初始表底",
2198
+ isshow: true,
2199
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
2200
+ f_path: "",
2201
+ type: "number"
2202
+ },*/
2203
+ {
2204
+ f_defect_level: null,
2205
+ f_device_id: "",
2206
+ f_is_defect: "",
2207
+ f_item_name: "表读数",
2208
+ f_item_value: this.item.f_plan_meters[i].f_meter_base,
2209
+ f_path: "",
2210
+ type: "number"
2211
+ },
2212
+ {
2213
+ f_defect_level: null,
2214
+ f_device_id: "",
2215
+ f_is_defect: "",
2216
+ f_item_name: "表剩余金额",
2217
+ f_item_value: this.item.f_plan_meters[i].f_balance_amount,
2218
+ f_path: "",
2219
+ type: "number"
2220
+ },
2221
+ {
2222
+ f_defect_level: null,
2223
+ f_device_id: "",
2224
+ f_is_defect: "",
2225
+ f_item_name: "字轮数",
2226
+ f_item_value: '',
2227
+ f_path: "",
2228
+ type: "number"
2229
+ },
2230
+ {
2231
+ f_defect_level: null,
2232
+ f_device_id: "",
2233
+ f_is_defect: "",
2234
+ f_item_name: "表余额",
2235
+ f_item_value: null,
2236
+ f_path: "",
2237
+ type: "number"
2238
+ }, {
2239
+ f_defect_level: null,
2240
+ f_device_id: "",
2241
+ f_is_defect: "",
2242
+ f_item_name: "表数异常差值",
2243
+ f_item_value: null,
2244
+ f_path: "",
2245
+ type: "number"
2246
+ },
2247
+ {
2248
+ f_defect_level: null,
2249
+ f_device_id: "",
2250
+ f_is_defect: "",
2251
+ f_item_name: "表金额异常差值",
2252
+ f_item_value: null,
2253
+ f_path: "",
2254
+ type: "number"
1722
2255
  },
1723
2256
  {
1724
2257
  f_defect_level: null,
1725
2258
  f_device_id: "",
1726
2259
  f_is_defect: "",
1727
- f_item_name: "表箱号",
1728
- f_item_value: this.item.f_plan_meters[i].f_metertitles,
2260
+ f_item_name: "差值备注",
2261
+ f_item_value: null,
1729
2262
  f_path: "",
1730
2263
  type: "string"
1731
2264
  }
1732
- ]
2265
+ )
2266
+ console.log('this.config[\'燃气表\'][\'items\'] --->0 ' + JSON.stringify(this.config['燃气表']['items']))
1733
2267
  })
1734
- }
1735
- if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
2268
+ } else if (this.devices[de].device == "燃气表" && this.item.f_plan_meters[i].f_collection_type) {
1736
2269
  this.data['device' + this.devices[de].n].forEach(device => {
1737
2270
  console.log('device ===> ' + JSON.stringify(device))
1738
2271
  console.log('this.item.f_plan_meters[i].f_collection_type ===> ' + JSON.stringify(this.item.f_plan_meters[i].f_collection_type))
1739
2272
  /*
1740
- "累购气量":{"index":8,"type":"number","readonly":true},
1741
- "累购金额":{"index":8,"type":"number","readonly":true},
1742
- "字轮读数":{"index":9,"type":"number","checkmust": true},
1743
- "已用金额":{"index":9,"type":"number","checkmust": true},
1744
- "剩余气量":{"index":10,"type":"number","checkmust": true},
1745
- "剩余金额":{"index":10,"type":"number","checkmust": true},
1746
- "气量异常差值":{"index":11,"type":"number","readonly": true},
1747
- "金额异常差值":{"index":11,"type":"number","readonly": true}
1748
- */
2273
+ "累购气量":{"index":8,"type":"number","readonly":true},
2274
+ "累购金额":{"index":8,"type":"number","readonly":true},
2275
+ "字轮读数":{"index":9,"type":"number","checkmust": true},
2276
+ "已用金额":{"index":9,"type":"number","checkmust": true},
2277
+ "剩余气量":{"index":10,"type":"number","checkmust": true},
2278
+ "剩余金额":{"index":10,"type":"number","checkmust": true},
2279
+ "气量异常差值":{"index":11,"type":"number","readonly": true},
2280
+ "金额异常差值":{"index":11,"type":"number","readonly": true}
2281
+ */
1749
2282
  if (this.item.f_plan_meters[i].f_collection_type == '按金额') {
1750
2283
  if (!this.data.f_collection_type) {
1751
2284
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2285
+ delete this.config['燃气表']['items']['户累购气量']
1752
2286
  delete this.config['燃气表']['items']['累购气量']
1753
2287
  delete this.config['燃气表']['items']['已用气量']
1754
2288
  delete this.config['燃气表']['items']['剩余气量']
1755
2289
  delete this.config['燃气表']['items']['气量异常差值']
1756
2290
  device.f_items.push(
2291
+ // {
2292
+ // f_defect_level: null,
2293
+ // f_device_id: "",
2294
+ // f_is_defect: "",
2295
+ // f_item_name: "初始表底",
2296
+ // isshow: false,
2297
+ // f_item_value: '',
2298
+ // f_path: "",
2299
+ // type: "number"
2300
+ // },
1757
2301
  {
1758
2302
  f_defect_level: null,
1759
2303
  f_device_id: "",
1760
2304
  f_is_defect: "",
1761
- f_item_name: "初始表底",
1762
- isshow: false,
1763
- f_item_value: '',
2305
+ f_item_name: "户累购金额",
2306
+ f_item_value: this.item.f_plan_meters[i].f_history_fee,
1764
2307
  f_path: "",
1765
2308
  type: "number"
1766
2309
  },
@@ -1799,25 +2342,44 @@ export default {
1799
2342
  f_item_value: null,
1800
2343
  f_path: "",
1801
2344
  type: "number"
2345
+ },
2346
+ {
2347
+ f_defect_level: null,
2348
+ f_device_id: "",
2349
+ f_is_defect: "",
2350
+ f_item_name: "差值备注",
2351
+ f_item_value: null,
2352
+ f_path: "",
2353
+ type: "string"
1802
2354
  }
1803
2355
  )
1804
- console.log('this.config[\'燃气表\'][\'items\'] ===> ' + JSON.stringify(this.config['燃气表']['items']))
2356
+ console.log('this.config[\'燃气表\'][\'items\'] ===>1 ' + JSON.stringify(this.config['燃气表']['items']))
1805
2357
  }
1806
2358
  } else if (this.item.f_plan_meters[i].f_collection_type == '按气量') {
1807
2359
  if (!this.data.f_collection_type) {
1808
2360
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2361
+ delete this.config['燃气表']['items']['户累购金额']
1809
2362
  delete this.config['燃气表']['items']['累购金额']
1810
2363
  delete this.config['燃气表']['items']['已用金额']
1811
2364
  delete this.config['燃气表']['items']['剩余金额']
1812
2365
  delete this.config['燃气表']['items']['金额异常差值']
1813
2366
  device.f_items.push(
2367
+ // {
2368
+ // f_defect_level: null,
2369
+ // f_device_id: "",
2370
+ // f_is_defect: "",
2371
+ // f_item_name: "初始表底",
2372
+ // isshow: true,
2373
+ // f_item_value: this.item.f_plan_meters[i].f_initial_base,
2374
+ // f_path: "",
2375
+ // type: "number"
2376
+ // },
1814
2377
  {
1815
2378
  f_defect_level: null,
1816
2379
  f_device_id: "",
1817
2380
  f_is_defect: "",
1818
- f_item_name: "初始表底",
1819
- isshow: true,
1820
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
2381
+ f_item_name: "户累购气量",
2382
+ f_item_value: this.item.f_plan_meters[i].f_history_gas,
1821
2383
  f_path: "",
1822
2384
  type: "number"
1823
2385
  },
@@ -1844,7 +2406,7 @@ export default {
1844
2406
  f_device_id: "",
1845
2407
  f_is_defect: "",
1846
2408
  f_item_name: "剩余气量",
1847
- f_item_value: "",
2409
+ f_item_value: '',
1848
2410
  f_path: "",
1849
2411
  type: "number"
1850
2412
  },
@@ -1856,34 +2418,43 @@ export default {
1856
2418
  f_item_value: null,
1857
2419
  f_path: "",
1858
2420
  type: "number"
1859
- }
1860
- )
1861
- console.log('this.config[\'燃气表\'][\'items\'] ---> ' + JSON.stringify(this.config['燃气表']['items']))
1862
- }
1863
- }
2421
+ },
2422
+ {
2423
+ f_defect_level: null,
2424
+ f_device_id: "",
2425
+ f_is_defect: "",
2426
+ f_item_name: "差值备注",
2427
+ f_item_value: null,
2428
+ f_path: "",
2429
+ type: "string"
2430
+ }
2431
+ )
2432
+ console.log('this.config[\'燃气表\'][\'items\'] --->2 ' + JSON.stringify(this.config['燃气表']['items']))
2433
+ }
2434
+ }
1864
2435
  })
1865
- }
1866
- else if(this.devices[de].device == "燃气表"){
2436
+ } else if (this.devices[de].device == "燃气表") {
1867
2437
  console.log("没有this.item.f_plan_meters[i].f_collection_type")
1868
2438
  this.data['device' + this.devices[de].n].forEach(device => {
1869
2439
  console.log('device ===> ' + JSON.stringify(device))
1870
2440
  if (!this.data.f_collection_type) {
1871
2441
  this.data.f_collection_type = this.item.f_plan_meters[i].f_collection_type
2442
+ delete this.config['燃气表']['items']['户累购金额']
1872
2443
  delete this.config['燃气表']['items']['累购金额']
1873
2444
  delete this.config['燃气表']['items']['已用金额']
1874
2445
  delete this.config['燃气表']['items']['剩余金额']
1875
2446
  delete this.config['燃气表']['items']['金额异常差值']
1876
2447
  device.f_items.push(
1877
- {
1878
- f_defect_level: null,
1879
- f_device_id: "",
1880
- f_is_defect: "",
1881
- f_item_name: "初始表底",
1882
- isshow: true,
1883
- f_item_value: this.item.f_plan_meters[i].f_initial_base,
1884
- f_path: "",
1885
- type: "number"
1886
- },
2448
+ /*{
2449
+ f_defect_level: null,
2450
+ f_device_id: "",
2451
+ f_is_defect: "",
2452
+ f_item_name: "初始表底",
2453
+ isshow: true,
2454
+ f_item_value: this.item.f_plan_meters[i].f_initial_base,
2455
+ f_path: "",
2456
+ type: "number"
2457
+ },*/
1887
2458
  {
1888
2459
  f_defect_level: null,
1889
2460
  f_device_id: "",
@@ -1916,39 +2487,535 @@ export default {
1916
2487
  f_device_id: "",
1917
2488
  f_is_defect: "",
1918
2489
  f_item_name: "气量异常差值",
1919
- isshow:false,
1920
2490
  f_item_value: null,
1921
2491
  f_path: "",
1922
2492
  type: "number"
2493
+ },
2494
+ {
2495
+ f_defect_level: null,
2496
+ f_device_id: "",
2497
+ f_is_defect: "",
2498
+ f_item_name: "差值备注",
2499
+ f_item_value: null,
2500
+ f_path: "",
2501
+ type: "string"
1923
2502
  }
1924
2503
  )
1925
- console.log('this.config[\'燃气表\'][\'items\'] ---> ' + JSON.stringify(this.config['燃气表']['items']))
2504
+ console.log('this.config[\'燃气表\'][\'items\'] --->3 ' + JSON.stringify(this.config['燃气表']['items']))
1926
2505
  }
1927
2506
  })
1928
2507
  }
2508
+
1929
2509
  }
1930
2510
  }
2511
+ // continue
2512
+ if (this.devices[de].device == "保险服务") {
2513
+ console.log('保险服务111111111')
2514
+ console.log("this.data['device' + this.devices[de].n]" + JSON.stringify(this.data['device' + this.devices[de].n]))
2515
+ console.log("this.devices[de]" + JSON.stringify(this.devices[de]))
2516
+ this.data['device' + this.devices[de].n].push({
2517
+ f_device_type: "保险服务",
2518
+ f_items: []
2519
+ })
2520
+ this.data['device' + this.devices[de].n].forEach((device) => {
2521
+ if (this.valueInfo.valaddinfo) {
2522
+ for (let t = 0; t < this.valueInfo.valaddinfo.length; t++) {
2523
+ if (this.valueInfo.valaddinfo[t].isuse == '是') {
2524
+ let d1 = new Date(this.valueInfo.valaddinfo[t].startDate)
2525
+ if (this.valueInfo.valaddinfo[t].value_type == '燃气险') {
2526
+ device.f_items.push(
2527
+ {
2528
+ f_defect_level: null,
2529
+ f_device_id: "",
2530
+ f_is_defect: "",
2531
+ f_item_name: "有无燃气险",
2532
+ isshow: true,
2533
+ f_item_value: '有',
2534
+ f_path: "",
2535
+ type: "radio"
2536
+ },
2537
+ {
2538
+ f_defect_level: null,
2539
+ f_device_id: "",
2540
+ f_is_defect: "",
2541
+ f_item_name: "燃气险购买时间",
2542
+ isshow: true,
2543
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2544
+ f_path: "",
2545
+ type: "date"
2546
+ },
2547
+ {
2548
+ f_defect_level: null,
2549
+ f_device_id: "",
2550
+ f_is_defect: "",
2551
+ f_item_name: "燃气险备注",
2552
+ isshow: true,
2553
+ f_item_value: this.valueInfo.valaddinfo[t].f_comments,
2554
+ f_path: "",
2555
+ type: "string"
2556
+ }
2557
+ )
2558
+ } else if (this.valueInfo.valaddinfo[t].value_type == '家财险') {
2559
+ device.f_items.push(
2560
+ {
2561
+ f_defect_level: null,
2562
+ f_device_id: "",
2563
+ f_is_defect: "",
2564
+ f_item_name: "有无家财险",
2565
+ isshow: true,
2566
+ f_item_value: '有',
2567
+ f_path: "",
2568
+ type: "radio"
2569
+ },
2570
+ {
2571
+ f_defect_level: null,
2572
+ f_device_id: "",
2573
+ f_is_defect: "",
2574
+ f_item_name: "家财险购买时间",
2575
+ isshow: true,
2576
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2577
+ f_path: "",
2578
+ type: "date"
2579
+ },
2580
+ {
2581
+ f_defect_level: null,
2582
+ f_device_id: "",
2583
+ f_is_defect: "",
2584
+ f_item_name: "家财险备注",
2585
+ isshow: true,
2586
+ f_item_value: this.valueInfo.valaddinfo[t].f_comments,
2587
+ f_path: "",
2588
+ type: "string"
2589
+ }
2590
+ )
2591
+ }
2592
+
2593
+ }
2594
+
2595
+ }
2596
+ }
2597
+ })
2598
+ console.log("123this.data['device' + this.devices[de].n]" + JSON.stringify(this.data['device' + this.devices[de].n]))
2599
+ } else if (this.devices[de].device == "燃气器具信息") {
2600
+ console.log('增值业务111111111')
2601
+ console.log("this.data['device' + this.devices[de].n]" + JSON.stringify(this.data['device' + this.devices[de].n]))
2602
+ console.log("this.devices[de]" + JSON.stringify(this.devices[de]))
2603
+ this.data['device' + this.devices[de].n].push({
2604
+ f_device_type: "燃气器具信息",
2605
+ f_items: []
2606
+ })
2607
+ this.data['device' + this.devices[de].n].forEach((device) => {
2608
+ if (this.valueInfo.valaddinfo) {
2609
+ for (let t = 0; t < this.valueInfo.valaddinfo.length; t++) {
2610
+ if (this.valueInfo.valaddinfo[t].isuse == '是') {
2611
+ let d1 = new Date(this.valueInfo.valaddinfo[t].startDate)
2612
+ if (this.valueInfo.valaddinfo[t].value_type == '燃气灶') {
2613
+ device.f_items.push(
2614
+ {
2615
+ f_defect_level: null,
2616
+ f_device_id: "",
2617
+ f_is_defect: "",
2618
+ f_item_name: "燃气灶产品现状",
2619
+ isshow: true,
2620
+ f_item_value: '有',
2621
+ f_path: "",
2622
+ type: "radio"
2623
+ },
2624
+ {
2625
+ f_defect_level: null,
2626
+ f_device_id: "",
2627
+ f_is_defect: "",
2628
+ f_item_name: "燃气灶产品类型",
2629
+ isshow: true,
2630
+ f_item_value: this.valueInfo.valaddinfo[t].f_product_type,
2631
+ f_path: "",
2632
+ type: "radio"
2633
+ },
2634
+ {
2635
+ f_defect_level: null,
2636
+ f_device_id: "",
2637
+ f_is_defect: "",
2638
+ f_item_name: "燃气灶熄火保护",
2639
+ isshow: true,
2640
+ f_item_value: this.valueInfo.valaddinfo[t].f_value_protect,
2641
+ f_path: "",
2642
+ type: "radio"
2643
+ },
2644
+ {
2645
+ f_defect_level: null,
2646
+ f_device_id: "",
2647
+ f_is_defect: "",
2648
+ f_item_name: "燃气灶产品品牌",
2649
+ isshow: true,
2650
+ f_item_value: this.valueInfo.valaddinfo[t].f_value_brand,
2651
+ f_path: "",
2652
+ type: "selector"
2653
+ },
2654
+ {
2655
+ f_defect_level: null,
2656
+ f_device_id: "",
2657
+ f_is_defect: "",
2658
+ f_item_name: "燃气灶购买时间",
2659
+ isshow: true,
2660
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2661
+ f_path: "",
2662
+ type: "date"
2663
+ }/*,
2664
+ {
2665
+ f_defect_level: null,
2666
+ f_device_id: "",
2667
+ f_is_defect: "",
2668
+ f_item_name: "燃气灶到期剩余",
2669
+ isshow:true,
2670
+ f_item_value: (d1.getFullYear()+8)+'-'+(d1.getMonth()+1),
2671
+ f_path: "",
2672
+ type: "string"
2673
+ }*/
2674
+ )
2675
+ } else if (this.valueInfo.valaddinfo[t].value_type == '热水器') {
2676
+ device.f_items.push(
2677
+ {
2678
+ f_defect_level: null,
2679
+ f_device_id: "",
2680
+ f_is_defect: "",
2681
+ f_item_name: "热水器产品现状",
2682
+ isshow: true,
2683
+ f_item_value: '有',
2684
+ f_path: "",
2685
+ type: "radio"
2686
+ },
2687
+ {
2688
+ f_defect_level: null,
2689
+ f_device_id: "",
2690
+ f_is_defect: "",
2691
+ f_item_name: "热水器产品品牌",
2692
+ isshow: true,
2693
+ f_item_value: this.valueInfo.valaddinfo[t].f_value_brand,
2694
+ f_path: "",
2695
+ type: "selector"
2696
+ },
2697
+ {
2698
+ f_defect_level: null,
2699
+ f_device_id: "",
2700
+ f_is_defect: "",
2701
+ f_item_name: "热水器购买时间",
2702
+ isshow: true,
2703
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2704
+ f_path: "",
2705
+ type: "date"
2706
+ }/*,
2707
+ {
2708
+ f_defect_level: null,
2709
+ f_device_id: "",
2710
+ f_is_defect: "",
2711
+ f_item_name: "热水器到期剩余",
2712
+ isshow:true,
2713
+ f_item_value: (d1.getFullYear()+8)+'-'+(d1.getMonth()+1),
2714
+ f_path: "",
2715
+ type: "string"
2716
+ }*/
2717
+ )
2718
+ } else if (this.valueInfo.valaddinfo[t].value_type == '壁挂炉') {
2719
+ device.f_items.push(
2720
+ {
2721
+ f_defect_level: null,
2722
+ f_device_id: "",
2723
+ f_is_defect: "",
2724
+ f_item_name: "壁挂炉产品现状",
2725
+ isshow: true,
2726
+ f_item_value: '有',
2727
+ f_path: "",
2728
+ type: "radio"
2729
+ },
2730
+ {
2731
+ f_defect_level: null,
2732
+ f_device_id: "",
2733
+ f_is_defect: "",
2734
+ f_item_name: "壁挂炉产品品牌",
2735
+ isshow: true,
2736
+ f_item_value: this.valueInfo.valaddinfo[t].f_value_brand,
2737
+ f_path: "",
2738
+ type: "selector"
2739
+ },
2740
+ {
2741
+ f_defect_level: null,
2742
+ f_device_id: "",
2743
+ f_is_defect: "",
2744
+ f_item_name: "壁挂炉购买时间",
2745
+ isshow: true,
2746
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2747
+ f_path: "",
2748
+ type: "date"
2749
+ }
2750
+ /*{
2751
+ f_defect_level: null,
2752
+ f_device_id: "",
2753
+ f_is_defect: "",
2754
+ f_item_name: "壁挂炉到期剩余",
2755
+ isshow:true,
2756
+ f_item_value: (d1.getFullYear()+8)+'-'+(d1.getMonth()+1),
2757
+ f_path: "",
2758
+ type: "string"
2759
+ }*/
2760
+ )
2761
+ }/*else {
2762
+ device.f_items.push(
2763
+ {
2764
+ f_defect_level: null,
2765
+ f_device_id: "",
2766
+ f_is_defect: "",
2767
+ f_item_name: "*"+this.valueInfo.valaddinfo[t].value_type+"*",
2768
+ isshow:true,
2769
+ f_item_value: '有',
2770
+ f_path: "",
2771
+ type: "radio"
2772
+ },
2773
+ {
2774
+ f_defect_level: null,
2775
+ f_device_id: "",
2776
+ f_is_defect: "",
2777
+ f_item_name: this.valueInfo.valaddinfo[t].value_type+"购买年份",
2778
+ isshow:true,
2779
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2780
+ f_path: "",
2781
+ type: "date"
2782
+ }
2783
+ )
2784
+ }*/
2785
+ }
2786
+
2787
+ }
2788
+ }
2789
+ })
2790
+ console.log("123this.data['device' + this.devices[de].n]" + JSON.stringify(this.data['device' + this.devices[de].n]))
2791
+ } else if (this.devices[de].device == "附属设备信息") {
2792
+ console.log('增值业务111111111')
2793
+ console.log("this.data['device' + this.devices[de].n]" + JSON.stringify(this.data['device' + this.devices[de].n]))
2794
+ console.log("this.devices[de]" + JSON.stringify(this.devices[de]))
2795
+ this.data['device' + this.devices[de].n].push({
2796
+ f_device_type: "附属设备信息",
2797
+ f_items: []
2798
+ })
2799
+ this.data['device' + this.devices[de].n].forEach((device) => {
2800
+ if (this.valueInfo.valaddinfo) {
2801
+ for (let t = 0; t < this.valueInfo.valaddinfo.length; t++) {
2802
+ if (this.valueInfo.valaddinfo[t].isuse == '是') {
2803
+ let d1 = new Date(this.valueInfo.valaddinfo[t].startDate)
2804
+ if (this.valueInfo.valaddinfo[t].value_type == '报警器') {
2805
+ device.f_items.push(
2806
+ {
2807
+ f_defect_level: null,
2808
+ f_device_id: "",
2809
+ f_is_defect: "",
2810
+ f_item_name: "报警器产品现状",
2811
+ isshow: true,
2812
+ f_item_value: '有',
2813
+ f_path: "",
2814
+ type: "radio"
2815
+ },
2816
+ {
2817
+ f_defect_level: null,
2818
+ f_device_id: "",
2819
+ f_is_defect: "",
2820
+ f_item_name: "报警器购买时间",
2821
+ isshow: true,
2822
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2823
+ f_path: "",
2824
+ type: "date"
2825
+ },
2826
+ {
2827
+ f_defect_level: null,
2828
+ f_device_id: "",
2829
+ f_is_defect: "",
2830
+ f_item_name: "报警器是否正常",
2831
+ isshow: true,
2832
+ f_item_value: this.valueInfo.valaddinfo[t].f_normal_state,
2833
+ f_path: "",
2834
+ type: "radio"
2835
+ },
2836
+ {
2837
+ f_defect_level: null,
2838
+ f_device_id: "",
2839
+ f_is_defect: "",
2840
+ f_item_name: "报警器安装位置是否合适",
2841
+ isshow: true,
2842
+ f_item_value: this.valueInfo.valaddinfo[t].f_position_is_suitable,
2843
+ f_path: "",
2844
+ type: "radio"
2845
+ },
2846
+ )
2847
+ } else if (this.valueInfo.valaddinfo[t].value_type == '切断阀') {
2848
+ device.f_items.push(
2849
+ {
2850
+ f_defect_level: null,
2851
+ f_device_id: "",
2852
+ f_is_defect: "",
2853
+ f_item_name: "切断阀产品现状",
2854
+ isshow: true,
2855
+ f_item_value: '有',
2856
+ f_path: "",
2857
+ type: "radio"
2858
+ },
2859
+ {
2860
+ f_defect_level: null,
2861
+ f_device_id: "",
2862
+ f_is_defect: "",
2863
+ f_item_name: "切断阀是否正常",
2864
+ isshow: true,
2865
+ f_item_value: this.valueInfo.valaddinfo[t].f_normal_state,
2866
+ f_path: "",
2867
+ type: "radio"
2868
+ },
2869
+ {
2870
+ f_defect_level: null,
2871
+ f_device_id: "",
2872
+ f_is_defect: "",
2873
+ f_item_name: "切断阀购买时间",
2874
+ isshow: true,
2875
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2876
+ f_path: "",
2877
+ type: "date"
2878
+ }
2879
+ )
2880
+ } else if (this.valueInfo.valaddinfo[t].value_type == '自闭阀') {
2881
+ device.f_items.push(
2882
+ {
2883
+ f_defect_level: null,
2884
+ f_device_id: "",
2885
+ f_is_defect: "",
2886
+ f_item_name: "自闭阀产品现状",
2887
+ isshow: true,
2888
+ f_item_value: '有',
2889
+ f_path: "",
2890
+ type: "radio"
2891
+ },
2892
+ {
2893
+ f_defect_level: null,
2894
+ f_device_id: "",
2895
+ f_is_defect: "",
2896
+ f_item_name: "自闭阀是否正常",
2897
+ isshow: true,
2898
+ f_item_value: this.valueInfo.valaddinfo[t].f_normal_state,
2899
+ f_path: "",
2900
+ type: "radio"
2901
+ },
2902
+ {
2903
+ f_defect_level: null,
2904
+ f_device_id: "",
2905
+ f_is_defect: "",
2906
+ f_item_name: "自闭阀是否正常",
2907
+ isshow: true,
2908
+ f_item_value: this.valueInfo.valaddinfo[t].f_normal_state,
2909
+ f_path: "",
2910
+ type: "radio"
2911
+ },
2912
+ {
2913
+ f_defect_level: null,
2914
+ f_device_id: "",
2915
+ f_is_defect: "",
2916
+ f_item_name: "自闭阀购买时间",
2917
+ isshow: true,
2918
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2919
+ f_path: "",
2920
+ type: "date"
2921
+ }
2922
+ )
2923
+ } else if (this.valueInfo.valaddinfo[t].value_type.includes('管')) {
2924
+ device.f_items.push(
2925
+ {
2926
+ f_defect_level: null,
2927
+ f_device_id: "",
2928
+ f_is_defect: "",
2929
+ f_item_name: "连接管产品现状",
2930
+ isshow: true,
2931
+ f_item_value: '有',
2932
+ f_path: "",
2933
+ type: "radio"
2934
+ },
2935
+ {
2936
+ f_defect_level: null,
2937
+ f_device_id: "",
2938
+ f_is_defect: "",
2939
+ f_item_name: "连接管产品类型",
2940
+ isshow: true,
2941
+ f_item_value: this.valueInfo.valaddinfo[t].value_type,
2942
+ f_path: "",
2943
+ type: "radio"
2944
+ },
2945
+ {
2946
+ f_defect_level: null,
2947
+ f_device_id: "",
2948
+ f_is_defect: "",
2949
+ f_item_name: "连接管购买时间",
2950
+ isshow: true,
2951
+ f_item_value: this.valueInfo.valaddinfo[t].startDate,
2952
+ f_path: "",
2953
+ type: "date"
2954
+ }
2955
+ )
2956
+ }
2957
+ }
2958
+ }
2959
+ }
2960
+ })
2961
+ console.log("123this.data['device' + this.devices[de].n]" + JSON.stringify(this.data['device' + this.devices[de].n]))
2962
+ }
1931
2963
  }
1932
2964
  }
2965
+
1933
2966
  var pardate = {
1934
- _this:this,
1935
- tittle:'安检详情',
1936
- safe:true
2967
+ _this: this,
2968
+ tittle: '安检详情',
2969
+ safe: true
1937
2970
  }
1938
2971
  // this.$dispatch('gotoson',pardate)
1939
2972
  console.log('页面跳转')
1940
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
1941
- }
2973
+ this.$goto('safecheck-userinfo', {userinfo: this.data}, 'repair')
2974
+ },
2975
+ getModel() {
2976
+ let http = new HttpResetClass()
2977
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/getIotInfo`, {
2978
+ data: {
2979
+ f_userinfo_code: `${this.item.f_userinfo_code}`
2980
+ }
2981
+ }).then((res) => {
2982
+ this.tableAnomalyRecords = res.data
2983
+ })
2984
+ },
1942
2985
  },
1943
2986
  watch: {
1944
- 'row' () {
2987
+ 'row'() {
1945
2988
  console.log('row changed')
1946
2989
  this.copy()
1947
- }
2990
+ },
2991
+ 'backlistisselect'(val) {
2992
+ console.log(`backlistisselect发生改变:${val}`)
2993
+ if (val == undefined || val == '') {
2994
+ return
2995
+ }
2996
+ if (val == true) {
2997
+ this.showmodel = true
2998
+ }
2999
+ },
1948
3000
  },
1949
- async ready () {
3001
+ async ready() {
3002
+ this.getModel()
3003
+ this.gps = HostApp.getGpsDetailAddress()
1950
3004
  //送气超期功能
1951
3005
  //await this.isoverDate()
3006
+ try{
3007
+ let val = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/valueaddinfo`, {
3008
+ f_userfiles_id: '',
3009
+ f_userinfo_id: this.item.f_userinfoid,
3010
+ f_olduserinfo_code: ''
3011
+ })
3012
+ if (val.data && val.data.valaddinfo) {
3013
+ this.valueInfo = val.data
3014
+ }
3015
+ }catch (e) {
3016
+ this.$showMessage(`获取当前用户增值业务信息失败!${e.data?e.data:''} 请及时联系营业厅或管理员核对!`)
3017
+ }
3018
+ console.log('------获取增值业务' + JSON.stringify(this.valueInfo))
1952
3019
  this.putDevices()
1953
3020
  //如果已检,则提取安检单
1954
3021
  if (this.item.f_state != '未检') {
@@ -1957,35 +3024,46 @@ export default {
1957
3024
  HostApp.__this__ = this
1958
3025
  let that = this
1959
3026
  let value = {}
1960
- console.log('this.item.f_no_checkplan',this.item.f_no_checkplan)
3027
+ console.log('this.item.f_no_checkplan', this.item.f_no_checkplan)
1961
3028
  if (this.role == 'inspect') {
1962
3029
  console.log('this.item.f_no_checkplan', this.item.f_no_checkplan)
3030
+ let condition=` f_check_item_id ='${this.item.id}'`
1963
3031
  if (this.item.f_no_checkplan == '无计划安检') {
1964
- value = this.$androidUtil.path({
1965
- alias: 'getUserinfomation',
1966
- data: {condition: "f_check_item_id = '" + this.item.id + "' and f_no_checkplan = '无计划安检'"}
1967
- })
1968
- } else {
1969
- value = this.$androidUtil.bzLogic('FetchCheckPaper', {id: this.item.id})
3032
+ condition += ` and f_no_checkplan = '无计划安检'`
1970
3033
  }
3034
+ value = this.$androidUtil.bzLogic('path_getPhoneCheckPaper', {condition: condition})
1971
3035
  } else {
1972
3036
  value = await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${this.item.f_paper_id}'`}})
1973
3037
  }
3038
+ /*let result = HostApp._executeTask({'type':'sql', 'data':{'alias': 'safe_singleTable_OrderBy', 'criteria': {items:'f_open_date ',tablename:'t_check_plan_item ',condition:`id='${value.data[0].f_check_item_id}' `,orderitem:'id'}, count: false, pageNo: 1, pageSize: 5}})
3039
+ console.log("查询开户日期结束---:" + JSON.stringify(result))
3040
+ if(result.code == 200) {
3041
+ value.data[0].f_open_date=result.data.rows[0].f_open_date
3042
+ }*/
3043
+ //value.data[0].f_open_date=this.item.f_open_date
3044
+ if (this.item.f_last_check_state == '入户' && this.item.f_upload_state == '已传') {
3045
+ this.buttonsty = false
3046
+ }
1974
3047
  Util.replaceFalse(value)
1975
3048
  console.log("value:" + JSON.stringify(value))
1976
3049
  if (value.data.length != 0) {
1977
3050
  that.$set('data', value.data[0])
1978
3051
  console.log("this.data.f_collection_type:" + JSON.stringify(this.data.f_collection_type))
1979
- if (this.data.f_collection_type == '按气量') {
1980
- delete this.config['燃气表']['items']['累购金额']
1981
- delete this.config['燃气表']['items']['已用金额']
1982
- delete this.config['燃气表']['items']['剩余金额']
1983
- delete this.config['燃气表']['items']['金额异常差值']
1984
- } else if (this.data.f_collection_type == '按金额') {
1985
- delete this.config['燃气表']['items']['累购气量']
1986
- delete this.config['燃气表']['items']['已用气量']
1987
- delete this.config['燃气表']['items']['剩余气量']
1988
- delete this.config['燃气表']['items']['气量异常差值']
3052
+ if (this.item.f_plan_meters[0].f_meter_type != '物联网表') {
3053
+ console.log("不是物联网表!")
3054
+ if (this.data.f_collection_type == '按气量') {
3055
+ delete this.config['燃气表']['items']['户累购金额']
3056
+ delete this.config['燃气表']['items']['累购金额']
3057
+ delete this.config['燃气表']['items']['已用金额']
3058
+ delete this.config['燃气表']['items']['剩余金额']
3059
+ delete this.config['燃气表']['items']['金额异常差值']
3060
+ } else if (this.data.f_collection_type == '按金额') {
3061
+ delete this.config['燃气表']['items']['户累购气量']
3062
+ delete this.config['燃气表']['items']['累购气量']
3063
+ delete this.config['燃气表']['items']['已用气量']
3064
+ delete this.config['燃气表']['items']['剩余气量']
3065
+ delete this.config['燃气表']['items']['气量异常差值']
3066
+ }
1989
3067
  }
1990
3068
  console.log("f_devices:" + JSON.stringify(value.data[0].f_devices))
1991
3069
  if (value.data[0].f_devices) {
@@ -2012,10 +3090,11 @@ export default {
2012
3090
  console.log('回写数据item.f_items.f_item_lists[j]=======>' + JSON.stringify(item.f_items[i].f_item_lists[j]))
2013
3091
  if (item.f_items[i].f_item_value instanceof Array) {
2014
3092
  item.f_items[i].f_item_value.push(item.f_items[i].f_item_lists[j].f_item_value)
3093
+ console.log('回写数据2222222item.f_items[i]=======>' + JSON.stringify(item.f_items[i]))
2015
3094
  } else {
2016
3095
  item.f_items[i].f_item_value = item.f_items[i].f_item_lists[j].f_item_value
3096
+ console.log('回写数据111111item.f_items[i]=======>' + JSON.stringify(item.f_items[i]))
2017
3097
  }
2018
-
2019
3098
  }
2020
3099
  }
2021
3100
  for (let de in that.devices) {
@@ -2033,7 +3112,7 @@ export default {
2033
3112
  Util.androidRatifyPics(that.picture, this.$androidUtil.getProxyUrl())
2034
3113
  Util.booleanFilter(that.data)
2035
3114
  }
2036
- console.log('回写数据完成后'+JSON.stringify(that.data))
3115
+ console.log('回写数据完成后' + JSON.stringify(that.data))
2037
3116
  }
2038
3117
  } else {
2039
3118
  console.log("该安检单可能已不在本地!")
@@ -2041,22 +3120,23 @@ export default {
2041
3120
  }
2042
3121
  console.log('页面跳转')
2043
3122
  var pardate = {
2044
- _this:this,
2045
- tittle:'安检详情',
2046
- safe:true
3123
+ _this: this,
3124
+ tittle: '安检详情',
3125
+ safe: true
2047
3126
  }
2048
3127
  // this.$dispatch('gotoson',pardate)getImgPath
2049
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'repair')
3128
+ this.$set('data.f_open_date', this.item.f_open_date)
3129
+ this.$goto('safecheck-userinfo', {userinfo: this.data}, 'repair')
2050
3130
  } else {
2051
3131
  let that = this
2052
3132
  let id
2053
3133
  if (this.role == 'view') {
2054
3134
  id = this.item.id
2055
3135
  }
2056
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
3136
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/logic/getUserinfomationLogic`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
2057
3137
  if (respanse.data.length != 0) {
2058
- that.data = Object.assign(that.data,respanse.data[0])
2059
- if(respanse.data[0].f_devices) {
3138
+ that.data = Object.assign(that.data, respanse.data[0])
3139
+ if (respanse.data[0].f_devices) {
2060
3140
  for (let da in that.devices) {
2061
3141
  that.$set('data.device' + that.devices[da].n, [])
2062
3142
  }
@@ -2073,10 +3153,10 @@ export default {
2073
3153
  }
2074
3154
  Util.replaceFalse(that.data)
2075
3155
  Util.booleanFilter(that.data)
2076
- if(this.role == 'view'){
3156
+ if (this.role == 'view') {
2077
3157
  Util.ratifyPics(that.data)
2078
- }else{
2079
- Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
3158
+ } else {
3159
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2080
3160
  }
2081
3161
  console.log("that.data:", that.data)
2082
3162
  } else {
@@ -2084,19 +3164,19 @@ export default {
2084
3164
  this.init()
2085
3165
  }
2086
3166
  var pardate = {
2087
- _this:this,
2088
- tittle:'安检详情',
2089
- safe:true
3167
+ _this: this,
3168
+ tittle: '安检详情',
3169
+ safe: true
2090
3170
  }
2091
3171
  // this.$dispatch('gotoson',pardate)
2092
- this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
3172
+ //this.$goto('safecheck-userinfo', {userinfo:this.data}, 'paper-router')
2093
3173
  }
2094
3174
  ).catch(
2095
3175
  (respanse) => {
2096
3176
  alert('查找安检单失败')
2097
3177
  })
2098
3178
  }
2099
- }else{
3179
+ } else {
2100
3180
  this.init()
2101
3181
  }
2102
3182
  // tbs合并数组
@@ -2131,9 +3211,13 @@ export default {
2131
3211
  </script>
2132
3212
  <style lang="less">
2133
3213
  @import "../../../src/bootstrap/less/variables.less";
3214
+ /*.divmask {*/
3215
+ /*pointer-events: none;*/
3216
+ /*}*/
2134
3217
  .noclickbut {
2135
3218
  pointer-events: none;
2136
3219
  }
3220
+
2137
3221
  .tab-befor-img (@url) {
2138
3222
  content: '';
2139
3223
  background-image: url("@{url}");
@@ -2152,16 +3236,43 @@ export default {
2152
3236
  margin: 0.3em 0;
2153
3237
  }
2154
3238
  }
2155
- .repair-details-class{
3239
+
3240
+ .repair-details-class {
2156
3241
  &::before {
2157
3242
  .tab-befor-img("../../assets/huneiweixiu1.png");
2158
3243
  }
2159
3244
  }
3245
+
3246
+ .baoxian-details-class {
3247
+ &::before {
3248
+ .tab-befor-img("../../assets/保险服务.png");
3249
+ }
3250
+ }
3251
+
3252
+ .ranqibiao-details-class {
3253
+ &::before {
3254
+ .tab-befor-img("../../assets/燃气表.png");
3255
+ }
3256
+ }
3257
+
3258
+ .ranqiqiju-details-class {
3259
+ &::before {
3260
+ .tab-befor-img("../../assets/燃气器具信息.png");
3261
+ }
3262
+ }
3263
+
3264
+ .fushushebei-details-class {
3265
+ &::before {
3266
+ .tab-befor-img("../../assets/附属设备信息.png");
3267
+ }
3268
+ }
3269
+
2160
3270
  .repair-info-class {
2161
3271
  &::before {
2162
3272
  .tab-befor-img("../../assets/baoxiuxinxi1.png");
2163
3273
  }
2164
3274
  }
3275
+
2165
3276
  .repair-user-info-class {
2166
3277
  &::before {
2167
3278
  .tab-befor-img("../../assets/jibenxinxi1.png")
@@ -2200,7 +3311,7 @@ export default {
2200
3311
 
2201
3312
  .outlay-class {
2202
3313
  &::before {
2203
- .tab-befor-img("../../assets/feiyong1.png")
3314
+ .tab-befor-img("../../assets/拍照签名.png")
2204
3315
  }
2205
3316
  }
2206
3317
 
@@ -2209,11 +3320,13 @@ export default {
2209
3320
  .tab-befor-img("../../assets/guzhanghuizong1.png")
2210
3321
  }
2211
3322
  }
3323
+
2212
3324
  .photo-write-class {
2213
3325
  &::before {
2214
3326
  .tab-befor-img("../../assets/zaoju.png")
2215
3327
  }
2216
3328
  }
3329
+
2217
3330
  .delay-apply-class {
2218
3331
  &::before {
2219
3332
  .tab-befor-img("../../assets/yonghubaoxiu.png")
@@ -2225,44 +3338,49 @@ export default {
2225
3338
  .tab-befor-img("../../assets/fanhui.png")
2226
3339
  }
2227
3340
  }
3341
+
2228
3342
  .butt2 {
2229
3343
  display: inline;
2230
3344
  float: right;
2231
3345
  width: 10px;
2232
3346
  text-align: center;
2233
- align-items:center;
3347
+ align-items: center;
2234
3348
  position: absolute;
2235
- top:50%;
3349
+ top: 50%;
2236
3350
 
2237
- left:90%;
2238
- transform: translate(-50%,-50%);
3351
+ left: 90%;
3352
+ transform: translate(-50%, -50%);
2239
3353
  }
2240
- .linesty{
3354
+
3355
+ .linesty {
2241
3356
  display: inline-block;
2242
- height:1px;
2243
- width:100%;
2244
- background:#d0d0d0;
2245
- overflow:hidden;
3357
+ height: 1px;
3358
+ width: 100%;
3359
+ background: #d0d0d0;
3360
+ overflow: hidden;
2246
3361
  vertical-align: middle;
2247
3362
  }
2248
- .spanboder{
2249
- border-bottom:2px solid #499edf;
3363
+
3364
+ .spanboder {
3365
+ border-bottom: 2px solid #499edf;
2250
3366
  padding-bottom: 8px
2251
3367
  }
3368
+
2252
3369
  .app-botton {
2253
- position:fixed;
3370
+ position: fixed;
2254
3371
  background: #87b2dd;
2255
- right:8px;
3372
+ right: 8px;
2256
3373
  color: #FFF;
2257
3374
  padding: 8px;
2258
3375
  text-align: center;
2259
3376
  font-size: 1.2em;
2260
3377
  z-index: 10;
2261
- opacity:0.5;
3378
+ opacity: 0.5;
2262
3379
  bottom: 50px;
2263
3380
  margin-top: -10px;
2264
3381
  height: 40px;
2265
3382
  }
3383
+
2266
3384
  .android-repair-order > div > ul a {
2267
3385
  font-size: 12px;
2268
3386
  color: #333333;