safecheck-client 3.0.34-2 → 3.0.34-4

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 (292) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/config/dev.env.js +6 -6
  5. package/config/index.js +38 -38
  6. package/config/prod.env.js +3 -3
  7. package/config/test.env.js +6 -6
  8. package/docs/AppBase.md +22 -22
  9. package/docs/Busy.md +14 -14
  10. package/docs/CriteriaPaged.md +47 -47
  11. package/docs/DataGrid.md +54 -54
  12. package/docs/DataModel.md +22 -22
  13. package/docs/Dynamic.md +42 -42
  14. package/docs/FormPrint.md +18 -18
  15. package/docs/GetParams.md +11 -11
  16. package/docs/GridTree.md +47 -47
  17. package/docs/HttpBusy.md +13 -13
  18. package/docs/HttpStore.md +29 -29
  19. package/docs/MessageBox.md +28 -28
  20. package/docs/PagedList.md +29 -29
  21. package/docs/Pager.md +21 -21
  22. package/docs/PrintFile.md +38 -38
  23. package/docs/Project.md +23 -23
  24. package/docs/Route.md +105 -105
  25. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  26. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  27. package/docs/Task.md +46 -46
  28. package/docs/TreeList.md +28 -28
  29. package/docs/TreeMixin.md +18 -18
  30. package/docs/all.md +10 -10
  31. package/docs/list.md +42 -42
  32. package/docs/partial.md +75 -75
  33. package/docs/selector.md +82 -82
  34. package/docs/tree.md +40 -40
  35. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  36. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue-strap/345/217/230/346/233/264/350/256/260/345/275/225.md +7 -7
  37. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/vue/345/217/230/346/233/264/350/256/260/345/275/225.md +13 -13
  38. package/docs//345/274/200/345/217/221/346/226/207/346/241/243//345/274/200/345/217/221/347/216/257/345/242/203/350/256/276/347/275/256.md +77 -77
  39. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  40. package/examples/AddressList/App.vue +13 -13
  41. package/examples/AddressList/index.html +11 -11
  42. package/examples/DispatchList/App.vue +10 -10
  43. package/examples/DispatchList/BaseTree.vue +13 -13
  44. package/examples/DispatchList/Init.vue +22 -22
  45. package/examples/DispatchList/Test.vue +20 -20
  46. package/examples/DispatchList/index.html +11 -11
  47. package/examples/DispatchList/main.js +18 -18
  48. package/home.html +16 -16
  49. package/package.json +1 -1
  50. package/publish.bat +7 -7
  51. package/release.bat +5 -5
  52. package/src/Widget.vue +13 -13
  53. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  54. package/src/android-bootstrap/less/.csscomb.json +304 -304
  55. package/src/android-bootstrap/less/.csslintrc +19 -19
  56. package/src/android-bootstrap/less/alerts.less +73 -73
  57. package/src/android-bootstrap/less/badges.less +66 -66
  58. package/src/android-bootstrap/less/bootstrap.less +56 -56
  59. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  60. package/src/android-bootstrap/less/button-groups.less +247 -247
  61. package/src/android-bootstrap/less/buttons.less +173 -173
  62. package/src/android-bootstrap/less/carousel.less +269 -269
  63. package/src/android-bootstrap/less/close.less +34 -34
  64. package/src/android-bootstrap/less/code.less +69 -69
  65. package/src/android-bootstrap/less/component-animations.less +33 -33
  66. package/src/android-bootstrap/less/grid.less +84 -84
  67. package/src/android-bootstrap/less/input-groups.less +167 -167
  68. package/src/android-bootstrap/less/jumbotron.less +52 -52
  69. package/src/android-bootstrap/less/labels.less +64 -64
  70. package/src/android-bootstrap/less/list-group.less +141 -141
  71. package/src/android-bootstrap/less/media.less +66 -66
  72. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  73. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  74. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  75. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  76. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  77. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  78. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  79. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  80. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  81. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  82. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  83. package/src/android-bootstrap/less/mixins/image.less +33 -33
  84. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  85. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  86. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  87. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  88. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  89. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  90. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  91. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  92. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  93. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  94. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  95. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  96. package/src/android-bootstrap/less/mixins/size.less +10 -10
  97. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  98. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  99. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  100. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  101. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  102. package/src/android-bootstrap/less/mixins.less +40 -40
  103. package/src/android-bootstrap/less/modals.less +151 -151
  104. package/src/android-bootstrap/less/navbar.less +660 -660
  105. package/src/android-bootstrap/less/navs.less +290 -290
  106. package/src/android-bootstrap/less/normalize.less +424 -424
  107. package/src/android-bootstrap/less/pager.less +76 -76
  108. package/src/android-bootstrap/less/pagination.less +89 -89
  109. package/src/android-bootstrap/less/panels.less +274 -274
  110. package/src/android-bootstrap/less/popovers.less +131 -131
  111. package/src/android-bootstrap/less/print.less +101 -101
  112. package/src/android-bootstrap/less/progress-bars.less +87 -87
  113. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  114. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  115. package/src/android-bootstrap/less/scaffolding.less +161 -161
  116. package/src/android-bootstrap/less/tables.less +262 -262
  117. package/src/android-bootstrap/less/theme.less +291 -291
  118. package/src/android-bootstrap/less/thumbnails.less +36 -36
  119. package/src/android-bootstrap/less/tooltip.less +102 -102
  120. package/src/android-bootstrap/less/type.less +303 -303
  121. package/src/android-bootstrap/less/utilities.less +55 -55
  122. package/src/android-bootstrap/less/variables.less +896 -896
  123. package/src/android-bootstrap/less/wells.less +29 -29
  124. package/src/androidTest.js +20 -20
  125. package/src/bootstrap/less/.csscomb.json +304 -304
  126. package/src/bootstrap/less/.csslintrc +19 -19
  127. package/src/bootstrap/less/alerts.less +73 -73
  128. package/src/bootstrap/less/badges.less +66 -66
  129. package/src/bootstrap/less/breadcrumbs.less +26 -26
  130. package/src/bootstrap/less/button-groups.less +247 -247
  131. package/src/bootstrap/less/buttons.less +172 -172
  132. package/src/bootstrap/less/carousel.less +269 -269
  133. package/src/bootstrap/less/close.less +34 -34
  134. package/src/bootstrap/less/code.less +69 -69
  135. package/src/bootstrap/less/component-animations.less +33 -33
  136. package/src/bootstrap/less/dropdowns.less +216 -216
  137. package/src/bootstrap/less/forms.less +626 -626
  138. package/src/bootstrap/less/grid.less +84 -84
  139. package/src/bootstrap/less/input-groups.less +167 -167
  140. package/src/bootstrap/less/jumbotron.less +52 -52
  141. package/src/bootstrap/less/labels.less +64 -64
  142. package/src/bootstrap/less/list-group.less +141 -141
  143. package/src/bootstrap/less/media.less +66 -66
  144. package/src/bootstrap/less/mixins/alerts.less +14 -14
  145. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  146. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  147. package/src/bootstrap/less/mixins/buttons.less +69 -69
  148. package/src/bootstrap/less/mixins/center-block.less +7 -7
  149. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  150. package/src/bootstrap/less/mixins/forms.less +90 -90
  151. package/src/bootstrap/less/mixins/gradients.less +59 -59
  152. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  153. package/src/bootstrap/less/mixins/grid.less +122 -122
  154. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  155. package/src/bootstrap/less/mixins/image.less +33 -33
  156. package/src/bootstrap/less/mixins/labels.less +12 -12
  157. package/src/bootstrap/less/mixins/list-group.less +30 -30
  158. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  159. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  160. package/src/bootstrap/less/mixins/opacity.less +8 -8
  161. package/src/bootstrap/less/mixins/pagination.less +24 -24
  162. package/src/bootstrap/less/mixins/panels.less +24 -24
  163. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  164. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  165. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  166. package/src/bootstrap/less/mixins/resize.less +6 -6
  167. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  168. package/src/bootstrap/less/mixins/size.less +10 -10
  169. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  170. package/src/bootstrap/less/mixins/table-row.less +44 -44
  171. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  172. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  173. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  174. package/src/bootstrap/less/mixins.less +40 -40
  175. package/src/bootstrap/less/modals.less +151 -151
  176. package/src/bootstrap/less/navbar.less +660 -660
  177. package/src/bootstrap/less/normalize.less +424 -424
  178. package/src/bootstrap/less/pager.less +76 -76
  179. package/src/bootstrap/less/pagination.less +89 -89
  180. package/src/bootstrap/less/panels.less +275 -275
  181. package/src/bootstrap/less/popovers.less +131 -131
  182. package/src/bootstrap/less/print.less +101 -101
  183. package/src/bootstrap/less/progress-bars.less +87 -87
  184. package/src/bootstrap/less/responsive-embed.less +35 -35
  185. package/src/bootstrap/less/responsive-utilities.less +194 -194
  186. package/src/bootstrap/less/scaffolding.less +161 -161
  187. package/src/bootstrap/less/theme.less +291 -291
  188. package/src/bootstrap/less/thumbnails.less +36 -36
  189. package/src/bootstrap/less/tooltip.less +102 -102
  190. package/src/bootstrap/less/type.less +303 -303
  191. package/src/bootstrap/less/utilities.less +55 -55
  192. package/src/bootstrap/less/wells.less +29 -29
  193. package/src/components/FileUpload.vue +696 -696
  194. package/src/components/Hello.vue +39 -39
  195. package/src/components/LeftTree.vue +27 -27
  196. package/src/components/android/AddGas.vue +147 -147
  197. package/src/components/android/AddressList.vue +61 -61
  198. package/src/components/android/AreaPlan.vue +572 -572
  199. package/src/components/android/AttendanceTally.vue +116 -116
  200. package/src/components/android/Blank.vue +10 -10
  201. package/src/components/android/CheckUnplanPage.vue +56 -56
  202. package/src/components/android/Checker.vue +12 -12
  203. package/src/components/android/CheckerAnnual.vue +81 -81
  204. package/src/components/android/CheckerAvarta.vue +82 -82
  205. package/src/components/android/CheckerMonthly.vue +84 -84
  206. package/src/components/android/EquipmentInspection.vue +348 -348
  207. package/src/components/android/FootprintMap.vue +120 -120
  208. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  209. package/src/components/android/LcheckUnplan.vue +108 -108
  210. package/src/components/android/MasterMain.vue +77 -77
  211. package/src/components/android/Menu.vue +132 -132
  212. package/src/components/android/NavBottom.vue +157 -157
  213. package/src/components/android/PaperAlarm.vue +85 -85
  214. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  215. package/src/components/android/PlumberAnnual.vue +83 -83
  216. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  217. package/src/components/android/PlumberMonthly.vue +84 -84
  218. package/src/components/android/PostMap.vue +83 -83
  219. package/src/components/android/QueryCheckHistory.vue +122 -122
  220. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  221. package/src/components/android/RepairMain.vue +60 -60
  222. package/src/components/android/Repairman.vue +12 -12
  223. package/src/components/android/SafePlanItem.vue +509 -509
  224. package/src/components/android/SafecheckOrderV.vue +2809 -2809
  225. package/src/components/android/StationMaster.vue +12 -12
  226. package/src/components/android/SwitchValve.vue +323 -323
  227. package/src/components/checkerphonestate/Checker.vue +32 -32
  228. package/src/components/checkerphonestate/CheckerState.vue +97 -97
  229. package/src/components/defects/AddDefectModal.vue +120 -120
  230. package/src/components/defects/AddDevice.vue +95 -95
  231. package/src/components/defects/DefectModal.vue +101 -101
  232. package/src/components/defects/DevicesAndItem.vue +39 -39
  233. package/src/components/defects/DevicesSeting.vue +106 -106
  234. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  235. package/src/components/metterfiles/AddUserfiles.vue +246 -246
  236. package/src/components/metterfiles/MetterFiles.vue +104 -104
  237. package/src/components/notice/NoticeForm.vue +100 -100
  238. package/src/components/notice/NoticeIssue.vue +20 -20
  239. package/src/components/notice/NoticeQuery.vue +76 -76
  240. package/src/components/paper/PicViewer.vue +18 -18
  241. package/src/components/paper/RepairVerifyForm.vue +76 -76
  242. package/src/components/phonestate/DailyTraffic.vue +57 -57
  243. package/src/components/phonestate/LastKnownState.vue +74 -74
  244. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  245. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  246. package/src/components/phonestate/PostMap.vue +82 -82
  247. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  248. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2731 -2731
  249. package/src/components/task/RepairAnnual.vue +79 -79
  250. package/src/components/task/RepairAnnualDetail.vue +49 -49
  251. package/src/components/task/RepairMonthly.vue +91 -91
  252. package/src/components/task/TaskAnnual.vue +77 -77
  253. package/src/components/task/TaskAnnualDetail.vue +47 -47
  254. package/src/components/task/TaskMonthly.vue +89 -89
  255. package/src/components/userfile/MeterFile.vue +145 -145
  256. package/src/components/userfile/MeterModify.vue +46 -46
  257. package/src/components/userfile/UserfileChange.vue +277 -277
  258. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  259. package/src/filiale/baiyin/pc/checkUserList.vue +771 -771
  260. package/src/filiale/baiyin/pc.js +21 -21
  261. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +2696 -2696
  262. package/src/filiale/siyang/pc/NewCheckpaper.vue +1938 -1938
  263. package/src/filiale/siyang/pc/checkUserList.vue +786 -786
  264. package/src/filiale/siyang/pc.js +16 -16
  265. package/src/filiale/weinan/android/SafecheckDevices.vue +1295 -1295
  266. package/src/filiale/weinan/pc/DefectListNew.vue +617 -617
  267. package/src/filiale/weinan/pc/DefectMainNew.vue +63 -63
  268. package/src/filiale/weinan/pc.js +46 -46
  269. package/src/filiale/wuan/android/SafecheckOrderV.vue +4 -1
  270. package/src/filiale/wuan/android/SafecheckUserInfo.vue +6 -5
  271. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1200 -1195
  272. package/src/filiale/yangchunboneng/android/DailyworkloadQuery.vue +480 -477
  273. package/src/filiale/yangchunboneng/android/safeHistoryLook.vue +481 -478
  274. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +269 -269
  275. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1128 -1128
  276. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +972 -972
  277. package/src/filiale/yangchunboneng/pc/PaperList.vue +773 -773
  278. package/src/filiale/yuansheng/android/SwitchValve.vue +322 -322
  279. package/src/filiale/yuansheng/android.js +17 -17
  280. package/src/main.js +33 -33
  281. package/src/plugins/LoadData.js +10 -10
  282. package/src/plugins/LoadParams.js +24 -24
  283. package/src/stores/wxconfig.js +10 -10
  284. package/src/utils/getNowDate.js +33 -33
  285. package/test/e2e/custom-assertions/elementCount.js +26 -26
  286. package/test/e2e/nightwatch.conf.js +40 -40
  287. package/test/e2e/runner.js +30 -30
  288. package/test/e2e/specs/test.js +13 -13
  289. package/test/unit/.eslintrc +5 -5
  290. package/test/unit/TestUtil.js +62 -62
  291. package/test/unit/context.html +20 -20
  292. package/test/unit/index.js +13 -13
