safecheck-client 4.0.0-67 → 4.0.0-69

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 (245) 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/GetParams.md +11 -11
  15. package/docs/HttpBusy.md +13 -13
  16. package/docs/HttpStore.md +29 -29
  17. package/docs/MessageBox.md +28 -28
  18. package/docs/PagedList.md +29 -29
  19. package/docs/Pager.md +21 -21
  20. package/docs/Project.md +23 -23
  21. package/docs/Route.md +105 -105
  22. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  23. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  24. package/docs/Task.md +46 -46
  25. package/docs/TreeList.md +28 -28
  26. package/docs/TreeMixin.md +18 -18
  27. package/docs/all.md +10 -10
  28. package/docs/list.md +42 -42
  29. package/docs/partial.md +75 -75
  30. package/docs/selector.md +82 -82
  31. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  32. 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
  33. 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
  34. 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
  35. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  36. package/examples/AddressList/App.vue +13 -13
  37. package/examples/AddressList/index.html +11 -11
  38. package/examples/DispatchList/App.vue +10 -10
  39. package/examples/DispatchList/BaseTree.vue +13 -13
  40. package/examples/DispatchList/Init.vue +22 -22
  41. package/examples/DispatchList/Test.vue +20 -20
  42. package/examples/DispatchList/index.html +11 -11
  43. package/examples/DispatchList/main.js +18 -18
  44. package/home.html +16 -16
  45. package/package.json +132 -132
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/Widget.vue +13 -13
  49. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  50. package/src/android-bootstrap/less/.csscomb.json +304 -304
  51. package/src/android-bootstrap/less/.csslintrc +19 -19
  52. package/src/android-bootstrap/less/alerts.less +73 -73
  53. package/src/android-bootstrap/less/badges.less +66 -66
  54. package/src/android-bootstrap/less/bootstrap.less +56 -56
  55. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  56. package/src/android-bootstrap/less/button-groups.less +247 -247
  57. package/src/android-bootstrap/less/buttons.less +173 -173
  58. package/src/android-bootstrap/less/carousel.less +269 -269
  59. package/src/android-bootstrap/less/close.less +34 -34
  60. package/src/android-bootstrap/less/code.less +69 -69
  61. package/src/android-bootstrap/less/component-animations.less +33 -33
  62. package/src/android-bootstrap/less/grid.less +84 -84
  63. package/src/android-bootstrap/less/input-groups.less +167 -167
  64. package/src/android-bootstrap/less/jumbotron.less +52 -52
  65. package/src/android-bootstrap/less/labels.less +64 -64
  66. package/src/android-bootstrap/less/list-group.less +141 -141
  67. package/src/android-bootstrap/less/media.less +66 -66
  68. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  69. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  70. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  71. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  72. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  73. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  74. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  75. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  76. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  77. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  78. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  79. package/src/android-bootstrap/less/mixins/image.less +33 -33
  80. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  81. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  82. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  83. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  84. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  85. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  86. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  87. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  88. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  89. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  90. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  91. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  92. package/src/android-bootstrap/less/mixins/size.less +10 -10
  93. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  94. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  95. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  96. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  97. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  98. package/src/android-bootstrap/less/mixins.less +40 -40
  99. package/src/android-bootstrap/less/modals.less +151 -151
  100. package/src/android-bootstrap/less/navbar.less +660 -660
  101. package/src/android-bootstrap/less/navs.less +290 -290
  102. package/src/android-bootstrap/less/normalize.less +424 -424
  103. package/src/android-bootstrap/less/pager.less +76 -76
  104. package/src/android-bootstrap/less/pagination.less +89 -89
  105. package/src/android-bootstrap/less/panels.less +274 -274
  106. package/src/android-bootstrap/less/popovers.less +131 -131
  107. package/src/android-bootstrap/less/print.less +101 -101
  108. package/src/android-bootstrap/less/progress-bars.less +87 -87
  109. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  110. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  111. package/src/android-bootstrap/less/scaffolding.less +161 -161
  112. package/src/android-bootstrap/less/tables.less +262 -262
  113. package/src/android-bootstrap/less/theme.less +291 -291
  114. package/src/android-bootstrap/less/thumbnails.less +36 -36
  115. package/src/android-bootstrap/less/tooltip.less +102 -102
  116. package/src/android-bootstrap/less/type.less +303 -303
  117. package/src/android-bootstrap/less/utilities.less +55 -55
  118. package/src/android-bootstrap/less/variables.less +896 -896
  119. package/src/android-bootstrap/less/wells.less +29 -29
  120. package/src/bootstrap/less/.csscomb.json +304 -304
  121. package/src/bootstrap/less/.csslintrc +19 -19
  122. package/src/bootstrap/less/alerts.less +73 -73
  123. package/src/bootstrap/less/badges.less +66 -66
  124. package/src/bootstrap/less/breadcrumbs.less +26 -26
  125. package/src/bootstrap/less/button-groups.less +247 -247
  126. package/src/bootstrap/less/buttons.less +172 -172
  127. package/src/bootstrap/less/carousel.less +269 -269
  128. package/src/bootstrap/less/close.less +34 -34
  129. package/src/bootstrap/less/code.less +69 -69
  130. package/src/bootstrap/less/component-animations.less +33 -33
  131. package/src/bootstrap/less/dropdowns.less +216 -216
  132. package/src/bootstrap/less/grid.less +84 -84
  133. package/src/bootstrap/less/input-groups.less +167 -167
  134. package/src/bootstrap/less/jumbotron.less +52 -52
  135. package/src/bootstrap/less/labels.less +64 -64
  136. package/src/bootstrap/less/list-group.less +141 -141
  137. package/src/bootstrap/less/media.less +66 -66
  138. package/src/bootstrap/less/mixins/alerts.less +14 -14
  139. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  140. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  141. package/src/bootstrap/less/mixins/buttons.less +69 -69
  142. package/src/bootstrap/less/mixins/center-block.less +7 -7
  143. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  144. package/src/bootstrap/less/mixins/forms.less +90 -90
  145. package/src/bootstrap/less/mixins/gradients.less +59 -59
  146. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  147. package/src/bootstrap/less/mixins/grid.less +122 -122
  148. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  149. package/src/bootstrap/less/mixins/image.less +33 -33
  150. package/src/bootstrap/less/mixins/labels.less +12 -12
  151. package/src/bootstrap/less/mixins/list-group.less +30 -30
  152. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  153. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  154. package/src/bootstrap/less/mixins/opacity.less +8 -8
  155. package/src/bootstrap/less/mixins/pagination.less +24 -24
  156. package/src/bootstrap/less/mixins/panels.less +24 -24
  157. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  158. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  159. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  160. package/src/bootstrap/less/mixins/resize.less +6 -6
  161. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  162. package/src/bootstrap/less/mixins/size.less +10 -10
  163. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  164. package/src/bootstrap/less/mixins/table-row.less +44 -44
  165. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  166. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  167. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  168. package/src/bootstrap/less/mixins.less +40 -40
  169. package/src/bootstrap/less/modals.less +151 -151
  170. package/src/bootstrap/less/navbar.less +660 -660
  171. package/src/bootstrap/less/normalize.less +424 -424
  172. package/src/bootstrap/less/pagination.less +89 -89
  173. package/src/bootstrap/less/panels.less +275 -275
  174. package/src/bootstrap/less/popovers.less +131 -131
  175. package/src/bootstrap/less/print.less +101 -101
  176. package/src/bootstrap/less/progress-bars.less +87 -87
  177. package/src/bootstrap/less/responsive-embed.less +35 -35
  178. package/src/bootstrap/less/responsive-utilities.less +194 -194
  179. package/src/bootstrap/less/scaffolding.less +161 -161
  180. package/src/bootstrap/less/theme.less +291 -291
  181. package/src/bootstrap/less/thumbnails.less +36 -36
  182. package/src/bootstrap/less/tooltip.less +102 -102
  183. package/src/bootstrap/less/type.less +303 -303
  184. package/src/bootstrap/less/utilities.less +55 -55
  185. package/src/bootstrap/less/wells.less +29 -29
  186. package/src/components/FileUpload.vue +696 -696
  187. package/src/components/Hello.vue +39 -39
  188. package/src/components/LeftTree.vue +27 -27
  189. package/src/components/android/AttendanceTally.vue +116 -116
  190. package/src/components/android/Blank.vue +10 -10
  191. package/src/components/android/CheckUnplanPage.vue +56 -56
  192. package/src/components/android/Checker.vue +12 -12
  193. package/src/components/android/CheckerAnnual.vue +81 -81
  194. package/src/components/android/CheckerAvarta.vue +82 -82
  195. package/src/components/android/EquipmentInspection.vue +348 -348
  196. package/src/components/android/FootprintMap.vue +120 -120
  197. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  198. package/src/components/android/MasterMain.vue +77 -77
  199. package/src/components/android/Menu.vue +132 -132
  200. package/src/components/android/PaperAlarm.vue +85 -85
  201. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  202. package/src/components/android/PaperFeedback.vue +1541 -1541
  203. package/src/components/android/PlumberAnnual.vue +83 -83
  204. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  205. package/src/components/android/PlumberMonthly.vue +84 -84
  206. package/src/components/android/PostMap.vue +83 -83
  207. package/src/components/android/QueryCheckHistory.vue +122 -122
  208. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  209. package/src/components/android/RepairMain.vue +60 -60
  210. package/src/components/android/Repairman.vue +12 -12
  211. package/src/components/android/StationMaster.vue +12 -12
  212. package/src/components/defects/DefectModal.vue +101 -101
  213. package/src/components/defects/DevicesAndItem.vue +39 -39
  214. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  215. package/src/components/notice/NoticeForm.vue +100 -100
  216. package/src/components/notice/NoticeIssue.vue +20 -20
  217. package/src/components/paper/PicViewer.vue +18 -18
  218. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  219. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  220. package/src/components/phonestate/PostMap.vue +82 -82
  221. package/src/components/planmanage/checkPlanList.vue +396 -368
  222. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  223. package/src/components/userfile/MeterFile.vue +145 -145
  224. package/src/components/userfile/MeterModify.vue +46 -46
  225. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  226. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +4 -3
  227. package/src/filiale/jinhong/pc/CheckPlanAreaList.vue +511 -511
  228. package/src/filiale/jinhong/pc/CheckSearchUser.vue +1094 -1094
  229. package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -1100
  230. package/src/filiale/jinhong/pc/PlanManage.vue +891 -891
  231. package/src/filiale/jinhong/pc/checkUserList.vue +1 -1
  232. package/src/filiale/jinhong/pc.js +11 -11
  233. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2848 -2848
  234. package/src/plugins/LoadData.js +10 -10
  235. package/src/plugins/LoadParams.js +24 -24
  236. package/src/stores/wxconfig.js +10 -10
  237. package/src/utils/getNowDate.js +33 -33
  238. package/test/e2e/custom-assertions/elementCount.js +26 -26
  239. package/test/e2e/nightwatch.conf.js +40 -40
  240. package/test/e2e/runner.js +30 -30
  241. package/test/e2e/specs/test.js +13 -13
  242. package/test/unit/.eslintrc +5 -5
  243. package/test/unit/TestUtil.js +62 -62
  244. package/test/unit/context.html +20 -20
  245. package/test/unit/index.js +13 -13
