safecheck-client 3.0.33-161 → 3.0.33-164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/FormPrint.md +18 -18
  15. package/docs/GetParams.md +11 -11
  16. package/docs/GridTree.md +47 -47
  17. package/docs/HttpBusy.md +13 -13
  18. package/docs/HttpStore.md +29 -29
  19. package/docs/MessageBox.md +28 -28
  20. package/docs/PagedList.md +29 -29
  21. package/docs/Pager.md +21 -21
  22. package/docs/PrintFile.md +38 -38
  23. package/docs/Project.md +23 -23
  24. package/docs/Route.md +105 -105
  25. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  26. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  27. package/docs/Task.md +46 -46
  28. package/docs/TreeList.md +28 -28
  29. package/docs/TreeMixin.md +18 -18
  30. package/docs/all.md +10 -10
  31. package/docs/list.md +42 -42
  32. package/docs/partial.md +75 -75
  33. package/docs/selector.md +82 -82
  34. package/docs/tree.md +40 -40
  35. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  36. 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
  37. 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
  38. 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
  39. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  40. package/examples/AddressList/App.vue +13 -13
  41. package/examples/AddressList/index.html +11 -11
  42. package/examples/DispatchList/App.vue +10 -10
  43. package/examples/DispatchList/BaseTree.vue +13 -13
  44. package/examples/DispatchList/Init.vue +22 -22
  45. package/examples/DispatchList/Test.vue +20 -20
  46. package/examples/DispatchList/index.html +11 -11
  47. package/examples/DispatchList/main.js +18 -18
  48. package/home.html +16 -16
  49. package/package.json +1 -1
  50. package/publish.bat +7 -7
  51. package/release.bat +5 -5
  52. package/src/Widget.vue +13 -13
  53. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  54. package/src/android-bootstrap/less/.csscomb.json +304 -304
  55. package/src/android-bootstrap/less/.csslintrc +19 -19
  56. package/src/android-bootstrap/less/alerts.less +73 -73
  57. package/src/android-bootstrap/less/badges.less +66 -66
  58. package/src/android-bootstrap/less/bootstrap.less +56 -56
  59. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  60. package/src/android-bootstrap/less/button-groups.less +247 -247
  61. package/src/android-bootstrap/less/buttons.less +173 -173
  62. package/src/android-bootstrap/less/carousel.less +269 -269
  63. package/src/android-bootstrap/less/close.less +34 -34
  64. package/src/android-bootstrap/less/code.less +69 -69
  65. package/src/android-bootstrap/less/component-animations.less +33 -33
  66. package/src/android-bootstrap/less/grid.less +84 -84
  67. package/src/android-bootstrap/less/input-groups.less +167 -167
  68. package/src/android-bootstrap/less/jumbotron.less +52 -52
  69. package/src/android-bootstrap/less/labels.less +64 -64
  70. package/src/android-bootstrap/less/list-group.less +141 -141
  71. package/src/android-bootstrap/less/media.less +66 -66
  72. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  73. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  74. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  75. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  76. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  77. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  78. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  79. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  80. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  81. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  82. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  83. package/src/android-bootstrap/less/mixins/image.less +33 -33
  84. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  85. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  86. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  87. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  88. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  89. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  90. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  91. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  92. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  93. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  94. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  95. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  96. package/src/android-bootstrap/less/mixins/size.less +10 -10
  97. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  98. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  99. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  100. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  101. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  102. package/src/android-bootstrap/less/mixins.less +40 -40
  103. package/src/android-bootstrap/less/modals.less +151 -151
  104. package/src/android-bootstrap/less/navbar.less +660 -660
  105. package/src/android-bootstrap/less/navs.less +290 -290
  106. package/src/android-bootstrap/less/normalize.less +424 -424
  107. package/src/android-bootstrap/less/pager.less +76 -76
  108. package/src/android-bootstrap/less/pagination.less +89 -89
  109. package/src/android-bootstrap/less/panels.less +274 -274
  110. package/src/android-bootstrap/less/popovers.less +131 -131
  111. package/src/android-bootstrap/less/print.less +101 -101
  112. package/src/android-bootstrap/less/progress-bars.less +87 -87
  113. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  114. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  115. package/src/android-bootstrap/less/scaffolding.less +161 -161
  116. package/src/android-bootstrap/less/tables.less +262 -262
  117. package/src/android-bootstrap/less/theme.less +291 -291
  118. package/src/android-bootstrap/less/thumbnails.less +36 -36
  119. package/src/android-bootstrap/less/tooltip.less +102 -102
  120. package/src/android-bootstrap/less/type.less +303 -303
  121. package/src/android-bootstrap/less/utilities.less +55 -55
  122. package/src/android-bootstrap/less/variables.less +896 -896
  123. package/src/android-bootstrap/less/wells.less +29 -29
  124. package/src/androidTest.js +20 -20
  125. package/src/bootstrap/less/.csscomb.json +304 -304
  126. package/src/bootstrap/less/.csslintrc +19 -19
  127. package/src/bootstrap/less/alerts.less +73 -73
  128. package/src/bootstrap/less/badges.less +66 -66
  129. package/src/bootstrap/less/breadcrumbs.less +26 -26
  130. package/src/bootstrap/less/button-groups.less +247 -247
  131. package/src/bootstrap/less/buttons.less +172 -172
  132. package/src/bootstrap/less/carousel.less +269 -269
  133. package/src/bootstrap/less/close.less +34 -34
  134. package/src/bootstrap/less/code.less +69 -69
  135. package/src/bootstrap/less/component-animations.less +33 -33
  136. package/src/bootstrap/less/dropdowns.less +216 -216
  137. package/src/bootstrap/less/forms.less +626 -626
  138. package/src/bootstrap/less/grid.less +84 -84
  139. package/src/bootstrap/less/input-groups.less +167 -167
  140. package/src/bootstrap/less/jumbotron.less +52 -52
  141. package/src/bootstrap/less/labels.less +64 -64
  142. package/src/bootstrap/less/list-group.less +141 -141
  143. package/src/bootstrap/less/media.less +66 -66
  144. package/src/bootstrap/less/mixins/alerts.less +14 -14
  145. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  146. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  147. package/src/bootstrap/less/mixins/buttons.less +69 -69
  148. package/src/bootstrap/less/mixins/center-block.less +7 -7
  149. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  150. package/src/bootstrap/less/mixins/forms.less +90 -90
  151. package/src/bootstrap/less/mixins/gradients.less +59 -59
  152. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  153. package/src/bootstrap/less/mixins/grid.less +122 -122
  154. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  155. package/src/bootstrap/less/mixins/image.less +33 -33
  156. package/src/bootstrap/less/mixins/labels.less +12 -12
  157. package/src/bootstrap/less/mixins/list-group.less +30 -30
  158. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  159. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  160. package/src/bootstrap/less/mixins/opacity.less +8 -8
  161. package/src/bootstrap/less/mixins/pagination.less +24 -24
  162. package/src/bootstrap/less/mixins/panels.less +24 -24
  163. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  164. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  165. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  166. package/src/bootstrap/less/mixins/resize.less +6 -6
  167. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  168. package/src/bootstrap/less/mixins/size.less +10 -10
  169. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  170. package/src/bootstrap/less/mixins/table-row.less +44 -44
  171. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  172. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  173. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  174. package/src/bootstrap/less/mixins.less +40 -40
  175. package/src/bootstrap/less/modals.less +151 -151
  176. package/src/bootstrap/less/navbar.less +660 -660
  177. package/src/bootstrap/less/normalize.less +424 -424
  178. package/src/bootstrap/less/pager.less +76 -76
  179. package/src/bootstrap/less/pagination.less +89 -89
  180. package/src/bootstrap/less/panels.less +275 -275
  181. package/src/bootstrap/less/popovers.less +131 -131
  182. package/src/bootstrap/less/print.less +101 -101
  183. package/src/bootstrap/less/progress-bars.less +87 -87
  184. package/src/bootstrap/less/responsive-embed.less +35 -35
  185. package/src/bootstrap/less/responsive-utilities.less +194 -194
  186. package/src/bootstrap/less/scaffolding.less +161 -161
  187. package/src/bootstrap/less/theme.less +291 -291
  188. package/src/bootstrap/less/thumbnails.less +36 -36
  189. package/src/bootstrap/less/tooltip.less +102 -102
  190. package/src/bootstrap/less/type.less +303 -303
  191. package/src/bootstrap/less/utilities.less +55 -55
  192. package/src/bootstrap/less/wells.less +29 -29
  193. package/src/components/FileUpload.vue +696 -696
  194. package/src/components/Hello.vue +39 -39
  195. package/src/components/LeftTree.vue +27 -27
  196. package/src/components/android/AddGas.vue +147 -147
  197. package/src/components/android/AddressList.vue +61 -61
  198. package/src/components/android/AreaPlan.vue +572 -572
  199. package/src/components/android/AttendanceTally.vue +116 -116
  200. package/src/components/android/Blank.vue +10 -10
  201. package/src/components/android/CheckUnplanPage.vue +56 -56
  202. package/src/components/android/Checker.vue +12 -12
  203. package/src/components/android/CheckerAnnual.vue +81 -81
  204. package/src/components/android/CheckerAvarta.vue +82 -82
  205. package/src/components/android/CheckerMonthly.vue +84 -84
  206. package/src/components/android/EquipmentInspection.vue +348 -348
  207. package/src/components/android/FootprintMap.vue +120 -120
  208. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  209. package/src/components/android/ImgSelfAndroid.vue +181 -181
  210. package/src/components/android/LcheckUnplan.vue +108 -108
  211. package/src/components/android/MasterMain.vue +77 -77
  212. package/src/components/android/Menu.vue +132 -132
  213. package/src/components/android/NavBottom.vue +157 -157
  214. package/src/components/android/PaperAlarm.vue +85 -85
  215. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  216. package/src/components/android/PlumberAnnual.vue +83 -83
  217. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  218. package/src/components/android/PlumberMonthly.vue +84 -84
  219. package/src/components/android/PostMap.vue +83 -83
  220. package/src/components/android/QueryCheckHistory.vue +122 -122
  221. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  222. package/src/components/android/RepairMain.vue +60 -60
  223. package/src/components/android/Repairman.vue +12 -12
  224. package/src/components/android/SafecheckOrderV.vue +2809 -2809
  225. package/src/components/android/StationMaster.vue +12 -12
  226. package/src/components/android/SwitchValve.vue +323 -323
  227. package/src/components/checkerphonestate/Checker.vue +32 -32
  228. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  229. package/src/components/defects/AddDefectModal.vue +120 -120
  230. package/src/components/defects/AddDevice.vue +95 -95
  231. package/src/components/defects/DefectModal.vue +101 -101
  232. package/src/components/defects/DevicesAndItem.vue +39 -39
  233. package/src/components/defects/DevicesSeting.vue +106 -106
  234. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  235. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  236. package/src/components/metterfiles/MetterFiles.vue +104 -104
  237. package/src/components/notice/NoticeForm.vue +100 -100
  238. package/src/components/notice/NoticeIssue.vue +20 -20
  239. package/src/components/notice/NoticeQuery.vue +76 -76
  240. package/src/components/paper/PicViewer.vue +18 -18
  241. package/src/components/paper/RepairVerifyForm.vue +76 -76
  242. package/src/components/phonestate/DailyTraffic.vue +57 -57
  243. package/src/components/phonestate/LastKnownState.vue +74 -74
  244. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  245. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  246. package/src/components/phonestate/PostMap.vue +82 -82
  247. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  248. package/src/components/safecheckNew/android/SafecheckOrderV.vue +467 -428
  249. package/src/components/task/RepairAnnual.vue +79 -79
  250. package/src/components/task/RepairAnnualDetail.vue +49 -49
  251. package/src/components/task/RepairMonthly.vue +91 -91
  252. package/src/components/task/TaskAnnual.vue +77 -77
  253. package/src/components/task/TaskAnnualDetail.vue +47 -47
  254. package/src/components/task/TaskMonthly.vue +89 -89
  255. package/src/components/userfile/MeterFile.vue +145 -145
  256. package/src/components/userfile/MeterModify.vue +46 -46
  257. package/src/components/userfile/UserfileChange.vue +277 -277
  258. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  259. package/src/filiale/baiyin/android/AndroidDefectDeal.vue +633 -633
  260. package/src/filiale/baiyin/android.js +10 -10
  261. package/src/filiale/baiyin/pc/CheckPlanAreaList.vue +485 -485
  262. package/src/filiale/baiyin/pc/CheckSearchUser.vue +1067 -1067
  263. package/src/filiale/baiyin/pc/DefectListNew.vue +597 -597
  264. package/src/filiale/baiyin/pc/DefectMainNew.vue +63 -63
  265. package/src/filiale/baiyin/pc/DefectPaperNew.vue +1052 -1052
  266. package/src/filiale/baiyin/pc/PaperList.vue +790 -790
  267. package/src/filiale/baiyin/pc/PlanChooser.vue +167 -167
  268. package/src/filiale/baiyin/pc/PlanManage.vue +834 -834
  269. package/src/filiale/baiyin/pc/RightTreeSafe.vue +348 -348
  270. package/src/filiale/baiyin/pc/RoleSelector.vue +160 -160
  271. package/src/filiale/baiyin/pc/checkUserList.vue +771 -0
  272. package/src/filiale/baiyin/pc.js +2 -1
  273. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1270 -1270
  274. package/src/filiale/qingjian/android/SafecheckOrderV.vue +2844 -2844
  275. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +5 -1
  276. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  277. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  278. package/src/filiale/weinan/pc.js +46 -46
  279. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1195 -1195
  280. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +477 -477
  281. package/src/filiale/yangchunboneng/android/NewCheckpaperAndroid.vue +1362 -1362
  282. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +1731 -1731
  283. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -1235
  284. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1332 -1332
  285. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2845 -2845
  286. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +887 -887
  287. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +478 -478
  288. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1192 -1192
  289. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +944 -944
  290. package/src/main.js +33 -33
  291. package/src/plugins/LoadData.js +10 -10
  292. package/src/plugins/LoadParams.js +24 -24
  293. package/src/stores/wxconfig.js +10 -10
  294. package/src/utils/getNowDate.js +33 -33
  295. package/test/e2e/custom-assertions/elementCount.js +26 -26
  296. package/test/e2e/nightwatch.conf.js +40 -40
  297. package/test/e2e/runner.js +30 -30
  298. package/test/e2e/specs/test.js +13 -13
  299. package/test/unit/.eslintrc +5 -5
  300. package/test/unit/TestUtil.js +62 -62
  301. package/test/unit/context.html +20 -20
  302. package/test/unit/index.js +13 -13
