safecheck-client 3.0.35-gongyi-10 → 3.0.35-gongyi-11

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