@@ -1,1541 +1,1541 @@
1
- <template>
2
- <form novalidate class="form-horizontal" style="width: 95%;margin: auto">
3
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
4
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
5
- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
6
- <div class="col-md-12 col-sm-12 col-xs-12">
7
- <textarea v-model="paper.f_repair_approved_note" class="form-control"></textarea>
8
- </div>
9
- </div>
10
- </div>
11
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
12
- <div class="text-center">
13
- <label class="font">总体安检照片请依次拍摄:</label>
14
- </div>
15
- <div class="col-md-12 col-sm-12 col-xs-12">
16
- <ol class="showIi">
17
- <li>1.燃气设施全景</li>
18
- <li>2.燃气表照片</li>
19
- <li>3.灶具照片</li>
20
- <li>4.其他照片</li>
21
- </ol>
22
- </div>
23
- </div>
24
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
25
- <label class="text-left font">总体安检照片</label>
26
-
27
- <div class="auto" :class="style__">
28
- <div class="panel" style="padding: 10px 10px 5px 10px;">
29
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
30
- <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
31
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in paper.f_overall_imgs">
32
- <img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></img-self>
33
- <img src="../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">
34
- </div>
35
- </div>
36
- <div class="row text-right div-photo">
37
- <button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '总体安检照片')">拍照</button>
38
- <button v-if="isalbum" type="button" name="button" class="btn btn-photo" @click="selectPicture()">相册</button>
39
- <!--<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_overall_path', '总体安检照片1')">拍照</button>-->
40
- <!--&nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_overall_path', img.f_overall_path)" style="width: 25%;"></img>-->
41
- </div>
42
- </div>
43
- </div>
44
- </div>
45
- </div>
46
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__" v-if="isvideo == 'true'">
47
- <label class="text-left font">安检视频</label>
48
-
49
- <div class="auto" :class="style__">
50
- <div class="panel" style="padding: 10px 10px 5px 10px;">
51
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
52
- <div class="row">
53
- <video width="320" height="200" controls v-if="paper.f_video_path">
54
- <source :src="paper.f_video_path" type="video/mp4">
55
- </video>
56
- </div>
57
- <div class="row text-right div-photo">
58
- <button type="button" name="button" class="btn btn-photo" @click="takeVideo()">拍摄</button>
59
- </div>
60
- </div>
61
- </div>
62
- </div>
63
- </div>
64
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
65
- <label class="text-left font">总体隐患照片</label>
66
- <div class="auto" :class="style__">
67
- <div class="panel" style="padding: 10px 10px 5px 10px;">
68
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
69
- <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
70
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
71
- <img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></img-self>
72
- <!-- <img src="../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">-->
73
- </div>
74
- </div>
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
80
- <div class="text-center">
81
- <label class="font">隐患汇总:</label>
82
- </div>
83
- <div class="col-md-12 col-sm-12 col-xs-12">
84
- <ol class="showIi">
85
- <li v-for="item in defectReason">{{ item.deviceitem }}</li>
86
- </ol>
87
- </div>
88
- </div>
89
- <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
90
- <div class="text-center">
91
- <label class="font">整改建议汇总:</label>
92
- </div>
93
- <div class="col-md-12 col-sm-12 col-xs-12">
94
- <ol class="showIi">
95
- <li v-for="item in defectToolTip">{{ item }}</li>
96
- </ol>
97
- </div>
98
- </div>
99
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
100
- <input type="checkbox" v-model="paper.f_read_instructions"/><label class="text-left font">我已阅读须知内容</label>
101
-
102
- </div>
103
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
104
- <label class="text-left font">用户签名</label>
105
- <div class="auto">
106
- <div class="panel">
107
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
108
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
109
- <div class="col-sm-4">
110
- <img :class="style__" :src="paper.f_sign_path" :width="200" :height="150" />
111
- </div>
112
- </div>
113
- <div class="row text-right div-photo">
114
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
115
- </div>
116
- </div>
117
- </div>
118
- </div>
119
- </div>
120
- <div class="form-group col-sm-12 col-xs-12 col-md-12 " :style="timeSet(this.isneedDate)?'':'display:none'">
121
- <label>请输入超期原因:</label><br/>
122
- <textarea style="width: 100%;" v-model="paper.f_exceed_reason"></textarea>
123
- </div>
124
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-show="showbacklist=='是'">
125
- <div class="col-xs-6 col-sm-6">
126
- <input type="checkbox" v-model="backlistisselect" :readonly="enabled"/><label class="text-left font" >限制该用户购气</label>
127
- </div>
128
- <div class="col-xs-6 col-sm-6">
129
- <input type="checkbox" v-model="deletebacklistisselect" :readonly="deleteenabled"/><label class="text-left font" >取消限制该用户购气</label>
130
- </div>
131
- </div>
132
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-if="Vue.$appdata.getParam('安检天然气安全使用须知检查')=='是'">
133
- <div class="col-xs-12 col-sm-12">
134
- <input type="checkbox" v-model="paper.f_gas_guidelines" /><label class="text-left font" >天然气安全使用须知</label>
135
- </div>
136
- <div class="col-xs-12 col-sm-12">
137
- <input type="checkbox" v-model="paper.f_safety_warning" /><label class="text-left font" >天然气室内使用安全警示</label>
138
- </div>
139
- <div class="col-xs-12 col-sm-12">
140
- <input type="checkbox" v-model="paper.f_gas_manual" /><label class="text-left font" >安全用气手册</label>
141
- </div>
142
- </div>
143
- <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
144
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
145
- <input type="checkbox" v-model="paper.f_defect_notified" class="showIi" />安检通知书/隐患整改通知书
146
- </div>
147
- <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="paper.f_defect_notified">
148
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
149
- <button type="button" @click="print()">打印隐患整改单</button>
150
- </div>
151
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
152
- <label class="text-left font">安检通知书/隐患整改通知书照片(要求能清晰反应安检通知单和用户签字内容):</label>
153
- <div class="auto" >
154
- <div class="panel" style="padding: 10px 10px 5px 10px;">
155
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
156
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
157
- <div class="col-sm-4">
158
- <img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
159
- </div>
160
- </div>
161
- <div class="row text-right div-photo">
162
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照</button>
163
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../assets/remove.png" :class="style__" @click="delfile('f_notified_path', this.paper.f_notified_path)" style="width: 25%;"></img>
164
- </div>
165
- </div>
166
- </div>
167
- </div>
168
- </div>
169
- </div>
170
- <div class="form-group col-md-12 col-sm-12 col-xs-12">
171
- <div class="row">
172
- <label class="text-left">请对我们的服务做出评价:</label>
173
- </div>
174
- <div class="col-xs-4 col-sm-4" v-for="item in radios">
175
- <input v-model="paper.f_client_evaluation" :value="item.label" :checked='item.isChecked' @click="check(item.value)" type="radio">{{item.label}}
176
- </div>
177
-
178
- <!--<div class="col-sm-4">-->
179
- <!--<radio-group :value.sync="paper.f_client_evaluation" type="success" buttons="false">-->
180
- <!--<radio value="满意">满意</radio>-->
181
- <!--<radio value="基本满意">基本满意</radio>-->
182
- <!--<radio value="不满意">不满意</radio>-->
183
- <!--</radio-group>-->
184
- <!--</div>-->
185
- </div>
186
-
187
- <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="isRecodr=='false'">
188
- <label class="text-left font">反馈录音:</label>
189
- <div class="col-md-12 col-sm-12 col-xs-12">
190
- <button type="button" name="button" class="btn btn-primary btn-voice" @click="record">
191
- <img src="../../assets/录音.png" style="width: 14%;">
192
- <span v-if="!paper.f_recording1_path">开始录音</span>
193
- <span v-if="paper.f_recording1_path">已录音</span>
194
- </button>
195
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../assets/remove.png" style="width: 15px;" :class="style__" @click="delAudioFile('f_recording1_path', paper.f_recording1_path)"></img>
196
- </div>
197
- </div>
198
-
199
- <div v-if="false">
200
- <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
201
- <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' &&(paper.f_complete != '已完成' || paper.back_f_entry_status != '入户') " class="btn save-btn" @click="$parent.$parent.save('temp')">临时保存</button>
202
- <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn save-btn " @click="$parent.$parent.save('finish')">完成安检</button>
203
- </div>
204
- <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
205
- <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" id="upload" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn upload-btn " @click="$parent.$parent.uploadCheckPaper" >上传</button>
206
- <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" v-if="(safeCheckToRepair == true || safeCheckToRepair == 'true') && $parent.$parent.actionEnabled" class="btn repair-btn btn-warning " type="button" @click="showToRepair">转维修</button> </div>
207
- </div>
208
-
209
- </div>
210
- </form>
211
- <!-- <modal :show.sync="showCheckToRepair" v-ref:modal :backdrop="isback">-->
212
- <!-- <div slot="modal-header" class="modal-header">-->
213
- <!-- <h4 class="modal-title">-->
214
- <!-- 安检转维修-->
215
- <!-- </h4>-->
216
- <!-- </div>-->
217
- <!-- <div slot="modal-body" class="modal-body">-->
218
- <!-- <div v-if="showrepair">-->
219
- <!-- <div class="row">-->
220
- <!-- <label class="col-xs-4 col-md-4 control-label text-left">派单方式</label>-->
221
- <!-- <div class="col-xs-8 col-md-8">-->
222
- <!-- <label v-for="handling1 in handling" >-->
223
- <!-- <input type="radio"-->
224
- <!-- v-model="meading"-->
225
- <!-- value="{{handling1.label}}">-->
226
- <!-- {{handling1.label}}-->
227
- <!-- </label>-->
228
- <!-- </div>-->
229
- <!-- </div>-->
230
- <!-- <div class="row" v-if="meading == '转站点'">-->
231
- <!-- <label class="col-xs-4 col-md-4 control-label font text-left" for="f_reciever">站点</label>-->
232
- <!-- &lt;!&ndash;<input type="text" v-show="false" v-model="serviceacitivity.f_reciever"&ndash;&gt;-->
233
- <!-- &lt;!&ndash;v-validate:f_reciever='{ required: true }'>&ndash;&gt;-->
234
- <!-- <div class="col-xs-8 col-md-8">-->
235
- <!-- <right-tree @ready="onReady" islist :Url="Url" :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>-->
236
- <!-- </right-tree>-->
237
- <!-- </div>-->
238
- <!-- </div>-->
239
-
240
- <!-- <div class="row" style="margin-top: 6px" v-if="meading == '转维修员'">-->
241
- <!-- <label class="col-xs-4 col-md-4 control-label font text-left">维修人</label>-->
242
- <!-- <div class="col-xs-8">-->
243
- <!-- <v-select :value="$parent.$parent.model.serviceacitivity[0].f_reciever" :value-single="true"-->
244
- <!-- :options='f_repair_person' placeholder='请选择维修员'-->
245
- <!-- close-on-select v-on:change="repiarmancg"></v-select>-->
246
- <!-- </div>-->
247
-
248
- <!-- </div>-->
249
- <!-- <div class="row" style="margin-top: 6px">-->
250
- <!-- <label for="f_repair" class="col-xs-4 col-md-4 control-label font text-left">报修类型</label>-->
251
- <!-- <div class="col-xs-8 col-md-8">-->
252
- <!-- <v-select :value.sync="$parent.$parent.model.f_repairtype" :value-single="true"-->
253
- <!-- :options='repairstypes' placeholder='报修类型'-->
254
- <!-- close-on-select>-->
255
- <!-- </v-select>-->
256
- <!-- </div>-->
257
- <!-- </div>-->
258
-
259
- <!-- <div class="row" style="margin-top: 6px">-->
260
- <!-- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>-->
261
- <!-- <div class="col-xs-8 col-md-8">-->
262
- <!-- <input type="text" v-model="$parent.$parent.model.f_remarks"/>-->
263
- <!-- </div>-->
264
-
265
- <!-- </div>-->
266
-
267
- <!-- </div>-->
268
- <!-- <div v-if="!showrepair">-->
269
- <!-- 暂无隐患设备信息-->
270
- <!-- </div>-->
271
- <!-- </div>-->
272
- <!-- <div slot="modal-footer" class="modal-footer">-->
273
- <!-- <button type="button" class="btn btn-default" @click="uploadPaper()">确定</button>-->
274
- <!-- <button type="button" class="btn btn-default" @click="undo()">取消</button>-->
275
- <!-- </div>-->
276
- <!-- </modal>-->
277
- <!--拉黑框-->
278
- <modal :show.sync="showmodel" v-ref:modal>
279
- <div slot="modal-header" class="modal-header">
280
- <h4 class="modal-title">
281
- 限制用户购气
282
- </h4>
283
- </div>
284
- <div slot="modal-body" class="modal-body">
285
- <!-- <div class="row" style="margin-top: 6px">-->
286
- <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
287
- <!-- </div>-->
288
- <div class="row" style="margin-top: 6px">
289
- <textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入限制用户购气原因" >
290
- </textarea>
291
- </div>
292
- </div>
293
- <div slot="modal-footer" class="modal-footer">
294
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlist()">确认</button>
295
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
296
- </div>
297
- </modal>
298
-
299
- <modal :show.sync="showmodelthree" v-ref:modal>
300
- <div slot="modal-header" class="modal-header">
301
- <h4 class="modal-title">
302
- 取消限制用户购气
303
- </h4>
304
- </div>
305
- <div slot="modal-body" class="modal-body">
306
- <!-- <div class="row" style="margin-top: 6px">-->
307
- <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
308
- <!-- </div>-->
309
- <div class="row" style="margin-top: 6px">
310
- <textarea id="el_ca_txt" v-model.trim="deletecause" style="border-radius:4px;width: 100%;" placeholder="请输入取消限制用户购气原因" >
311
- </textarea>
312
- </div>
313
- </div>
314
- <div slot="modal-footer" class="modal-footer">
315
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletebacklist()">确认</button>
316
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
317
- </div>
318
- </modal>
319
- <modal :show.sync="showgas && showgasmodel" v-ref:modal>
320
- <div slot="modal-header" class="modal-header">
321
- <h4 class="modal-title">
322
- 用户须知
323
- </h4>
324
- </div>
325
- <div slot="modal-body" class="modal-body">
326
- <div class="row" style="margin-top: 6px">
327
- <sapn>{{ gasinstructions ? gasinstructions : '请配置用户须知' }}</sapn>
328
- </div>
329
- </div>
330
- <div slot="modal-footer" class="modal-footer">
331
- <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="closeshowgas()">确认</button>
332
- </div>
333
- </modal>
334
- </template>
335
-
336
- <script>
337
- import Vue from 'vue'
338
- import * as Util from '../Util'
339
- import { HttpResetClass } from 'vue-client'
340
- import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
341
- import Radio from 'vue-client/src/vue-strap/src/radioBtn'
342
- import co from 'co'
343
-
344
- // let getRepairParam = function * (self){
345
- // let data = {
346
- // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
347
- // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
348
- // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
349
- // }, user: self.user, callObj: self.callObj
350
- // }
351
- // if(self.$parent.$parent.meading == '转维修员'){
352
- // data.toRepair = '一级派单'
353
- // }
354
- // data.$parent.$parent.model.f_attendant = data.loginUser.name
355
- // ////tag
356
- // ////tag
357
- // let res
358
- // let errString = self.$parent. $parent.errorVerify()
359
- // if(errString){
360
- // ////tag
361
- // if (Vue.android)
362
- // self.undo()
363
- // this.$showMessage(errString)
364
- // return
365
- // } else {
366
- // if(self.role == 'inspect'){
367
- // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
368
- // this.$showMessage("请选择维修员!")
369
- // return
370
- // }
371
- // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
372
- // HostApp.alert()
373
- // this.$showMessage("请选择站点!")
374
- // return
375
- // }
376
- // if(self.$parent.$parent.model.f_repairtype == ''){
377
- // this.$showMessage("请选择报修类型!")
378
- // return
379
- // }
380
- // ////tag)
381
- // let checkResult = '正常'
382
- // let options = [{"data": "已处理"},{"data": "未处理"}]
383
- // let value = ''
384
- // let codata = JSON.parse(JSON.stringify(self.paper))
385
- // for(let device in codata){
386
- // ////tag)
387
- // let f_device_type
388
- // if(device.startsWith("device")){
389
- // for(let item in codata[device]) {
390
- // if(codata[device].length > 1 ){
391
- // let j = Number.parseInt(item)+1
392
- // f_device_type = `${codata[device][item].f_device_type}${j}`
393
- // }else{
394
- // f_device_type = codata[device][item].f_device_type
395
- // }
396
- // // ////tag
397
- // let details = []
398
- // for(let i in codata[device][item].f_items){
399
- // let items = codata[device][item].f_items[i]
400
- // ////tag
401
- // if(items.f_is_defect == true || items.f_is_defect == 'true'){
402
- // checkResult = '有隐患'
403
- // ////tag
404
- // let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
405
- // ////tag)
406
- // self.$set('detail.f_defect_id', res.data[0].id)
407
- // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
408
- // self.$set('detail.type',items.type)
409
- // self.$set('detail.options',options)
410
- // details.push(JSON.parse(JSON.stringify(self.detail)))
411
- // }
412
- // if(items.type == 'selector'){
413
- // items.selected = ''
414
- // }
415
- // self.detail = {}
416
- // }
417
- // ////tag
418
- // self.$set('defectDevice.f_type',f_device_type)
419
- // self.$set('defectDevice.details',details)
420
- // if(self.defectDevice.details.length >0 ){
421
- // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
422
- // }
423
- // self.defectDevice = {}
424
- // ////tag
425
- // }
426
- // }
427
- // }
428
- // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
429
- //
430
- //
431
- // ////tag)
432
- // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
433
- // ////tag
434
- // ////tag
435
- // ////tag
436
- // if(res.code == 200){
437
- // self.$parent.$parent.isSafeCheckToRepair = true
438
- // self.undo()
439
- // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
440
- // ////tag
441
- // self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
442
- // ////tag
443
- // if(ret.data.code ==200){
444
- // ////tag
445
- // self.$parent.$parent.$back()
446
- // }else{
447
- // self.$showMessage('安检转维修失败!')
448
- // }
449
- // }).catch(v=>{
450
- // ////tag)
451
- // self.$showMessage('安检转维修失败!')
452
- // })
453
- // }else{
454
- // self.$showMessage('安检转维修失败!')
455
- // }
456
- // }
457
- // }
458
- // }
459
-
460
-
461
-
462
- // let getRepairs = async function(self,url) {
463
- // // 获取配置信息
464
- // try {
465
- // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
466
- // let repairs =[]
467
- // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
468
- // res.data.forEach((item) => {
469
- // repairs.push({label: item.name, value: item})
470
- // })
471
- // self.f_repair_person = repairs
472
- // if(self.$parent.$parent.role == 'inspect'){
473
- // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
474
- // if(res.code == 200){
475
- // self.$parent.$parent.user = res.data[0]
476
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
477
- // }
478
- // }else{
479
- // ////tag
480
- // self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
481
- // ////tag
482
- // if(res.data.length != 0){
483
- // self.$parent.$parent.user = res.data[0]
484
- // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
485
- // }
486
- // })
487
- // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
488
- // }
489
- // } catch (error) {
490
- // ////tag
491
- // }
492
- // }
493
-
494
- export default {
495
- title: '用户反馈',
496
- data() {
497
- return {
498
- isvideo:'false',
499
- defectImgs: [],
500
- defectToolTip: [],
501
- defectReason: [],
502
- images: [],
503
- showmodelthree: false,
504
- isneedDate: this.$parent.$parent.isneedDate,
505
- plan: this.$parent.$parent.item,
506
- meading: this.$parent.$parent.meading,
507
- paper: this.$parent.$parent.data,
508
- printContent: [],
509
- upload_state: this.$parent.$parent.item.f_upload_state,
510
- enabled: false,//控制限制购气是否可选
511
- deleteenabled: false,
512
- showmodel: false,
513
- showbacklist:'是',
514
- backlistisselect: false,
515
- showgas: false,
516
- showgasmodel:this.$appdata.getSingleValue('用户须知查看') || false,
517
- isalbum:this.$appdata.getSingleValue('安检使用相册') || false,
518
- gasinstructions:'',
519
- deletebacklistisselect: false,
520
- radios: [
521
- {
522
- label: '满意',
523
- value: 0,
524
- isChecked: false,
525
- },
526
- {
527
- label: '基本满意',
528
- value: 1,
529
- isChecked: false,
530
- },
531
- {
532
- label: '不满意',
533
- value: 2,
534
- isChecked: false,
535
- },
536
- ],
537
- repairitems: [],
538
- repairstypes: this.$appdata.getParam('报修类型'),
539
- // f_repair_person: this.readRepair(),
540
- showrepair: false,
541
- safeCheckToRepair: '',
542
- showCheckToRepair: false,
543
- userid: '',
544
- source:
545
- 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
546
- 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
547
- isback: false,
548
- defectDevice: {},
549
- detail: {},
550
- callObj: null,
551
- user: {},
552
- role: this.$parent.$parent.role,
553
- handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
554
- Url: this.$androidUtil.getProxyUrl(),
555
- cause: "",
556
- deletecause: "",
557
- isRecodr: "false", //单值参数,为true则是开启全程录音
558
- }
559
- },
560
- props: ['idx'],
561
- components: {
562
- RadioGroup,
563
- Radio
564
- },
565
- methods: {
566
- timeSet(val) {
567
- //////tag
568
- if (!val) {
569
- return
570
- }
571
- let time = new Date(val).getTime()
572
- let time2 = new Date().getTime()
573
- if (time2 > time) {
574
- return true
575
- }
576
- },
577
- // async isoverDate(){
578
- // ////tag
579
- // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
580
- // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
581
- // }
582
- // })
583
- // this.isneedDate=res.data[0]["f_subscribe_date"]
584
- // ////tag
585
- // },
586
- check(index) {
587
- ////tag
588
- // 先取消所有选中项
589
- for (let item of this.radios) {
590
- item.isChecked = false;
591
- }
592
- //再设置当前点击项选中
593
- this.paper.f_client_evaluation = this.radios[index].label;
594
- // 设置值,以供传递
595
- this.radios[index].isChecked = true;
596
- ////tag;
597
- },
598
- getSignValue(fileName) {
599
- this.f_signname = fileName
600
- },
601
- videoCallBack(fileName) {
602
- this.$set('paper.f_video_path', fileName)
603
- HostApp.__callback__ = null
604
- HostApp.__this__ = null
605
- },
606
- takeVideo() {
607
- HostApp.__callback__ = this.videoCallBack
608
- HostApp.__this__ = this
609
- let fileName = Util.guid() + '.mp4'
610
- HostApp._open_a_page({
611
- type: 'boomerang',
612
- page: 'com.aofeng.hybrid.android.peripheral.VideoActivity',
613
- param: {
614
- file: fileName,
615
- requestCode: 111,
616
- callback: 'javascript:HostApp.__callback__("%s");'
617
- }
618
- })
619
- },
620
- cameraCallBack(prop, fileName) {
621
- if (prop == 'f_overall_path') {
622
- let f_overall_path = fileName + '?' + Math.random()
623
- HostApp.__this__.paper.f_overall_imgs.push({
624
- f_overall_path: f_overall_path
625
- })
626
- } else {
627
- HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
628
- }
629
- HostApp.__callback__ = null
630
- HostApp.__this__ = null
631
- },
632
- takePic(prop, title, index) {
633
- HostApp.__callback__ = this.cameraCallBack
634
- HostApp.__this__ = this
635
- ////tag
636
- ////tag
637
- let fileName
638
- if (prop == 'f_overall_path') {
639
- if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
640
- fileName = Util.guid() + '-' + prop + '.jpg'
641
- } else {
642
- fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
643
- }
644
- } else {
645
- if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
646
- fileName = Util.guid() + '-' + prop + '.jpg'
647
- } else {
648
- fileName = Util.getFileName(this.paper[prop])
649
- }
650
- }
651
- let jingweidu = ''
652
- if (this.$parent.$parent.is_has_jingweidu == 'true'){
653
- const obj = HostApp.getGpsDetailAddress()
654
- jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
655
- }
656
- HostApp._open_a_page({
657
- type: 'boomerang',
658
- page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
659
- param: {
660
- file: fileName,
661
- requestCode: 111,
662
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
663
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code+ '\t' + this.paper.f_user_name+ '\t' + this.paper.f_address
664
- +jingweidu
665
- }
666
- })
667
- },
668
- selectPictrueCallback(picList){
669
- if(picList && picList.length>0){
670
- for (let i = 0; i < picList.length; i++) {
671
- HostApp.__this__.paper.f_overall_imgs.push({
672
- f_overall_path: picList[i]
673
- })
674
- }
675
- }
676
- HostApp.__callback__ = null
677
- HostApp.__this__ = null
678
- },
679
- selectPicture(){
680
- HostApp.__callback__ = this.selectPictrueCallback
681
- HostApp.__this__ = this
682
- HostApp._open_a_page({
683
- type: 'boomerang',
684
- page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
685
- param: {
686
- requestCode: 111,
687
- callback: 'javascript:HostApp.__callback__(%s);',
688
- }
689
- })
690
- },
691
- amrCallBack(fileName) {
692
- HostApp.__this__.$set('paper.f_recording1_path', fileName)
693
- HostApp.__callback__ = null
694
- HostApp.__this__ = null
695
- },
696
- record() {
697
- if (this.$parent.$parent.role != 'inspect') {
698
- if (this.paper.f_recording1_path != '') {
699
- window.location = this.paper.f_recording1_path
700
- }
701
- } else {
702
- HostApp.__callback__ = this.amrCallBack
703
- HostApp.__this__ = this
704
- let fileName
705
- if (!this.paper.f_recording1_path) {
706
- fileName = Util.guid() + '.amr'
707
- } else {
708
- fileName = Util.getFileName(this.paper.f_recording1_path)
709
- }
710
- HostApp._open_a_page({
711
- type: 'boomerang',
712
- page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
713
- param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
714
- })
715
- }
716
- },
717
- // 签名回调
718
- signCallback(prop, fileName) {
719
- // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
720
- HostApp.__this__.$set('paper.f_sign_path', fileName)
721
- HostApp.__callback__ = null
722
- HostApp.__this__ = null
723
- },
724
- // 用户签名
725
- sign() {
726
- if (!this.paper.f_read_instructions) {
727
- this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
728
- return
729
- }
730
- this.delAudioFile('f_sign_path', this.paper.f_sign_path)
731
- let prop = 'f_sign_path'
732
- let idx = 'aofeng'
733
- let fileName
734
- if (!this.paper.f_sign_path) {
735
- fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
736
- } else {
737
- fileName = Util.getFileName(this.paper.f_sign_path)
738
- }
739
- HostApp.__callback__ = this.signCallback
740
- HostApp.__this__ = this
741
- HostApp.getSignature({
742
- file: fileName,
743
- requestCode: 111,
744
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
745
- })
746
- },
747
- delfile(prop, fileName, index) {
748
- if (fileName == Vue.nopic)
749
- return
750
- else {
751
- if (prop == 'f_overall_path') {
752
- this.paper.f_overall_imgs.splice(index, 1)
753
- HostApp.delfile(fileName)
754
- } else {
755
- HostApp.delfile(fileName)
756
- this.paper[prop] = Vue.nopic
757
- }
758
- }
759
- },
760
- delAudioFile(prop, fileName) {
761
- if (!fileName)
762
- return
763
- else {
764
- HostApp.delfile(fileName)
765
- this.paper[prop] = null
766
- }
767
- },
768
- //获取打印用户信息
769
- getUser() {
770
- if (this.paper.f_user_name == undefined)
771
- this.paper.f_user_name = ''
772
- this.printContent.push({
773
- type: 3,
774
- text: '用户名称:' + this.paper.f_user_name,
775
- fontsize: 2,
776
- isbold: false,
777
- align: 'left'
778
- })
779
- if (this.paper.f_userinfo_code == undefined)
780
- this.paper.f_userinfo_code = ''
781
- this.printContent.push({
782
- type: 3,
783
- text: '用户编号:' + this.paper.f_userinfo_code,
784
- fontsize: 2,
785
- isbold: false,
786
- align: 'left'
787
- })
788
- if (this.paper.f_address == undefined)
789
- this.paper.f_address = ''
790
- this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
791
- if (this.paper.f_user_phone == undefined)
792
- this.paper.f_user_phone = ''
793
- this.printContent.push({
794
- type: 3,
795
- text: '电话:' + this.paper.f_user_phone,
796
- fontsize: 2,
797
- isbold: false,
798
- align: 'left'
799
- })
800
- },
801
- verify() {
802
- let hasError = this.$parent.$parent.verifyUser()
803
- if (hasError)
804
- return hasError
805
- hasError = this.$parent.$parent.verifyDevices()
806
- if (hasError)
807
- return hasError
808
- },
809
- print() {
810
- let errString = this.verify()
811
- if (errString) {
812
- ////tag
813
- if (Vue.android)
814
- this.$showMessage(errString)
815
- return
816
- }
817
- // 文本
818
- let templatename = '安检结果单'
819
- if (Vue.config.safecheck != undefined) {
820
- if (Vue.config.safecheck.ApproveConfig != undefined) {
821
- if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
822
- templatename = Vue.config.safecheck.ApproveConfig.templatename
823
- }
824
- }
825
- }
826
- let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
827
- let feedPageHead = {type: 4, value: 2, unit: 'line'}
828
- let feedPageEnd = {type: 4, value: 4, unit: 'line'}
829
- this.printContent.push(textHead)
830
- this.printContent.push(feedPageHead)
831
- this.getUser()
832
- this.getDefect()
833
- this.getCheck()
834
- this.printContent.push(feedPageEnd)
835
- let arrstr = JSON.stringify(this.printContent)
836
- ////tag
837
- this.$androidUtil.print(arrstr)
838
- this.$set('printContent', [])
839
- },
840
- //打印安检信息
841
- getCheck() {
842
- let telephone = '96777'
843
- if (Vue.config.safecheck != undefined) {
844
- if (Vue.config.safecheck.ApproveConfig != undefined) {
845
- if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
846
- telephone = Vue.config.safecheck.ApproveConfig.checkphone
847
- }
848
- }
849
- }
850
- this.printContent.push({
851
- type: 3,
852
- text: '*******************************',
853
- fontsize: 3,
854
- isbold: false,
855
- align: 'center'
856
- })
857
- this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
858
- this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
859
- this.printContent.push({
860
- type: 3,
861
- text: '安检时间:' + this.getNowFormatDate(),
862
- fontsize: 2,
863
- isbold: false,
864
- align: 'left'
865
- })
866
- this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
867
- this.printContent.push({type: 4, value: 4, unit: 'line'})
868
- },
869
-
870
- getDefect() {
871
- let showmore = false
872
- if (Vue.config.safecheck != undefined) {
873
- if (Vue.config.safecheck.ApproveConfig != undefined) {
874
- if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
875
- showmore = Vue.config.safecheck.ApproveConfig.showmore
876
- }
877
- }
878
- }
879
-
880
- let backData = this.$parent.$parent.getAllDefect()
881
- // 对隐患信息进行遍历
882
- let res = JSON.parse(backData.f_defect_content)
883
- this.printContent.push({
884
- type: 3,
885
- text: '安检结果:' + res.result,
886
- fontsize: 2,
887
- isbold: false,
888
- align: 'left'
889
- })
890
- this.printContent.push({
891
- type: 3,
892
- text: '*******************************',
893
- fontsize: 3,
894
- isbold: false,
895
- align: 'center'
896
- })
897
-
898
-
899
- if (showmore) {
900
- //全部打印
901
- for (let dev in this.$parent.$parent.config) {
902
- for (let device in backData) {
903
- if (device.startsWith("device")) {
904
- for (let item in backData[device]) {
905
- //遍历结果
906
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
907
- let error = true
908
- for (let i in backData[device][item].f_items) {
909
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
910
- error = false
911
- }
912
- }
913
- if (error) {
914
- this.printContent.push({
915
- type: 3,
916
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
917
- fontsize: 2,
918
- isbold: false,
919
- align: 'left'
920
- })
921
- } else {
922
- this.printContent.push({
923
- type: 3,
924
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
925
- fontsize: 2,
926
- isbold: true,
927
- align: 'left'
928
- })
929
- }
930
-
931
- for (let i in backData[device][item].f_items) {
932
- if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
933
- this.printContent.push({
934
- type: 3,
935
- text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
936
- fontsize: 2,
937
- isbold: false,
938
- align: 'left'
939
- })
940
- }
941
- }
942
- this.printContent.push({type: 4, value: 2, unit: 'line'})
943
- }
944
- }
945
- }
946
- }
947
- }
948
-
949
- for (let dev in this.$parent.$parent.config) {
950
- for (let device in backData) {
951
- if (device.startsWith("device")) {
952
- for (let item in backData[device]) {
953
- //遍历结果
954
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
955
- let error = true
956
- for (let i in backData[device][item].f_items) {
957
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
958
- error = false
959
- }
960
- }
961
- if (!error) {
962
- this.printContent.push({
963
- type: 3,
964
- text: '隐患:',
965
- fontsize: 2,
966
- isbold: true,
967
- align: 'left'
968
- })
969
- }
970
- }
971
- }
972
- }
973
- }
974
- for (let device in backData) {
975
- if (device.startsWith("device")) {
976
- for (let item in backData[device]) {
977
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
978
- for (let i in backData[device][item].f_items) {
979
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
980
- this.printContent.push({
981
- type: 3,
982
- text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
983
- fontsize: 2,
984
- isbold: true,
985
- align: 'left'
986
- })
987
- }
988
- }
989
- }
990
- }
991
- }
992
- }
993
-
994
- }
995
- } else {
996
- for (let dev in this.$parent.$parent.config) {
997
- for (let device in backData) {
998
- if (device.startsWith("device")) {
999
- for (let item in backData[device]) {
1000
- //遍历结果
1001
- if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
1002
- let error = true
1003
- for (let i in backData[device][item].f_items) {
1004
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1005
- error = false
1006
- }
1007
- }
1008
- if (error) {
1009
- this.printContent.push({
1010
- type: 3,
1011
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
1012
- fontsize: 2,
1013
- isbold: false,
1014
- align: 'left'
1015
- })
1016
- } else {
1017
- this.printContent.push({
1018
- type: 3,
1019
- text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
1020
- fontsize: 2,
1021
- isbold: false,
1022
- align: 'left'
1023
- })
1024
- }
1025
-
1026
- for (let i in backData[device][item].f_items) {
1027
- if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1028
- this.printContent.push({
1029
- type: 3,
1030
- text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
1031
- fontsize: 2,
1032
- isbold: false,
1033
- align: 'left'
1034
- })
1035
- }
1036
- }
1037
- this.printContent.push({type: 4, value: 2, unit: 'line'})
1038
- }
1039
- }
1040
- }
1041
- }
1042
- }
1043
- }
1044
- },
1045
- //获取当前时间
1046
- getNowFormatDate() {
1047
- var date = new Date();
1048
- var seperator1 = "-";
1049
- var seperator2 = ":";
1050
- var month = date.getMonth() + 1;
1051
- var strDate = date.getDate();
1052
- if (month >= 1 && month <= 9) {
1053
- month = "0" + month;
1054
- }
1055
- if (strDate >= 0 && strDate <= 9) {
1056
- strDate = "0" + strDate;
1057
- }
1058
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1059
- + " " + date.getHours() + seperator2 + date.getMinutes()
1060
- + seperator2 + date.getSeconds();
1061
- return currentdate;
1062
- },
1063
- readRepair() {
1064
- let url = this.$androidUtil.getProxyUrl()
1065
- let gen = getRepairs(this, url)
1066
- return co(gen)
1067
- },
1068
- showToRepair() {
1069
- let res = this.hasDefect()
1070
- ////tag
1071
- ////tag
1072
- if (res == '正常') {
1073
- this.showrepair = false
1074
- } else {
1075
- this.showrepair = true
1076
- this.assignObj()
1077
- }
1078
- this.showCheckToRepair = !this.showCheckToRepair
1079
- },
1080
- // 选中部门
1081
- reres(val) {
1082
- if (val.res == undefined) {
1083
- return
1084
- }
1085
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1086
- this.$parent.$parent.model.f_meetunit = val.res
1087
- this.$parent.$parent.model.f_orgstr = val.resids
1088
- var arr = val.res.split('.')
1089
- this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1090
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1091
- },
1092
- assignObj() {
1093
- this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1094
- this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1095
- this.$parent.$parent.model.f_address = this.paper.f_address
1096
- this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1097
- this.$parent.$parent.model.f_street = this.paper.f_street
1098
- this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1099
- this.$parent.$parent.model.f_building = this.paper.f_building
1100
- this.$parent.$parent.model.f_unit = this.paper.f_unit
1101
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1102
- this.$parent.$parent.model.f_room = this.paper.f_room
1103
- this.$parent.$parent.model.f_floor = this.paper.f_floor
1104
- this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1105
- this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1106
- },
1107
- hasDefect() {
1108
- let checkResult = '正常'
1109
- let codata = JSON.parse(JSON.stringify(this.paper))
1110
- for (let device in this.paper) {
1111
- if (device.startsWith("device")) {
1112
- for (let item in this.paper[device]) {
1113
- for (let i in this.paper[device][item].f_items) {
1114
- let items = this.paper[device][item].f_items[i]
1115
- ////tag
1116
- if (items.f_is_defect == true || items.f_is_defect == 'true') {
1117
- checkResult = '有隐患'
1118
- }
1119
- }
1120
- }
1121
- }
1122
- }
1123
- return checkResult
1124
- },
1125
- uploadPaper() {
1126
- if (this.showrepair) {
1127
- ////tag
1128
- ////tag
1129
- ////tag
1130
- ////tag
1131
-
1132
- if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1133
- this.$showMessage("请选择维修员!")
1134
- return
1135
- }
1136
- if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1137
- this.$showMessage("请选择站点!")
1138
- return
1139
- }
1140
- if (this.$parent.$parent.model.f_repairtype == '') {
1141
- this.$showMessage("请选择报修类型!")
1142
- return
1143
- }
1144
- this.$parent.$parent.isToRepair = true
1145
- this.$parent.$parent.uploadCheckPaper()
1146
- // this.$parent.$parent.savePaper(false).then((res) => {
1147
- // ////tag
1148
- // if(res != true){
1149
- // ////tag
1150
- // return
1151
- // }else{
1152
- // this.$parent.$parent.todo()
1153
- // }
1154
- // })
1155
- } else {
1156
- this.$parent.$parent.undo()
1157
- }
1158
-
1159
- },
1160
- closeshowgas() {
1161
- this.showgas = false
1162
- },
1163
- //确认安检转维修
1164
-
1165
- undo() {
1166
- this.showCheckToRepair = !this.showCheckToRepair
1167
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1168
- this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1169
- this.$parent.$parent.model.f_repairtype = ''
1170
- this.meading = '转站点'
1171
- },
1172
- //取消拉黑
1173
- async deletebacklist() {
1174
- if (!this.deletecause) {
1175
- this.$showMessage("请填写取消拉黑原因!")
1176
- return
1177
- }
1178
- this.paper.f_blocking_cause = this.deletecause
1179
- ////tag)
1180
- let http = new HttpResetClass()
1181
- ////tag
1182
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1183
- data: {
1184
- items: "version",
1185
- tablename: "t_userinfo",
1186
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1187
- orderitem: "f_userinfo_id"
1188
- }
1189
- }, {resolveMsg: null, rejectMsg: null})
1190
- ////tag)
1191
- ////tag
1192
- let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1193
- data: {
1194
- "f_operat_type": "取消拉黑",
1195
- "f_state": "有效",
1196
- "f_user_name": this.paper.f_user_name,
1197
- "f_comments": this.paper.f_blocking_cause,
1198
- "f_operator": Vue.user.name,
1199
- "f_operatorid": Vue.user.id,
1200
- "f_orgid": Vue.user.orgid,
1201
- "f_orgname": Vue.user.orgs,
1202
- "f_depid": Vue.user.depids,
1203
- "f_depname": Vue.user.deps,
1204
- "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
1205
- "f_userinfo_id": {
1206
- "f_userinfo_id": this.paper.f_userinfoid,
1207
- "f_user_state": "正常",
1208
- "version": res1.data[0].version
1209
- },
1210
- "f_limit_times":"",
1211
- "f_limit_value":""
1212
- }
1213
- }, {resolveMsg: null, rejectMsg: null})
1214
-
1215
- ////tag)
1216
- if (res2.data.code == 200) {
1217
- this.showmodelthree = false
1218
- this.deleteenabled = true
1219
- this.paper.f_blacklist = "否"
1220
- this.$showMessage("取消该用户限制购气成功!")
1221
- } else {
1222
- this.showmodelthree = false
1223
- this.deleteenabled = true
1224
- this.$showMessage("网络异常,请稍后再试!")
1225
- }
1226
- },
1227
- async backlist() {
1228
- if (!this.cause) {
1229
- this.$showMessage("请填写拉黑原因!")
1230
- return
1231
- }
1232
- this.paper.f_blocking_cause = this.cause
1233
- ////tag)
1234
- let http = new HttpResetClass()
1235
- ////tag
1236
- let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1237
- data: {
1238
- items: "version",
1239
- tablename: "t_userinfo",
1240
- condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1241
- orderitem: "f_userinfo_id"
1242
- }
1243
- }, {resolveMsg: null, rejectMsg: null})
1244
- ////tag)
1245
- ////tag
1246
- let limit_times=1
1247
- let limit_value=3
1248
- let limit_amount=3
1249
- if(Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value && Vue.config.safecheck.ApproveConfig.limit_amount){
1250
- limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1251
- limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1252
- limit_amount = Vue.config.safecheck.ApproveConfig.limit_amount
1253
- }
1254
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1255
- data: {
1256
- data:this.$parent.$parent.data,
1257
- item:this.$parent.$parent.data.item,
1258
- "f_operat_type": "拉黑",
1259
- "f_state": "有效",
1260
- "f_user_name": this.paper.f_user_name,
1261
- "f_comments": this.paper.f_blocking_cause,
1262
- "f_operator": Vue.user.name,
1263
- "f_operate_date":Util.toStandardTimeString(),
1264
- "f_operatorid": Vue.user.id,
1265
- "f_orgid": Vue.user.orgid,
1266
- "f_orgname": Vue.user.orgs,
1267
- "f_depid": Vue.user.depids,
1268
- "f_depname": Vue.user.deps,
1269
- "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
1270
- "f_userinfo_id": {
1271
- "f_userinfo_id": this.paper.f_userinfoid
1272
- },
1273
- "f_limit_times":limit_times,
1274
- "f_limit_value":limit_value,
1275
- "f_limit_amount":limit_amount,
1276
- 'f_limit_type':'气量'
1277
- }
1278
- }, {resolveMsg: null, rejectMsg: null}).then(res2=>{
1279
- this.showmodel = false
1280
- this.enabled = true
1281
- this.paper.f_blacklist = "是"
1282
- this.$showMessage("将该用户限制购气成功!")
1283
- }).catch(error=>{
1284
- if (error.status== 601){
1285
- this.showmodel = false
1286
- this.enabled = true
1287
- this.paper.f_blacklist = "是"
1288
- this.$showMessage("该用户已被限制购气,请勿重复提交!")
1289
- }else {
1290
- this.$showMessage("网络异常,请稍后再试!")
1291
- }
1292
- })
1293
- },
1294
- cancel() {
1295
- this.backlistisselect = false
1296
- this.showmodel = false
1297
- },
1298
- deletecancel() {
1299
- this.deletebacklistisselect = false
1300
- this.showmodelthree = false
1301
- },
1302
- repiarmancg(val) {
1303
- if (val) {
1304
- ////tag
1305
- this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1306
- let http1 = new HttpResetClass()
1307
- http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1308
- data: {
1309
- items: 'f_user_telephone',
1310
- tablename: 't_user',
1311
- condition: `name = '${val}'`,
1312
- orderitem: 'id'
1313
- }
1314
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1315
- this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1316
- })
1317
- }
1318
- },
1319
- },
1320
- async ready() {
1321
- this.isRecodr = this.$appdata.getSingleValue('无限制录音')
1322
- this.isvideo = this.$appdata.getSingleValue('安检录视频')
1323
- if(this.$appdata.getSingleValue('安检时显示拉黑')){
1324
- this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
1325
- }
1326
- // await this.isoverDate()
1327
- ////tag
1328
- ////tag
1329
- ////tag)
1330
- ////tag))
1331
- if (this.$parent.$parent.role == 'repair') {
1332
- this.$set('style__', 'divmask')
1333
- this.$set('style_view_', '')
1334
- } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1335
- this.$set('style__', 'divmask')
1336
- this.$set('style_view_', 'divmask')
1337
- ////tag
1338
- } else {
1339
- this.$set('style__', '')
1340
- this.$set('style_view_', '')
1341
- }
1342
- if (Vue.config.safecheck != undefined) {
1343
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1344
- if (Vue.config.safecheck.ApproveConfig.gasinstructions != undefined) {
1345
- this.gasinstructions = Vue.config.safecheck.ApproveConfig.gasinstructions
1346
- }
1347
- }
1348
- }
1349
-
1350
- for (let item of this.radios) {
1351
- if (this.paper.f_client_evaluation == item.label) {
1352
- item.isChecked = true;
1353
- }
1354
- }
1355
- if (!this.paper.f_notified_path)
1356
- this.$set('paper.f_notified_path', Vue.nopic)
1357
- if (!this.paper.f_sign_path)
1358
- this.$set('paper.f_sign_path', Vue.nopic)
1359
- ////tag
1360
- if (!this.paper.f_overall_imgs) {
1361
- let imgs = []
1362
- // imgs.push({f_overall_path:Vue.nopic})
1363
- this.$set('paper.f_overall_imgs', imgs)
1364
- ////tag
1365
- }
1366
- if (!this.paper.f_overall2_path)
1367
- this.$set('paper.f_overall2_path', Vue.nopic)
1368
-
1369
- this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1370
- if (Vue.config.safecheck != undefined) {
1371
- if (Vue.config.safecheck.ApproveConfig != undefined) {
1372
- if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1373
- this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1374
- }
1375
- }
1376
- }
1377
- let device = this.$parent.$parent.data
1378
- for (const deviceitem in device) {
1379
- if (deviceitem.startsWith('device')){
1380
- //tag)
1381
- if(device[deviceitem].length == 0){
1382
- continue
1383
- }
1384
- let items = device[deviceitem][0].f_items
1385
- let deviceType = device[deviceitem][0].f_device_type
1386
- for (let i = 0; i < items.length; i++) {
1387
- if (items[i].f_is_defect){
1388
- let reason = items[i].f_item_name+":"
1389
- if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox'){
1390
- for (let j = 0; j < items[i].f_item_value.length; j++) {
1391
- if (j+1 === items[i].f_item_value.length){
1392
- reason += items[i].f_item_value[j]
1393
- }else{
1394
- reason += items[i].f_item_value[j] + ","
1395
- }
1396
- }
1397
- }else{
1398
- reason += items[i].f_item_value
1399
- }
1400
- if (items[i].f_path){
1401
- this.defectImgs.push(items[i].f_path)
1402
- }
1403
- if (items[i].f_p1_path){
1404
- this.defectImgs.push(items[i].f_p1_path)
1405
- }
1406
- if (items[i].f_p2_path){
1407
- this.defectImgs.push(items[i].f_p2_path)
1408
- }
1409
- if (items[i].f_p3_path){
1410
- this.defectImgs.push(items[i].f_p3_path)
1411
- }
1412
- if (items[i].tooltip){
1413
- this.defectToolTip.push(items[i].tooltip)
1414
- }
1415
- this.defectReason.push({device:deviceType,deviceitem:reason})
1416
- }else if(items[i].type === 'errorstring' && items[i].f_item_value ){
1417
- let reason = items[i].f_item_name+":" + items[i].f_item_value
1418
- this.defectReason.push({device:deviceType,deviceitem:reason})
1419
- }
1420
-
1421
- }
1422
- }
1423
- }
1424
- ////tag
1425
- ////tag
1426
- //tag
1427
- ////tag
1428
- //tag)
1429
- //tag)
1430
- //tag)
1431
- ////tag
1432
- ////tag
1433
- ////tag
1434
- },
1435
- watch: {
1436
- '$parent.$parent.isUpload'(val) {
1437
- ////tag
1438
- },
1439
- 'paper.f_read_instructions'(val) {
1440
- if (val == true) {
1441
- this.showgas = true
1442
- }
1443
- },
1444
- 'meading'(val) {
1445
- ////tag
1446
- this.$parent.$parent.meading = val
1447
- },
1448
- 'backlistisselect'(val) {
1449
- if (val == true) {
1450
- this.showmodel = true
1451
- this.deletebacklistisselect=false
1452
- }
1453
- },
1454
- 'deletebacklistisselect'(val) {
1455
- if (val == true) {
1456
- this.showmodelthree = true
1457
- this.backlistisselect=false
1458
- }
1459
- },
1460
- 'isRecodr'(val) {
1461
- if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1462
- this.isRecodr = "false";
1463
- }
1464
- }
1465
- }
1466
- }
1467
- </script>
1468
- <style scoped>
1469
- .panel-self{
1470
- border-radius: 5px;
1471
- border:1px solid #c5e1f7;
1472
- background-color: #F2F6FA;
1473
- }
1474
- .text-left{
1475
- text-align:left;
1476
- }
1477
- .font{
1478
- font: 15px PingFang-SC-Medium;
1479
- color: #333333;
1480
- }
1481
- .showIi{
1482
- font: 14px PingFang-SC-Medium;
1483
- color: #666666;
1484
- }
1485
- .info{
1486
- margin-top: 15px;
1487
- border-radius: 5px;
1488
- background-color: #f3faff;
1489
- }
1490
- .btn-photo{
1491
- border: 0;
1492
- border-radius: 7px;
1493
- background-color: #7dc1f4;
1494
- font: 15px PingFang-SC-Bold;
1495
- height: 20%;
1496
- }
1497
- .div-photo{
1498
- width: auto;
1499
- height: auto;
1500
- /* margin-top: 10px; */
1501
- position: absolute;
1502
- bottom: 10px;
1503
- right: 10px;
1504
- }
1505
- .btn-voice{
1506
- border-radius: 7px;
1507
- border: 1px solid #dedede;
1508
- background-color: #f5fbff;
1509
- font: 15px PingFang-SC-Bold;
1510
- color: #499edf;
1511
- }
1512
- .save-btn{
1513
- width: 25%;
1514
- background-color:#499edf;
1515
- border-radius: 6px;
1516
- color: #FFFFFF;
1517
- font: 15px PingFang-SC-Bold;
1518
- }
1519
- .upload-btn{
1520
- width: 25%;
1521
- background-color:#ffffff;
1522
- border: 1px solid #499edf;
1523
- border-radius: 6px;
1524
- color: #499edf;
1525
- font: 15px PingFang-SC-Bold;
1526
- }
1527
- .repair-btn{
1528
- width: 25%;
1529
- border: 1px solid #499edf;
1530
- border-radius: 6px;
1531
- font: 15px PingFang-SC-Bold;
1532
- }
1533
- #el_ca_tx{
1534
- width: 100%;
1535
- margin: 5px;
1536
- }
1537
- #el_ca_txt{
1538
- width: 100%;
1539
- margin: 5px;
1540
- }
1541
- </style>
1
+ <template>
2
+ <form novalidate class="form-horizontal" style="width: 95%;margin: auto">
3
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
4
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
5
+ <label class="control-label font text-left col-md-4 col-xs-4">备注</label>
6
+ <div class="col-md-12 col-sm-12 col-xs-12">
7
+ <textarea v-model="paper.f_repair_approved_note" class="form-control"></textarea>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
12
+ <div class="text-center">
13
+ <label class="font">总体安检照片请依次拍摄:</label>
14
+ </div>
15
+ <div class="col-md-12 col-sm-12 col-xs-12">
16
+ <ol class="showIi">
17
+ <li>1.燃气设施全景</li>
18
+ <li>2.燃气表照片</li>
19
+ <li>3.灶具照片</li>
20
+ <li>4.其他照片</li>
21
+ </ol>
22
+ </div>
23
+ </div>
24
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
25
+ <label class="text-left font">总体安检照片</label>
26
+
27
+ <div class="auto" :class="style__">
28
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
29
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
30
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
31
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in paper.f_overall_imgs">
32
+ <img-self :src="img.f_overall_path" alt="总体安检照片" :width="140" :height="170"></img-self>
33
+ <img src="../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">
34
+ </div>
35
+ </div>
36
+ <div class="row text-right div-photo">
37
+ <button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '总体安检照片')">拍照</button>
38
+ <button v-if="isalbum" type="button" name="button" class="btn btn-photo" @click="selectPicture()">相册</button>
39
+ <!--<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_overall_path', '总体安检照片1')">拍照</button>-->
40
+ <!--&nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_overall_path', img.f_overall_path)" style="width: 25%;"></img>-->
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__" v-if="isvideo == 'true'">
47
+ <label class="text-left font">安检视频</label>
48
+
49
+ <div class="auto" :class="style__">
50
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
51
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
52
+ <div class="row">
53
+ <video width="320" height="200" controls v-if="paper.f_video_path">
54
+ <source :src="paper.f_video_path" type="video/mp4">
55
+ </video>
56
+ </div>
57
+ <div class="row text-right div-photo">
58
+ <button type="button" name="button" class="btn btn-photo" @click="takeVideo()">拍摄</button>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
65
+ <label class="text-left font">总体隐患照片</label>
66
+ <div class="auto" :class="style__">
67
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
68
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
69
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px" >
70
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px" v-for="(index,img) in defectImgs">
71
+ <img-self :src="img" alt="总体隐患照片" :width="140" :height="170"></img-self>
72
+ <!-- <img src="../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)" style="width: 15px;margin-top: -80px" alt="">-->
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
80
+ <div class="text-center">
81
+ <label class="font">隐患汇总:</label>
82
+ </div>
83
+ <div class="col-md-12 col-sm-12 col-xs-12">
84
+ <ol class="showIi">
85
+ <li v-for="item in defectReason">{{ item.deviceitem }}</li>
86
+ </ol>
87
+ </div>
88
+ </div>
89
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 info" :class="style__">
90
+ <div class="text-center">
91
+ <label class="font">整改建议汇总:</label>
92
+ </div>
93
+ <div class="col-md-12 col-sm-12 col-xs-12">
94
+ <ol class="showIi">
95
+ <li v-for="item in defectToolTip">{{ item }}</li>
96
+ </ol>
97
+ </div>
98
+ </div>
99
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
100
+ &ensp;&ensp;<input type="checkbox" v-model="paper.f_read_instructions" style="transform: scale(1.5);"/><label class="text-left font">我已阅读须知内容</label>
101
+
102
+ </div>
103
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :class="style__">
104
+ <label class="text-left font">用户签名</label>
105
+ <div class="auto">
106
+ <div class="panel">
107
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
108
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
109
+ <div class="col-sm-4">
110
+ <img :class="style__" :src="paper.f_sign_path" :width="200" :height="150" />
111
+ </div>
112
+ </div>
113
+ <div class="row text-right div-photo">
114
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="sign">签名</button>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <div class="form-group col-sm-12 col-xs-12 col-md-12 " :style="timeSet(this.isneedDate)?'':'display:none'">
121
+ <label>请输入超期原因:</label><br/>
122
+ <textarea style="width: 100%;" v-model="paper.f_exceed_reason"></textarea>
123
+ </div>
124
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-show="showbacklist=='是'">
125
+ <div class="col-xs-6 col-sm-6">
126
+ <input type="checkbox" v-model="backlistisselect" :readonly="enabled"/><label class="text-left font" >限制该用户购气</label>
127
+ </div>
128
+ <div class="col-xs-6 col-sm-6">
129
+ <input type="checkbox" v-model="deletebacklistisselect" :readonly="deleteenabled"/><label class="text-left font" >取消限制该用户购气</label>
130
+ </div>
131
+ </div>
132
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__" v-if="Vue.$appdata.getParam('安检天然气安全使用须知检查')=='是'">
133
+ <div class="col-xs-12 col-sm-12">
134
+ <input type="checkbox" v-model="paper.f_gas_guidelines" /><label class="text-left font" >天然气安全使用须知</label>
135
+ </div>
136
+ <div class="col-xs-12 col-sm-12">
137
+ <input type="checkbox" v-model="paper.f_safety_warning" /><label class="text-left font" >天然气室内使用安全警示</label>
138
+ </div>
139
+ <div class="col-xs-12 col-sm-12">
140
+ <input type="checkbox" v-model="paper.f_gas_manual" /><label class="text-left font" >安全用气手册</label>
141
+ </div>
142
+ </div>
143
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" :class="style__">
144
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
145
+ <input type="checkbox" v-model="paper.f_defect_notified" class="showIi" />安检通知书/隐患整改通知书
146
+ </div>
147
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="paper.f_defect_notified">
148
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
149
+ <button type="button" @click="print()">打印隐患整改单</button>
150
+ </div>
151
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
152
+ <label class="text-left font">安检通知书/隐患整改通知书照片(要求能清晰反应安检通知单和用户签字内容):</label>
153
+ <div class="auto" >
154
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
155
+ <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
156
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
157
+ <div class="col-sm-4">
158
+ <img-self :src="paper.f_notified_path" alt="安检通知书/隐患整改通知书照片" width="150" height="200"></img-self>
159
+ </div>
160
+ </div>
161
+ <div class="row text-right div-photo">
162
+ <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_notified_path', '安检通知书/隐患整改通知书照片')">拍照</button>
163
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../assets/remove.png" :class="style__" @click="delfile('f_notified_path', this.paper.f_notified_path)" style="width: 25%;"></img>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ <div class="form-group col-md-12 col-sm-12 col-xs-12">
171
+ <div class="row">
172
+ <label class="text-left">请对我们的服务做出评价:</label>
173
+ </div>
174
+ <div class="col-xs-4 col-sm-4" v-for="item in radios">
175
+ <input v-model="paper.f_client_evaluation" :value="item.label" :checked='item.isChecked' @click="check(item.value)" type="radio">{{item.label}}
176
+ </div>
177
+
178
+ <!--<div class="col-sm-4">-->
179
+ <!--<radio-group :value.sync="paper.f_client_evaluation" type="success" buttons="false">-->
180
+ <!--<radio value="满意">满意</radio>-->
181
+ <!--<radio value="基本满意">基本满意</radio>-->
182
+ <!--<radio value="不满意">不满意</radio>-->
183
+ <!--</radio-group>-->
184
+ <!--</div>-->
185
+ </div>
186
+
187
+ <div class="form-group col-md-12 col-sm-12 col-xs-12" v-if="isRecodr=='false'">
188
+ <label class="text-left font">反馈录音:</label>
189
+ <div class="col-md-12 col-sm-12 col-xs-12">
190
+ <button type="button" name="button" class="btn btn-primary btn-voice" @click="record">
191
+ <img src="../../assets/录音.png" style="width: 14%;">
192
+ <span v-if="!paper.f_recording1_path">开始录音</span>
193
+ <span v-if="paper.f_recording1_path">已录音</span>
194
+ </button>
195
+ &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../assets/remove.png" style="width: 15px;" :class="style__" @click="delAudioFile('f_recording1_path', paper.f_recording1_path)"></img>
196
+ </div>
197
+ </div>
198
+
199
+ <div v-if="false">
200
+ <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
201
+ <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' &&(paper.f_complete != '已完成' || paper.back_f_entry_status != '入户') " class="btn save-btn" @click="$parent.$parent.save('temp')">临时保存</button>
202
+ <button style="width: 30%;margin:3%;margin-bottom: 0%" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn save-btn " @click="$parent.$parent.save('finish')">完成安检</button>
203
+ </div>
204
+ <div class="text-center form-group col-md-12 col-sm-12 col-xs-12">
205
+ <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" id="upload" type="button" v-show="$parent.$parent.actionEnabled && upload_state !='已传' && (paper.f_complete != '已完成' || paper.back_f_entry_status != '入户')" class="btn upload-btn " @click="$parent.$parent.uploadCheckPaper" >上传</button>
206
+ <button style="width: 30%;margin:3%;margin-bottom: 0%;margin-top: 0%" v-if="(safeCheckToRepair == true || safeCheckToRepair == 'true') && $parent.$parent.actionEnabled" class="btn repair-btn btn-warning " type="button" @click="showToRepair">转维修</button> </div>
207
+ </div>
208
+
209
+ </div>
210
+ </form>
211
+ <!-- <modal :show.sync="showCheckToRepair" v-ref:modal :backdrop="isback">-->
212
+ <!-- <div slot="modal-header" class="modal-header">-->
213
+ <!-- <h4 class="modal-title">-->
214
+ <!-- 安检转维修-->
215
+ <!-- </h4>-->
216
+ <!-- </div>-->
217
+ <!-- <div slot="modal-body" class="modal-body">-->
218
+ <!-- <div v-if="showrepair">-->
219
+ <!-- <div class="row">-->
220
+ <!-- <label class="col-xs-4 col-md-4 control-label text-left">派单方式</label>-->
221
+ <!-- <div class="col-xs-8 col-md-8">-->
222
+ <!-- <label v-for="handling1 in handling" >-->
223
+ <!-- <input type="radio"-->
224
+ <!-- v-model="meading"-->
225
+ <!-- value="{{handling1.label}}">-->
226
+ <!-- {{handling1.label}}-->
227
+ <!-- </label>-->
228
+ <!-- </div>-->
229
+ <!-- </div>-->
230
+ <!-- <div class="row" v-if="meading == '转站点'">-->
231
+ <!-- <label class="col-xs-4 col-md-4 control-label font text-left" for="f_reciever">站点</label>-->
232
+ <!-- &lt;!&ndash;<input type="text" v-show="false" v-model="serviceacitivity.f_reciever"&ndash;&gt;-->
233
+ <!-- &lt;!&ndash;v-validate:f_reciever='{ required: true }'>&ndash;&gt;-->
234
+ <!-- <div class="col-xs-8 col-md-8">-->
235
+ <!-- <right-tree @ready="onReady" islist :Url="Url" :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点管理员" :selectData="" v-ref:f_reciever>-->
236
+ <!-- </right-tree>-->
237
+ <!-- </div>-->
238
+ <!-- </div>-->
239
+
240
+ <!-- <div class="row" style="margin-top: 6px" v-if="meading == '转维修员'">-->
241
+ <!-- <label class="col-xs-4 col-md-4 control-label font text-left">维修人</label>-->
242
+ <!-- <div class="col-xs-8">-->
243
+ <!-- <v-select :value="$parent.$parent.model.serviceacitivity[0].f_reciever" :value-single="true"-->
244
+ <!-- :options='f_repair_person' placeholder='请选择维修员'-->
245
+ <!-- close-on-select v-on:change="repiarmancg"></v-select>-->
246
+ <!-- </div>-->
247
+
248
+ <!-- </div>-->
249
+ <!-- <div class="row" style="margin-top: 6px">-->
250
+ <!-- <label for="f_repair" class="col-xs-4 col-md-4 control-label font text-left">报修类型</label>-->
251
+ <!-- <div class="col-xs-8 col-md-8">-->
252
+ <!-- <v-select :value.sync="$parent.$parent.model.f_repairtype" :value-single="true"-->
253
+ <!-- :options='repairstypes' placeholder='报修类型'-->
254
+ <!-- close-on-select>-->
255
+ <!-- </v-select>-->
256
+ <!-- </div>-->
257
+ <!-- </div>-->
258
+
259
+ <!-- <div class="row" style="margin-top: 6px">-->
260
+ <!-- <label class="control-label font text-left col-md-4 col-xs-4">备注</label>-->
261
+ <!-- <div class="col-xs-8 col-md-8">-->
262
+ <!-- <input type="text" v-model="$parent.$parent.model.f_remarks"/>-->
263
+ <!-- </div>-->
264
+
265
+ <!-- </div>-->
266
+
267
+ <!-- </div>-->
268
+ <!-- <div v-if="!showrepair">-->
269
+ <!-- 暂无隐患设备信息-->
270
+ <!-- </div>-->
271
+ <!-- </div>-->
272
+ <!-- <div slot="modal-footer" class="modal-footer">-->
273
+ <!-- <button type="button" class="btn btn-default" @click="uploadPaper()">确定</button>-->
274
+ <!-- <button type="button" class="btn btn-default" @click="undo()">取消</button>-->
275
+ <!-- </div>-->
276
+ <!-- </modal>-->
277
+ <!--拉黑框-->
278
+ <modal :show.sync="showmodel" v-ref:modal>
279
+ <div slot="modal-header" class="modal-header">
280
+ <h4 class="modal-title">
281
+ 限制用户购气
282
+ </h4>
283
+ </div>
284
+ <div slot="modal-body" class="modal-body">
285
+ <!-- <div class="row" style="margin-top: 6px">-->
286
+ <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
287
+ <!-- </div>-->
288
+ <div class="row" style="margin-top: 6px">
289
+ <textarea id="el_ca_tx" v-model.trim="cause" style="border-radius:4px;width: 100%;" placeholder="请输入限制用户购气原因" >
290
+ </textarea>
291
+ </div>
292
+ </div>
293
+ <div slot="modal-footer" class="modal-footer">
294
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="backlist()">确认</button>
295
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="cancel()">取消</button>
296
+ </div>
297
+ </modal>
298
+
299
+ <modal :show.sync="showmodelthree" v-ref:modal>
300
+ <div slot="modal-header" class="modal-header">
301
+ <h4 class="modal-title">
302
+ 取消限制用户购气
303
+ </h4>
304
+ </div>
305
+ <div slot="modal-body" class="modal-body">
306
+ <!-- <div class="row" style="margin-top: 6px">-->
307
+ <!-- <label style="color: red;">注:当前页面无法取消对用户的限制购气</label>-->
308
+ <!-- </div>-->
309
+ <div class="row" style="margin-top: 6px">
310
+ <textarea id="el_ca_txt" v-model.trim="deletecause" style="border-radius:4px;width: 100%;" placeholder="请输入取消限制用户购气原因" >
311
+ </textarea>
312
+ </div>
313
+ </div>
314
+ <div slot="modal-footer" class="modal-footer">
315
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletebacklist()">确认</button>
316
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="deletecancel()">取消</button>
317
+ </div>
318
+ </modal>
319
+ <modal :show.sync="showgas && showgasmodel" v-ref:modal>
320
+ <div slot="modal-header" class="modal-header">
321
+ <h4 class="modal-title">
322
+ 用户须知
323
+ </h4>
324
+ </div>
325
+ <div slot="modal-body" class="modal-body">
326
+ <div class="row" style="margin-top: 6px">
327
+ <sapn>{{ gasinstructions ? gasinstructions : '请配置用户须知' }}</sapn>
328
+ </div>
329
+ </div>
330
+ <div slot="modal-footer" class="modal-footer">
331
+ <button type="button" name="button" class="col-sm-3 btn btn-primary" @click="closeshowgas()">确认</button>
332
+ </div>
333
+ </modal>
334
+ </template>
335
+
336
+ <script>
337
+ import Vue from 'vue'
338
+ import * as Util from '../Util'
339
+ import { HttpResetClass } from 'vue-client'
340
+ import RadioGroup from 'vue-client/src/vue-strap/src/radioGroup'
341
+ import Radio from 'vue-client/src/vue-strap/src/radioBtn'
342
+ import co from 'co'
343
+
344
+ // let getRepairParam = function * (self){
345
+ // let data = {
346
+ // $parent.$parent.model: self.$parent.$parent.model, loginUser: {
347
+ // name: self.role == 'view'?self.$login.f.name:Vue.user.name,
348
+ // ename: self.role == 'view'?self.$login.f.ename:Vue.user.ename
349
+ // }, user: self.user, callObj: self.callObj
350
+ // }
351
+ // if(self.$parent.$parent.meading == '转维修员'){
352
+ // data.toRepair = '一级派单'
353
+ // }
354
+ // data.$parent.$parent.model.f_attendant = data.loginUser.name
355
+ // ////tag
356
+ // ////tag
357
+ // let res
358
+ // let errString = self.$parent. $parent.errorVerify()
359
+ // if(errString){
360
+ // ////tag
361
+ // if (Vue.android)
362
+ // self.undo()
363
+ // this.$showMessage(errString)
364
+ // return
365
+ // } else {
366
+ // if(self.role == 'inspect'){
367
+ // if(self.$parent.$parent.meading == '转维修员' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
368
+ // this.$showMessage("请选择维修员!")
369
+ // return
370
+ // }
371
+ // if(self.$parent.$parent.meading == '转站点' && (self.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || self.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)){
372
+ // HostApp.alert()
373
+ // this.$showMessage("请选择站点!")
374
+ // return
375
+ // }
376
+ // if(self.$parent.$parent.model.f_repairtype == ''){
377
+ // this.$showMessage("请选择报修类型!")
378
+ // return
379
+ // }
380
+ // ////tag)
381
+ // let checkResult = '正常'
382
+ // let options = [{"data": "已处理"},{"data": "未处理"}]
383
+ // let value = ''
384
+ // let codata = JSON.parse(JSON.stringify(self.paper))
385
+ // for(let device in codata){
386
+ // ////tag)
387
+ // let f_device_type
388
+ // if(device.startsWith("device")){
389
+ // for(let item in codata[device]) {
390
+ // if(codata[device].length > 1 ){
391
+ // let j = Number.parseInt(item)+1
392
+ // f_device_type = `${codata[device][item].f_device_type}${j}`
393
+ // }else{
394
+ // f_device_type = codata[device][item].f_device_type
395
+ // }
396
+ // // ////tag
397
+ // let details = []
398
+ // for(let i in codata[device][item].f_items){
399
+ // let items = codata[device][item].f_items[i]
400
+ // ////tag
401
+ // if(items.f_is_defect == true || items.f_is_defect == 'true'){
402
+ // checkResult = '有隐患'
403
+ // ////tag
404
+ // let res = yield self.$resetpost(`${self.Url}/api/af-safecheck/sql/getDeviceItem`,{data:{f_device_id:codata[device][item].f_device_id,f_item_name:items.f_item_name}})
405
+ // ////tag)
406
+ // self.$set('detail.f_defect_id', res.data[0].id)
407
+ // self.$set('detail.f_project',`${items.f_item_name}:${items.f_item_value}`)
408
+ // self.$set('detail.type',items.type)
409
+ // self.$set('detail.options',options)
410
+ // details.push(JSON.parse(JSON.stringify(self.detail)))
411
+ // }
412
+ // if(items.type == 'selector'){
413
+ // items.selected = ''
414
+ // }
415
+ // self.detail = {}
416
+ // }
417
+ // ////tag
418
+ // self.$set('defectDevice.f_type',f_device_type)
419
+ // self.$set('defectDevice.details',details)
420
+ // if(self.defectDevice.details.length >0 ){
421
+ // self.repairitems.push(JSON.parse(JSON.stringify(self.defectDevice)))
422
+ // }
423
+ // self.defectDevice = {}
424
+ // ////tag
425
+ // }
426
+ // }
427
+ // }
428
+ // self.$set('$parent.$parent.model.f_repairitems.data',self.repairitems)
429
+ //
430
+ //
431
+ // ////tag)
432
+ // res = self.$androidUtil.bzLogic('safecheckToRepair',data)
433
+ // ////tag
434
+ // ////tag
435
+ // ////tag
436
+ // if(res.code == 200){
437
+ // self.$parent.$parent.isSafeCheckToRepair = true
438
+ // self.undo()
439
+ // self.$set('paper.f_SafeToRepair_id',res.data.f_service_id)
440
+ // ////tag
441
+ // self.$resetpost(`${self.Url}/api/af-safecheck/logic/updatePaperRepair`,{data:{f_paper_id:self.paper.f_paper_id,f_SafeToRepair_id:res.data.f_service_id}}).then((ret)=>{
442
+ // ////tag
443
+ // if(ret.data.code ==200){
444
+ // ////tag
445
+ // self.$parent.$parent.$back()
446
+ // }else{
447
+ // self.$showMessage('安检转维修失败!')
448
+ // }
449
+ // }).catch(v=>{
450
+ // ////tag)
451
+ // self.$showMessage('安检转维修失败!')
452
+ // })
453
+ // }else{
454
+ // self.$showMessage('安检转维修失败!')
455
+ // }
456
+ // }
457
+ // }
458
+ // }
459
+
460
+
461
+
462
+ // let getRepairs = async function(self,url) {
463
+ // // 获取配置信息
464
+ // try {
465
+ // let val = {source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1 ))', userid: `${Vue.user.id}`}
466
+ // let repairs =[]
467
+ // let res = await Vue.resetpost(`${url}/rs/search`,{data: val},{resolveMsg: null, rejectMsg: null})
468
+ // res.data.forEach((item) => {
469
+ // repairs.push({label: item.name, value: item})
470
+ // })
471
+ // self.f_repair_person = repairs
472
+ // if(self.$parent.$parent.role == 'inspect'){
473
+ // let res = self.$androidUtil.bzLogic('getUserInfo',{id:self.paper.f_userinfoid})
474
+ // if(res.code == 200){
475
+ // self.$parent.$parent.user = res.data[0]
476
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
477
+ // }
478
+ // }else{
479
+ // ////tag
480
+ // self.$resetpost(`${self.Url}/api/af-safecheck/sql/safeCheckgetUserInfo`,{data:{id:self.paper.f_userinfoid}},{resolveMsg: null, rejectMsg: null}).then((res)=>{
481
+ // ////tag
482
+ // if(res.data.length != 0){
483
+ // self.$parent.$parent.user = res.data[0]
484
+ // self.$parent.$parent.model.f_area = self.$parent.$parent.user.f_area
485
+ // }
486
+ // })
487
+ // // path({alias:'getUserInfo',data:{id:this.paper.f_userinfoid}})
488
+ // }
489
+ // } catch (error) {
490
+ // ////tag
491
+ // }
492
+ // }
493
+
494
+ export default {
495
+ title: '用户反馈',
496
+ data() {
497
+ return {
498
+ isvideo:'false',
499
+ defectImgs: [],
500
+ defectToolTip: [],
501
+ defectReason: [],
502
+ images: [],
503
+ showmodelthree: false,
504
+ isneedDate: this.$parent.$parent.isneedDate,
505
+ plan: this.$parent.$parent.item,
506
+ meading: this.$parent.$parent.meading,
507
+ paper: this.$parent.$parent.data,
508
+ printContent: [],
509
+ upload_state: this.$parent.$parent.item.f_upload_state,
510
+ enabled: false,//控制限制购气是否可选
511
+ deleteenabled: false,
512
+ showmodel: false,
513
+ showbacklist:'是',
514
+ backlistisselect: false,
515
+ showgas: false,
516
+ showgasmodel:this.$appdata.getSingleValue('用户须知查看') || false,
517
+ isalbum:this.$appdata.getSingleValue('安检使用相册') || false,
518
+ gasinstructions:'',
519
+ deletebacklistisselect: false,
520
+ radios: [
521
+ {
522
+ label: '满意',
523
+ value: 0,
524
+ isChecked: false,
525
+ },
526
+ {
527
+ label: '基本满意',
528
+ value: 1,
529
+ isChecked: false,
530
+ },
531
+ {
532
+ label: '不满意',
533
+ value: 2,
534
+ isChecked: false,
535
+ },
536
+ ],
537
+ repairitems: [],
538
+ repairstypes: this.$appdata.getParam('报修类型'),
539
+ // f_repair_person: this.readRepair(),
540
+ showrepair: false,
541
+ safeCheckToRepair: '',
542
+ showCheckToRepair: false,
543
+ userid: '',
544
+ source:
545
+ 'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
546
+ 'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
547
+ isback: false,
548
+ defectDevice: {},
549
+ detail: {},
550
+ callObj: null,
551
+ user: {},
552
+ role: this.$parent.$parent.role,
553
+ handling: [{label: '转站点', value: '转站点'}, {label: '转维修员', value: '转维修员'}],
554
+ Url: this.$androidUtil.getProxyUrl(),
555
+ cause: "",
556
+ deletecause: "",
557
+ isRecodr: "false", //单值参数,为true则是开启全程录音
558
+ }
559
+ },
560
+ props: ['idx'],
561
+ components: {
562
+ RadioGroup,
563
+ Radio
564
+ },
565
+ methods: {
566
+ timeSet(val) {
567
+ //////tag
568
+ if (!val) {
569
+ return
570
+ }
571
+ let time = new Date(val).getTime()
572
+ let time2 = new Date().getTime()
573
+ if (time2 > time) {
574
+ return true
575
+ }
576
+ },
577
+ // async isoverDate(){
578
+ // ////tag
579
+ // let res= await this.$resetpost(`${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/androidGetuserinfo`, {data:{
580
+ // condition:"f_plan_item_id='"+this.$parent.$parent.item.id+"'"
581
+ // }
582
+ // })
583
+ // this.isneedDate=res.data[0]["f_subscribe_date"]
584
+ // ////tag
585
+ // },
586
+ check(index) {
587
+ ////tag
588
+ // 先取消所有选中项
589
+ for (let item of this.radios) {
590
+ item.isChecked = false;
591
+ }
592
+ //再设置当前点击项选中
593
+ this.paper.f_client_evaluation = this.radios[index].label;
594
+ // 设置值,以供传递
595
+ this.radios[index].isChecked = true;
596
+ ////tag;
597
+ },
598
+ getSignValue(fileName) {
599
+ this.f_signname = fileName
600
+ },
601
+ videoCallBack(fileName) {
602
+ this.$set('paper.f_video_path', fileName)
603
+ HostApp.__callback__ = null
604
+ HostApp.__this__ = null
605
+ },
606
+ takeVideo() {
607
+ HostApp.__callback__ = this.videoCallBack
608
+ HostApp.__this__ = this
609
+ let fileName = Util.guid() + '.mp4'
610
+ HostApp._open_a_page({
611
+ type: 'boomerang',
612
+ page: 'com.aofeng.hybrid.android.peripheral.VideoActivity',
613
+ param: {
614
+ file: fileName,
615
+ requestCode: 111,
616
+ callback: 'javascript:HostApp.__callback__("%s");'
617
+ }
618
+ })
619
+ },
620
+ cameraCallBack(prop, fileName) {
621
+ if (prop == 'f_overall_path') {
622
+ let f_overall_path = fileName + '?' + Math.random()
623
+ HostApp.__this__.paper.f_overall_imgs.push({
624
+ f_overall_path: f_overall_path
625
+ })
626
+ } else {
627
+ HostApp.__this__.paper[prop] = fileName + '?' + Math.random()
628
+ }
629
+ HostApp.__callback__ = null
630
+ HostApp.__this__ = null
631
+ },
632
+ takePic(prop, title, index) {
633
+ HostApp.__callback__ = this.cameraCallBack
634
+ HostApp.__this__ = this
635
+ ////tag
636
+ ////tag
637
+ let fileName
638
+ if (prop == 'f_overall_path') {
639
+ if (!this.paper.f_overall_imgs[index] || this.paper.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
640
+ fileName = Util.guid() + '-' + prop + '.jpg'
641
+ } else {
642
+ fileName = Util.getFileName(this.paper.f_overall_imgs[index].f_overall_path)
643
+ }
644
+ } else {
645
+ if (!this.paper[prop] || this.paper[prop].includes("nopic.png")) {
646
+ fileName = Util.guid() + '-' + prop + '.jpg'
647
+ } else {
648
+ fileName = Util.getFileName(this.paper[prop])
649
+ }
650
+ }
651
+ let jingweidu = ''
652
+ if (this.$parent.$parent.is_has_jingweidu == 'true'){
653
+ const obj = HostApp.getGpsDetailAddress()
654
+ jingweidu = '\t经度:' + obj.longitude+ '\t纬度:' + obj.latitude
655
+ }
656
+ HostApp._open_a_page({
657
+ type: 'boomerang',
658
+ page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
659
+ param: {
660
+ file: fileName,
661
+ requestCode: 111,
662
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
663
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name + '\t' + this.paper.f_userinfo_code+ '\t' + this.paper.f_user_name+ '\t' + this.paper.f_address
664
+ +jingweidu
665
+ }
666
+ })
667
+ },
668
+ selectPictrueCallback(picList){
669
+ if(picList && picList.length>0){
670
+ for (let i = 0; i < picList.length; i++) {
671
+ HostApp.__this__.paper.f_overall_imgs.push({
672
+ f_overall_path: picList[i]
673
+ })
674
+ }
675
+ }
676
+ HostApp.__callback__ = null
677
+ HostApp.__this__ = null
678
+ },
679
+ selectPicture(){
680
+ HostApp.__callback__ = this.selectPictrueCallback
681
+ HostApp.__this__ = this
682
+ HostApp._open_a_page({
683
+ type: 'boomerang',
684
+ page: 'com.aofeng.hybrid.android.peripheral.ActionMultiplePickActivity',
685
+ param: {
686
+ requestCode: 111,
687
+ callback: 'javascript:HostApp.__callback__(%s);',
688
+ }
689
+ })
690
+ },
691
+ amrCallBack(fileName) {
692
+ HostApp.__this__.$set('paper.f_recording1_path', fileName)
693
+ HostApp.__callback__ = null
694
+ HostApp.__this__ = null
695
+ },
696
+ record() {
697
+ if (this.$parent.$parent.role != 'inspect') {
698
+ if (this.paper.f_recording1_path != '') {
699
+ window.location = this.paper.f_recording1_path
700
+ }
701
+ } else {
702
+ HostApp.__callback__ = this.amrCallBack
703
+ HostApp.__this__ = this
704
+ let fileName
705
+ if (!this.paper.f_recording1_path) {
706
+ fileName = Util.guid() + '.amr'
707
+ } else {
708
+ fileName = Util.getFileName(this.paper.f_recording1_path)
709
+ }
710
+ HostApp._open_a_page({
711
+ type: 'boomerang',
712
+ page: 'com.aofeng.hybrid.android.peripheral.AudioClipActivity',
713
+ param: {file: fileName, requestCode: 111, callback: 'javascript:HostApp.__callback__("%s");'}
714
+ })
715
+ }
716
+ },
717
+ // 签名回调
718
+ signCallback(prop, fileName) {
719
+ // HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
720
+ HostApp.__this__.$set('paper.f_sign_path', fileName)
721
+ HostApp.__callback__ = null
722
+ HostApp.__this__ = null
723
+ },
724
+ // 用户签名
725
+ sign() {
726
+ if (!this.paper.f_read_instructions) {
727
+ this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
728
+ return
729
+ }
730
+ this.delAudioFile('f_sign_path', this.paper.f_sign_path)
731
+ let prop = 'f_sign_path'
732
+ let idx = 'aofeng'
733
+ let fileName
734
+ if (!this.paper.f_sign_path) {
735
+ fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
736
+ } else {
737
+ fileName = Util.getFileName(this.paper.f_sign_path)
738
+ }
739
+ HostApp.__callback__ = this.signCallback
740
+ HostApp.__this__ = this
741
+ HostApp.getSignature({
742
+ file: fileName,
743
+ requestCode: 111,
744
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
745
+ })
746
+ },
747
+ delfile(prop, fileName, index) {
748
+ if (fileName == Vue.nopic)
749
+ return
750
+ else {
751
+ if (prop == 'f_overall_path') {
752
+ this.paper.f_overall_imgs.splice(index, 1)
753
+ HostApp.delfile(fileName)
754
+ } else {
755
+ HostApp.delfile(fileName)
756
+ this.paper[prop] = Vue.nopic
757
+ }
758
+ }
759
+ },
760
+ delAudioFile(prop, fileName) {
761
+ if (!fileName)
762
+ return
763
+ else {
764
+ HostApp.delfile(fileName)
765
+ this.paper[prop] = null
766
+ }
767
+ },
768
+ //获取打印用户信息
769
+ getUser() {
770
+ if (this.paper.f_user_name == undefined)
771
+ this.paper.f_user_name = ''
772
+ this.printContent.push({
773
+ type: 3,
774
+ text: '用户名称:' + this.paper.f_user_name,
775
+ fontsize: 2,
776
+ isbold: false,
777
+ align: 'left'
778
+ })
779
+ if (this.paper.f_userinfo_code == undefined)
780
+ this.paper.f_userinfo_code = ''
781
+ this.printContent.push({
782
+ type: 3,
783
+ text: '用户编号:' + this.paper.f_userinfo_code,
784
+ fontsize: 2,
785
+ isbold: false,
786
+ align: 'left'
787
+ })
788
+ if (this.paper.f_address == undefined)
789
+ this.paper.f_address = ''
790
+ this.printContent.push({type: 3, text: '地址:' + this.paper.f_address, fontsize: 2, isbold: false, align: 'left'})
791
+ if (this.paper.f_user_phone == undefined)
792
+ this.paper.f_user_phone = ''
793
+ this.printContent.push({
794
+ type: 3,
795
+ text: '电话:' + this.paper.f_user_phone,
796
+ fontsize: 2,
797
+ isbold: false,
798
+ align: 'left'
799
+ })
800
+ },
801
+ verify() {
802
+ let hasError = this.$parent.$parent.verifyUser()
803
+ if (hasError)
804
+ return hasError
805
+ hasError = this.$parent.$parent.verifyDevices()
806
+ if (hasError)
807
+ return hasError
808
+ },
809
+ print() {
810
+ let errString = this.verify()
811
+ if (errString) {
812
+ ////tag
813
+ if (Vue.android)
814
+ this.$showMessage(errString)
815
+ return
816
+ }
817
+ // 文本
818
+ let templatename = '安检结果单'
819
+ if (Vue.config.safecheck != undefined) {
820
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
821
+ if (Vue.config.safecheck.ApproveConfig.templatename != undefined) {
822
+ templatename = Vue.config.safecheck.ApproveConfig.templatename
823
+ }
824
+ }
825
+ }
826
+ let textHead = {type: 3, text: templatename, fontsize: 3, isbold: true, align: 'center'}
827
+ let feedPageHead = {type: 4, value: 2, unit: 'line'}
828
+ let feedPageEnd = {type: 4, value: 4, unit: 'line'}
829
+ this.printContent.push(textHead)
830
+ this.printContent.push(feedPageHead)
831
+ this.getUser()
832
+ this.getDefect()
833
+ this.getCheck()
834
+ this.printContent.push(feedPageEnd)
835
+ let arrstr = JSON.stringify(this.printContent)
836
+ ////tag
837
+ this.$androidUtil.print(arrstr)
838
+ this.$set('printContent', [])
839
+ },
840
+ //打印安检信息
841
+ getCheck() {
842
+ let telephone = '96777'
843
+ if (Vue.config.safecheck != undefined) {
844
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
845
+ if (Vue.config.safecheck.ApproveConfig.checkphone != undefined) {
846
+ telephone = Vue.config.safecheck.ApproveConfig.checkphone
847
+ }
848
+ }
849
+ }
850
+ this.printContent.push({
851
+ type: 3,
852
+ text: '*******************************',
853
+ fontsize: 3,
854
+ isbold: false,
855
+ align: 'center'
856
+ })
857
+ this.printContent.push({type: 3, text: '咨询电话;' + telephone, fontsize: 2, isbold: false, align: 'left'})
858
+ this.printContent.push({type: 3, text: '安检人:' + Vue.user.name, fontsize: 2, isbold: false, align: 'left'})
859
+ this.printContent.push({
860
+ type: 3,
861
+ text: '安检时间:' + this.getNowFormatDate(),
862
+ fontsize: 2,
863
+ isbold: false,
864
+ align: 'left'
865
+ })
866
+ this.printContent.push({type: 3, text: '用户签字:', fontsize: 2, isbold: false, align: 'left'})
867
+ this.printContent.push({type: 4, value: 4, unit: 'line'})
868
+ },
869
+
870
+ getDefect() {
871
+ let showmore = false
872
+ if (Vue.config.safecheck != undefined) {
873
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
874
+ if (Vue.config.safecheck.ApproveConfig.showmore != undefined) {
875
+ showmore = Vue.config.safecheck.ApproveConfig.showmore
876
+ }
877
+ }
878
+ }
879
+
880
+ let backData = this.$parent.$parent.getAllDefect()
881
+ // 对隐患信息进行遍历
882
+ let res = JSON.parse(backData.f_defect_content)
883
+ this.printContent.push({
884
+ type: 3,
885
+ text: '安检结果:' + res.result,
886
+ fontsize: 2,
887
+ isbold: false,
888
+ align: 'left'
889
+ })
890
+ this.printContent.push({
891
+ type: 3,
892
+ text: '*******************************',
893
+ fontsize: 3,
894
+ isbold: false,
895
+ align: 'center'
896
+ })
897
+
898
+
899
+ if (showmore) {
900
+ //全部打印
901
+ for (let dev in this.$parent.$parent.config) {
902
+ for (let device in backData) {
903
+ if (device.startsWith("device")) {
904
+ for (let item in backData[device]) {
905
+ //遍历结果
906
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
907
+ let error = true
908
+ for (let i in backData[device][item].f_items) {
909
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
910
+ error = false
911
+ }
912
+ }
913
+ if (error) {
914
+ this.printContent.push({
915
+ type: 3,
916
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
917
+ fontsize: 2,
918
+ isbold: false,
919
+ align: 'left'
920
+ })
921
+ } else {
922
+ this.printContent.push({
923
+ type: 3,
924
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
925
+ fontsize: 2,
926
+ isbold: true,
927
+ align: 'left'
928
+ })
929
+ }
930
+
931
+ for (let i in backData[device][item].f_items) {
932
+ if (backData[device][item].f_items[i].f_item_value != '' && backData[device][item].f_items[i].f_item_value != null) {
933
+ this.printContent.push({
934
+ type: 3,
935
+ text: backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
936
+ fontsize: 2,
937
+ isbold: false,
938
+ align: 'left'
939
+ })
940
+ }
941
+ }
942
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
943
+ }
944
+ }
945
+ }
946
+ }
947
+ }
948
+
949
+ for (let dev in this.$parent.$parent.config) {
950
+ for (let device in backData) {
951
+ if (device.startsWith("device")) {
952
+ for (let item in backData[device]) {
953
+ //遍历结果
954
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
955
+ let error = true
956
+ for (let i in backData[device][item].f_items) {
957
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
958
+ error = false
959
+ }
960
+ }
961
+ if (!error) {
962
+ this.printContent.push({
963
+ type: 3,
964
+ text: '隐患:',
965
+ fontsize: 2,
966
+ isbold: true,
967
+ align: 'left'
968
+ })
969
+ }
970
+ }
971
+ }
972
+ }
973
+ }
974
+ for (let device in backData) {
975
+ if (device.startsWith("device")) {
976
+ for (let item in backData[device]) {
977
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
978
+ for (let i in backData[device][item].f_items) {
979
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
980
+ this.printContent.push({
981
+ type: 3,
982
+ text: backData[device][item].f_items[i].f_item_name + ' ' + backData[device][item].f_items[i].f_item_value,
983
+ fontsize: 2,
984
+ isbold: true,
985
+ align: 'left'
986
+ })
987
+ }
988
+ }
989
+ }
990
+ }
991
+ }
992
+ }
993
+
994
+ }
995
+ } else {
996
+ for (let dev in this.$parent.$parent.config) {
997
+ for (let device in backData) {
998
+ if (device.startsWith("device")) {
999
+ for (let item in backData[device]) {
1000
+ //遍历结果
1001
+ if (backData[device].length != 0 && backData[device][item].f_device_type == dev) {
1002
+ let error = true
1003
+ for (let i in backData[device][item].f_items) {
1004
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1005
+ error = false
1006
+ }
1007
+ }
1008
+ if (error) {
1009
+ this.printContent.push({
1010
+ type: 3,
1011
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':正常',
1012
+ fontsize: 2,
1013
+ isbold: false,
1014
+ align: 'left'
1015
+ })
1016
+ } else {
1017
+ this.printContent.push({
1018
+ type: 3,
1019
+ text: dev + (backData[device].indexOf(backData[device][item]) + 1) + ':有隐患',
1020
+ fontsize: 2,
1021
+ isbold: false,
1022
+ align: 'left'
1023
+ })
1024
+ }
1025
+
1026
+ for (let i in backData[device][item].f_items) {
1027
+ if (backData[device][item].f_items[i].f_is_defect == true || backData[device][item].f_items[i].f_is_defect == 'true') {
1028
+ this.printContent.push({
1029
+ type: 3,
1030
+ text: '隐患:' + backData[device][item].f_items[i].f_item_name + backData[device][item].f_items[i].f_item_value,
1031
+ fontsize: 2,
1032
+ isbold: false,
1033
+ align: 'left'
1034
+ })
1035
+ }
1036
+ }
1037
+ this.printContent.push({type: 4, value: 2, unit: 'line'})
1038
+ }
1039
+ }
1040
+ }
1041
+ }
1042
+ }
1043
+ }
1044
+ },
1045
+ //获取当前时间
1046
+ getNowFormatDate() {
1047
+ var date = new Date();
1048
+ var seperator1 = "-";
1049
+ var seperator2 = ":";
1050
+ var month = date.getMonth() + 1;
1051
+ var strDate = date.getDate();
1052
+ if (month >= 1 && month <= 9) {
1053
+ month = "0" + month;
1054
+ }
1055
+ if (strDate >= 0 && strDate <= 9) {
1056
+ strDate = "0" + strDate;
1057
+ }
1058
+ var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate
1059
+ + " " + date.getHours() + seperator2 + date.getMinutes()
1060
+ + seperator2 + date.getSeconds();
1061
+ return currentdate;
1062
+ },
1063
+ readRepair() {
1064
+ let url = this.$androidUtil.getProxyUrl()
1065
+ let gen = getRepairs(this, url)
1066
+ return co(gen)
1067
+ },
1068
+ showToRepair() {
1069
+ let res = this.hasDefect()
1070
+ ////tag
1071
+ ////tag
1072
+ if (res == '正常') {
1073
+ this.showrepair = false
1074
+ } else {
1075
+ this.showrepair = true
1076
+ this.assignObj()
1077
+ }
1078
+ this.showCheckToRepair = !this.showCheckToRepair
1079
+ },
1080
+ // 选中部门
1081
+ reres(val) {
1082
+ if (val.res == undefined) {
1083
+ return
1084
+ }
1085
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = val.res
1086
+ this.$parent.$parent.model.f_meetunit = val.res
1087
+ this.$parent.$parent.model.f_orgstr = val.resids
1088
+ var arr = val.res.split('.')
1089
+ this.$parent.$parent.model.f_outlets = arr[arr.length - 1]
1090
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.resids
1091
+ },
1092
+ assignObj() {
1093
+ this.$parent.$parent.model.f_contact_phone = this.paper.f_user_phone
1094
+ this.$parent.$parent.model.f_user_name = this.paper.f_user_name
1095
+ this.$parent.$parent.model.f_address = this.paper.f_address
1096
+ this.$parent.$parent.model.f_user_type = this.paper.f_check_type
1097
+ this.$parent.$parent.model.f_street = this.paper.f_street
1098
+ this.$parent.$parent.model.f_residential_area = this.paper.f_residential_area
1099
+ this.$parent.$parent.model.f_building = this.paper.f_building
1100
+ this.$parent.$parent.model.f_unit = this.paper.f_unit
1101
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1102
+ this.$parent.$parent.model.f_room = this.paper.f_room
1103
+ this.$parent.$parent.model.f_floor = this.paper.f_floor
1104
+ this.$parent.$parent.model.f_userinfo_id = this.paper.f_userinfoid
1105
+ this.$parent.$parent.model.f_userinfo_code = this.paper.f_userinfo_code
1106
+ },
1107
+ hasDefect() {
1108
+ let checkResult = '正常'
1109
+ let codata = JSON.parse(JSON.stringify(this.paper))
1110
+ for (let device in this.paper) {
1111
+ if (device.startsWith("device")) {
1112
+ for (let item in this.paper[device]) {
1113
+ for (let i in this.paper[device][item].f_items) {
1114
+ let items = this.paper[device][item].f_items[i]
1115
+ ////tag
1116
+ if (items.f_is_defect == true || items.f_is_defect == 'true') {
1117
+ checkResult = '有隐患'
1118
+ }
1119
+ }
1120
+ }
1121
+ }
1122
+ }
1123
+ return checkResult
1124
+ },
1125
+ uploadPaper() {
1126
+ if (this.showrepair) {
1127
+ ////tag
1128
+ ////tag
1129
+ ////tag
1130
+ ////tag
1131
+
1132
+ if (this.meading == '转维修员' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1133
+ this.$showMessage("请选择维修员!")
1134
+ return
1135
+ }
1136
+ if (this.$parent.$parent.meading == '转站点' && (this.$parent.$parent.model.serviceacitivity[0].f_reciever == '' || this.$parent.$parent.model.serviceacitivity[0].f_reciever == undefined)) {
1137
+ this.$showMessage("请选择站点!")
1138
+ return
1139
+ }
1140
+ if (this.$parent.$parent.model.f_repairtype == '') {
1141
+ this.$showMessage("请选择报修类型!")
1142
+ return
1143
+ }
1144
+ this.$parent.$parent.isToRepair = true
1145
+ this.$parent.$parent.uploadCheckPaper()
1146
+ // this.$parent.$parent.savePaper(false).then((res) => {
1147
+ // ////tag
1148
+ // if(res != true){
1149
+ // ////tag
1150
+ // return
1151
+ // }else{
1152
+ // this.$parent.$parent.todo()
1153
+ // }
1154
+ // })
1155
+ } else {
1156
+ this.$parent.$parent.undo()
1157
+ }
1158
+
1159
+ },
1160
+ closeshowgas() {
1161
+ this.showgas = false
1162
+ },
1163
+ //确认安检转维修
1164
+
1165
+ undo() {
1166
+ this.showCheckToRepair = !this.showCheckToRepair
1167
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = ''
1168
+ this.$parent.$parent.model.serviceacitivity[0].f_meetunit = ''
1169
+ this.$parent.$parent.model.f_repairtype = ''
1170
+ this.meading = '转站点'
1171
+ },
1172
+ //取消拉黑
1173
+ async deletebacklist() {
1174
+ if (!this.deletecause) {
1175
+ this.$showMessage("请填写取消拉黑原因!")
1176
+ return
1177
+ }
1178
+ this.paper.f_blocking_cause = this.deletecause
1179
+ ////tag)
1180
+ let http = new HttpResetClass()
1181
+ ////tag
1182
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1183
+ data: {
1184
+ items: "version",
1185
+ tablename: "t_userinfo",
1186
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1187
+ orderitem: "f_userinfo_id"
1188
+ }
1189
+ }, {resolveMsg: null, rejectMsg: null})
1190
+ ////tag)
1191
+ ////tag
1192
+ let res2 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1193
+ data: {
1194
+ "f_operat_type": "取消拉黑",
1195
+ "f_state": "有效",
1196
+ "f_user_name": this.paper.f_user_name,
1197
+ "f_comments": this.paper.f_blocking_cause,
1198
+ "f_operator": Vue.user.name,
1199
+ "f_operatorid": Vue.user.id,
1200
+ "f_orgid": Vue.user.orgid,
1201
+ "f_orgname": Vue.user.orgs,
1202
+ "f_depid": Vue.user.depids,
1203
+ "f_depname": Vue.user.deps,
1204
+ "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行取消拉黑`,
1205
+ "f_userinfo_id": {
1206
+ "f_userinfo_id": this.paper.f_userinfoid,
1207
+ "f_user_state": "正常",
1208
+ "version": res1.data[0].version
1209
+ },
1210
+ "f_limit_times":"",
1211
+ "f_limit_value":""
1212
+ }
1213
+ }, {resolveMsg: null, rejectMsg: null})
1214
+
1215
+ ////tag)
1216
+ if (res2.data.code == 200) {
1217
+ this.showmodelthree = false
1218
+ this.deleteenabled = true
1219
+ this.paper.f_blacklist = "否"
1220
+ this.$showMessage("取消该用户限制购气成功!")
1221
+ } else {
1222
+ this.showmodelthree = false
1223
+ this.deleteenabled = true
1224
+ this.$showMessage("网络异常,请稍后再试!")
1225
+ }
1226
+ },
1227
+ async backlist() {
1228
+ if (!this.cause) {
1229
+ this.$showMessage("请填写拉黑原因!")
1230
+ return
1231
+ }
1232
+ this.paper.f_blocking_cause = this.cause
1233
+ ////tag)
1234
+ let http = new HttpResetClass()
1235
+ ////tag
1236
+ let res1 = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1237
+ data: {
1238
+ items: "version",
1239
+ tablename: "t_userinfo",
1240
+ condition: "f_userinfo_id=" + this.paper.f_userinfoid,
1241
+ orderitem: "f_userinfo_id"
1242
+ }
1243
+ }, {resolveMsg: null, rejectMsg: null})
1244
+ ////tag)
1245
+ ////tag
1246
+ let limit_times=1
1247
+ let limit_value=3
1248
+ let limit_amount=3
1249
+ if(Vue.config.safecheck && Vue.config.safecheck.ApproveConfig.limit_times && Vue.config.safecheck.ApproveConfig.limit_value && Vue.config.safecheck.ApproveConfig.limit_amount){
1250
+ limit_times = Vue.config.safecheck.ApproveConfig.limit_times
1251
+ limit_value = Vue.config.safecheck.ApproveConfig.limit_value
1252
+ limit_amount = Vue.config.safecheck.ApproveConfig.limit_amount
1253
+ }
1254
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-revenue/logic/backlistOperate`, {
1255
+ data: {
1256
+ data:this.$parent.$parent.data,
1257
+ item:this.$parent.$parent.data.item,
1258
+ "f_operat_type": "拉黑",
1259
+ "f_state": "有效",
1260
+ "f_user_name": this.paper.f_user_name,
1261
+ "f_comments": this.paper.f_blocking_cause,
1262
+ "f_operator": Vue.user.name,
1263
+ "f_operate_date":Util.toStandardTimeString(),
1264
+ "f_operatorid": Vue.user.id,
1265
+ "f_orgid": Vue.user.orgid,
1266
+ "f_orgname": Vue.user.orgs,
1267
+ "f_depid": Vue.user.depids,
1268
+ "f_depname": Vue.user.deps,
1269
+ "f_describe": `${Vue.user.name}对用户${this.paper.f_user_name}进行拉黑`,
1270
+ "f_userinfo_id": {
1271
+ "f_userinfo_id": this.paper.f_userinfoid
1272
+ },
1273
+ "f_limit_times":limit_times,
1274
+ "f_limit_value":limit_value,
1275
+ "f_limit_amount":limit_amount,
1276
+ 'f_limit_type':'气量'
1277
+ }
1278
+ }, {resolveMsg: null, rejectMsg: null}).then(res2=>{
1279
+ this.showmodel = false
1280
+ this.enabled = true
1281
+ this.paper.f_blacklist = "是"
1282
+ this.$showMessage("将该用户限制购气成功!")
1283
+ }).catch(error=>{
1284
+ if (error.status== 601){
1285
+ this.showmodel = false
1286
+ this.enabled = true
1287
+ this.paper.f_blacklist = "是"
1288
+ this.$showMessage("该用户已被限制购气,请勿重复提交!")
1289
+ }else {
1290
+ this.$showMessage("网络异常,请稍后再试!")
1291
+ }
1292
+ })
1293
+ },
1294
+ cancel() {
1295
+ this.backlistisselect = false
1296
+ this.showmodel = false
1297
+ },
1298
+ deletecancel() {
1299
+ this.deletebacklistisselect = false
1300
+ this.showmodelthree = false
1301
+ },
1302
+ repiarmancg(val) {
1303
+ if (val) {
1304
+ ////tag
1305
+ this.$parent.$parent.model.serviceacitivity[0].f_reciever = val.name
1306
+ let http1 = new HttpResetClass()
1307
+ http1.load('POST', `${this.Url}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
1308
+ data: {
1309
+ items: 'f_user_telephone',
1310
+ tablename: 't_user',
1311
+ condition: `name = '${val}'`,
1312
+ orderitem: 'id'
1313
+ }
1314
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
1315
+ this.$parent.$parent.model.f_repairman_phone = ress.data[0].f_user_telephone
1316
+ })
1317
+ }
1318
+ },
1319
+ },
1320
+ async ready() {
1321
+ this.isRecodr = this.$appdata.getSingleValue('无限制录音')
1322
+ this.isvideo = this.$appdata.getSingleValue('安检录视频')
1323
+ if(this.$appdata.getSingleValue('安检时显示拉黑')){
1324
+ this.showbacklist = this.$appdata.getSingleValue('安检时显示拉黑');
1325
+ }
1326
+ // await this.isoverDate()
1327
+ ////tag
1328
+ ////tag
1329
+ ////tag)
1330
+ ////tag))
1331
+ if (this.$parent.$parent.role == 'repair') {
1332
+ this.$set('style__', 'divmask')
1333
+ this.$set('style_view_', '')
1334
+ } else if (this.$parent.$parent.role == 'view' || this.$parent.$parent.item.f_upload_state == '已传') {
1335
+ this.$set('style__', 'divmask')
1336
+ this.$set('style_view_', 'divmask')
1337
+ ////tag
1338
+ } else {
1339
+ this.$set('style__', '')
1340
+ this.$set('style_view_', '')
1341
+ }
1342
+ if (Vue.config.safecheck != undefined) {
1343
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1344
+ if (Vue.config.safecheck.ApproveConfig.gasinstructions != undefined) {
1345
+ this.gasinstructions = Vue.config.safecheck.ApproveConfig.gasinstructions
1346
+ }
1347
+ }
1348
+ }
1349
+
1350
+ for (let item of this.radios) {
1351
+ if (this.paper.f_client_evaluation == item.label) {
1352
+ item.isChecked = true;
1353
+ }
1354
+ }
1355
+ if (!this.paper.f_notified_path)
1356
+ this.$set('paper.f_notified_path', Vue.nopic)
1357
+ if (!this.paper.f_sign_path)
1358
+ this.$set('paper.f_sign_path', Vue.nopic)
1359
+ ////tag
1360
+ if (!this.paper.f_overall_imgs) {
1361
+ let imgs = []
1362
+ // imgs.push({f_overall_path:Vue.nopic})
1363
+ this.$set('paper.f_overall_imgs', imgs)
1364
+ ////tag
1365
+ }
1366
+ if (!this.paper.f_overall2_path)
1367
+ this.$set('paper.f_overall2_path', Vue.nopic)
1368
+
1369
+ this.userid = this.role == 'view' ? this.$login.f.id : Vue.user.id
1370
+ if (Vue.config.safecheck != undefined) {
1371
+ if (Vue.config.safecheck.ApproveConfig != undefined) {
1372
+ if (Vue.config.safecheck.ApproveConfig.safeCheckToRepair != undefined) {
1373
+ this.safeCheckToRepair = Vue.config.safecheck.ApproveConfig.safeCheckToRepair
1374
+ }
1375
+ }
1376
+ }
1377
+ let device = this.$parent.$parent.data
1378
+ for (const deviceitem in device) {
1379
+ if (deviceitem.startsWith('device')){
1380
+ //tag)
1381
+ if(device[deviceitem].length == 0){
1382
+ continue
1383
+ }
1384
+ let items = device[deviceitem][0].f_items
1385
+ let deviceType = device[deviceitem][0].f_device_type
1386
+ for (let i = 0; i < items.length; i++) {
1387
+ if (items[i].f_is_defect){
1388
+ let reason = items[i].f_item_name+":"
1389
+ if (items[i].type === 'selector' || items[i].type === 'radio' || items[i].type === 'checkbox'){
1390
+ for (let j = 0; j < items[i].f_item_value.length; j++) {
1391
+ if (j+1 === items[i].f_item_value.length){
1392
+ reason += items[i].f_item_value[j]
1393
+ }else{
1394
+ reason += items[i].f_item_value[j] + ","
1395
+ }
1396
+ }
1397
+ }else{
1398
+ reason += items[i].f_item_value
1399
+ }
1400
+ if (items[i].f_path){
1401
+ this.defectImgs.push(items[i].f_path)
1402
+ }
1403
+ if (items[i].f_p1_path){
1404
+ this.defectImgs.push(items[i].f_p1_path)
1405
+ }
1406
+ if (items[i].f_p2_path){
1407
+ this.defectImgs.push(items[i].f_p2_path)
1408
+ }
1409
+ if (items[i].f_p3_path){
1410
+ this.defectImgs.push(items[i].f_p3_path)
1411
+ }
1412
+ if (items[i].tooltip){
1413
+ this.defectToolTip.push(items[i].tooltip)
1414
+ }
1415
+ this.defectReason.push({device:deviceType,deviceitem:reason})
1416
+ }else if(items[i].type === 'errorstring' && items[i].f_item_value ){
1417
+ let reason = items[i].f_item_name+":" + items[i].f_item_value
1418
+ this.defectReason.push({device:deviceType,deviceitem:reason})
1419
+ }
1420
+
1421
+ }
1422
+ }
1423
+ }
1424
+ ////tag
1425
+ ////tag
1426
+ //tag
1427
+ ////tag
1428
+ //tag)
1429
+ //tag)
1430
+ //tag)
1431
+ ////tag
1432
+ ////tag
1433
+ ////tag
1434
+ },
1435
+ watch: {
1436
+ '$parent.$parent.isUpload'(val) {
1437
+ ////tag
1438
+ },
1439
+ 'paper.f_read_instructions'(val) {
1440
+ if (val == true) {
1441
+ this.showgas = true
1442
+ }
1443
+ },
1444
+ 'meading'(val) {
1445
+ ////tag
1446
+ this.$parent.$parent.meading = val
1447
+ },
1448
+ 'backlistisselect'(val) {
1449
+ if (val == true) {
1450
+ this.showmodel = true
1451
+ this.deletebacklistisselect=false
1452
+ }
1453
+ },
1454
+ 'deletebacklistisselect'(val) {
1455
+ if (val == true) {
1456
+ this.showmodelthree = true
1457
+ this.backlistisselect=false
1458
+ }
1459
+ },
1460
+ 'isRecodr'(val) {
1461
+ if (val == 'false' || val == undefined || val == null || val == '' || val == 'undefined') {
1462
+ this.isRecodr = "false";
1463
+ }
1464
+ }
1465
+ }
1466
+ }
1467
+ </script>
1468
+ <style scoped>
1469
+ .panel-self{
1470
+ border-radius: 5px;
1471
+ border:1px solid #c5e1f7;
1472
+ background-color: #F2F6FA;
1473
+ }
1474
+ .text-left{
1475
+ text-align:left;
1476
+ }
1477
+ .font{
1478
+ font: 15px PingFang-SC-Medium;
1479
+ color: #333333;
1480
+ }
1481
+ .showIi{
1482
+ font: 14px PingFang-SC-Medium;
1483
+ color: #666666;
1484
+ }
1485
+ .info{
1486
+ margin-top: 15px;
1487
+ border-radius: 5px;
1488
+ background-color: #f3faff;
1489
+ }
1490
+ .btn-photo{
1491
+ border: 0;
1492
+ border-radius: 7px;
1493
+ background-color: #7dc1f4;
1494
+ font: 15px PingFang-SC-Bold;
1495
+ height: 20%;
1496
+ }
1497
+ .div-photo{
1498
+ width: auto;
1499
+ height: auto;
1500
+ /* margin-top: 10px; */
1501
+ position: absolute;
1502
+ bottom: 10px;
1503
+ right: 10px;
1504
+ }
1505
+ .btn-voice{
1506
+ border-radius: 7px;
1507
+ border: 1px solid #dedede;
1508
+ background-color: #f5fbff;
1509
+ font: 15px PingFang-SC-Bold;
1510
+ color: #499edf;
1511
+ }
1512
+ .save-btn{
1513
+ width: 25%;
1514
+ background-color:#499edf;
1515
+ border-radius: 6px;
1516
+ color: #FFFFFF;
1517
+ font: 15px PingFang-SC-Bold;
1518
+ }
1519
+ .upload-btn{
1520
+ width: 25%;
1521
+ background-color:#ffffff;
1522
+ border: 1px solid #499edf;
1523
+ border-radius: 6px;
1524
+ color: #499edf;
1525
+ font: 15px PingFang-SC-Bold;
1526
+ }
1527
+ .repair-btn{
1528
+ width: 25%;
1529
+ border: 1px solid #499edf;
1530
+ border-radius: 6px;
1531
+ font: 15px PingFang-SC-Bold;
1532
+ }
1533
+ #el_ca_tx{
1534
+ width: 100%;
1535
+ margin: 5px;
1536
+ }
1537
+ #el_ca_txt{
1538
+ width: 100%;
1539
+ margin: 5px;
1540
+ }
1541
+ </style>