@@ -1,972 +1,972 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged @sort="sort">
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">模糊查询</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo"
11
- style="width: 60%" placeholder="编号 名称 电话 地址"
12
- condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
13
- </div>
14
- <div class="form-group col-sm-2" >
15
- <label class="font_normal_body">客户编号</label>
16
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
17
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
18
- </div>
19
- <div class="form-group col-sm-2" >
20
- <label class="font_normal_body">客户名称</label>
21
- <input type="text" class="input_search" v-model="model.f_user_name"
22
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
23
- </div>
24
- <div class="form-group col-sm-2" >
25
- <label class="font_normal_body">客户电话</label>
26
- <input type="text" class="input_search" v-model="model.f_user_phone"
27
- style="width: 60%" placeholder="客户电话" condition=" ( f_user_phone like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%' )">
28
- </div>
29
- <div class="form-group col-sm-4" style="display: flex; gap: 15px">
30
- <export-excel-safe :data="$parent.$parent.searchData"
31
- :field="$parent.$parent.excelHeaders"
32
- progress="safeGetExportProgress"
33
- sqlurl="rs/logic/SafeExportExcel" sql-name="defectDetails" template-name='安检隐患明细'></export-excel-safe>
34
- <button class="button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
35
- <button class="button_search" @click="$parent.$parent.toRepair" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
36
- <button class="button_search" @click="search()">查询</button>
37
- <div class="button_spacing"
38
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
- @click="$parent.$parent.hidden()"></div>
40
- </div>
41
-
42
- </div>
43
- <div class="row">
44
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
45
- <role-selector-safe
46
- role-name="安检员"
47
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
48
- @re-res="$parent.$parent.getRes"
49
- :value.sync="model.f_checker_id"
50
- v-model="model.f_checker_id"
51
- :value-multiple="true"
52
- :value-close="false"
53
- condition="f_checker_name in {}">
54
- </role-selector-safe>
55
- </div>
56
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
57
- <label class="font_normal_body">小&emsp;&emsp;区</label>
58
- <input type="text" class="input_search" v-model="model.f_residential_area"
59
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
60
- </div>
61
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
62
- <label class="font_normal_body">检&ensp;查&ensp;项</label>
63
- <v-select :value.sync="model.f_device_type"
64
- v-model="model.f_device_type"
65
- style="width: 60%"
66
- class="select_list select"
67
- :options='$parent.$parent.device_types'
68
- placeholder='检查项'
69
- :multiple="true"
70
- condition="f_device_type in {}"></v-select>
71
- <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
72
- <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
73
- </div>
74
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
75
- <label class="font_normal_body">隐患名称</label>
76
- <v-select :value.sync="model.f_item_name"
77
- v-model='model.f_item_name'
78
- style="width: 60%"
79
- class="select_list select"
80
- :options='$parent.$parent.DefectConfigs'
81
- placeholder='隐患名称'
82
- :multiple="true"
83
- condition="f_item_name in {}"></v-select>
84
- </div>
85
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
86
- <label class="font_normal_body">安检起始</label>
87
- <datepicker
88
- class="select_list select"
89
- :value.sync="model.f_check_start"
90
- placeholder='安检起始时间' style="width: 60%"
91
- :disabled-days-of-week="[]"
92
- :format="'yyyy-MM-dd'"
93
- :show-rest-button="reset"
94
- v-model="model.f_check_start"
95
- condition="f_offsite_time > ='{} 00:00:00'">
96
- </datepicker>
97
- </div>
98
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
99
- <label class="font_normal_body">安检结束</label>
100
- <datepicker
101
- class="select_list select"
102
- :value.sync="model.f_check_end"
103
- placeholder='安检结束时间' style="width: 60%"
104
- :disabled-days-of-week="[]"
105
- :format="'yyyy-MM-dd'"
106
- :show-rest-button="reset"
107
- v-model="model.f_check_end"
108
- condition="f_offsite_time <= '{} 23:59:59'">
109
- </datepicker>
110
- </div>
111
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
112
- <label class="font_normal_body">用户类型</label>
113
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
114
- :value-single="true" style="width: 60%"
115
- class="select_list select"
116
- :options='$parent.$parent.f_check_type' placeholder='请选择'
117
- close-on-select
118
- condition="f_check_type = '{}'"></v-select>
119
- </div>
120
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
121
- <label class="font_normal_body">处理方式</label>
122
- <v-select :value.sync="model.f_deal_dispose"
123
- v-model='model.f_deal_dispose'
124
- style="width: 60%"
125
- class="select_list select"
126
- :options='$parent.$parent.deal_dispose' placeholder='请选择'
127
- :multiple="true"
128
- condition="f_deal_dispose in {}"></v-select>
129
- </div>
130
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
131
- <label class="font_normal_body">详细地址</label>
132
- <input type="text" class="input_search" v-model="model.f_address"
133
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
134
- </div>
135
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
136
- <label class="font_normal_body">隐患状态</label>
137
- <v-select :value.sync="model.f_is_repaired"
138
- v-model='model.f_is_repaired'
139
- style="width: 60%"
140
- class="select_list select"
141
- :options='$parent.$parent.repairStateOptions' placeholder='请选择'
142
- :multiple="true"
143
- condition="f_is_repaired in {}"></v-select>
144
- </div>
145
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
146
- <label class="font_normal_body">处理人</label>
147
- <input type="text" class="input_search" v-model="model.f_repairman"
148
- style="width: 60%" placeholder="处理人" condition="f_repairman = '{}'">
149
- </div>
150
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
151
- <label for="startDate" class="font_normal_body">处理时间:</label>
152
- <datepicker id="startDate" placeholder="处理开始日期"
153
- style="width: 60%!important;"
154
- v-model="model.sq_startDate"
155
- :value.sync="model.sq_startDate"
156
- :format="'yyyy-MM-dd 00:00:00'"
157
- :show-reset-button="true"
158
- condition="f_repair_date >= '{}'">
159
- </datepicker>
160
- </div>
161
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
162
- <label for="endDate" class="font_normal_body">处理时间:</label>
163
- <datepicker id="endDate" placeholder="处理结束日期"
164
- style="width: 60%!important;"
165
- v-model="model.sq_endDate"
166
- :value.sync="model.sq_endDate"
167
- :format="'yyyy-MM-dd 23:59:59'"
168
- :show-reset-button="true"
169
- condition="f_repair_date<= '{}'">
170
- </datepicker>
171
- </div>
172
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
173
- <label class="font_normal_body">通气开始</label>
174
- <datepicker
175
- :value.sync="model.f_gas_start"
176
- placeholder='首次通气时间' style="width: 60%"
177
- :disabled-days-of-week="[]"
178
- :format="'yyyy-MM-dd'"
179
- :show-rest-button="reset"
180
- v-model="model.f_gas_start"
181
- condition="f_uservent_date >='{} 00:00:00'">
182
- </datepicker>
183
- </div>
184
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
185
- <label class="font_normal_body">通气结束</label>
186
- <datepicker
187
- :value.sync="model.f_gas_end"
188
- placeholder='首次通气时间' style="width: 60%"
189
- :disabled-days-of-week="[]"
190
- :format="'yyyy-MM-dd'"
191
- :show-rest-button="reset"
192
- v-model="model.f_gas_end"
193
- condition="f_uservent_date <= '{} 23:59:59'">
194
- </datepicker>
195
- </div>
196
- </div>
197
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
198
- <div slot="modal-header" class="modal-header">
199
- <h4 class="modal-title">
200
- 选择计划
201
- </h4>
202
- </div>
203
- <div slot="modal-body" class="modal-body">
204
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
205
- </div>
206
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
207
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
208
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
209
- </div>
210
- </modal>
211
- </div>
212
- </criteria>
213
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
214
- <template partial='head'>
215
- <tr>
216
- <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
217
- <th>
218
- <nobr>检查项</nobr>
219
- </th>
220
- <th>
221
- <nobr>隐患原因</nobr>
222
- </th>
223
- <th>
224
- <nobr>隐患级别</nobr>
225
- </th>
226
- <th>
227
- <nobr>客户编号</nobr>
228
- </th>
229
- <th>
230
- <nobr>客户名称</nobr>
231
- </th>
232
- <th>
233
- <nobr>客户电话</nobr>
234
- </th>
235
- <th>
236
- <nobr>客户小区</nobr>
237
- </th>
238
- <th>
239
- <data-order field="f_address" name="客户地址"></data-order>
240
- </th>
241
- <th>
242
- <nobr>通气时间</nobr>
243
- </th>
244
- <th>
245
- <data-order field="f_offsite_time" name="安检时间"></data-order>
246
- </th>
247
- <th>
248
- <nobr>安检员</nobr>
249
- </th>
250
- <th>
251
- <nobr>隐患状态</nobr>
252
- </th>
253
- <th>
254
- <nobr>处理人</nobr>
255
- </th>
256
- <th>
257
- <nobr>处理方式</nobr>
258
- </th>
259
- <th>
260
- <nobr>处理时间</nobr>
261
- </th>
262
- <th>
263
- <nobr>工单编号</nobr>
264
- </th>
265
- <th>
266
- <nobr>转单类型</nobr>
267
- </th>
268
- <th>
269
- <nobr>接收人</nobr>
270
- </th>
271
- </tr>
272
- </template>
273
- <template partial='body'>
274
- <td v-if="$parent.$parent.$parent.canToRepair=='是'" style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['用户自行整改', '现场已处理', '维修已处理', '转维修'].indexOf(row.f_is_repaired) == -1" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row)" @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
275
- <td style="text-align: center">{{row.f_device_type}}</td>
276
- <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
277
- <td style="text-align: center">{{row.f_defect_level}}</td>
278
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
279
- <td style="text-align: center">{{row.f_user_name}}</td>
280
- <td style="text-align: center">{{row.f_user_phone}}</td>
281
- <td style="text-align: center">{{row.f_residential_area}}</td>
282
- <td style="text-align: center">{{row.f_address}}</td>
283
- <td style="text-align: center;white-space:nowrap;">{{row.f_uservent_date}}</td>
284
- <td style="text-align: center">{{row.f_offsite_time}}</td>
285
- <td style="text-align: center">{{row.f_checker_name}}</td>
286
- <td style="text-align: center" v-if="row.f_is_repaired == '隐患未处理' && $parent.$parent.$parent.inrole()" @click="$parent.$parent.$parent.showSolve(row)"><a>{{row.f_is_repaired}}</a></td>
287
- <td style="text-align: center" v-else>{{row.f_is_repaired}}</td>
288
- <td style="text-align: center">{{row.f_repairman}}</td>
289
- <td style="text-align: center">{{row.f_deal_dispose}}</td>
290
- <td style="text-align: center">{{row.f_repair_date}}</td>
291
- <td style="text-align: center">{{row.f_service_id}}</td>
292
- <td style="text-align: center">{{row.f_handlingtype}}</td>
293
- <td style="text-align: center">{{row.f_order_man}}</td>
294
- </template>
295
- </data-grid>
296
- </criteria-paged>
297
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
298
- <modal :show.sync="showModal2" :backdrop="false">
299
- <div slot="modal-header" class="modal-header">
300
- <h4 class="modal-title">
301
- 转维修
302
- </h4>
303
- </div>
304
- <div slot="modal-body" class="modal-body">
305
- <div v-if="true">
306
- <div>
307
-
308
- </div>
309
- <!-- <div v-for="(index, item) in dangerGroup">-->
310
-
311
- <!-- </div>-->
312
- <div class="row" style="margin-top: 10px">
313
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
314
- <div class="col-xs-8 col-md-8">
315
- <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
316
- :options='dispatchTypeOptions' placeholder='派发类型'
317
- close-on-select>
318
- </v-select>
319
- </div>
320
- </div>
321
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
322
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
323
- <div class="col-xs-8 col-md-8">
324
- <v-select
325
- :value.sync="selectData.f_repairman"
326
- :value-single="true"
327
- :options='repairers'
328
- placeholder='请选择维修员'
329
- close-on-select></v-select>
330
- </div>
331
- </div>
332
- <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
333
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
334
- <div class="col-xs-8 col-md-8">
335
- <right-tree
336
- islist
337
- :userid="userid"
338
- :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
339
- @re-res="getSiteRes"></right-tree>
340
- </div>
341
- </div>
342
- <div class="row" style="margin-top: 10px">
343
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
344
- <div class="col-xs-8 col-md-8">
345
- <v-select :value.sync="selectData.f_repairtype" style="width:60%"
346
- class="select select_list"
347
- :value-single="true"
348
- :options='repairTypeOptions'
349
- close-on-select>
350
- </v-select>
351
- </div>
352
- </div>
353
- <div class="row" style="margin-top: 10px">
354
- <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
355
- <div class="col-xs-8 col-md-8">
356
- <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
357
- </div>
358
- </div>
359
- </div>
360
- </div>
361
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
362
- <button class="button_search" @click="rectification">转维修</button>
363
- <button class="button_search" @click="cancel1">取消</button>
364
- </div>
365
- </modal>
366
- <modal :show.sync="showModal3">
367
- <div slot="modal-header" class="modal-header">
368
- <h4 class="modal-title">
369
- 转维修进度{{ progressbarWidth }}%
370
- </h4>
371
- </div>
372
- <div slot="modal-body" class="modal-body">
373
- <div class="progress">
374
- <div class="progress-bar" role="progressbar" aria-valuenow="60"
375
- aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
376
- </div>
377
- </div>
378
- </div>
379
- <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
380
- </modal>
381
- <modal :show.sync="showSolveModal" v-ref:solveModal>
382
- <div slot="modal-header" class="modal-header">
383
- <h4 class="modal-title">
384
- 处理隐患
385
- </h4>
386
- </div>
387
- <div slot="modal-body" class="modal-body">
388
- <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
389
- <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
390
- <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
391
- </div>
392
-
393
- <div class="col-sm-6" style="margin-top: 10px">
394
- <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
395
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="solve.model.f_checker_name" placeholder="安检员">
396
- </div>
397
- <div class="col-sm-6" style="margin-top: 10px">
398
- <label class="font_normal_body">安检时间</label>
399
- <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="solve.model.f_offsite_time" placeholder="安检时间">
400
- </div>
401
- <div class="col-sm-12" style="margin-bottom: 10px" v-if="solve.model.defectImg">
402
- <label class="font_normal_body">隐患图片</label>
403
- <img-self :width="200" :height="200" :src="solve.model.defectImg"></img-self>
404
- </div>
405
- <div class="col-sm-12" style="margin-bottom: 10px">
406
- <label class="font_normal_body">处理后图片</label>
407
- <avatar-upload :width="200" :height="200" :img-src.sync="solve.imgSrc" :filename.sync="solve.filename" v-ref:imginfo></avatar-upload>
408
- </div>
409
- </div>
410
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
411
- <button class="button_search" @click="okDefect">确认</button>
412
- <button class="button_search" @click="cancelsolveDefect">取消</button>
413
- </div>
414
- </modal>
415
- </div>
416
- </div>
417
- </template>
418
-
419
- <script>
420
- import {PagedList} from 'vue-client'
421
- import Vue from 'vue'
422
- import co from 'co'
423
- import AppData from '../../../stores/AppData'
424
- import * as Util from '../../Util'
425
- import getNowDate from "../../../utils/getNowDate";
426
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
427
- import BenzAMRRecorder from 'benz-amr-recorder'
428
- const upSolveDefect = function * (self) {
429
- self.solve.f_deal_dispose = self.solve.f_deal_dispose || '已处理'
430
- self.$resetpost('/rs/logic/pcRepairDefectNew', self.solve, {resolveMsg: null, rejectMsg: null})
431
- .then(res => {
432
- if (res.data.code === 200) {
433
- self.$showMessage('隐患已处理。')
434
- self.showSolveModal = false
435
- self.search()
436
- self.solve={
437
- model:{},
438
- id: '',
439
- f_repairman: self.$login.f.name,
440
- f_repair_date: Util.getNowDate().substr(0, 10),
441
- f_repair_path: '',
442
- imgSrc: '',
443
- filename: '',
444
- f_defect_remark:''
445
- }
446
- }
447
- })
448
- }
449
- //获取json配置文件
450
- let asyncReady = async function (self) {
451
- // 获取配置信息
452
- try {
453
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
454
- Vue.config = res.data
455
- self.getDefectInfoConfig(res.data)
456
- } catch (error) {
457
- // 忽略704,文件找不到异常R
458
- if (error.status !== 704) {
459
- throw error
460
- }
461
- }
462
- }
463
-
464
- let select = function* (self) {
465
- let http = new HttpResetClass()
466
- let getGasman = yield http.load('POST', '/rs/search', {
467
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
468
- userid: self.$login.f.id
469
- }, {resolveMsg: null, rejectMsg: null})
470
- ////tag
471
- self.checkersid.push({label: '全部', value: ''})
472
- getGasman.data.forEach((checker) => {
473
- self.checkersid.push({label: checker.name, value: checker.id})
474
- })
475
- }
476
-
477
- export default {
478
- title: '隐患明细查看',
479
- data() {
480
- let model = new PagedList('rs/sql/defectDetails', 20,{
481
- f_filialeid: 'this.f_filialeid'
482
- })
483
- model.f_plan_id = ''
484
- model.f_approved = ''
485
- model.f_entry = ''
486
- model.f_no_checkplan = ''
487
- model.f_check_type=''
488
- model.f_filialeid = `('${this.$login.f.orgid}')`
489
- return {
490
- audioshow:false,
491
-
492
- model: model,
493
- deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
494
- repairStateOptions: this.getSafeParam('隐患状态'),
495
- //searchData:searchData,
496
- excelHeaders: {
497
- 'f_device_type': '检查项',
498
- 'f_item_name': '隐患名称',
499
- 'f_userinfo_code': '客户编号',
500
- 'f_user_name': '客户姓名',
501
- 'f_user_phone': '客户电话',
502
- 'f_residential_area': '小区',
503
- 'f_address': '客户地址',
504
- 'f_uservent_date': '通气时间',
505
- 'f_offsite_time': '安检时间',
506
- 'f_checker_name': '安检员',
507
- 'f_deal_dispose': '处理方式',
508
- 'f_is_repaired': '隐患状态',
509
- 'f_repairman':'处理人',
510
- 'f_repair_date':'处理时间'
511
- },
512
- fun: this.$login.f,
513
- checkersid: [],
514
- safetype: this.getSafeParam('安检类型'),
515
- criteriaShow: false,
516
- showModal: false,
517
- f_approval_states: this.getSafeParam('安检单审核状态'),
518
- f_entry_status:this.getSafeParam('安检状态'),
519
- f_checkplans: this.getSafeParam('有无计划'),
520
- showcheckmsg: false,
521
- checkInfo: {},
522
- orderDefault: "'f_offsite_time'",
523
- orderFields: {
524
- f_offsite_time: 'no'
525
- },
526
- sliceArea: [],
527
- cbc:[],
528
- DefectConfig:'' ,
529
- DefectConfigs:[{label:'全部',value:''},{label: '金额异常差值', value: '金额异常差值'},{label: '气量异常差值', value: '气量异常差值'}],
530
- device_types:[{label:'全部',value:''}],
531
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
532
- showModal2: false,
533
- selectData:{
534
- dispatchType:'',
535
- f_repairman:'',
536
- f_remarks:'',
537
- f_repairtype:''
538
- },
539
- repairers: [],
540
- repairTypeOptions:this.$appdata.getParam('报修类型'),
541
- dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
542
- dangerGroups: [],
543
- showModal3: false,
544
- progressbarWidth:'0',
545
- canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
546
- checkes: [],
547
- solve:{
548
- model:{},
549
- id: '',
550
- f_repairman: this.$login.f.name,
551
- f_repair_date: Util.getNowDate().substr(0, 10),
552
- f_repair_path: '',
553
- imgSrc: '',
554
- filename: '',
555
- f_defect_remark:''
556
- },
557
- showSolveModal:false
558
- }
559
- },
560
- computed :{
561
- searchData() {
562
- return {condition: this.model.condition}
563
- }
564
- },
565
- methods: {
566
- isChecked(row) {
567
- return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
568
- },
569
- setCheckes(row) {
570
- let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
571
- if(index<0){
572
- this.checkes.push(row)
573
- }else{
574
- this.checkes.splice(index,1)
575
- }
576
- console.log('this.checkes=', JSON.stringify(this.checkes))
577
- },
578
- toRepair(){
579
- console.log('this.checkes=', JSON.stringify(this.checkes))
580
- if(this.checkes.length==0){
581
- return this.$showMessage('请先选择需要转维修的隐患!')
582
- }
583
-
584
- const dangerGroups = []
585
- for (const danger of this.checkes) {
586
- let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_code === danger.f_userinfo_code)
587
- if (i == -1){
588
- dangerGroups.push({
589
- f_userinfo_code: danger.f_userinfo_code,
590
- dangers: []
591
- })
592
- i = dangerGroups.length - 1
593
- }
594
- dangerGroups[i].dangers.push(danger)
595
- }
596
- this.dangerGroups = dangerGroups
597
- console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
598
- this.showModal2=true
599
- },
600
- getEmp() {
601
- let val = {source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${this.$login.f.id}`}
602
- let http = new HttpResetClass()
603
- http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
604
- let str=''
605
- res.data.forEach((item,idx,arr) => {
606
- //tag
607
- if(idx+1==arr.length){
608
- str += item.id
609
- }else{
610
- str += item.id+','
611
- }
612
-
613
- })
614
- let http1 = new HttpResetClass()
615
- http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
616
- data: {
617
- items: 'id,f_user_telephone',
618
- tablename: 't_user',
619
- condition: `id in (${str})`,
620
- orderitem: 'id'
621
- }
622
- }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
623
-
624
- res.data.forEach((user)=>{
625
- try {
626
- ress.data.forEach((tel,tidx,arr)=>{
627
- //tag
628
- if(user.id==tel.id){
629
- this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
630
- ress.data.splice(tidx,1)
631
- //tag
632
- throw new Error("跳出循环");
633
- }
634
- })
635
- }catch (e) {
636
- //tag
637
- }
638
- })
639
- })
640
-
641
- })
642
- },
643
- getSiteRes(obj) {
644
- console.log('siteRes ---> ')
645
- console.log(obj)
646
- if(obj.resids[0]){
647
- this.selectData.f_meetunit = obj.res.join('.')
648
- this.selectData.f_reciever = obj.resids.join('.')
649
- this.selectData.f_outlets = obj.res[obj.res.length - 1]
650
- }else {
651
- this.selectData.f_meetunit = ''
652
- this.selectData.f_reciever = ''
653
- this.selectData.f_outlets = ''
654
- }
655
- },
656
- cancel1(){
657
- this.showModal2=false
658
- this.selectData={
659
- dispatchType:'',
660
- f_repairman:'',
661
- f_remarks:'',
662
- f_repairtype:''
663
- }
664
- },
665
- async rectification(){
666
- if(this.selectData.dispatchType){
667
- if(this.selectData.dispatchType=='派发给站点'){
668
- if(!this.selectData.f_reciever){
669
- this.$showMessage('请选择部门!')
670
- return
671
- }
672
- }else{
673
- if(!this.selectData.f_repairman){
674
- this.$showMessage('请选择维修员!')
675
- return
676
- }
677
- }
678
- }else {
679
- this.$showMessage('请选择派发类型!')
680
- return
681
- }
682
-
683
- if(!this.selectData.f_repairtype){
684
- this.$showMessage('请选择报修类型!')
685
- return
686
- }
687
- this.showModal3=true
688
- let act={}
689
- let toRepair=''
690
- let successCount=0
691
- if(this.selectData.dispatchType=='派发给站点'){
692
- act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
693
- toRepair=null
694
- }else{
695
- console.log('派发给维修员---------'+this.selectData.f_repairman)
696
- act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
697
- toRepair='一级派单'
698
- }
699
- let rep={
700
- loginUser: {
701
- name: this.$login.f.name,
702
- ename: this.$login.f.ename
703
- },
704
- f_meetunit: this.$login.f.deps,
705
- f_attendant: this.$login.f.name,
706
- f_outlets: this.$login.f.deps,
707
- f_remarks: this.selectData.f_remarks,
708
- f_repairtype: this.selectData.f_repairtype,
709
- toRepair: toRepair,
710
- activity:act
711
- }
712
- for(let i=0; i<this.dangerGroups.length; i++){
713
- let defectIdStr = ''
714
- const defectIds = []
715
- for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
716
- defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
717
- }
718
- defectIdStr = `(${defectIds.join(',')})`
719
- const data = {
720
- id:this.dangerGroups[i].dangers[0].f_paper_id,
721
- repData:rep,
722
- source:'pc',
723
- defectIdStr: defectIdStr
724
- }
725
- console.log('data=', JSON.stringify(data))
726
- try {
727
- let result =await new HttpResetClass().load('post','/rs/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
728
- if (result.data.code==200) {
729
- successCount += result.data.successcon
730
- this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
731
- }
732
- }catch (e) {
733
- this.showModal3=false
734
- this.$showMessage('网络异常,请稍后再试!')
735
- return
736
- }
737
- }
738
- this.showModal3=false
739
- this.cancel1()
740
- this.$showMessage('本次转维修成功'+successCount+'单')
741
- },
742
- getDefectInfoConfig(val){
743
- try {
744
- if (val.safecheck.DevicesSetConfig != undefined) {
745
- this.DefectConfig = val.safecheck.DevicesConfig
746
- // 获取到配置项,进行遍历,获取每个隐患项
747
- for (var Key1 in this.DefectConfig){
748
- this.device_types.push({label:Key1,value:Key1})
749
- for(var Key2 in this.DefectConfig[Key1].items){
750
- this.DefectConfigs.push({label:Key2,value:Key2})
751
- }
752
- }
753
- // 非民用或其他配置项加入,在进行遍历
754
- }
755
- }catch (e) {
756
- //tag
757
- }
758
- },
759
- showaudio(){
760
- //tag
761
- this.audioshow=!this.audioshow
762
- //tag
763
- },
764
- getmeterbook(val){
765
- this.cbc=[]
766
- this.cbc.push({
767
- label:'全部',
768
- value:''
769
- })
770
- if (val==''){
771
-
772
- this.cbcs.forEach(res=>{
773
- this.cbc.push({
774
- label:res.f_book_name,
775
- value:res.id
776
- })
777
- })
778
- }else{
779
- this.cbcs.forEach(res=>{
780
- if (res.f_book_slice_area==val){
781
- this.cbc.push({
782
- label:res.f_book_name,
783
- value:res.id
784
- })
785
- }
786
- })
787
- }
788
- },
789
- getSafeParam(val){
790
- if(this.$appdata.getParam(val)){
791
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
792
- }else{
793
- return [{label: '全部', value: ''}]
794
- }
795
-
796
- },
797
- Mreadibook(val){
798
- ////tag
799
- ////tag
800
- this.sliceArea=[]
801
- if (val){
802
- new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
803
- items: 'name',
804
- tablename: 't_zone',
805
- condition: `parentid in ${val}`,
806
- orderitem: 'id'
807
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
808
- this.sliceArea.push({
809
- label:'全部',
810
- value:''
811
- })
812
- res.data.forEach(ress=>{
813
- this.sliceArea.push({
814
- label:ress.name,
815
- value:ress.name
816
- })
817
- })
818
-
819
- })
820
- }
821
- },
822
- getAllMeterBook(val){
823
- ////tag
824
- ////tag
825
- this.cbcs=[]
826
- if (val){
827
- new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
828
- items: 'f_book_name,f_book_slice_area,id',
829
- tablename: 't_meter_book',
830
- condition: `f_filiale_id in ${val}`,
831
- orderitem: 'id'
832
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
833
- res.data.forEach(ress=>{
834
- this.cbcs.push({
835
- id:ress.id,
836
- f_book_name:ress.f_book_name,
837
- f_book_slice_area:ress.f_book_slice_area
838
- })
839
- })
840
- this.cbc=[]
841
- this.cbc.push({
842
- label:'全部',
843
- value:''
844
- })
845
- this.cbcs.forEach(res=>{
846
- this.cbc.push({
847
- label:res.f_book_name,
848
- value:res.id
849
- })
850
- })
851
- })
852
- }
853
- },
854
- getRes(obj) {
855
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
856
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
857
- this.Mreadibook(this.model.f_filialeid)
858
- this.getAllMeterBook(this.model.f_filialeid)
859
- //this.$refs.paged.$refs.criteria.search()
860
- },
861
-
862
- change(row) {
863
- // Vue.$login = {jwt: row.f_checker_id}
864
- asyncReady(this).then(() => {
865
- ////tag)
866
- row.f_upload_state = '已传'
867
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
868
- }).catch(
869
- (respanse) => {
870
- alert('获取配置文件失败')
871
- })
872
- },
873
- readConfig() {
874
- let gen = asyncReady(this)
875
- return co(gen)
876
- },
877
- showChooser() {
878
- this.showModal = true
879
- },
880
- hidden() {
881
- this.criteriaShow = !this.criteriaShow
882
- },
883
- refresh() {
884
- this.$refs.paged.$refs.criteria.search()
885
- },
886
- ok() {
887
- this.showModal = false
888
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
889
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
890
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
891
- }
892
- },
893
- cancel() {
894
- this.showModal = false
895
- this.model.f_check_plan = {f_plan_name: '', id: ''}
896
- this.model.f_plan_id=''
897
- },
898
- print(row) {
899
- this.showcheckmsg = true
900
- this.checkInfo = row
901
- },
902
-
903
- sort(field, rule) {
904
- // 将所有排序方式设为不排序,实现相互排斥
905
- for (let key in this.orderFields) {
906
- if (key === field) {
907
- this.orderFields[key] = rule
908
- } else {
909
- this.orderFields[key] = 'no'
910
- }
911
- }
912
- // 如果新规则不排序,还原为默认排序
913
- if (rule === 'no') {
914
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
915
- } else {
916
- this.model.paramSource.orderitem = `'${field} ${rule}'`
917
- }
918
- this.search()
919
- },
920
- search() {
921
- this.$refs.paged.$refs.criteria.search()
922
- },
923
- selfSearch(args) {
924
- ////tag
925
- args.condition += ` and f_filialeid in ${this.model.f_filialeid}`
926
- this.model.search(args.condition, args.model, args.condValue)
927
- },
928
- cancelsolveDefect() {
929
- this.showSolveModal = false
930
- this.solve = {
931
- model:{},
932
- id: '',
933
- f_repairman: this.$login.f.name,
934
- f_repair_date: Util.getNowDate().substr(0, 10),
935
- f_repair_path: '',
936
- imgSrc: '',
937
- filename: '',
938
- f_defect_remark:''
939
- }
940
- },
941
- okDefect(){
942
- if (!(this.solve.filename && this.solve.filename.length > 0)) {
943
- this.$showMessage('请录入处理后照片')
944
- return
945
- }
946
- co(upSolveDefect(this))
947
- },
948
- showSolve(row){
949
- this.showSolveModal = true
950
- this.solve.model = row
951
- this.solve.model.defectImg = row.f_path?'/rs/image/file/' + row.f_path:null
952
- this.solve.id = row.f_defect_id
953
- },
954
- inrole(){
955
- return this.$login.f.rolestr.indexOf('安检隐患处理') != -1
956
- }
957
- },
958
-
959
- ready() {
960
- this.getEmp()
961
- this.readConfig()
962
- ////tag
963
- this.function = this.f
964
- ////tag
965
-
966
- let gen = select(this)
967
- //this.pianqu()
968
- this.Mreadibook(`('${this.$login.f.orgid}')`)
969
- co(gen)
970
- }
971
- }
972
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">模糊查询</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo"
11
+ style="width: 60%" placeholder="编号 名称 电话 地址"
12
+ condition="(f_userinfo_code like '%{}%' or f_user_name like '%{}%' or f_user_phone like '%{}%' or f_address like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%')">
13
+ </div>
14
+ <div class="form-group col-sm-2" >
15
+ <label class="font_normal_body">客户编号</label>
16
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
17
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
18
+ </div>
19
+ <div class="form-group col-sm-2" >
20
+ <label class="font_normal_body">客户名称</label>
21
+ <input type="text" class="input_search" v-model="model.f_user_name"
22
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
23
+ </div>
24
+ <div class="form-group col-sm-2" >
25
+ <label class="font_normal_body">客户电话</label>
26
+ <input type="text" class="input_search" v-model="model.f_user_phone"
27
+ style="width: 60%" placeholder="客户电话" condition=" ( f_user_phone like '%{}%' or f_zuhu_phone like '%${}%' or f_rent_phone like '%${}%' )">
28
+ </div>
29
+ <div class="form-group col-sm-4" style="display: flex; gap: 15px">
30
+ <export-excel-safe :data="$parent.$parent.searchData"
31
+ :field="$parent.$parent.excelHeaders"
32
+ progress="safeGetExportProgress"
33
+ sqlurl="rs/logic/SafeExportExcel" sql-name="defectDetails" template-name='安检隐患明细'></export-excel-safe>
34
+ <button class="button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
35
+ <button class="button_search" @click="$parent.$parent.toRepair" v-if="$parent.$parent.canToRepair == '是'">转维修</button>
36
+ <button class="button_search" @click="search()">查询</button>
37
+ <div class="button_spacing"
38
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
+ @click="$parent.$parent.hidden()"></div>
40
+ </div>
41
+
42
+ </div>
43
+ <div class="row">
44
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
45
+ <role-selector-safe
46
+ role-name="安检员"
47
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
48
+ @re-res="$parent.$parent.getRes"
49
+ :value.sync="model.f_checker_id"
50
+ v-model="model.f_checker_id"
51
+ :value-multiple="true"
52
+ :value-close="false"
53
+ condition="f_checker_name in {}">
54
+ </role-selector-safe>
55
+ </div>
56
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
57
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
58
+ <input type="text" class="input_search" v-model="model.f_residential_area"
59
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
60
+ </div>
61
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
62
+ <label class="font_normal_body">检&ensp;查&ensp;项</label>
63
+ <v-select :value.sync="model.f_device_type"
64
+ v-model="model.f_device_type"
65
+ style="width: 60%"
66
+ class="select_list select"
67
+ :options='$parent.$parent.device_types'
68
+ placeholder='检查项'
69
+ :multiple="true"
70
+ condition="f_device_type in {}"></v-select>
71
+ <!--<input type="text" class="input_search" v-model="model.f_device_type"-->
72
+ <!--style="width: 60%" placeholder="检&ensp;查&ensp;项" condition="f_device_type like '%{}%'">-->
73
+ </div>
74
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
75
+ <label class="font_normal_body">隐患名称</label>
76
+ <v-select :value.sync="model.f_item_name"
77
+ v-model='model.f_item_name'
78
+ style="width: 60%"
79
+ class="select_list select"
80
+ :options='$parent.$parent.DefectConfigs'
81
+ placeholder='隐患名称'
82
+ :multiple="true"
83
+ condition="f_item_name in {}"></v-select>
84
+ </div>
85
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
86
+ <label class="font_normal_body">安检起始</label>
87
+ <datepicker
88
+ class="select_list select"
89
+ :value.sync="model.f_check_start"
90
+ placeholder='安检起始时间' style="width: 60%"
91
+ :disabled-days-of-week="[]"
92
+ :format="'yyyy-MM-dd'"
93
+ :show-rest-button="reset"
94
+ v-model="model.f_check_start"
95
+ condition="f_offsite_time > ='{} 00:00:00'">
96
+ </datepicker>
97
+ </div>
98
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
99
+ <label class="font_normal_body">安检结束</label>
100
+ <datepicker
101
+ class="select_list select"
102
+ :value.sync="model.f_check_end"
103
+ placeholder='安检结束时间' style="width: 60%"
104
+ :disabled-days-of-week="[]"
105
+ :format="'yyyy-MM-dd'"
106
+ :show-rest-button="reset"
107
+ v-model="model.f_check_end"
108
+ condition="f_offsite_time <= '{} 23:59:59'">
109
+ </datepicker>
110
+ </div>
111
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
112
+ <label class="font_normal_body">用户类型</label>
113
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
114
+ :value-single="true" style="width: 60%"
115
+ class="select_list select"
116
+ :options='$parent.$parent.f_check_type' placeholder='请选择'
117
+ close-on-select
118
+ condition="f_check_type = '{}'"></v-select>
119
+ </div>
120
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
121
+ <label class="font_normal_body">处理方式</label>
122
+ <v-select :value.sync="model.f_deal_dispose"
123
+ v-model='model.f_deal_dispose'
124
+ style="width: 60%"
125
+ class="select_list select"
126
+ :options='$parent.$parent.deal_dispose' placeholder='请选择'
127
+ :multiple="true"
128
+ condition="f_deal_dispose in {}"></v-select>
129
+ </div>
130
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
131
+ <label class="font_normal_body">详细地址</label>
132
+ <input type="text" class="input_search" v-model="model.f_address"
133
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
134
+ </div>
135
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
136
+ <label class="font_normal_body">隐患状态</label>
137
+ <v-select :value.sync="model.f_is_repaired"
138
+ v-model='model.f_is_repaired'
139
+ style="width: 60%"
140
+ class="select_list select"
141
+ :options='$parent.$parent.repairStateOptions' placeholder='请选择'
142
+ :multiple="true"
143
+ condition="f_is_repaired in {}"></v-select>
144
+ </div>
145
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
146
+ <label class="font_normal_body">处理人</label>
147
+ <input type="text" class="input_search" v-model="model.f_repairman"
148
+ style="width: 60%" placeholder="处理人" condition="f_repairman = '{}'">
149
+ </div>
150
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
151
+ <label for="startDate" class="font_normal_body">处理时间:</label>
152
+ <datepicker id="startDate" placeholder="处理开始日期"
153
+ style="width: 60%!important;"
154
+ v-model="model.sq_startDate"
155
+ :value.sync="model.sq_startDate"
156
+ :format="'yyyy-MM-dd 00:00:00'"
157
+ :show-reset-button="true"
158
+ condition="f_repair_date >= '{}'">
159
+ </datepicker>
160
+ </div>
161
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
162
+ <label for="endDate" class="font_normal_body">处理时间:</label>
163
+ <datepicker id="endDate" placeholder="处理结束日期"
164
+ style="width: 60%!important;"
165
+ v-model="model.sq_endDate"
166
+ :value.sync="model.sq_endDate"
167
+ :format="'yyyy-MM-dd 23:59:59'"
168
+ :show-reset-button="true"
169
+ condition="f_repair_date<= '{}'">
170
+ </datepicker>
171
+ </div>
172
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
173
+ <label class="font_normal_body">通气开始</label>
174
+ <datepicker
175
+ :value.sync="model.f_gas_start"
176
+ placeholder='首次通气时间' style="width: 60%"
177
+ :disabled-days-of-week="[]"
178
+ :format="'yyyy-MM-dd'"
179
+ :show-rest-button="reset"
180
+ v-model="model.f_gas_start"
181
+ condition="f_uservent_date >='{} 00:00:00'">
182
+ </datepicker>
183
+ </div>
184
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
185
+ <label class="font_normal_body">通气结束</label>
186
+ <datepicker
187
+ :value.sync="model.f_gas_end"
188
+ placeholder='首次通气时间' style="width: 60%"
189
+ :disabled-days-of-week="[]"
190
+ :format="'yyyy-MM-dd'"
191
+ :show-rest-button="reset"
192
+ v-model="model.f_gas_end"
193
+ condition="f_uservent_date <= '{} 23:59:59'">
194
+ </datepicker>
195
+ </div>
196
+ </div>
197
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal>
198
+ <div slot="modal-header" class="modal-header">
199
+ <h4 class="modal-title">
200
+ 选择计划
201
+ </h4>
202
+ </div>
203
+ <div slot="modal-body" class="modal-body">
204
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
205
+ </div>
206
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
207
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
208
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
209
+ </div>
210
+ </modal>
211
+ </div>
212
+ </criteria>
213
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
214
+ <template partial='head'>
215
+ <tr>
216
+ <th v-if="$parent.$parent.$parent.canToRepair=='是'"><nobr>选择</nobr></th>
217
+ <th>
218
+ <nobr>检查项</nobr>
219
+ </th>
220
+ <th>
221
+ <nobr>隐患原因</nobr>
222
+ </th>
223
+ <th>
224
+ <nobr>隐患级别</nobr>
225
+ </th>
226
+ <th>
227
+ <nobr>客户编号</nobr>
228
+ </th>
229
+ <th>
230
+ <nobr>客户名称</nobr>
231
+ </th>
232
+ <th>
233
+ <nobr>客户电话</nobr>
234
+ </th>
235
+ <th>
236
+ <nobr>客户小区</nobr>
237
+ </th>
238
+ <th>
239
+ <data-order field="f_address" name="客户地址"></data-order>
240
+ </th>
241
+ <th>
242
+ <nobr>通气时间</nobr>
243
+ </th>
244
+ <th>
245
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
246
+ </th>
247
+ <th>
248
+ <nobr>安检员</nobr>
249
+ </th>
250
+ <th>
251
+ <nobr>隐患状态</nobr>
252
+ </th>
253
+ <th>
254
+ <nobr>处理人</nobr>
255
+ </th>
256
+ <th>
257
+ <nobr>处理方式</nobr>
258
+ </th>
259
+ <th>
260
+ <nobr>处理时间</nobr>
261
+ </th>
262
+ <th>
263
+ <nobr>工单编号</nobr>
264
+ </th>
265
+ <th>
266
+ <nobr>转单类型</nobr>
267
+ </th>
268
+ <th>
269
+ <nobr>接收人</nobr>
270
+ </th>
271
+ </tr>
272
+ </template>
273
+ <template partial='body'>
274
+ <td v-if="$parent.$parent.$parent.canToRepair=='是'" style="text-align: center;white-space:nowrap;"><input type="checkbox" v-if="['用户自行整改', '现场已处理', '维修已处理', '转维修'].indexOf(row.f_is_repaired) == -1" @click="$event.cancelBubble=true" :checked="$parent.$parent.$parent.isChecked(row)" @change="$parent.$parent.$parent.setCheckes(row)"></input></td>
275
+ <td style="text-align: center">{{row.f_device_type}}</td>
276
+ <td style="text-align: center">{{row.f_item_name}}/{{row.f_item_value}}</td>
277
+ <td style="text-align: center">{{row.f_defect_level}}</td>
278
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
279
+ <td style="text-align: center">{{row.f_user_name}}</td>
280
+ <td style="text-align: center">{{row.f_user_phone}}</td>
281
+ <td style="text-align: center">{{row.f_residential_area}}</td>
282
+ <td style="text-align: center">{{row.f_address}}</td>
283
+ <td style="text-align: center;white-space:nowrap;">{{row.f_uservent_date}}</td>
284
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
285
+ <td style="text-align: center">{{row.f_checker_name}}</td>
286
+ <td style="text-align: center" v-if="row.f_is_repaired == '隐患未处理' && $parent.$parent.$parent.inrole()" @click="$parent.$parent.$parent.showSolve(row)"><a>{{row.f_is_repaired}}</a></td>
287
+ <td style="text-align: center" v-else>{{row.f_is_repaired}}</td>
288
+ <td style="text-align: center">{{row.f_repairman}}</td>
289
+ <td style="text-align: center">{{row.f_deal_dispose}}</td>
290
+ <td style="text-align: center">{{row.f_repair_date}}</td>
291
+ <td style="text-align: center">{{row.f_service_id}}</td>
292
+ <td style="text-align: center">{{row.f_handlingtype}}</td>
293
+ <td style="text-align: center">{{row.f_order_man}}</td>
294
+ </template>
295
+ </data-grid>
296
+ </criteria-paged>
297
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
298
+ <modal :show.sync="showModal2" :backdrop="false">
299
+ <div slot="modal-header" class="modal-header">
300
+ <h4 class="modal-title">
301
+ 转维修
302
+ </h4>
303
+ </div>
304
+ <div slot="modal-body" class="modal-body">
305
+ <div v-if="true">
306
+ <div>
307
+
308
+ </div>
309
+ <!-- <div v-for="(index, item) in dangerGroup">-->
310
+
311
+ <!-- </div>-->
312
+ <div class="row" style="margin-top: 10px">
313
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">派发类型</label>
314
+ <div class="col-xs-8 col-md-8">
315
+ <v-select :value.sync="selectData.dispatchType" :value-single="true" v-model="selectData.dispatchType"
316
+ :options='dispatchTypeOptions' placeholder='派发类型'
317
+ close-on-select>
318
+ </v-select>
319
+ </div>
320
+ </div>
321
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给维修员'">
322
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">维&ensp;修&ensp;员</label>
323
+ <div class="col-xs-8 col-md-8">
324
+ <v-select
325
+ :value.sync="selectData.f_repairman"
326
+ :value-single="true"
327
+ :options='repairers'
328
+ placeholder='请选择维修员'
329
+ close-on-select></v-select>
330
+ </div>
331
+ </div>
332
+ <div class="row" style="margin-top: 10px" v-if="selectData.dispatchType=='派发给站点'">
333
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">站&ensp;&ensp;&ensp;&ensp;点</label>
334
+ <div class="col-xs-8 col-md-8">
335
+ <right-tree
336
+ islist
337
+ :userid="userid"
338
+ :source="'dep=this.getParentByType($organization$).getSpecialResByType($department$),tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))'"
339
+ @re-res="getSiteRes"></right-tree>
340
+ </div>
341
+ </div>
342
+ <div class="row" style="margin-top: 10px">
343
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">报修类型</label>
344
+ <div class="col-xs-8 col-md-8">
345
+ <v-select :value.sync="selectData.f_repairtype" style="width:60%"
346
+ class="select select_list"
347
+ :value-single="true"
348
+ :options='repairTypeOptions'
349
+ close-on-select>
350
+ </v-select>
351
+ </div>
352
+ </div>
353
+ <div class="row" style="margin-top: 10px">
354
+ <label class="control-label font text-left" style="float:left;margin-left:20%;margin-top:5px">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注</label>
355
+ <div class="col-xs-8 col-md-8">
356
+ <textarea style="width: 60%; height: 100px" v-model="selectData.f_remarks"></textarea>
357
+ </div>
358
+ </div>
359
+ </div>
360
+ </div>
361
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
362
+ <button class="button_search" @click="rectification">转维修</button>
363
+ <button class="button_search" @click="cancel1">取消</button>
364
+ </div>
365
+ </modal>
366
+ <modal :show.sync="showModal3">
367
+ <div slot="modal-header" class="modal-header">
368
+ <h4 class="modal-title">
369
+ 转维修进度{{ progressbarWidth }}%
370
+ </h4>
371
+ </div>
372
+ <div slot="modal-body" class="modal-body">
373
+ <div class="progress">
374
+ <div class="progress-bar" role="progressbar" aria-valuenow="60"
375
+ aria-valuemin="0" aria-valuemax="100" :style="'width:'+ progressbarWidth+'%'">
376
+ </div>
377
+ </div>
378
+ </div>
379
+ <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
380
+ </modal>
381
+ <modal :show.sync="showSolveModal" v-ref:solveModal>
382
+ <div slot="modal-header" class="modal-header">
383
+ <h4 class="modal-title">
384
+ 处理隐患
385
+ </h4>
386
+ </div>
387
+ <div slot="modal-body" class="modal-body">
388
+ <div style="width: 100%;height: 36px;background-color: #f1f8ff;float: left">
389
+ <div style="width: 8px;height: 100%;background-color: #6aa6e2;margin-right: 20px;float: left"></div>
390
+ <div style="width: auto;height:100%;float: left;"><p class="title-font" style="margin-top: 5px">处理前</p></div>
391
+ </div>
392
+
393
+ <div class="col-sm-6" style="margin-top: 10px">
394
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
395
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="solve.model.f_checker_name" placeholder="安检员">
396
+ </div>
397
+ <div class="col-sm-6" style="margin-top: 10px">
398
+ <label class="font_normal_body">安检时间</label>
399
+ <input class="input_search" style="width: 60%" type="text" disabled="true" v-model="solve.model.f_offsite_time" placeholder="安检时间">
400
+ </div>
401
+ <div class="col-sm-12" style="margin-bottom: 10px" v-if="solve.model.defectImg">
402
+ <label class="font_normal_body">隐患图片</label>
403
+ <img-self :width="200" :height="200" :src="solve.model.defectImg"></img-self>
404
+ </div>
405
+ <div class="col-sm-12" style="margin-bottom: 10px">
406
+ <label class="font_normal_body">处理后图片</label>
407
+ <avatar-upload :width="200" :height="200" :img-src.sync="solve.imgSrc" :filename.sync="solve.filename" v-ref:imginfo></avatar-upload>
408
+ </div>
409
+ </div>
410
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
411
+ <button class="button_search" @click="okDefect">确认</button>
412
+ <button class="button_search" @click="cancelsolveDefect">取消</button>
413
+ </div>
414
+ </modal>
415
+ </div>
416
+ </div>
417
+ </template>
418
+
419
+ <script>
420
+ import {PagedList} from 'vue-client'
421
+ import Vue from 'vue'
422
+ import co from 'co'
423
+ import AppData from '../../../stores/AppData'
424
+ import * as Util from '../../Util'
425
+ import getNowDate from "../../../utils/getNowDate";
426
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
427
+ import BenzAMRRecorder from 'benz-amr-recorder'
428
+ const upSolveDefect = function * (self) {
429
+ self.solve.f_deal_dispose = self.solve.f_deal_dispose || '已处理'
430
+ self.$resetpost('/rs/logic/pcRepairDefectNew', self.solve, {resolveMsg: null, rejectMsg: null})
431
+ .then(res => {
432
+ if (res.data.code === 200) {
433
+ self.$showMessage('隐患已处理。')
434
+ self.showSolveModal = false
435
+ self.search()
436
+ self.solve={
437
+ model:{},
438
+ id: '',
439
+ f_repairman: self.$login.f.name,
440
+ f_repair_date: Util.getNowDate().substr(0, 10),
441
+ f_repair_path: '',
442
+ imgSrc: '',
443
+ filename: '',
444
+ f_defect_remark:''
445
+ }
446
+ }
447
+ })
448
+ }
449
+ //获取json配置文件
450
+ let asyncReady = async function (self) {
451
+ // 获取配置信息
452
+ try {
453
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
454
+ Vue.config = res.data
455
+ self.getDefectInfoConfig(res.data)
456
+ } catch (error) {
457
+ // 忽略704,文件找不到异常R
458
+ if (error.status !== 704) {
459
+ throw error
460
+ }
461
+ }
462
+ }
463
+
464
+ let select = function* (self) {
465
+ let http = new HttpResetClass()
466
+ let getGasman = yield http.load('POST', '/rs/search', {
467
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
468
+ userid: self.$login.f.id
469
+ }, {resolveMsg: null, rejectMsg: null})
470
+ ////tag
471
+ self.checkersid.push({label: '全部', value: ''})
472
+ getGasman.data.forEach((checker) => {
473
+ self.checkersid.push({label: checker.name, value: checker.id})
474
+ })
475
+ }
476
+
477
+ export default {
478
+ title: '隐患明细查看',
479
+ data() {
480
+ let model = new PagedList('rs/sql/defectDetails', 20,{
481
+ f_filialeid: 'this.f_filialeid'
482
+ })
483
+ model.f_plan_id = ''
484
+ model.f_approved = ''
485
+ model.f_entry = ''
486
+ model.f_no_checkplan = ''
487
+ model.f_check_type=''
488
+ model.f_filialeid = `('${this.$login.f.orgid}')`
489
+ return {
490
+ audioshow:false,
491
+
492
+ model: model,
493
+ deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
494
+ repairStateOptions: this.getSafeParam('隐患状态'),
495
+ //searchData:searchData,
496
+ excelHeaders: {
497
+ 'f_device_type': '检查项',
498
+ 'f_item_name': '隐患名称',
499
+ 'f_userinfo_code': '客户编号',
500
+ 'f_user_name': '客户姓名',
501
+ 'f_user_phone': '客户电话',
502
+ 'f_residential_area': '小区',
503
+ 'f_address': '客户地址',
504
+ 'f_uservent_date': '通气时间',
505
+ 'f_offsite_time': '安检时间',
506
+ 'f_checker_name': '安检员',
507
+ 'f_deal_dispose': '处理方式',
508
+ 'f_is_repaired': '隐患状态',
509
+ 'f_repairman':'处理人',
510
+ 'f_repair_date':'处理时间'
511
+ },
512
+ fun: this.$login.f,
513
+ checkersid: [],
514
+ safetype: this.getSafeParam('安检类型'),
515
+ criteriaShow: false,
516
+ showModal: false,
517
+ f_approval_states: this.getSafeParam('安检单审核状态'),
518
+ f_entry_status:this.getSafeParam('安检状态'),
519
+ f_checkplans: this.getSafeParam('有无计划'),
520
+ showcheckmsg: false,
521
+ checkInfo: {},
522
+ orderDefault: "'f_offsite_time'",
523
+ orderFields: {
524
+ f_offsite_time: 'no'
525
+ },
526
+ sliceArea: [],
527
+ cbc:[],
528
+ DefectConfig:'' ,
529
+ DefectConfigs:[{label:'全部',value:''},{label: '金额异常差值', value: '金额异常差值'},{label: '气量异常差值', value: '气量异常差值'}],
530
+ device_types:[{label:'全部',value:''}],
531
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
532
+ showModal2: false,
533
+ selectData:{
534
+ dispatchType:'',
535
+ f_repairman:'',
536
+ f_remarks:'',
537
+ f_repairtype:''
538
+ },
539
+ repairers: [],
540
+ repairTypeOptions:this.$appdata.getParam('报修类型'),
541
+ dispatchTypeOptions: [{label: '派发给站点', value: '派发给站点'},{label: '派发给维修员', value: '派发给维修员'}],
542
+ dangerGroups: [],
543
+ showModal3: false,
544
+ progressbarWidth:'0',
545
+ canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
546
+ checkes: [],
547
+ solve:{
548
+ model:{},
549
+ id: '',
550
+ f_repairman: this.$login.f.name,
551
+ f_repair_date: Util.getNowDate().substr(0, 10),
552
+ f_repair_path: '',
553
+ imgSrc: '',
554
+ filename: '',
555
+ f_defect_remark:''
556
+ },
557
+ showSolveModal:false
558
+ }
559
+ },
560
+ computed :{
561
+ searchData() {
562
+ return {condition: this.model.condition}
563
+ }
564
+ },
565
+ methods: {
566
+ isChecked(row) {
567
+ return this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id) != -1
568
+ },
569
+ setCheckes(row) {
570
+ let index=this.checkes.findIndex(item => item.f_defect_id == row.f_defect_id)
571
+ if(index<0){
572
+ this.checkes.push(row)
573
+ }else{
574
+ this.checkes.splice(index,1)
575
+ }
576
+ console.log('this.checkes=', JSON.stringify(this.checkes))
577
+ },
578
+ toRepair(){
579
+ console.log('this.checkes=', JSON.stringify(this.checkes))
580
+ if(this.checkes.length==0){
581
+ return this.$showMessage('请先选择需要转维修的隐患!')
582
+ }
583
+
584
+ const dangerGroups = []
585
+ for (const danger of this.checkes) {
586
+ let i = dangerGroups.findIndex(dangerGroup => dangerGroup.f_userinfo_code === danger.f_userinfo_code)
587
+ if (i == -1){
588
+ dangerGroups.push({
589
+ f_userinfo_code: danger.f_userinfo_code,
590
+ dangers: []
591
+ })
592
+ i = dangerGroups.length - 1
593
+ }
594
+ dangerGroups[i].dangers.push(danger)
595
+ }
596
+ this.dangerGroups = dangerGroups
597
+ console.log('this.dangerGroups=', JSON.stringify(this.dangerGroups))
598
+ this.showModal2=true
599
+ },
600
+ getEmp() {
601
+ let val = {source: 'this.getParentByType($organization$).getSpecialResByType($user$).where(row.getAttributes().get($rolestr$)!=null ).where(row.getAttributes().get($rolestr$).indexOf($维修员$) != -1))', userid: `${this.$login.f.id}`}
602
+ let http = new HttpResetClass()
603
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
604
+ let str=''
605
+ res.data.forEach((item,idx,arr) => {
606
+ //tag
607
+ if(idx+1==arr.length){
608
+ str += item.id
609
+ }else{
610
+ str += item.id+','
611
+ }
612
+
613
+ })
614
+ let http1 = new HttpResetClass()
615
+ http1.load('POST', 'rs/sql/tel_singleTable_OrderBy', {
616
+ data: {
617
+ items: 'id,f_user_telephone',
618
+ tablename: 't_user',
619
+ condition: `id in (${str})`,
620
+ orderitem: 'id'
621
+ }
622
+ }, {resolveMsg: null, rejectMsg: null}).then((ress) => {
623
+
624
+ res.data.forEach((user)=>{
625
+ try {
626
+ ress.data.forEach((tel,tidx,arr)=>{
627
+ //tag
628
+ if(user.id==tel.id){
629
+ this.repairers.push({label: `${user.name}:${tel.f_user_telephone}`, value: user.name})
630
+ ress.data.splice(tidx,1)
631
+ //tag
632
+ throw new Error("跳出循环");
633
+ }
634
+ })
635
+ }catch (e) {
636
+ //tag
637
+ }
638
+ })
639
+ })
640
+
641
+ })
642
+ },
643
+ getSiteRes(obj) {
644
+ console.log('siteRes ---> ')
645
+ console.log(obj)
646
+ if(obj.resids[0]){
647
+ this.selectData.f_meetunit = obj.res.join('.')
648
+ this.selectData.f_reciever = obj.resids.join('.')
649
+ this.selectData.f_outlets = obj.res[obj.res.length - 1]
650
+ }else {
651
+ this.selectData.f_meetunit = ''
652
+ this.selectData.f_reciever = ''
653
+ this.selectData.f_outlets = ''
654
+ }
655
+ },
656
+ cancel1(){
657
+ this.showModal2=false
658
+ this.selectData={
659
+ dispatchType:'',
660
+ f_repairman:'',
661
+ f_remarks:'',
662
+ f_repairtype:''
663
+ }
664
+ },
665
+ async rectification(){
666
+ if(this.selectData.dispatchType){
667
+ if(this.selectData.dispatchType=='派发给站点'){
668
+ if(!this.selectData.f_reciever){
669
+ this.$showMessage('请选择部门!')
670
+ return
671
+ }
672
+ }else{
673
+ if(!this.selectData.f_repairman){
674
+ this.$showMessage('请选择维修员!')
675
+ return
676
+ }
677
+ }
678
+ }else {
679
+ this.$showMessage('请选择派发类型!')
680
+ return
681
+ }
682
+
683
+ if(!this.selectData.f_repairtype){
684
+ this.$showMessage('请选择报修类型!')
685
+ return
686
+ }
687
+ this.showModal3=true
688
+ let act={}
689
+ let toRepair=''
690
+ let successCount=0
691
+ if(this.selectData.dispatchType=='派发给站点'){
692
+ act={f_meetunit:this.selectData.f_meetunit,f_reciever:this.selectData.f_reciever,f_service_acitivity_type:'派单'}
693
+ toRepair=null
694
+ }else{
695
+ console.log('派发给维修员---------'+this.selectData.f_repairman)
696
+ act={f_meetunit:'',f_reciever:this.selectData.f_repairman,f_service_acitivity_type:'派单'}
697
+ toRepair='一级派单'
698
+ }
699
+ let rep={
700
+ loginUser: {
701
+ name: this.$login.f.name,
702
+ ename: this.$login.f.ename
703
+ },
704
+ f_meetunit: this.$login.f.deps,
705
+ f_attendant: this.$login.f.name,
706
+ f_outlets: this.$login.f.deps,
707
+ f_remarks: this.selectData.f_remarks,
708
+ f_repairtype: this.selectData.f_repairtype,
709
+ toRepair: toRepair,
710
+ activity:act
711
+ }
712
+ for(let i=0; i<this.dangerGroups.length; i++){
713
+ let defectIdStr = ''
714
+ const defectIds = []
715
+ for (let j = 0; j < this.dangerGroups[i].dangers.length; j++) {
716
+ defectIds.push(`'${this.dangerGroups[i].dangers[j].f_defect_id}'`)
717
+ }
718
+ defectIdStr = `(${defectIds.join(',')})`
719
+ const data = {
720
+ id:this.dangerGroups[i].dangers[0].f_paper_id,
721
+ repData:rep,
722
+ source:'pc',
723
+ defectIdStr: defectIdStr
724
+ }
725
+ console.log('data=', JSON.stringify(data))
726
+ try {
727
+ let result =await new HttpResetClass().load('post','/rs/logic/phoneUploadRectification', data, {resolveMsg: null, rejectMsg: null})
728
+ if (result.data.code==200) {
729
+ successCount += result.data.successcon
730
+ this.progressbarWidth=Math.ceil((i+1)*100/(this.dangerGroups.length))
731
+ }
732
+ }catch (e) {
733
+ this.showModal3=false
734
+ this.$showMessage('网络异常,请稍后再试!')
735
+ return
736
+ }
737
+ }
738
+ this.showModal3=false
739
+ this.cancel1()
740
+ this.$showMessage('本次转维修成功'+successCount+'单')
741
+ },
742
+ getDefectInfoConfig(val){
743
+ try {
744
+ if (val.safecheck.DevicesSetConfig != undefined) {
745
+ this.DefectConfig = val.safecheck.DevicesConfig
746
+ // 获取到配置项,进行遍历,获取每个隐患项
747
+ for (var Key1 in this.DefectConfig){
748
+ this.device_types.push({label:Key1,value:Key1})
749
+ for(var Key2 in this.DefectConfig[Key1].items){
750
+ this.DefectConfigs.push({label:Key2,value:Key2})
751
+ }
752
+ }
753
+ // 非民用或其他配置项加入,在进行遍历
754
+ }
755
+ }catch (e) {
756
+ //tag
757
+ }
758
+ },
759
+ showaudio(){
760
+ //tag
761
+ this.audioshow=!this.audioshow
762
+ //tag
763
+ },
764
+ getmeterbook(val){
765
+ this.cbc=[]
766
+ this.cbc.push({
767
+ label:'全部',
768
+ value:''
769
+ })
770
+ if (val==''){
771
+
772
+ this.cbcs.forEach(res=>{
773
+ this.cbc.push({
774
+ label:res.f_book_name,
775
+ value:res.id
776
+ })
777
+ })
778
+ }else{
779
+ this.cbcs.forEach(res=>{
780
+ if (res.f_book_slice_area==val){
781
+ this.cbc.push({
782
+ label:res.f_book_name,
783
+ value:res.id
784
+ })
785
+ }
786
+ })
787
+ }
788
+ },
789
+ getSafeParam(val){
790
+ if(this.$appdata.getParam(val)){
791
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(val)]
792
+ }else{
793
+ return [{label: '全部', value: ''}]
794
+ }
795
+
796
+ },
797
+ Mreadibook(val){
798
+ ////tag
799
+ ////tag
800
+ this.sliceArea=[]
801
+ if (val){
802
+ new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
803
+ items: 'name',
804
+ tablename: 't_zone',
805
+ condition: `parentid in ${val}`,
806
+ orderitem: 'id'
807
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
808
+ this.sliceArea.push({
809
+ label:'全部',
810
+ value:''
811
+ })
812
+ res.data.forEach(ress=>{
813
+ this.sliceArea.push({
814
+ label:ress.name,
815
+ value:ress.name
816
+ })
817
+ })
818
+
819
+ })
820
+ }
821
+ },
822
+ getAllMeterBook(val){
823
+ ////tag
824
+ ////tag
825
+ this.cbcs=[]
826
+ if (val){
827
+ new HttpResetClass().load('POST',`/rs/sql/safe_singleTable_OrderBy`, {data: {
828
+ items: 'f_book_name,f_book_slice_area,id',
829
+ tablename: 't_meter_book',
830
+ condition: `f_filiale_id in ${val}`,
831
+ orderitem: 'id'
832
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
833
+ res.data.forEach(ress=>{
834
+ this.cbcs.push({
835
+ id:ress.id,
836
+ f_book_name:ress.f_book_name,
837
+ f_book_slice_area:ress.f_book_slice_area
838
+ })
839
+ })
840
+ this.cbc=[]
841
+ this.cbc.push({
842
+ label:'全部',
843
+ value:''
844
+ })
845
+ this.cbcs.forEach(res=>{
846
+ this.cbc.push({
847
+ label:res.f_book_name,
848
+ value:res.id
849
+ })
850
+ })
851
+ })
852
+ }
853
+ },
854
+ getRes(obj) {
855
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
856
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
857
+ this.Mreadibook(this.model.f_filialeid)
858
+ this.getAllMeterBook(this.model.f_filialeid)
859
+ //this.$refs.paged.$refs.criteria.search()
860
+ },
861
+
862
+ change(row) {
863
+ // Vue.$login = {jwt: row.f_checker_id}
864
+ asyncReady(this).then(() => {
865
+ ////tag)
866
+ row.f_upload_state = '已传'
867
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
868
+ }).catch(
869
+ (respanse) => {
870
+ alert('获取配置文件失败')
871
+ })
872
+ },
873
+ readConfig() {
874
+ let gen = asyncReady(this)
875
+ return co(gen)
876
+ },
877
+ showChooser() {
878
+ this.showModal = true
879
+ },
880
+ hidden() {
881
+ this.criteriaShow = !this.criteriaShow
882
+ },
883
+ refresh() {
884
+ this.$refs.paged.$refs.criteria.search()
885
+ },
886
+ ok() {
887
+ this.showModal = false
888
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
889
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
890
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
891
+ }
892
+ },
893
+ cancel() {
894
+ this.showModal = false
895
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
896
+ this.model.f_plan_id=''
897
+ },
898
+ print(row) {
899
+ this.showcheckmsg = true
900
+ this.checkInfo = row
901
+ },
902
+
903
+ sort(field, rule) {
904
+ // 将所有排序方式设为不排序,实现相互排斥
905
+ for (let key in this.orderFields) {
906
+ if (key === field) {
907
+ this.orderFields[key] = rule
908
+ } else {
909
+ this.orderFields[key] = 'no'
910
+ }
911
+ }
912
+ // 如果新规则不排序,还原为默认排序
913
+ if (rule === 'no') {
914
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
915
+ } else {
916
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
917
+ }
918
+ this.search()
919
+ },
920
+ search() {
921
+ this.$refs.paged.$refs.criteria.search()
922
+ },
923
+ selfSearch(args) {
924
+ ////tag
925
+ args.condition += ` and f_filialeid in ${this.model.f_filialeid}`
926
+ this.model.search(args.condition, args.model, args.condValue)
927
+ },
928
+ cancelsolveDefect() {
929
+ this.showSolveModal = false
930
+ this.solve = {
931
+ model:{},
932
+ id: '',
933
+ f_repairman: this.$login.f.name,
934
+ f_repair_date: Util.getNowDate().substr(0, 10),
935
+ f_repair_path: '',
936
+ imgSrc: '',
937
+ filename: '',
938
+ f_defect_remark:''
939
+ }
940
+ },
941
+ okDefect(){
942
+ if (!(this.solve.filename && this.solve.filename.length > 0)) {
943
+ this.$showMessage('请录入处理后照片')
944
+ return
945
+ }
946
+ co(upSolveDefect(this))
947
+ },
948
+ showSolve(row){
949
+ this.showSolveModal = true
950
+ this.solve.model = row
951
+ this.solve.model.defectImg = row.f_path?'/rs/image/file/' + row.f_path:null
952
+ this.solve.id = row.f_defect_id
953
+ },
954
+ inrole(){
955
+ return this.$login.f.rolestr.indexOf('安检隐患处理') != -1
956
+ }
957
+ },
958
+
959
+ ready() {
960
+ this.getEmp()
961
+ this.readConfig()
962
+ ////tag
963
+ this.function = this.f
964
+ ////tag
965
+
966
+ let gen = select(this)
967
+ //this.pianqu()
968
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
969
+ co(gen)
970
+ }
971
+ }
972
+ </script>