@@ -3,26 +3,28 @@
3
3
  <!--返回<span class="glyphicon glyphicon-menu-right"></span>-->
4
4
  <!--</div>-->
5
5
  <div id="savebut" class="no-close row android-repair-order" style="background-color: #f9f9f9">
6
- <div class="col-sm-12 col-xs-12" >
6
+ <div class="col-sm-12 col-xs-12">
7
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>
8
+ <li v-for="row in tabs" v-if="$index < number+1 && $index < faultshow.number" :class="{active1: row.complete === componentName}"
9
+ @click="tabSelect(row,$index)">
10
+ <a :class="row.class" href="#"
11
+ style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun">
12
+ <span class="spanboder">{{ row.header }}</span>
13
+ <img :src="imgback(row.complete === componentName,row.header === header)" class="butt2"></a>
13
14
  <p></p>
14
15
  </li>
15
- <div class="col-sm-12 col-xs-12 repair-bg" v-show="routeShow">
16
- <route name='repair' :reuse="false"></route>
16
+ <div v-show="routeShow" class="col-sm-12 col-xs-12 repair-bg">
17
+ <route :reuse="false" name='repair'></route>
17
18
  </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>
19
+ <li v-for="row in tabs" v-if="$index > number && $index < faultshow.number " :class="{active1: row.complete === componentName}"
20
+ @click="tabSelect(row,$index)">
21
+ <a :class="row.class" href="#"
22
+ style="background-color: #ffffff;color: #666666;font-size: 16px;font-family:SimSun">
23
+ <span class="spanboder">{{ row.header }}</span>
24
+ <img :src="imgback(row.complete === componentName,row.header === header)" class="butt2"></a>
23
25
  <p></p>
24
26
  </li>
25
- <div class="col-sm-12 col-xs-12 repair-bg" v-if="actionEnabled ">
27
+ <div v-if="actionEnabled " class="col-sm-12 col-xs-12 repair-bg">
26
28
  <div class="auto select-overspread form-horizontal repair-bg " style="padding-bottom:5px;">
27
29
  <div class="bq-parent">
28
30
  <blockquote class="blockquote">
@@ -36,24 +38,25 @@
36
38
  <!--<label>请输入超期原因:</label><br/>-->
37
39
  <!--<textarea style="width: 100%;" v-model=""></textarea>-->
38
40
  <!--</div>-->
39
- <div class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
41
+ <div class="col-xs-12 col-sm-12 col-md-12 flex-between" style="margin-top: 20px;">
40
42
  <div v-if="!disableLocalCache" class="col-xs-3 col-sm-3 col-md-3">
41
43
  <button class="col-sm-3 btn btn-primary" @click="save('finish')">
42
44
  本地缓存
43
45
  </button>
44
46
  </div>
45
- <!-- <div class="col-xs-3 col-sm-3 col-md-3" v-if="item.f_user_type == '非民用'">-->
46
- <!-- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="openDeviceModel">-->
47
- <!-- 设备-->
48
- <!-- </button>-->
49
- <!-- </div>-->
47
+ <!-- <div class="col-xs-3 col-sm-3 col-md-3" v-if="item.f_user_type == '非民用'">-->
48
+ <!-- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="openDeviceModel">-->
49
+ <!-- 设备-->
50
+ <!-- </button>-->
51
+ <!-- </div>-->
50
52
  <div class="col-xs-3 col-sm-3 col-md-3">
51
- <button :disabled="uploadDisabled" type="button" name="button" class="col-sm-3 btn btn-primary" @click="uploadCheckPaper">
53
+ <button :disabled="uploadDisabled" class="col-sm-3 btn btn-primary" name="button" type="button"
54
+ @click="uploadCheckPaper">
52
55
  上传
53
56
  </button>
54
57
  </div>
55
58
  <div v-if="show_torepair">
56
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="showmod">
59
+ <button class="col-sm-3 btn btn-primary" name="button" type="button" @click="showmod">
57
60
  转维修
58
61
  </button>
59
62
  </div>
@@ -65,7 +68,7 @@
65
68
  </div>
66
69
  </ul>
67
70
  </div>
68
- <modal :show.sync="showModal2" :backdrop="false" style="font-size: 15px">
71
+ <modal :backdrop="false" :show.sync="showModal2" style="font-size: 15px">
69
72
  <div slot="modal-header" class="modal-header upuserinfo_sel">
70
73
  <h4 class="modal-title">
71
74
  转维修
@@ -74,92 +77,97 @@
74
77
  <div slot="modal-body" class="modal-body">
75
78
  <div class="row">
76
79
  <ol style="border: 1px solid green;padding: 15px 0 15px 20px">
77
- <li v-for="row in repairDefect.data" >{{row}}</li>
80
+ <li v-for="row in repairDefect.data">{{ row }}</li>
78
81
  </ol>
79
82
  </div>
80
83
  <div class="row" style="margin-top: 10px">
81
84
  <label class="font_normal_body">派发类型</label>
82
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
83
- :options='dispatchTypeOptions' placeholder='派发类型'
84
- close-on-select>
85
+ <v-select v-model="selectData.dispatchType" :options='dispatchTypeOptions' :value-single="true"
86
+ :value.sync="selectData.dispatchType" close-on-select
87
+ placeholder='派发类型'>
85
88
  </v-select>
86
89
  </div>
87
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
90
+ <div v-if="selectData.dispatchType=='派发给维修员'" class="row" style="margin-top: 10px">
88
91
  <label class="font_normal_body">维&ensp;修&ensp;员</label>
89
92
  <v-select
90
- :value.sync="selectData.f_repairman"
91
- :value-single="true"
92
93
  :options='repairers'
93
- placeholder='请选择维修员'
94
- close-on-select></v-select>
94
+ :value-single="true"
95
+ :value.sync="selectData.f_repairman"
96
+ close-on-select
97
+ placeholder='请选择维修员'></v-select>
95
98
  </div>
96
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
99
+ <div v-if="selectData.dispatchType=='派发给站点'" class="row" style="margin-top: 10px">
97
100
  <label class="font_normal_body">站&ensp;&ensp;&ensp;&ensp;点</label>
98
101
  <right-tree
99
- islist
100
102
  :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
103
+ islist
101
104
  @re-res="getSiteRes"></right-tree>
102
105
  </div>
103
106
  <div class="row" style="margin-top: 10px">
104
- <label class="font_normal_body" >备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
107
+ <label class="font_normal_body">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
105
108
  <div class="btn-group" style="width:60%">
106
- <textarea style="width:100%;height: 100px" v-model="selectData.f_remarks"></textarea>
109
+ <textarea v-model="selectData.f_remarks" style="width:100%;height: 100px"></textarea>
107
110
  </div>
108
111
  </div>
109
112
  </div>
110
113
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
111
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="rectification">转维修</button>
112
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel1">取消</button>
114
+ <button class="col-sm-3 btn btn-primary" name="button" type="button" @click="rectification">转维修</button>
115
+ <button class="col-sm-3 btn btn-primary" name="button" type="button" @click="cancel1">取消</button>
113
116
  </div>
114
117
  </modal>
115
- <modal :show.sync="device.show" :backdrop="false">
118
+ <modal :backdrop="false" :show.sync="device.show">
116
119
  <div slot="modal-header" class="modal-header upuserinfo_sel">
117
120
  <h4 class="modal-title">
118
121
  安检设备
119
122
  </h4>
120
123
  </div>
121
124
  <div slot="modal-body" class="modal-body">
122
- <div class="row" v-for="row in device.model" style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; margin-bottom: 10px; padding: 5px">
125
+ <div v-for="row in device.model" class="row"
126
+ style="border:2px solid #A2C2EB; border-top:10px solid #A2C2EB; margin-bottom: 10px; padding: 5px">
123
127
  <div class="row" style="display: flex; align-items: center; margin-bottom: 5px">
124
- <div class="col-xs-4" style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
128
+ <div class="col-xs-4"
129
+ style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
125
130
  设备品牌:
126
131
  </div>
127
132
  <div class="col-xs-8">
128
- <input type="text" class="form-control rightipt" v-model="row.f_brand" />
133
+ <input v-model="row.f_brand" class="form-control rightipt" type="text"/>
129
134
  </div>
130
135
  </div>
131
136
  <div class="row" style="display: flex; align-items: center; margin-bottom: 5px">
132
- <div class="col-xs-4" style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
137
+ <div class="col-xs-4"
138
+ style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
133
139
  设备类型:
134
140
  </div>
135
141
  <div class="col-xs-8">
136
- <v-select :value.sync="row.f_devices_type"
137
- v-model="row.f_devices_type"
138
- placeholder='请选择'
139
- width='100%'
140
- :options="device.devicesTypes"
141
- close-on-select value-single></v-select>
142
+ <v-select v-model="row.f_devices_type"
143
+ :options="device.devicesTypes"
144
+ :value.sync="row.f_devices_type"
145
+ close-on-select
146
+ placeholder='请选择'
147
+ value-single width='100%'></v-select>
142
148
  </div>
143
149
  </div>
144
150
  <div class="row" style="display: flex; align-items: center; margin-bottom: 5px">
145
- <div class="col-xs-4" style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
151
+ <div class="col-xs-4"
152
+ style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
146
153
  安装时间:
147
154
  </div>
148
155
  <div class="col-xs-8">
149
- <datepicker :value.sync="row.f_install_date"
150
- v-model="row.f_install_date"
156
+ <datepicker v-model="row.f_install_date"
151
157
  :disabled-days-of-Week="[]"
152
158
  :format="'yyyy-MM-dd HH:mm:ss'"
153
- :show-reset-button="reset" readonly="readonly">
159
+ :show-reset-button="reset"
160
+ :value.sync="row.f_install_date" readonly="readonly">
154
161
  </datepicker>
155
162
  </div>
156
163
  </div>
157
164
  <div class="row" style="display: flex; align-items: center; margin-bottom: 5px">
158
- <div class="col-xs-4" style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
165
+ <div class="col-xs-4"
166
+ style="display: flex; justify-content: flex-end; padding-right: 10px; font-weight: bolder">
159
167
  设备数量:
160
168
  </div>
161
169
  <div class="col-xs-8">
162
- <input type="number" class="form-control rightipt" v-model="row.f_devices_num" />
170
+ <input v-model="row.f_devices_num" class="form-control rightipt" type="number"/>
163
171
  </div>
164
172
  </div>
165
173
  <div style="display: flex;justify-content: center;margin-bottom: 3px">
@@ -171,7 +179,7 @@
171
179
  </div>
172
180
  </div>
173
181
  <div slot="modal-footer" class="modal-footer" style="text-align: center">
174
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="closeDeviceModal">关闭</button>
182
+ <button class="col-sm-3 btn btn-primary" name="button" type="button" @click="closeDeviceModal">关闭</button>
175
183
  </div>
176
184
  </modal>
177
185
  </div>
@@ -181,65 +189,66 @@
181
189
  // 户内维修
182
190
  import Vue from 'vue'
183
191
  import * as Util from '../../Util'
184
- import { HttpResetClass } from 'vue-client'
192
+ import {HttpResetClass} from 'vue-client'
185
193
  import co from 'co'
186
194
  import $ from "jquery";
187
195
  import {isEmpty} from "../../Util";
196
+
188
197
  let loadParamGem = async function (self) {
189
198
  await self.$LoadParams.loadParam()
190
199
  }
191
200
 
192
201
  export default {
193
202
  title: '安检单',
194
- props: ['f_plan_id', 'item', 'role','parentPage','source', 'noVisit'],
203
+ props: ['f_plan_id', 'item', 'role', 'parentPage', 'source', 'noVisit'],
195
204
  data() {
196
205
  return {
197
206
  data: {
198
207
  f_devices: [],
199
- f_defect_content:'',
200
- f_recording1_path:''
208
+ f_defect_content: '',
209
+ f_recording1_path: ''
201
210
  },
202
- imgsnum:this.$appdata.getSingleValue('安检总体照片数量') ? this.$appdata.getSingleValue('安检总体照片数量'):1, // 安检整体照片默认必须拍1张
203
- updateuserphone:false, //安检时是否更新用户电话
204
- updatemetermodel:false, //安检时是否更新表型号
205
- updatemeternumber:false, //安检时是否更新表号
206
- beforephone:'',
207
- isUpload:false,
211
+ imgsnum: this.$appdata.getSingleValue('安检总体照片数量') ? this.$appdata.getSingleValue('安检总体照片数量') : 1, // 安检整体照片默认必须拍1张
212
+ updateuserphone: false, //安检时是否更新用户电话
213
+ updatemetermodel: false, //安检时是否更新表型号
214
+ updatemeternumber: false, //安检时是否更新表号
215
+ beforephone: '',
216
+ isUpload: false,
208
217
  show_torepair: false,
209
- onlySave:true, //判断保存还是保存并上传
210
- livedispose:'',
211
- refuseinspection:'', // 拒捡拍照是否提示
212
- notencountered:'', // 到访不遇拍照是否提示
213
- startClick:false, //开始安检按钮是否可点击
218
+ onlySave: true, //判断保存还是保存并上传
219
+ livedispose: '',
220
+ refuseinspection: '', // 拒捡拍照是否提示
221
+ notencountered: '', // 到访不遇拍照是否提示
222
+ startClick: false, //开始安检按钮是否可点击
214
223
  isStrat: false, //是否开始安检
215
- checkResult:{},//查询结果
216
- newcheckResult:{},
217
- repairDefect : {
224
+ checkResult: {},//查询结果
225
+ newcheckResult: {},
226
+ repairDefect: {
218
227
  result: '正常',
219
228
  data: []
220
229
  },
221
- rowCodata:{},
230
+ rowCodata: {},
222
231
  repairers: [],
223
232
  timer: null,
224
233
  showModal: false,
225
- showModal2:false,
234
+ showModal2: false,
226
235
  pic_to_be_viewed: '',
227
- showBack:true,
236
+ showBack: true,
228
237
  devices: [],
229
- f_devices : [],
230
- isToRepair:false,
231
- clickBack:true, //是否点击返回按钮
232
- isSafeCheckToRepair:false,//是否转维修
233
- Url:this.$androidUtil.getProxyUrl(),
234
- detail:{},
235
- defectDevice:{},
236
- user:{},
237
- dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'},{label: '派发给站点', value: '派发给站点'}],
238
- selectData:{
239
- dispatchType:'派发给维修员',
240
- f_repairman:'',
241
- f_remarks:'',
242
- f_repairtype:'整改'
238
+ f_devices: [],
239
+ isToRepair: false,
240
+ clickBack: true, //是否点击返回按钮
241
+ isSafeCheckToRepair: false,//是否转维修
242
+ Url: this.$androidUtil.getProxyUrl(),
243
+ detail: {},
244
+ defectDevice: {},
245
+ user: {},
246
+ dispatchTypeOptions: [{label: '派发给维修员', value: '派发给维修员'}, {label: '派发给站点', value: '派发给站点'}],
247
+ selectData: {
248
+ dispatchType: '派发给维修员',
249
+ f_repairman: '',
250
+ f_remarks: '',
251
+ f_repairtype: '整改'
243
252
  },
244
253
  serverConfig: undefined,
245
254
  model: { //转维修数据
@@ -247,7 +256,7 @@ export default {
247
256
  serviceacitivity: [{
248
257
  f_service_acitivity_type: '派单'
249
258
  }],
250
- f_source:'安检',
259
+ f_source: '安检',
251
260
  f_service_id: '',
252
261
  f_contact_phone: '',
253
262
  f_meetunit: '',
@@ -257,11 +266,11 @@ export default {
257
266
  f_repair_date: Util.toStandardTimeString(),
258
267
  f_card_id: '',
259
268
  // f_department: '', 站点选择
260
- f_reciever:'',
269
+ f_reciever: '',
261
270
  f_remarks: '',
262
271
  f_user_type: '',
263
272
  f_area: '',
264
- f_unit_name:'',
273
+ f_unit_name: '',
265
274
  f_street: '',
266
275
  f_residential_area: '',
267
276
  f_building: '',
@@ -270,35 +279,35 @@ export default {
270
279
  f_room: '',
271
280
  aState: null,
272
281
  f_repairtype: '',
273
- f_repairitems:{},
282
+ f_repairitems: {},
274
283
  },
275
- repairitems:[],
276
- meading:'转站点',
284
+ repairitems: [],
285
+ meading: '转站点',
277
286
  f_security_check_type_id: '',
278
287
  config: [
279
288
  {
280
289
  "itemname": "燃气表",
281
- "checkmust":true,
282
- "index":1,
283
- "items":[
290
+ "checkmust": true,
291
+ "index": 1,
292
+ "items": [
284
293
  //"燃气表照片":{"index":1,"type":"picture","remark":"(拍摄清晰的表具编号、字轮数、剩余气量等)"},
285
- {"itemname": "基表编号", "index":1,"type":"string","readonly":true},
286
- {"itemname": "气表型号", "index":2,"type":"string","readonly":true},
287
- {"itemname": "气表品牌", "index":3,"type":"string","readonly":true},
288
- {"itemname": "进气方向", "index":4,"type":"string","readonly":true},
289
- {"itemname": "上次表底", "index":5,"type":"number","readonly":true},
290
- {"itemname": "本次表底", "index":6,"type":"number","readonly":false},
291
- {"itemname": "表底差值", "index":7,"type":"number","readonly":true},
292
- {"itemname": "燃气表照片", "index":8,"type":"picture","checkmust": false, unique: true, count: 3}
294
+ {"itemname": "基表编号", "index": 1, "type": "string", "readonly": true},
295
+ {"itemname": "气表型号", "index": 2, "type": "string", "readonly": true},
296
+ {"itemname": "气表品牌", "index": 3, "type": "string", "readonly": true},
297
+ {"itemname": "进气方向", "index": 4, "type": "string", "readonly": true},
298
+ {"itemname": "上次表底", "index": 5, "type": "number", "readonly": true},
299
+ {"itemname": "本次表底", "index": 6, "type": "number", "readonly": false},
300
+ {"itemname": "表底差值", "index": 7, "type": "number", "readonly": true},
301
+ {"itemname": "燃气表照片", "index": 8, "type": "picture", "checkmust": false, unique: true, count: 3}
293
302
  //显示屏数 --实际剩余气量
294
303
  ]
295
304
  }
296
305
  ],
297
306
  // 维修项
298
- isneedDate:'',
299
- routeShow:true,
300
- number:0,
301
- shupingshow:false,
307
+ isneedDate: '',
308
+ routeShow: true,
309
+ number: 0,
310
+ shupingshow: false,
302
311
  pipeline: {},
303
312
  details: [],
304
313
  ids: '',
@@ -311,18 +320,18 @@ export default {
311
320
  devicedetails: {},
312
321
  cookdetails: {},
313
322
  componentName: 'safecheck-userinfo',
314
- header:'客户信息',
323
+ header: '客户信息',
315
324
  tabs: [
316
325
  // 参数全部设置成空,在ready时,等model处理好了,再添加
317
326
  {
318
- header: '客户信息',complete:'safecheck-userinfo',class: 'repair-info-class', props: null
327
+ header: '客户信息', complete: 'safecheck-userinfo', class: 'repair-info-class', props: null
319
328
  },
320
329
  {
321
- header: '拍照签名',complete:'paper-feedback', class: 'outlay-class', props: null
330
+ header: '拍照签名', complete: 'paper-feedback', class: 'outlay-class', props: null
322
331
  }
323
332
  ],
324
- faultshow:{
325
- number : 8
333
+ faultshow: {
334
+ number: 8
326
335
  }, // 控制 故障汇总 在 菜单里显示与否,
327
336
  saveType: '',
328
337
  startTime: '',
@@ -347,7 +356,7 @@ export default {
347
356
  },
348
357
  methods: {
349
358
  delDevice(index) {
350
- this.device.model.splice(index,1)
359
+ this.device.model.splice(index, 1)
351
360
  },
352
361
  addDevice() {
353
362
  this.device.model.push({
@@ -364,14 +373,14 @@ export default {
364
373
  this.device.show = false
365
374
  console.log('this.device.model=', JSON.stringify(this.device.model))
366
375
  },
367
- showmod(){
376
+ showmod() {
368
377
  // this.saveNoclick()
369
378
  let errString = this.errorVerify()
370
379
  if (errString && this.isNotTest) {
371
380
  console.log(errString)
372
- console.log('Vue.android',Vue.android)
373
- console.log('this.isUpload',this.isUpload)
374
- if (Vue.android){
381
+ console.log('Vue.android', Vue.android)
382
+ console.log('this.isUpload', this.isUpload)
383
+ if (Vue.android) {
375
384
  this.$showMessage(errString)
376
385
  }
377
386
  return
@@ -384,108 +393,118 @@ export default {
384
393
  this.data.f_complete = '已完成'
385
394
  this.$set('data.f_offsite_time', Util.toStandardTimeString())
386
395
  this.assemblyCodata()
387
- if(this.repairDefect.result=='正常'){
396
+ if (this.repairDefect.result == '正常') {
388
397
  this.$showMessage("未发现有选择需要转维修的隐患,请检查填写的数据。如需转维修请在处理方式中选择 '转维修' !")
389
398
  return
390
399
  }
391
400
  console.log("准备保存!")
392
401
  this.disableTimer()
393
402
  this.getEmp()
394
- this.showModal2=true
403
+ this.showModal2 = true
395
404
  },
396
- cancel1(){
397
- this.showModal2=false
398
- this.selectData={
399
- dispatchType:'派发给维修员',
400
- f_repairman:'',
401
- f_remarks:'',
402
- f_repairtype:'整改'
405
+ cancel1() {
406
+ this.showModal2 = false
407
+ this.selectData = {
408
+ dispatchType: '派发给维修员',
409
+ f_repairman: '',
410
+ f_remarks: '',
411
+ f_repairtype: '整改'
403
412
  }
404
413
  },
405
414
  getSiteRes(obj) {
406
415
  console.log('siteRes ---> ')
407
416
  console.log(obj)
408
- if(obj.resids[0]){
417
+ if (obj.resids[0]) {
409
418
  this.selectData.f_meetunit = obj.res.join('.')
410
419
  this.selectData.f_reciever = obj.resids.join('.')
411
420
  this.selectData.f_outlets = obj.res[obj.res.length - 1]
412
- }else {
421
+ } else {
413
422
  this.selectData.f_meetunit = ''
414
423
  this.selectData.f_reciever = ''
415
424
  this.selectData.f_outlets = ''
416
425
  }
417
426
  },
418
- rectification(){
419
- if(this.selectData.dispatchType){
420
- if(this.selectData.dispatchType=='派发给站点'){
421
- if(!this.selectData.f_reciever){
427
+ rectification() {
428
+ if (this.selectData.dispatchType) {
429
+ if (this.selectData.dispatchType == '派发给站点') {
430
+ if (!this.selectData.f_reciever) {
422
431
  this.$showMessage('请选择部门!')
423
432
  return
424
433
  }
425
- }else{
426
- if(!this.selectData.f_repairman){
434
+ } else {
435
+ if (!this.selectData.f_repairman) {
427
436
  this.$showMessage('请选择维修员!')
428
437
  return
429
438
  }
430
439
  }
431
- }else {
440
+ } else {
432
441
  this.$showMessage('请选择派发类型!')
433
442
  return
434
443
  }
435
444
  //关闭录音
436
445
  this.closely(false) // 保存本地,不删除录音文件暂停录音
437
- let act={}
438
- let toRepair=''
439
- if(this.selectData.dispatchType=='派发给站点'){
440
- act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
441
- toRepair=null
442
- }else{
443
- console.log('派发给维修员---------'+this.selectData.f_repairman)
444
- act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
445
- toRepair='一级派单'
446
+ let act = {}
447
+ let toRepair = ''
448
+ if (this.selectData.dispatchType == '派发给站点') {
449
+ act = {
450
+ f_meetunit: this.selectData.f_meetunit,
451
+ f_reciever: this.selectData.f_reciever,
452
+ f_service_acitivity_type: '派单'
453
+ }
454
+ toRepair = null
455
+ } else {
456
+ console.log('派发给维修员---------' + this.selectData.f_repairman)
457
+ act = {f_meetunit: '', f_reciever: this.selectData.f_repairman, f_service_acitivity_type: '派单'}
458
+ toRepair = '一级派单'
446
459
  }
447
- let repData={
448
- toRepair:toRepair,
449
- activity:act,
450
- deps:Vue.user.deps,
451
- depids:Vue.user.depids,
452
- f_remarks:this.selectData.f_remarks,
453
- f_repairtype:this.selectData.f_repairtype,
460
+ let repData = {
461
+ toRepair: toRepair,
462
+ activity: act,
463
+ deps: Vue.user.deps,
464
+ depids: Vue.user.depids,
465
+ f_remarks: this.selectData.f_remarks,
466
+ f_repairtype: this.selectData.f_repairtype,
454
467
  f_attendant: Vue.user.name,
455
- loginUser:{name:Vue.user.name,ename:Vue.user.id,id:Vue.user.id},
468
+ loginUser: {name: Vue.user.name, ename: Vue.user.id, id: Vue.user.id},
456
469
  }
457
- this.rowCodata.istoRepair='转维修'
458
- this.rowCodata.repData=repData
459
- console.log("当前组装好的转维修数据--"+JSON.stringify(repData))
470
+ this.rowCodata.istoRepair = '转维修'
471
+ this.rowCodata.repData = repData
472
+ console.log("当前组装好的转维修数据--" + JSON.stringify(repData))
460
473
  this.onlySave = false
461
474
  this.save()
462
475
  },
463
476
  // 获取维修员
464
477
  getEmp() {
465
- this.repairers=[]
466
- let per = {source: 'this.getRights().where(row.getType()==$user$).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${Vue.user.id}`}
478
+ this.repairers = []
479
+ let per = {
480
+ source: 'this.getRights().where(row.getType()==$user$).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))',
481
+ userid: `${Vue.user.id}`
482
+ }
467
483
  let http = new HttpResetClass()
468
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: per}, {resolveMsg: null, rejectMsg: null}).then((res) => {
469
- res.data.forEach((user)=>{
470
- this.repairers.push({label:user.name, value: user.name})
484
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/search`, {data: per}, {
485
+ resolveMsg: null,
486
+ rejectMsg: null
487
+ }).then((res) => {
488
+ res.data.forEach((user) => {
489
+ this.repairers.push({label: user.name, value: user.name})
471
490
  })
472
491
  })
473
492
  },
474
- closely(isdelete){
493
+ closely(isdelete) {
475
494
  try {
476
495
  var startOrStopAudioClipStr;
477
- if (isdelete===true) {
496
+ if (isdelete === true) {
478
497
  //tag
479
- startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止并删除录音') //停止并删除录音
480
- }else {
498
+ startOrStopAudioClipStr = HostApp.startOrStopAudioClip("----", '停止并删除录音') //停止并删除录音
499
+ } else {
481
500
  //tag
482
- startOrStopAudioClipStr= HostApp.startOrStopAudioClip("----",'停止录音') //停止录音
501
+ startOrStopAudioClipStr = HostApp.startOrStopAudioClip("----", '停止录音') //停止录音
483
502
  }
484
503
  if (startOrStopAudioClipStr.code == 200) {
485
504
  //tag
486
505
  return true;
487
- }else {
488
- return false;
506
+ } else {
507
+ return false;
489
508
  }
490
509
  } catch (e) {
491
510
  console.error("关闭录音方法异常")
@@ -498,7 +517,7 @@ export default {
498
517
  //tag
499
518
  if (this.role != 'inspect') {
500
519
  if (this.data.f_recording1_path != '') {
501
- window.location = "/rs/file"+this.data.f_recording1_path
520
+ window.location = "/rs/file" + this.data.f_recording1_path
502
521
  }
503
522
  } else {
504
523
  //tag
@@ -510,13 +529,13 @@ export default {
510
529
  }
511
530
  //HostApp.__this__ = this
512
531
  /*调用无限制录音模块*/
513
- let startOrStopState = HostApp.startOrStopAudioClip(fileName,"开始录音")
532
+ let startOrStopState = HostApp.startOrStopAudioClip(fileName, "开始录音")
514
533
  //tag
515
534
  if (startOrStopState.code == 200) {
516
- this.data.f_recording1_path = "file:///storage/emulated/0/safecheck/" + fileName
535
+ this.data.f_recording1_path = "file:///storage/emulated/0/safecheck/" + fileName
517
536
  //tag
518
537
  return true;
519
- }else {
538
+ } else {
520
539
  return false;
521
540
  }
522
541
  }
@@ -527,73 +546,73 @@ export default {
527
546
  //tag
528
547
 
529
548
  // 5秒后启用点击事件
530
- setTimeout(function(){
549
+ setTimeout(function () {
531
550
  $("#savebut").removeClass("noclickbut");
532
- },5000);
551
+ }, 5000);
533
552
  },
534
- timeSet(val){
535
- if (!val){
553
+ timeSet(val) {
554
+ if (!val) {
536
555
  return
537
556
  }
538
- let time =new Date(val).getTime()
539
- let time2=new Date().getTime()
540
- if (time2>time) {
557
+ let time = new Date(val).getTime()
558
+ let time2 = new Date().getTime()
559
+ if (time2 > time) {
541
560
  return true
542
561
  }
543
562
  },
544
- imgback(val,isheader){
545
- if(val && this.routeShow && isheader){
563
+ imgback(val, isheader) {
564
+ if (val && this.routeShow && isheader) {
546
565
  return require('../../../assets/xiangxia1.png')
547
- }else{
566
+ } else {
548
567
  return require('../../../assets/xiangyou1.png')
549
568
  }
550
569
  },
551
- changediv(val){
570
+ changediv(val) {
552
571
  //tag
553
572
  return val
554
573
  },
555
574
  // 选择tab
556
- tabSelect (item,number) {
557
- if(this.data.f_entry_status=='到访不遇' ||this.data.f_entry_status=='拒检'){
558
- if(item.header=='燃气表'||item.header=='隐患排查'||item.header=='拍照签名'){
575
+ tabSelect(item, number) {
576
+ if (this.data.f_entry_status == '到访不遇' || this.data.f_entry_status == '拒检') {
577
+ if (item.header == '燃气表' || item.header == '隐患排查' || item.header == '拍照签名') {
559
578
  this.$showMessage(`当前状态为${this.data.f_entry_status},无法操作`)
560
579
  return
561
580
  }
562
581
  }
563
582
  this.header = item.header
564
583
  // 处理关闭/显示 内容
565
- if(this.number == number && !this.routeShow ){
584
+ if (this.number == number && !this.routeShow) {
566
585
  this.routeShow = true
567
- }else if(this.number == number && this.routeShow){
586
+ } else if (this.number == number && this.routeShow) {
568
587
  this.routeShow = false
569
- }else if(this.number != item.complete){
588
+ } else if (this.number != item.complete) {
570
589
  this.routeShow = true
571
590
  }
572
591
  this.number = number
573
592
  this.componentName = item.complete
574
593
  //tag
575
- if(item.complete == 'safecheck-devices-n'){
594
+ if (item.complete == 'safecheck-devices-n') {
576
595
  //tag
577
- if(item.header != '燃气表' && this.data['device'+item.number].length == 0){
596
+ if (item.header != '燃气表' && this.data['device' + item.number].length == 0) {
578
597
  this.data['device' + item.number].push({})
579
598
  }
580
599
  //tag
581
600
  //tag)
582
- let idx=this.data['device' + item.number].length - 1
601
+ let idx = this.data['device' + item.number].length - 1
583
602
  let itemprops = {
584
- config:this.config,
585
- device:this.devices[item.number-1],
586
- idx:idx,
587
- role:'inspect',
603
+ config: this.config,
604
+ device: this.devices[item.number - 1],
605
+ idx: idx,
606
+ role: 'inspect',
588
607
  userinfo: this.item
589
608
  }
590
- if(this.routeShow){
609
+ if (this.routeShow) {
591
610
  this.$goto(item.complete, itemprops, 'repair')
592
611
  }
593
- }else{
612
+ } else {
594
613
  //tag
595
- if(this.routeShow){
596
- this.$goto(item.complete, {userinfo:this.data}, 'repair')
614
+ if (this.routeShow) {
615
+ this.$goto(item.complete, {userinfo: this.data}, 'repair')
597
616
  }
598
617
  }
599
618
  this.shupingshow = true
@@ -604,18 +623,20 @@ export default {
604
623
  this.ids += this.model.serviceacitivity[0].imgs[i].imgid + ','
605
624
  }
606
625
  this.ids = this.ids.substring(0, this.ids.length - 1)
607
- if(this.ids){
626
+ if (this.ids) {
608
627
  this.getImgGen();
609
628
  }
610
629
  },
611
- getImgGen(){
630
+ getImgGen() {
612
631
  let http = new HttpResetClass()
613
- http.load('POST','rs/sql/tel_singleTable_OrderBy', {data: {
632
+ http.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
633
+ data: {
614
634
  items: '*',
615
635
  tablename: 't_files',
616
636
  condition: `id in (${this.ids})`,
617
637
  orderitem: 'id'
618
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
638
+ }
639
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
619
640
  for (let i = 0; i < res.data.length; i++) {
620
641
  for (let j = 0; j < this.model.serviceacitivity[0].imgs.length; j++) {
621
642
  if (res.data[i].id.toString() === this.model.serviceacitivity[0].imgs[j].imgid) {
@@ -627,7 +648,7 @@ export default {
627
648
  })
628
649
  },
629
650
 
630
- sortDetails(){
651
+ sortDetails() {
631
652
  for (let i = 0; i < this.details.length; i++) {
632
653
  if (this.details[i].details.length) {
633
654
  for (let j = 0; j < this.details[i].details.length; j++) {
@@ -648,9 +669,9 @@ export default {
648
669
  }
649
670
  },
650
671
  // 复制数据
651
- back () {
672
+ back() {
652
673
  let _this = this
653
- if(this.issee){
674
+ if (this.issee) {
654
675
  _this.$back()
655
676
  return
656
677
  }
@@ -661,7 +682,7 @@ export default {
661
682
  }
662
683
  })
663
684
  },
664
- confirm(){
685
+ confirm() {
665
686
  this.$dispatch('confirm')
666
687
  },
667
688
  tick() {
@@ -685,19 +706,19 @@ export default {
685
706
  // return '该用户未施封,请先在客户信息中点击去施封!'
686
707
  // }
687
708
  let hasError = this.verifyState()
688
- if(hasError)
709
+ if (hasError)
689
710
  return hasError
690
711
 
691
- if(this.data.f_entry_status != '入户')
712
+ if (this.data.f_entry_status != '入户')
692
713
  return null
693
714
  hasError = this.verifyUser()
694
- if(hasError)
715
+ if (hasError)
695
716
  return hasError
696
717
  hasError = this.verifyDevices()
697
- if(hasError)
718
+ if (hasError)
698
719
  return hasError
699
720
  hasError = this.verifyFeedback()
700
- if(hasError)
721
+ if (hasError)
701
722
  return hasError
702
723
  // let time = this.$appdata.getSingleValue('安检倒计时')
703
724
  // if (time){
@@ -711,33 +732,33 @@ export default {
711
732
  // }
712
733
  },
713
734
  verifyState() {
714
- if(Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
735
+ if (Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
715
736
  return '未使用天然气则必须拍照'
716
- if(Vue.android && this.data.f_entry_status == '到访不遇' && (this.data.f_noanswer_path == Vue.nopic || this.data.f_noanswer_path == ''))
717
- return '到访不遇必须拍照'
718
- if(Vue.android && this.data.f_entry_status == '拒检' && this.refuseinspection && (this.data.f_rejectcheck_path == Vue.nopic || this.data.f_rejectcheck_path == ''))
719
- return '拒捡必须拍照'
737
+ if (Vue.android && this.data.f_entry_status == '到访不遇' && (this.data.f_noanswer_path == Vue.nopic || this.data.f_noanswer_path == ''))
738
+ return '到访不遇必须拍照'
739
+ if (Vue.android && this.data.f_entry_status == '拒检' && this.refuseinspection && (this.data.f_rejectcheck_path == Vue.nopic || this.data.f_rejectcheck_path == ''))
740
+ return '拒捡必须拍照'
720
741
  },
721
742
  verifyUser() {
722
743
  //tag
723
744
  //tag
724
745
  //tag)
725
746
  let prefix = '用户基本信息:'
726
- if(Util.required(this.data.f_user_name))
747
+ if (Util.required(this.data.f_user_name))
727
748
  return prefix + '用户名必须输入'
728
749
  // if(!(/^(\d{11})|(0[0-9]{2,3}-[0-9]{8})$/.test(this.data.f_user_phone))) {
729
750
  // return '请输入正确的电话号码'
730
751
  // }
731
752
  // if(Util.required(this.data.f_residential_area))
732
753
  // return prefix + '小区名称必须输入'
733
- if(Util.required(this.data.f_address))
754
+ if (Util.required(this.data.f_address))
734
755
  return prefix + '地址必须输入'
735
756
  },
736
757
  verifyDevices() {
737
758
  for (let dev in this.config) {
738
759
  if (this.config[dev].checkmust == true) {
739
760
  let error = true
740
- for(let device in this.data) {
761
+ for (let device in this.data) {
741
762
  if (device.startsWith("device")) {
742
763
  for (let item in this.data[device]) {
743
764
  if (this.data[device].length != 0 && this.data[device][item].f_device_type == this.config[dev].itemname) {
@@ -753,26 +774,26 @@ export default {
753
774
  }
754
775
 
755
776
  for (var dev in this.config) {
756
- for(var device in this.data) {
777
+ for (var device in this.data) {
757
778
  if (device.startsWith("device")) {
758
- for (let item in this.data[device]) {
779
+ for (let item in this.data[device]) {
759
780
  //检查每一条安检结果
760
- if (this.data[device].length != 0 && this.data[device][item].f_device_type ==this.config[dev].itemname) {
781
+ if (this.data[device].length != 0 && this.data[device][item].f_device_type == this.config[dev].itemname) {
761
782
  for (let i in this.data[device][item].f_items) {
762
783
  for (let it in this.config[dev].items) {
763
784
  if (this.config[dev].items[it].itemname == this.data[device][item].f_items[i].f_item_name) {
764
- let check=false
765
- if (!this.data[device][item].f_items[i].f_item_value){
766
- check=true
767
- }else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)){
768
- if (this.data[device][item].f_items[i].f_item_value.length==0){
769
- check=true
785
+ let check = false
786
+ if (!this.data[device][item].f_items[i].f_item_value) {
787
+ check = true
788
+ } else if (Array.isArray(this.data[device][item].f_items[i].f_item_value)) {
789
+ if (this.data[device][item].f_items[i].f_item_value.length == 0) {
790
+ check = true
770
791
  }
771
792
  }
772
- if(this.config[dev].items[it].type=='picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path){
793
+ if (this.config[dev].items[it].type == 'picture' && this.config[dev].items[it].checkmust == true && !this.data[device][item].f_items[i].f_path) {
773
794
  return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
774
795
  }
775
- if (this.config[dev].items[it].type !='picture' && this.config[dev].items[it].checkmust == true && check) {
796
+ if (this.config[dev].items[it].type != 'picture' && this.config[dev].items[it].checkmust == true && check) {
776
797
  return dev + (this.data[device].indexOf(this.data[device][item]) + 1) + this.data[device][item].f_items[i].f_item_name + "未检查"
777
798
  }
778
799
  }
@@ -782,7 +803,7 @@ export default {
782
803
  if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_path == Vue.nopic) {
783
804
  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 + "选中必须拍照"
784
805
  }
785
- if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_deal_dispose == '现场整改' && isEmpty(this.data[device][item].f_items[i].f_repair_path) ){
806
+ if (this.data[device][item].f_items[i].f_is_defect == true && this.data[device][item].f_items[i].f_deal_dispose == '现场整改' && isEmpty(this.data[device][item].f_items[i].f_repair_path)) {
786
807
  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 + "选中现场整改必须拍照"
787
808
  }
788
809
  }
@@ -796,16 +817,16 @@ export default {
796
817
  verifyFeedback() {
797
818
  let prefix = '拍照签名:'
798
819
  //tag)
799
- if(Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length < this.imgsnum) && this.data.f_entry_status == '入户')
820
+ if (Vue.android && (!this.data.f_overall_imgs || this.data.f_overall_imgs.length < this.imgsnum) && this.data.f_entry_status == '入户')
800
821
  return prefix + `必须有${this.imgsnum}安检总体照片`
801
- if(Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
822
+ if (Vue.android && (!this.data.f_sign_path || this.data.f_sign_path.length == 0) && this.data.f_entry_status == '入户')
802
823
  return prefix + '必须有用户签名'
803
- if(Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
824
+ if (Vue.android && this.data.f_defect_notified && this.data.f_notified_path == Vue.nopic)
804
825
  return prefix + '下发安检通知书则必须给通知书拍照'
805
- if(Vue.android && this.data.f_blacklist && this.data.f_blocking_cause=='')
826
+ if (Vue.android && this.data.f_blacklist && this.data.f_blocking_cause == '')
806
827
  return prefix + '请填写拉黑原因'
807
- if(!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
808
- return prefix + '请选择服务评价'
828
+ if (!this.data.f_client_evaluation && this.data.f_entry_status == '入户')
829
+ return prefix + '请选择服务评价'
809
830
  // if(!this.data.f_phone_newest && this.data.f_entry_status == '入户')
810
831
  // return prefix + '请填写用户联系方式'
811
832
  },
@@ -827,7 +848,7 @@ export default {
827
848
  let hasOther = ''
828
849
  let otherValue = null
829
850
  for (let item in codata[device]) {
830
- if(typeof codata[device][item]=='function'){
851
+ if (typeof codata[device][item] == 'function') {
831
852
  continue
832
853
  }
833
854
  codata[device][item].f_create_time = Util.toStandardTimeString()
@@ -841,12 +862,12 @@ export default {
841
862
  //tag
842
863
  //tag)
843
864
  //tag)
844
- if(item == 'sum' || item == 'removeEmpty'){
865
+ if (item == 'sum' || item == 'removeEmpty') {
845
866
  continue
846
867
  }
847
- for (let i = 0; i < codata[device][item].f_items.length ; i++) {
868
+ for (let i = 0; i < codata[device][item].f_items.length; i++) {
848
869
  //tag
849
- if(i == 'sum' || i == 'removeEmpty'){
870
+ if (i == 'sum' || i == 'removeEmpty') {
850
871
  continue
851
872
  }
852
873
  //tag)
@@ -872,15 +893,15 @@ export default {
872
893
  //tag
873
894
  if (items.type == 'selector' || items.type == 'checkbox' || items.type == 'radio') {
874
895
  for (let i in items.f_item_value) {
875
- if(typeof items.f_item_value[i]=='function'){
896
+ if (typeof items.f_item_value[i] == 'function') {
876
897
  continue
877
898
  }
878
899
  // let configItems = this.config[codata[device][item].f_device_type].items[f_item_name]
879
900
  let configItems = ''
880
901
  this.config.forEach(e => {
881
- if(e.itemname == f_device_type)
902
+ if (e.itemname == f_device_type)
882
903
  e.items.forEach(item => {
883
- if(item.itemname == f_item_name) {
904
+ if (item.itemname == f_item_name) {
884
905
  configItems = item
885
906
  }
886
907
  })
@@ -888,7 +909,7 @@ export default {
888
909
  items.f_defect_level = configItems.level
889
910
  //tag)
890
911
  for (let k in configItems.options) {
891
- if(typeof configItems.options[k]=='function'){
912
+ if (typeof configItems.options[k] == 'function') {
892
913
  continue
893
914
  }
894
915
  //tag)
@@ -900,19 +921,19 @@ export default {
900
921
  if (checkResults.result !== '有隐患') {
901
922
  checkResults.result = '有隐患'
902
923
  }
903
- console.log('items'+items)
904
- if(items.f_deal_dispose=='报修'){
924
+ console.log('items' + items)
925
+ if (items.f_deal_dispose == '报修') {
905
926
  console.log("检测到需要转维修++++++++++++")
906
- this.repairDefect.result='未处理'
927
+ this.repairDefect.result = '未处理'
907
928
  this.repairDefect.data.push(`${f_item_name} : ${f_item_value}`)
908
929
  }
909
- if (!this.checkResult.hasOwnProperty(f_device_type+'-'+f_item_name)) {
930
+ if (!this.checkResult.hasOwnProperty(f_device_type + '-' + f_item_name)) {
910
931
  //tag
911
- this.checkResult[f_device_type+'-'+f_item_name] = []
932
+ this.checkResult[f_device_type + '-' + f_item_name] = []
912
933
  }
913
934
 
914
935
  //tag
915
- this.checkResult[f_device_type+'-'+f_item_name].push(f_item_value)
936
+ this.checkResult[f_device_type + '-' + f_item_name].push(f_item_value)
916
937
 
917
938
  }
918
939
 
@@ -933,9 +954,9 @@ export default {
933
954
  // let configItems = this.config[codata[device][item].f_device_type].items[items.f_item_name]
934
955
  let configItems = ''
935
956
  this.config.forEach(e => {
936
- if(e.itemname == f_device_type)
957
+ if (e.itemname == f_device_type)
937
958
  e.items.forEach(item => {
938
- if(item.itemname == f_item_name) {
959
+ if (item.itemname == f_item_name) {
939
960
  configItems = item
940
961
  }
941
962
  })
@@ -1000,7 +1021,7 @@ export default {
1000
1021
  }
1001
1022
  if (this.checkResult) {
1002
1023
  for (let key in this.checkResult) {
1003
- if(typeof this.checkResult[key]=='function'){
1024
+ if (typeof this.checkResult[key] == 'function') {
1004
1025
  continue
1005
1026
  }
1006
1027
  // 上次安检结果数据组织
@@ -1032,7 +1053,7 @@ export default {
1032
1053
  codata.f_security_check_type_id = this.f_security_check_type_id
1033
1054
  return codata
1034
1055
  },
1035
- async uploadCheckPaper(){
1056
+ async uploadCheckPaper() {
1036
1057
  // console.log("====")
1037
1058
  // console.log('this.data=', JSON.stringify(this.data))
1038
1059
  // let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
@@ -1057,7 +1078,7 @@ export default {
1057
1078
  this.closely(false) // 保存本地,不删除录音文件停止录音
1058
1079
  let errString = this.errorVerify()
1059
1080
  if (errString && this.isNotTest) {
1060
- if (Vue.android){
1081
+ if (Vue.android) {
1061
1082
  this.$showMessage(errString)
1062
1083
  }
1063
1084
  return
@@ -1085,7 +1106,7 @@ export default {
1085
1106
  this.save()
1086
1107
  },
1087
1108
  //将数据组装提出
1088
- assemblyCodata(){
1109
+ assemblyCodata() {
1089
1110
  let codata = this.getAllDefect()
1090
1111
  console.log(`codata类型 开始组装codeta数据-->${typeof codata}`)
1091
1112
  console.log(`codata内容-->${JSON.stringify(codata)}`)
@@ -1096,7 +1117,7 @@ export default {
1096
1117
  }
1097
1118
  }
1098
1119
  codata.f_devices = this.f_devices
1099
- this.rowCodata=codata
1120
+ this.rowCodata = codata
1100
1121
  },
1101
1122
  sealScan() {
1102
1123
  HostApp.__this__ = this
@@ -1112,9 +1133,9 @@ export default {
1112
1133
  console.log('sealScanCallback=========')
1113
1134
  let result = HostApp.getNfcUUID()
1114
1135
  console.log('result=', result)
1115
- if (result.code == 200){
1136
+ if (result.code == 200) {
1116
1137
  const sealUID = result.data
1117
- if (sealUID != this.data.f_seal_uid){
1138
+ if (sealUID != this.data.f_seal_uid) {
1118
1139
  this.$showMessage("该铅封与该用户绑定的铅封不一致!")
1119
1140
  return
1120
1141
  }
@@ -1122,9 +1143,9 @@ export default {
1122
1143
  this.$set('data.f_offsite_time', Util.toStandardTimeString())
1123
1144
  this.disableTimer()
1124
1145
  this.save2(this.saveType)
1125
- }else {
1146
+ } else {
1126
1147
  this.$showMessage("未识别到铅封信息,请重新尝试!")
1127
- return
1148
+
1128
1149
  }
1129
1150
  },
1130
1151
  async save(type) {
@@ -1132,12 +1153,12 @@ export default {
1132
1153
  this.saveNoclick()
1133
1154
  //tag
1134
1155
  //tag
1135
- if(type == 'temp'){
1156
+ if (type == 'temp') {
1136
1157
  this.data.f_complete = '未完成'
1137
1158
  // 关闭录音方法
1138
1159
  this.closely(true) //临时保存,删除录音文件并暂停录音
1139
1160
  this.disableTimer()
1140
- }else {
1161
+ } else {
1141
1162
  // 关闭录音方法
1142
1163
  this.closely(false) // 保存本地,不删除录音文件暂停录音
1143
1164
  let errString = this.errorVerify()
@@ -1145,7 +1166,7 @@ export default {
1145
1166
  //tag
1146
1167
  //tag
1147
1168
  //tag
1148
- if (Vue.android){
1169
+ if (Vue.android) {
1149
1170
  this.$showMessage(errString)
1150
1171
  }
1151
1172
  return
@@ -1153,8 +1174,8 @@ export default {
1153
1174
  }
1154
1175
  this.save2(type)
1155
1176
  },
1156
- save2(type){
1157
- if(this.data.f_blacklist!='是'){
1177
+ save2(type) {
1178
+ if (this.data.f_blacklist != '是') {
1158
1179
  delete this.data.f_blocking_cause
1159
1180
  }
1160
1181
  if (this.data.f_entry_status == '入户') {
@@ -1162,17 +1183,17 @@ export default {
1162
1183
  this.data.f_rejectcheck_path = null
1163
1184
  this.data.f_rejectcheck1_path = null
1164
1185
  this.data.f_rejectcheck2_path = null
1165
- this.data.f_noanswers_path=[]
1186
+ this.data.f_noanswers_path = []
1166
1187
  this.data.f_noanswer_path = null
1167
1188
  this.data.f_noanswer1_path = null
1168
1189
  this.data.f_noanswer2_path = null
1169
- }else if (this.data.f_entry_status == '到访不遇') {
1190
+ } else if (this.data.f_entry_status == '到访不遇') {
1170
1191
  this.data.f_rejectchecks_path = []
1171
1192
  this.data.f_rejectcheck_path = null
1172
1193
  this.data.f_rejectcheck1_path = null
1173
1194
  this.data.f_rejectcheck2_path = null
1174
- }else if (this.data.f_entry_status == '拒检') {
1175
- this.data.f_noanswers_path=[]
1195
+ } else if (this.data.f_entry_status == '拒检') {
1196
+ this.data.f_noanswers_path = []
1176
1197
  this.data.f_noanswer_path = null
1177
1198
  this.data.f_noanswer1_path = null
1178
1199
  this.data.f_noanswer2_path = null
@@ -1191,8 +1212,8 @@ export default {
1191
1212
  }
1192
1213
  }
1193
1214
  try {
1194
- let posaddress= HostApp.getGpsDetailAddress(); //获取当前地址信息
1195
- console.log("---------地址:"+JSON.stringify(posaddress))
1215
+ let posaddress = HostApp.getGpsDetailAddress(); //获取当前地址信息
1216
+ console.log("---------地址:" + JSON.stringify(posaddress))
1196
1217
  codata.f_longitude = posaddress.longitude
1197
1218
  codata.f_latitude = posaddress.latitude
1198
1219
  } catch (e) {
@@ -1204,11 +1225,11 @@ export default {
1204
1225
  alias: 'getUserinfomation',
1205
1226
  data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1206
1227
  })
1207
- if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
1228
+ if (this.item.f_no_checkplan == '无计划安检' && this.item.f_no_checkplan != '打回') {
1208
1229
  let isStart = true
1209
1230
  codata.f_devices = this.f_devices
1210
- if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1211
- this.rowCodata = Object.assign({},this.rowCodata,codata)
1231
+ if (this.rowCodata && this.rowCodata.istoRepair == '转维修') {
1232
+ this.rowCodata = Object.assign({}, this.rowCodata, codata)
1212
1233
  } else {
1213
1234
  this.rowCodata = codata
1214
1235
  }
@@ -1237,8 +1258,8 @@ export default {
1237
1258
  let isStart = true
1238
1259
  let res
1239
1260
  codata.f_devices = this.f_devices
1240
- if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1241
- this.rowCodata = Object.assign({},this.rowCodata,codata)
1261
+ if (this.rowCodata && this.rowCodata.istoRepair == '转维修') {
1262
+ this.rowCodata = Object.assign({}, this.rowCodata, codata)
1242
1263
  } else {
1243
1264
  this.rowCodata = codata
1244
1265
  }
@@ -1275,8 +1296,8 @@ export default {
1275
1296
  alias: 'getUserinfomation',
1276
1297
  data: {condition: "f_userinfoid = '" + this.item.f_userinfoid + "' and f_no_checkplan = '无计划安检'"}
1277
1298
  })
1278
- if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1279
- this.rowCodata = Object.assign({},this.rowCodata,codata)
1299
+ if (this.rowCodata && this.rowCodata.istoRepair == '转维修') {
1300
+ this.rowCodata = Object.assign({}, this.rowCodata, codata)
1280
1301
  } else {
1281
1302
  this.rowCodata = codata
1282
1303
  }
@@ -1327,8 +1348,7 @@ export default {
1327
1348
  return false
1328
1349
  }
1329
1350
  })
1330
- }
1331
- else {
1351
+ } else {
1332
1352
  this.$androidUtil.bzLogic('保存安检单信息', {
1333
1353
  f_check_item_id: this.data.f_check_item_id,
1334
1354
  f_checker_id: this.data.f_checker_id,
@@ -1377,7 +1397,7 @@ export default {
1377
1397
  }
1378
1398
  }
1379
1399
  },
1380
- runSyncLogic(logic,callback,backresult){
1400
+ runSyncLogic(logic, callback, backresult) {
1381
1401
  HostApp.runSyncLogic({
1382
1402
  // logic别名,key必须为logic
1383
1403
  'logic': logic,
@@ -1386,10 +1406,10 @@ export default {
1386
1406
  // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1387
1407
  // 执行回调方法传入key为backresult
1388
1408
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1389
- 'backresult':backresult
1409
+ 'backresult': backresult
1390
1410
  })
1391
1411
  },
1392
- logicWithHint(logic,data,callback,backresult){
1412
+ logicWithHint(logic, data, callback, backresult) {
1393
1413
  HostApp.logicWithHint({
1394
1414
  // logic别名,key必须为logic
1395
1415
  'logic': logic,
@@ -1400,19 +1420,19 @@ export default {
1400
1420
  // 固定key,代表是否将logic执行结果作为参数传入回调方法,1代表true,0代表false,
1401
1421
  // 执行回调方法传入key为backresult
1402
1422
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1403
- 'backresult':backresult
1423
+ 'backresult': backresult
1404
1424
  })
1405
1425
  },
1406
- saveCallBack(jo){
1426
+ saveCallBack(jo) {
1407
1427
  this.uploadDisabled = false
1408
- if(jo.state == 'ok'){
1428
+ if (jo.state == 'ok') {
1409
1429
  let res = JSON.parse(jo.result)
1410
- if(res.code == 200){
1411
- if(!this.onlySave){
1430
+ if (res.code == 200) {
1431
+ if (!this.onlySave) {
1412
1432
  let codata = this.getAllDefect()
1413
1433
  try {
1414
- let posaddress= HostApp.getGpsDetailAddress(); //获取当前地址信息
1415
- console.log("---------地址:"+JSON.stringify(posaddress))
1434
+ let posaddress = HostApp.getGpsDetailAddress(); //获取当前地址信息
1435
+ console.log("---------地址:" + JSON.stringify(posaddress))
1416
1436
  codata.f_longitude = posaddress.longitude
1417
1437
  codata.f_latitude = posaddress.latitude
1418
1438
  } catch (e) {
@@ -1423,21 +1443,21 @@ export default {
1423
1443
  f_check_item_id: this.data.f_check_item_id
1424
1444
  })
1425
1445
  //如果是转维修上传,则不做校验,上传完成后自动转维修
1426
- if(!this.isToRepair){
1427
- if(haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)){
1428
- if(!this.isSafeCheckToRepair){
1446
+ if (!this.isToRepair) {
1447
+ if (haslivedispose.data.length > 0 && (this.livedispose == 'true' || this.livedispose == true)) {
1448
+ if (!this.isSafeCheckToRepair) {
1429
1449
 
1430
1450
  }
1431
1451
  }
1432
1452
  }
1433
- for (let key in codata){
1434
- if(key.startsWith("device")){
1453
+ for (let key in codata) {
1454
+ if (key.startsWith("device")) {
1435
1455
  codata[key] = []
1436
1456
  }
1437
1457
  }
1438
1458
  codata.f_devices = this.f_devices
1439
- if (this.rowCodata && this.rowCodata.istoRepair=='转维修') {
1440
- this.rowCodata = Object.assign({},this.rowCodata,codata)
1459
+ if (this.rowCodata && this.rowCodata.istoRepair == '转维修') {
1460
+ this.rowCodata = Object.assign({}, this.rowCodata, codata)
1441
1461
  } else {
1442
1462
  this.rowCodata = codata
1443
1463
  }
@@ -1446,16 +1466,16 @@ export default {
1446
1466
  for (const item of this.device.model) {
1447
1467
  let f = false
1448
1468
  for (const itemElement in item) {
1449
- if (item[itemElement]){
1469
+ if (item[itemElement]) {
1450
1470
  f = true
1451
1471
  break
1452
1472
  }
1453
1473
  }
1454
- if (f){
1474
+ if (f) {
1455
1475
  safecheckDevices.push(item)
1456
1476
  }
1457
1477
  }
1458
- this.rowCodata.planId=this.item.planID
1478
+ this.rowCodata.planId = this.item.planID
1459
1479
  let param = {
1460
1480
  f_check_item_id: this.data.f_check_item_id,
1461
1481
  f_checker_id: this.data.f_checker_id,
@@ -1484,24 +1504,24 @@ export default {
1484
1504
  // 如需额外拼接参数,写在logic返回值的params,例如xxlogic返回:{"params": "success"}
1485
1505
  'backresult': 1
1486
1506
  })
1487
- }else{
1507
+ } else {
1488
1508
  this.$showMessage('保存成功!')
1489
- if(this.clickBack){
1509
+ if (this.clickBack) {
1490
1510
  this.isStrat = false
1491
1511
  this.$dispatch('confirm')
1492
1512
  //this.$back()
1493
1513
  }
1494
1514
  }
1495
- }else{
1515
+ } else {
1496
1516
  this.$showMessage('保存失败!')
1497
- return
1517
+
1498
1518
  }
1499
- }else{
1519
+ } else {
1500
1520
  this.$showMessage('服务器内部错误,保存失败!')
1501
- return
1521
+
1502
1522
  }
1503
1523
  },
1504
- uploadCallBack(jo){
1524
+ uploadCallBack(jo) {
1505
1525
  this.uploadDisabled = false
1506
1526
  //获取微信推送路径
1507
1527
  let url = ""
@@ -1514,93 +1534,92 @@ export default {
1514
1534
  // }
1515
1535
  //tag)
1516
1536
  //tag)
1517
- if(jo.state == 'ok'){
1537
+ if (jo.state == 'ok') {
1518
1538
  let res = JSON.parse(jo.result)
1519
1539
  //tag)
1520
1540
  //tag)
1521
- if(res.code == 200){
1541
+ if (res.code == 200) {
1522
1542
  this.$set('data.f_paper_id', res.id)
1523
- this.isStrat=false
1524
- if(url != ""){
1525
- this.$resetpost(`${url}`,{data:WxResult})
1543
+ this.isStrat = false
1544
+ if (url != "") {
1545
+ this.$resetpost(`${url}`, {data: WxResult})
1526
1546
  }
1527
1547
  //tag
1528
- if(this.isToRepair){
1529
- for (let device in this.data){
1530
- if(device.startsWith("device")){
1548
+ if (this.isToRepair) {
1549
+ for (let device in this.data) {
1550
+ if (device.startsWith("device")) {
1531
1551
  this.data[device] = []
1532
- if(res.data.length > 0){
1533
- for(let i in res.data[0].f_devices){
1534
- if(this.data[device].length > 0){
1535
- if(this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type){
1552
+ if (res.data.length > 0) {
1553
+ for (let i in res.data[0].f_devices) {
1554
+ if (this.data[device].length > 0) {
1555
+ if (this.data[device][0].f_device_type == res.data[0].f_devices[i].f_device_type) {
1536
1556
  this.data[device].push(res.data[0].f_devices[i])
1537
- res.data[0].f_devices.splice(i,1)
1557
+ res.data[0].f_devices.splice(i, 1)
1538
1558
  }
1539
- }else{
1559
+ } else {
1540
1560
  this.data[device].push(res.data[0].f_devices[i])
1541
- res.data[0].f_devices.splice(i,1)
1561
+ res.data[0].f_devices.splice(i, 1)
1542
1562
  }
1543
1563
  }
1544
1564
  }
1545
1565
  }
1546
1566
  }
1547
1567
  this.todo()
1548
- }else{
1568
+ } else {
1549
1569
  this.$showMessage('上传成功!')
1550
1570
  //tag
1551
1571
  this.$dispatch('confirm')
1552
1572
  // this.$back()
1553
1573
  }
1554
- }else if(res.code == 309){
1574
+ } else if (res.code == 309) {
1555
1575
  this.$showMessage('该安检单已作废!')
1556
1576
  //tag
1557
1577
  this.$dispatch('confirm')
1558
- }else if(res.code == 710){
1559
- this.$showMessage('上传照片失败,请检查网络是否正常!'+res.msg)
1578
+ } else if (res.code == 710) {
1579
+ this.$showMessage('上传照片失败,请检查网络是否正常!' + res.msg)
1560
1580
  return
1561
- }else if(res.code == 711){
1581
+ } else if (res.code == 711) {
1562
1582
  this.$showMessage('该安检单已被管理员调整,请联系管理员!')
1563
1583
  return
1564
- }else if(res.code == 712){
1584
+ } else if (res.code == 712) {
1565
1585
  this.$showMessage('网络异常,请重新上传,多次上传失败请联系管理员!')
1566
1586
  return
1567
- }
1568
- else{
1587
+ } else {
1569
1588
  this.$showMessage('上传失败!')
1570
1589
  }
1571
- }else {
1590
+ } else {
1572
1591
  this.$showMessage('网络异常,上传失败!')
1573
1592
  }
1574
1593
  this.onlySave = true
1575
1594
  },
1576
- safecheckToRepairCallBack(jo){
1595
+ safecheckToRepairCallBack(jo) {
1577
1596
  //获取微信推送路径
1578
- if(jo.state == 'ok'){
1597
+ if (jo.state == 'ok') {
1579
1598
  let res = JSON.parse(jo.result)
1580
1599
  //tag)
1581
- if(res.code == 200){
1600
+ if (res.code == 200) {
1582
1601
  //tag
1583
- if(res.data.code == 200){
1602
+ if (res.data.code == 200) {
1584
1603
  this.$showMessage('上传并转维修成功!')
1585
- }else{
1604
+ } else {
1586
1605
  this.$showMessage('上传并转维修成功,回写安检单失败!')
1587
1606
  }
1588
1607
  this.$dispatch('confirm')
1589
1608
  // this.$back()
1590
- }else{
1609
+ } else {
1591
1610
  this.$showMessage('上传失败!')
1592
1611
  this.onlySave = true
1593
1612
  }
1594
- }else{
1613
+ } else {
1595
1614
  this.$showMessage('网络异常,上传失败!')
1596
1615
  this.onlySave = true
1597
1616
  }
1598
1617
  },
1599
- todo(){
1618
+ todo() {
1600
1619
  let gen = getRepairParam(this)
1601
1620
  co(gen)
1602
1621
  },
1603
- undo(){
1622
+ undo() {
1604
1623
  this.showCheckToRepair = !this.showCheckToRepair
1605
1624
  this.model.serviceacitivity[0].f_reciever = ''
1606
1625
  this.model.serviceacitivity[0].f_meetunit = ''
@@ -1608,13 +1627,13 @@ export default {
1608
1627
  this.meading = '转站点'
1609
1628
  },
1610
1629
  disableTimer() {
1611
- if(this.timer) {
1630
+ if (this.timer) {
1612
1631
  window.clearTimeout(this.timer)
1613
1632
  this.timer = null
1614
1633
  }
1615
1634
  },
1616
1635
  loaded(paper) {
1617
- if(!paper.hasOwnProperty('id')) {
1636
+ if (!paper.hasOwnProperty('id')) {
1618
1637
  this.$showMessage("该安检单在手机上已经不存在,可能是卸载过程序。可以进入重新安检,或返回安检计划。")
1619
1638
  this.init()
1620
1639
  } else {
@@ -1623,7 +1642,7 @@ export default {
1623
1642
  HostApp.__this__.$goto('safecheck-userinfo', {}, 'paper-router')
1624
1643
  // 如果打回重检则重新计时
1625
1644
  //tag
1626
- if(HostApp.__this__.role == 'inspect'
1645
+ if (HostApp.__this__.role == 'inspect'
1627
1646
  && HostApp.__this__.data.f_approved
1628
1647
  && HostApp.__this__.data.f_approved == '打回') {
1629
1648
  //tag
@@ -1635,7 +1654,7 @@ export default {
1635
1654
  HostApp.__this__ = null
1636
1655
  },
1637
1656
  S4() {
1638
- return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
1657
+ return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
1639
1658
  },
1640
1659
  extend(initalObj, finalObj) {
1641
1660
  initalObj.forEach(item2 => {
@@ -1667,7 +1686,7 @@ export default {
1667
1686
  // 创建一个新数组以避免修改原始数组
1668
1687
  const newArr = arr.map(item => {
1669
1688
  // 复制每个项目以避免直接修改它们
1670
- const newItem = { ...item };
1689
+ const newItem = {...item};
1671
1690
 
1672
1691
  // 检查外层itemname是否匹配
1673
1692
  if (newItem.itemname === itemname1 && Array.isArray(newItem.items)) {
@@ -1683,7 +1702,7 @@ export default {
1683
1702
  // 创建一个新数组以避免修改原始数组
1684
1703
  const newArr = arr.map(item => {
1685
1704
  // 复制每个项目以避免直接修改它们
1686
- const newItem = { ...item };
1705
+ const newItem = {...item};
1687
1706
 
1688
1707
  // 检查外层itemname是否匹配
1689
1708
  if (newItem.itemname === '燃气表' && Array.isArray(newItem.items)) {
@@ -1729,20 +1748,24 @@ export default {
1729
1748
  // }
1730
1749
 
1731
1750
  console.log('this.itemccc', JSON.stringify(this.item))
1732
- if(this.item.f_security_check_type_id && this.item.f_security_check_type_id != null) {
1751
+ if (this.item.f_security_check_type_id && this.item.f_security_check_type_id != null) {
1733
1752
  try {
1734
- await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeHistoryById`, {id: this.item.f_security_check_type_id})
1753
+ await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeHistoryById`, {id: this.item.f_security_check_type_id})
1735
1754
  this.f_security_check_type_id = this.serverConfig.data.id
1736
- }catch (e) {
1755
+ } catch (e) {
1737
1756
  return this.$showMessage('获取配置文件失败,请返回后重新进入!多次失败请联系管理员')
1738
1757
  }
1739
1758
  this.config = this.extend(JSON.parse(this.serverConfig.data.f_json), this.config)
1740
1759
  this.initConfig()
1741
1760
  } else {
1742
1761
  try {
1743
- await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeByType`, {f_safecheck_type: this.item.f_safecheck_type || '年度普检', f_user_type: this.item.f_user_type,f_orgid: Vue.user.orgid})
1762
+ await this.getSecurityCheckType(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/logic/getSecurityCheckTypeByType`, {
1763
+ f_safecheck_type: this.item.f_safecheck_type || '年度普检',
1764
+ f_user_type: this.item.f_user_type,
1765
+ f_orgid: Vue.user.orgid
1766
+ })
1744
1767
  this.f_security_check_type_id = this.serverConfig.data[0].id
1745
- }catch (e) {
1768
+ } catch (e) {
1746
1769
  return this.$showMessage('获取配置文件失败,请返回后重新进入!多次失败请联系管理员')
1747
1770
  }
1748
1771
  console.log('this.config1=', JSON.stringify(this.config))
@@ -1750,7 +1773,7 @@ export default {
1750
1773
  console.log('this.config2=', JSON.stringify(this.config))
1751
1774
  this.initConfig()
1752
1775
  console.log('this.config3=', JSON.stringify(this.config))
1753
- if (this.item.f_user_type == '非民用'){
1776
+ if (this.item.f_user_type == '非民用') {
1754
1777
  let res = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {
1755
1778
  data: {
1756
1779
  items: '*',
@@ -1775,11 +1798,15 @@ export default {
1775
1798
  let res = await new HttpResetClass().http('POST', url,
1776
1799
  data,
1777
1800
  {resolveMsg: null, rejectMsg: '网络异常'})
1778
- this.serverConfig = JSON.parse(res.data)
1801
+ if (typeof res === 'object') {
1802
+ this.serverConfig = res
1803
+ } else {
1804
+ this.serverConfig = JSON.parse(res)
1805
+ }
1779
1806
  },
1780
1807
  initConfig() {
1781
1808
  for (let i in this.config) {
1782
- this.tabs.splice(1,0,null)
1809
+ this.tabs.splice(1, 0, null)
1783
1810
  }
1784
1811
  for (let i in this.config) {
1785
1812
  //取得安检项索引值
@@ -1794,7 +1821,7 @@ export default {
1794
1821
  number: n
1795
1822
  }
1796
1823
 
1797
- if(this.config[i].quantity && this.config[i].quantity >0){
1824
+ if (this.config[i].quantity && this.config[i].quantity > 0) {
1798
1825
 
1799
1826
  let items = []
1800
1827
  for (let it in this.config[i].items) {
@@ -1814,10 +1841,10 @@ export default {
1814
1841
  }
1815
1842
  }
1816
1843
  }
1817
- for(let q = 0; q < this.config[i].quantity; q ++) {
1844
+ for (let q = 0; q < this.config[i].quantity; q++) {
1818
1845
  this.data['device' + n].push(
1819
1846
  {
1820
- f_device_type: this.config[i].itemname, f_items:items
1847
+ f_device_type: this.config[i].itemname, f_items: items
1821
1848
  }
1822
1849
  )
1823
1850
  }
@@ -1827,7 +1854,7 @@ export default {
1827
1854
  this.faultshow.number = this.tabs.length
1828
1855
  },
1829
1856
 
1830
- init () {
1857
+ init() {
1831
1858
  //tag
1832
1859
  // this.data.f_noplan_item_id = this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()+""+this.S4()
1833
1860
  this.data.ename = Vue.user.ename
@@ -1850,18 +1877,18 @@ export default {
1850
1877
  this.data.f_filialeid = this.item.f_filialeid
1851
1878
  this.data.f_orgstr = this.item.f_orgstr
1852
1879
  this.data.version = this.item.version
1853
- this.data.f_check_version=this.item.f_check_version
1880
+ this.data.f_check_version = this.item.f_check_version
1854
1881
  this.$set('data.f_meters', this.item.f_plan_meters)
1855
1882
  this.$set('data.f_userinfo_code', this.item.f_userinfo_code)
1856
1883
  // 安检状态
1857
- if (this.noVisit){
1884
+ if (this.noVisit) {
1858
1885
  this.$set('data.f_entry_status', '到访不遇')
1859
- }else {
1886
+ } else {
1860
1887
  this.$set('data.f_entry_status', '入户')
1861
1888
  }
1862
1889
  this.$set('data.f_usegas', '已使用')
1863
- this.$set('data.f_state',this.item.f_state)
1864
- this.$set('data.f_source', this.source?this.source:'安检')
1890
+ this.$set('data.f_state', this.item.f_state)
1891
+ this.$set('data.f_source', this.source ? this.source : '安检')
1865
1892
  //tag
1866
1893
  // 用户信息
1867
1894
  this.$set('data.f_user_name', this.item.f_user_name)
@@ -1876,7 +1903,7 @@ export default {
1876
1903
  this.$set('data.f_unit', this.item.f_unit)
1877
1904
  //tag
1878
1905
  this.$set('data.f_floor', this.item.f_floor)
1879
- this.$set('data.f_residential_area' , this.item.f_residential_area)
1906
+ this.$set('data.f_residential_area', this.item.f_residential_area)
1880
1907
  this.$set('data.f_idnumber', this.item.f_idnumber)
1881
1908
  this.$set('data.f_comments', this.item.f_comments)
1882
1909
  this.$set('data.f_userproperties', this.item.f_userproperties)
@@ -1903,15 +1930,15 @@ export default {
1903
1930
  this.data.f_check_item_id = this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4() + "" + this.S4()
1904
1931
  }
1905
1932
  //tag
1906
- if(this.item.f_plan_meters) {
1933
+ if (this.item.f_plan_meters) {
1907
1934
  for (let de in this.devices) {
1908
- if(typeof this.devices[de]=='function'){
1935
+ if (typeof this.devices[de] == 'function') {
1909
1936
  continue
1910
1937
  }
1911
1938
  this.$set('data.device' + this.devices[de].n, [])
1912
1939
  for (let i = 0; i < this.item.f_plan_meters.length; i++) {
1913
1940
  if (this.item.f_plan_meters[i].f_meter_type) {
1914
- this.data.f_meter_type=this.item.f_plan_meters[i].f_meter_type
1941
+ this.data.f_meter_type = this.item.f_plan_meters[i].f_meter_type
1915
1942
  //tag)
1916
1943
  if (this.config[this.devices[de].device].itemname == "燃气表" && this.item.f_plan_meters[i].f_meter_type.indexOf('机表') > 0) {
1917
1944
  this.data['device' + this.devices[de].n].push({
@@ -1958,7 +1985,7 @@ export default {
1958
1985
  f_device_id: "",
1959
1986
  f_is_defect: "",
1960
1987
  f_item_name: "上次表底",
1961
- f_item_value: this.item.f_plan_meters[i].f_prior_reading?this.item.f_plan_meters[i].f_prior_reading:0,
1988
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading ? this.item.f_plan_meters[i].f_prior_reading : 0,
1962
1989
  f_path: "",
1963
1990
  type: "number"
1964
1991
  },
@@ -1982,8 +2009,7 @@ export default {
1982
2009
  }
1983
2010
  ]
1984
2011
  })
1985
- }
1986
- else if (this.config[this.devices[de].device].itemname == "燃气表") {
2012
+ } else if (this.config[this.devices[de].device].itemname == "燃气表") {
1987
2013
  // delete this.config['燃气表']['items']['表底数']
1988
2014
  this.data['device' + this.devices[de].n].push({
1989
2015
  f_device_type: "燃气表",
@@ -2029,7 +2055,7 @@ export default {
2029
2055
  f_device_id: "",
2030
2056
  f_is_defect: "",
2031
2057
  f_item_name: "上次表底",
2032
- f_item_value: this.item.f_plan_meters[i].f_prior_reading?this.item.f_plan_meters[i].f_prior_reading:0,
2058
+ f_item_value: this.item.f_plan_meters[i].f_prior_reading ? this.item.f_plan_meters[i].f_prior_reading : 0,
2033
2059
  f_path: "",
2034
2060
  type: "number"
2035
2061
  },
@@ -2302,27 +2328,27 @@ export default {
2302
2328
  }
2303
2329
  }
2304
2330
  var pardate = {
2305
- _this:this,
2306
- tittle:'安检详情',
2307
- safe:true
2331
+ _this: this,
2332
+ tittle: '安检详情',
2333
+ safe: true
2308
2334
  }
2309
2335
  // this.$dispatch('gotoson',pardate)
2310
2336
  //tag
2311
- this.$goto('safecheck-userinfo', {userinfo:this.data, noVisit: this.noVisit}, 'repair')
2337
+ this.$goto('safecheck-userinfo', {userinfo: this.data, noVisit: this.noVisit}, 'repair')
2312
2338
  },
2313
2339
  sealBindBack(sealUID) {
2314
- if (sealUID){
2340
+ if (sealUID) {
2315
2341
  this.$set('data.f_seal_uid', sealUID)
2316
2342
  }
2317
2343
  }
2318
2344
  },
2319
2345
  watch: {
2320
- 'row' () {
2346
+ 'row'() {
2321
2347
  //tag
2322
2348
  this.copy()
2323
2349
  }
2324
2350
  },
2325
- async ready () {
2351
+ async ready() {
2326
2352
  this.startTime = Util.toStandardTimeString()
2327
2353
  //送气超期功能
2328
2354
  await this.putDevices()
@@ -2367,7 +2393,7 @@ export default {
2367
2393
  this.config = this.removeByCollectionType(this.config, this.data.f_collection_type)
2368
2394
  if (value.data[0].f_devices) {
2369
2395
  for (let da in that.devices) {
2370
- if(typeof that.devices[da]=='function'){
2396
+ if (typeof that.devices[da] == 'function') {
2371
2397
  continue
2372
2398
  }
2373
2399
  that.$set('data.device' + that.devices[da].n, [])
@@ -2375,7 +2401,7 @@ export default {
2375
2401
  value.data[0].f_devices.forEach((item) => {
2376
2402
  //tag)
2377
2403
  for (let i in item.f_items) {
2378
- if(typeof item.f_items[i]=='function'){
2404
+ if (typeof item.f_items[i] == 'function') {
2379
2405
  continue
2380
2406
  }
2381
2407
  // item.f_device_type 燃气表
@@ -2384,7 +2410,7 @@ export default {
2384
2410
  // for (let de in that.config[item.f_device_type].items) {
2385
2411
  let items = this.config.find(obj => obj.itemname === item.f_device_type).items;
2386
2412
  for (let de in items) {
2387
- if(typeof items[de]=='function'){
2413
+ if (typeof items[de] == 'function') {
2388
2414
  continue
2389
2415
  }
2390
2416
  if (item.f_items[i].f_item_name == items[de].itemname) {
@@ -2398,7 +2424,7 @@ export default {
2398
2424
  }
2399
2425
  }
2400
2426
  for (let de in that.devices) {
2401
- if(typeof that.devices[de]=='function'){
2427
+ if (typeof that.devices[de] == 'function') {
2402
2428
  continue
2403
2429
  }
2404
2430
  // if (that.devices[de].device == item.f_device_type) {
@@ -2424,7 +2450,7 @@ export default {
2424
2450
  }
2425
2451
  let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2426
2452
  if (isRecodr) {
2427
- if (isRecodr=='true') {
2453
+ if (isRecodr == 'true') {
2428
2454
  // this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2429
2455
  // 初始化录音
2430
2456
  let resse = this.record()
@@ -2434,22 +2460,22 @@ export default {
2434
2460
  this.$set('data.f_rated_traffic', this.item.f_rated_traffic)
2435
2461
  //tag
2436
2462
  var pardate = {
2437
- _this:this,
2438
- tittle:'安检详情',
2439
- safe:true
2463
+ _this: this,
2464
+ tittle: '安检详情',
2465
+ safe: true
2440
2466
  }
2441
2467
  // this.$dispatch('gotoson',pardate)getImgPath
2442
- this.$goto('safecheck-userinfo', {userinfo:this.data, noVisit: this.noVisit}, 'repair')
2468
+ this.$goto('safecheck-userinfo', {userinfo: this.data, noVisit: this.noVisit}, 'repair')
2443
2469
  } else {
2444
2470
  let that = this
2445
2471
  let id
2446
2472
  if (this.role == 'view') {
2447
2473
  id = this.item.id
2448
2474
  }
2449
- this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data:{condition:`id = '${id}'`}}).then((respanse)=> {
2475
+ this.$resetpost(`${this.$androidUtil.getProxyUrl()}/rs/path/getUserinfomation`, {data: {condition: `id = '${id}'`}}).then((respanse) => {
2450
2476
  if (respanse.data.length != 0) {
2451
- that.data = Object.assign(that.data,respanse.data[0])
2452
- if(respanse.data[0].f_devices) {
2477
+ that.data = Object.assign(that.data, respanse.data[0])
2478
+ if (respanse.data[0].f_devices) {
2453
2479
  for (let da in that.devices) {
2454
2480
  that.$set('data.device' + that.devices[da].n, [])
2455
2481
  }
@@ -2466,10 +2492,10 @@ export default {
2466
2492
  }
2467
2493
  Util.replaceFalse(that.data)
2468
2494
  Util.booleanFilter(that.data)
2469
- if(this.role == 'view'){
2495
+ if (this.role == 'view') {
2470
2496
  Util.ratifyPics(that.data)
2471
- }else{
2472
- Util.androidRatifyPics(that.data,this.$androidUtil.getProxyUrl())
2497
+ } else {
2498
+ Util.androidRatifyPics(that.data, this.$androidUtil.getProxyUrl())
2473
2499
  }
2474
2500
  //tag
2475
2501
  } else {
@@ -2479,22 +2505,22 @@ export default {
2479
2505
  this.$set('data.f_seal_uid', this.item.f_seal_uid)
2480
2506
  this.$set('data.f_rated_traffic', this.item.f_rated_traffic)
2481
2507
  var pardate = {
2482
- _this:this,
2483
- tittle:'安检详情',
2484
- safe:true
2508
+ _this: this,
2509
+ tittle: '安检详情',
2510
+ safe: true
2485
2511
  }
2486
2512
  // this.$dispatch('gotoson',pardate)
2487
- this.$goto('safecheck-userinfo', {userinfo:this.data, noVisit: this.noVisit}, 'paper-router')
2513
+ this.$goto('safecheck-userinfo', {userinfo: this.data, noVisit: this.noVisit}, 'paper-router')
2488
2514
  }
2489
2515
  ).catch(
2490
2516
  (respanse) => {
2491
2517
  alert('查找安检单失败')
2492
2518
  })
2493
2519
  }
2494
- }else{
2520
+ } else {
2495
2521
  let isRecodr = this.$appdata.getSingleValue('无限制录音'); //单值参数,为true则是开启全程录音
2496
2522
  if (isRecodr) {
2497
- if (isRecodr=='true') {
2523
+ if (isRecodr == 'true') {
2498
2524
  // this.$showMessage("为了保证服务质量,您的电话将会被全程录音!")
2499
2525
  // 初始化录音
2500
2526
  let resse = this.record()
@@ -2529,20 +2555,21 @@ export default {
2529
2555
  },
2530
2556
  'toSealBind': function () {
2531
2557
  console.log("bind====")
2532
- new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, {data: {
2558
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getSealInfo`, {
2559
+ data: {
2533
2560
  condition: `ui.f_userinfo_id = ${this.data.f_userinfoid}`
2534
2561
  }
2535
2562
  }, {resolveMsg: null, rejectMsg: '网络异常'}).then((res) => {
2536
2563
  console.log('res=', JSON.stringify(res))
2537
- if (res.data.length){
2564
+ if (res.data.length) {
2538
2565
  var pardate = {
2539
2566
  _this: this,
2540
- title:'铅封绑定',
2541
- safe:true
2567
+ title: '铅封绑定',
2568
+ safe: true
2542
2569
  }
2543
- this.$dispatch('gotoson',pardate)
2570
+ this.$dispatch('gotoson', pardate)
2544
2571
  this.$goto('seal-bind', {row: res.data[0]}, 'self', this.sealBindBack)
2545
- }else {
2572
+ } else {
2546
2573
  this.$showMessage("未查询到该用户信息!")
2547
2574
  }
2548
2575
  })
@@ -2552,9 +2579,11 @@ export default {
2552
2579
  </script>
2553
2580
  <style lang="less">
2554
2581
  @import "../../../bootstrap/less/variables.less";
2582
+
2555
2583
  .noclickbut {
2556
2584
  pointer-events: none;
2557
2585
  }
2586
+
2558
2587
  .tab-befor-img (@url) {
2559
2588
  content: '';
2560
2589
  background-image: url("@{url}");
@@ -2573,16 +2602,19 @@ export default {
2573
2602
  margin: 0.3em 0;
2574
2603
  }
2575
2604
  }
2576
- .repair-details-class{
2605
+
2606
+ .repair-details-class {
2577
2607
  &::before {
2578
2608
  .tab-befor-img("../../../assets/huneiweixiu1.png");
2579
2609
  }
2580
2610
  }
2611
+
2581
2612
  .repair-info-class {
2582
2613
  &::before {
2583
2614
  .tab-befor-img("../../../assets/baoxiuxinxi1.png");
2584
2615
  }
2585
2616
  }
2617
+
2586
2618
  .repair-user-info-class {
2587
2619
  &::before {
2588
2620
  .tab-befor-img("../../../assets/jibenxinxi1.png")
@@ -2630,11 +2662,13 @@ export default {
2630
2662
  .tab-befor-img("../../../assets/guzhanghuizong1.png")
2631
2663
  }
2632
2664
  }
2665
+
2633
2666
  .photo-write-class {
2634
2667
  &::before {
2635
2668
  .tab-befor-img("../../../assets/zaoju.png")
2636
2669
  }
2637
2670
  }
2671
+
2638
2672
  .delay-apply-class {
2639
2673
  &::before {
2640
2674
  .tab-befor-img("../../../assets/yonghubaoxiu.png")
@@ -2646,44 +2680,49 @@ export default {
2646
2680
  .tab-befor-img("../../../assets/fanhui.png")
2647
2681
  }
2648
2682
  }
2683
+
2649
2684
  .butt2 {
2650
2685
  display: inline;
2651
2686
  float: right;
2652
2687
  width: 10px;
2653
2688
  text-align: center;
2654
- align-items:center;
2689
+ align-items: center;
2655
2690
  position: absolute;
2656
- top:50%;
2691
+ top: 50%;
2657
2692
 
2658
- left:90%;
2659
- transform: translate(-50%,-50%);
2693
+ left: 90%;
2694
+ transform: translate(-50%, -50%);
2660
2695
  }
2661
- .linesty{
2696
+
2697
+ .linesty {
2662
2698
  display: inline-block;
2663
- height:1px;
2664
- width:100%;
2665
- background:#d0d0d0;
2666
- overflow:hidden;
2699
+ height: 1px;
2700
+ width: 100%;
2701
+ background: #d0d0d0;
2702
+ overflow: hidden;
2667
2703
  vertical-align: middle;
2668
2704
  }
2669
- .spanboder{
2670
- border-bottom:2px solid #499edf;
2705
+
2706
+ .spanboder {
2707
+ border-bottom: 2px solid #499edf;
2671
2708
  padding-bottom: 8px
2672
2709
  }
2710
+
2673
2711
  .app-botton {
2674
- position:fixed;
2712
+ position: fixed;
2675
2713
  background: #87b2dd;
2676
- right:8px;
2714
+ right: 8px;
2677
2715
  color: #FFF;
2678
2716
  padding: 8px;
2679
2717
  text-align: center;
2680
2718
  font-size: 1.2em;
2681
2719
  z-index: 10;
2682
- opacity:0.5;
2720
+ opacity: 0.5;
2683
2721
  bottom: 50px;
2684
2722
  margin-top: -10px;
2685
2723
  height: 40px;
2686
2724
  }
2725
+
2687
2726
  .android-repair-order > div > ul a {
2688
2727
  font-size: 12px;
2689
2728
  color: #333333;