safecheck-client 4.0.1-1 → 4.0.1-10

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 (268) 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 +1 -1
  46. package/publish.bat +7 -7
  47. package/release.bat +5 -5
  48. package/src/App.vue +31 -31
  49. package/src/Widget.vue +13 -13
  50. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  51. package/src/android-bootstrap/less/.csscomb.json +304 -304
  52. package/src/android-bootstrap/less/.csslintrc +19 -19
  53. package/src/android-bootstrap/less/alerts.less +73 -73
  54. package/src/android-bootstrap/less/badges.less +66 -66
  55. package/src/android-bootstrap/less/bootstrap.less +56 -56
  56. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  57. package/src/android-bootstrap/less/button-groups.less +247 -247
  58. package/src/android-bootstrap/less/buttons.less +173 -173
  59. package/src/android-bootstrap/less/carousel.less +269 -269
  60. package/src/android-bootstrap/less/close.less +34 -34
  61. package/src/android-bootstrap/less/code.less +69 -69
  62. package/src/android-bootstrap/less/component-animations.less +33 -33
  63. package/src/android-bootstrap/less/grid.less +84 -84
  64. package/src/android-bootstrap/less/input-groups.less +167 -167
  65. package/src/android-bootstrap/less/jumbotron.less +52 -52
  66. package/src/android-bootstrap/less/labels.less +64 -64
  67. package/src/android-bootstrap/less/list-group.less +141 -141
  68. package/src/android-bootstrap/less/media.less +66 -66
  69. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  70. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  71. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  72. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  73. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  74. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  75. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  76. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  77. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  78. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  79. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  80. package/src/android-bootstrap/less/mixins/image.less +33 -33
  81. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  82. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  83. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  84. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  85. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  86. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  87. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  88. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  89. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  90. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  91. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  92. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  93. package/src/android-bootstrap/less/mixins/size.less +10 -10
  94. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  95. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  96. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  97. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  98. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  99. package/src/android-bootstrap/less/mixins.less +40 -40
  100. package/src/android-bootstrap/less/modals.less +151 -151
  101. package/src/android-bootstrap/less/navbar.less +660 -660
  102. package/src/android-bootstrap/less/navs.less +290 -290
  103. package/src/android-bootstrap/less/normalize.less +424 -424
  104. package/src/android-bootstrap/less/pager.less +76 -76
  105. package/src/android-bootstrap/less/pagination.less +89 -89
  106. package/src/android-bootstrap/less/panels.less +274 -274
  107. package/src/android-bootstrap/less/popovers.less +131 -131
  108. package/src/android-bootstrap/less/print.less +101 -101
  109. package/src/android-bootstrap/less/progress-bars.less +87 -87
  110. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  111. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  112. package/src/android-bootstrap/less/scaffolding.less +161 -161
  113. package/src/android-bootstrap/less/tables.less +262 -262
  114. package/src/android-bootstrap/less/theme.less +291 -291
  115. package/src/android-bootstrap/less/thumbnails.less +36 -36
  116. package/src/android-bootstrap/less/tooltip.less +102 -102
  117. package/src/android-bootstrap/less/type.less +303 -303
  118. package/src/android-bootstrap/less/utilities.less +55 -55
  119. package/src/android-bootstrap/less/variables.less +896 -896
  120. package/src/android-bootstrap/less/wells.less +29 -29
  121. package/src/bootstrap/less/.csscomb.json +304 -304
  122. package/src/bootstrap/less/.csslintrc +19 -19
  123. package/src/bootstrap/less/alerts.less +73 -73
  124. package/src/bootstrap/less/badges.less +66 -66
  125. package/src/bootstrap/less/breadcrumbs.less +26 -26
  126. package/src/bootstrap/less/button-groups.less +247 -247
  127. package/src/bootstrap/less/buttons.less +172 -172
  128. package/src/bootstrap/less/carousel.less +269 -269
  129. package/src/bootstrap/less/close.less +34 -34
  130. package/src/bootstrap/less/code.less +69 -69
  131. package/src/bootstrap/less/component-animations.less +33 -33
  132. package/src/bootstrap/less/dropdowns.less +216 -216
  133. package/src/bootstrap/less/grid.less +84 -84
  134. package/src/bootstrap/less/input-groups.less +167 -167
  135. package/src/bootstrap/less/jumbotron.less +52 -52
  136. package/src/bootstrap/less/labels.less +64 -64
  137. package/src/bootstrap/less/list-group.less +141 -141
  138. package/src/bootstrap/less/media.less +66 -66
  139. package/src/bootstrap/less/mixins/alerts.less +14 -14
  140. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  141. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  142. package/src/bootstrap/less/mixins/buttons.less +69 -69
  143. package/src/bootstrap/less/mixins/center-block.less +7 -7
  144. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  145. package/src/bootstrap/less/mixins/forms.less +90 -90
  146. package/src/bootstrap/less/mixins/gradients.less +59 -59
  147. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  148. package/src/bootstrap/less/mixins/grid.less +122 -122
  149. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  150. package/src/bootstrap/less/mixins/image.less +33 -33
  151. package/src/bootstrap/less/mixins/labels.less +12 -12
  152. package/src/bootstrap/less/mixins/list-group.less +30 -30
  153. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  154. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  155. package/src/bootstrap/less/mixins/opacity.less +8 -8
  156. package/src/bootstrap/less/mixins/pagination.less +24 -24
  157. package/src/bootstrap/less/mixins/panels.less +24 -24
  158. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  159. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  160. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  161. package/src/bootstrap/less/mixins/resize.less +6 -6
  162. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  163. package/src/bootstrap/less/mixins/size.less +10 -10
  164. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  165. package/src/bootstrap/less/mixins/table-row.less +44 -44
  166. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  167. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  168. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  169. package/src/bootstrap/less/mixins.less +40 -40
  170. package/src/bootstrap/less/modals.less +151 -151
  171. package/src/bootstrap/less/navbar.less +660 -660
  172. package/src/bootstrap/less/normalize.less +424 -424
  173. package/src/bootstrap/less/pagination.less +89 -89
  174. package/src/bootstrap/less/panels.less +275 -275
  175. package/src/bootstrap/less/popovers.less +131 -131
  176. package/src/bootstrap/less/print.less +101 -101
  177. package/src/bootstrap/less/progress-bars.less +87 -87
  178. package/src/bootstrap/less/responsive-embed.less +35 -35
  179. package/src/bootstrap/less/responsive-utilities.less +194 -194
  180. package/src/bootstrap/less/scaffolding.less +161 -161
  181. package/src/bootstrap/less/theme.less +291 -291
  182. package/src/bootstrap/less/thumbnails.less +36 -36
  183. package/src/bootstrap/less/tooltip.less +102 -102
  184. package/src/bootstrap/less/type.less +303 -303
  185. package/src/bootstrap/less/utilities.less +55 -55
  186. package/src/bootstrap/less/wells.less +29 -29
  187. package/src/components/FileUpload.vue +696 -696
  188. package/src/components/Hello.vue +39 -39
  189. package/src/components/LeftTree.vue +27 -27
  190. package/src/components/NewDefectList/DefectListNew.vue +3 -0
  191. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  192. package/src/components/Util/SafecheckUpload.vue +281 -281
  193. package/src/components/android/AttendanceTally.vue +116 -116
  194. package/src/components/android/Blank.vue +10 -10
  195. package/src/components/android/CheckUnplanPage.vue +56 -56
  196. package/src/components/android/Checker.vue +12 -12
  197. package/src/components/android/CheckerAnnual.vue +81 -81
  198. package/src/components/android/CheckerAvarta.vue +82 -82
  199. package/src/components/android/EquipmentInspection.vue +348 -348
  200. package/src/components/android/FootprintMap.vue +120 -120
  201. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  202. package/src/components/android/MasterMain.vue +77 -77
  203. package/src/components/android/Menu.vue +132 -132
  204. package/src/components/android/PaperAlarm.vue +85 -85
  205. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  206. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  207. package/src/components/android/PlumberAnnual.vue +83 -83
  208. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  209. package/src/components/android/PlumberMonthly.vue +84 -84
  210. package/src/components/android/PostMap.vue +83 -83
  211. package/src/components/android/QueryCheckHistory.vue +122 -122
  212. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  213. package/src/components/android/RepairMain.vue +60 -60
  214. package/src/components/android/Repairman.vue +12 -12
  215. package/src/components/android/SafeRightTree.vue +4 -3
  216. package/src/components/android/SafecheckDevices.vue +1340 -1340
  217. package/src/components/android/StationMaster.vue +12 -12
  218. package/src/components/defects/DefectModal.vue +101 -101
  219. package/src/components/defects/DevicesAndItem.vue +39 -39
  220. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  221. package/src/components/notice/NoticeForm.vue +100 -100
  222. package/src/components/notice/NoticeIssue.vue +20 -20
  223. package/src/components/paper/PaperList.vue +797 -797
  224. package/src/components/paper/PicViewer.vue +18 -18
  225. package/src/components/pc/CheckBook.vue +303 -303
  226. package/src/components/pc/CheckBookArea.vue +146 -146
  227. package/src/components/pc/CheckBookCompany.vue +144 -144
  228. package/src/components/pc/CheckBookDetails.vue +161 -161
  229. package/src/components/pc/CheckBookEntry.vue +60 -60
  230. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  231. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  232. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  233. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  234. package/src/components/pc/CheckBookUser.vue +337 -333
  235. package/src/components/pc/PaperDefectMain.vue +880 -880
  236. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  237. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  238. package/src/components/phonestate/PostMap.vue +82 -82
  239. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  240. package/src/components/userfile/MeterFile.vue +145 -145
  241. package/src/components/userfile/MeterModify.vue +46 -46
  242. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  243. package/src/filiale/jinhong/pc/CheckBookList.vue +388 -388
  244. package/src/filiale/jinhong/pc/DefectPaperNew.vue +1100 -1100
  245. package/src/filiale/jinhong/pc/checkUserList.vue +1 -2
  246. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  247. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  248. package/src/filiale/meihekou/android/CurrentCreate.vue +1038 -1038
  249. package/src/filiale/meihekou/android/PaperFeedback.vue +1542 -1542
  250. package/src/filiale/meihekou/android/SafecheckDevices.vue +1340 -1340
  251. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2431 -2421
  252. package/src/filiale/meihekou/android.js +22 -22
  253. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2027 -2027
  254. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1 -0
  255. package/src/filiale/yunchengminsheng/android/SafecheckOrderV.vue +2 -0
  256. package/src/main.js +33 -33
  257. package/src/plugins/LoadData.js +10 -10
  258. package/src/plugins/LoadParams.js +24 -24
  259. package/src/stores/wxconfig.js +10 -10
  260. package/src/utils/getNowDate.js +33 -33
  261. package/test/e2e/custom-assertions/elementCount.js +26 -26
  262. package/test/e2e/nightwatch.conf.js +40 -40
  263. package/test/e2e/runner.js +30 -30
  264. package/test/e2e/specs/test.js +13 -13
  265. package/test/unit/.eslintrc +5 -5
  266. package/test/unit/TestUtil.js +62 -62
  267. package/test/unit/context.html +20 -20
  268. package/test/unit/index.js +13 -13
@@ -1,388 +1,388 @@
1
- <template>
2
- <div class="flex">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
- <div :class="$parent.$parent.style2" style="margin: 0px">
8
- <role-selector-safe-dep
9
- role-name="安检员"
10
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
11
- @re-res="$parent.$parent.getRes"
12
- @alluser="$parent.$parent.getchecker"
13
- :value.sync="model.f_checker_id"
14
- v-model="model.f_checker_id"
15
- :value-multiple="true"
16
- condition=" f_checker_name in {}">
17
- >
18
- </role-selector-safe-dep>
19
- </div>
20
- <div :class="$parent.$parent.style">
21
- <label class="font_normal_body">安检册名称</label>
22
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
23
- :value-single="true" style="width: 60%"
24
- class="select_list select"
25
- :options='$parent.$parent.checkBooks' placeholder='安检册名称'
26
- close-on-select
27
- condition="tcb.id ='{}'"></v-select>
28
- </div>
29
- <!-- <div :class="$parent.$parent.style">-->
30
- <!-- <label class="font_normal_body">表册类型</label>-->
31
- <!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
32
- <!-- :value-single="true" style="width: 60%"-->
33
- <!-- class="select_list select"-->
34
- <!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
35
- <!-- close-on-select-->
36
- <!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
37
- <!-- </div>-->
38
- <!-- <div :class="$parent.$parent.style">-->
39
- <!-- <label class="font_normal_body">用户类型</label>-->
40
- <!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
41
- <!-- :value-single="true" style="width: 60%"-->
42
- <!-- class="select_list select"-->
43
- <!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
44
- <!-- close-on-select-->
45
- <!-- condition="tcb.f_user_type ='{}'"></v-select>-->
46
- <!-- </div>-->
47
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
48
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
50
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
51
- <div style="float: right" class="button_spacing"
52
- v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
53
- :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
54
- @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
55
- </div>
56
-
57
-
58
- </div>
59
-
60
-
61
- <div class="row" v-show="$parent.$parent.$parent.showItemAll">
62
- <div :class="$parent.$parent.style2" style="margin: 0px">
63
- <role-selector-safe-dep
64
- role-name="安检员"
65
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
66
- @re-res="$parent.$parent.getRes"
67
- @alluser="$parent.$parent.getchecker"
68
- :value.sync="model.f_checker_id"
69
- v-model="model.f_checker_id"
70
- :value-multiple="true"
71
- condition=" f_checker_name in {}">
72
- </role-selector-safe-dep>
73
- </div>
74
-
75
- <div :class="$parent.$parent.style">
76
- <label class="font_normal_body">安检册名</label>
77
- <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
78
- :value-single="true" style="width: 60%"
79
- class="select_list select"
80
- :options='$parent.$parent.checkBooks' placeholder='安检册名称'
81
- close-on-select
82
- condition="tcb.id ='{}'"></v-select>
83
- </div>
84
- <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
85
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
86
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
87
- <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
88
- <div style="float: right" class="button_spacing"
89
- v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
90
- :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
91
- @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
92
- <!-- <div style="float: right" class="button_spacing"-->
93
- <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
94
- <!-- @click="$parent.$parent.hidden()">-->
95
- <!-- </div>-->
96
- </div>
97
-
98
- </div>
99
-
100
- </div>
101
- </criteria>
102
- <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
103
- <template partial='head'>
104
- <tr>
105
- <th>
106
- <nobr>所属安检员</nobr>
107
- </th>
108
- <th>
109
- <nobr>安检册名称</nobr>
110
- </th>
111
- <!-- <th>-->
112
- <!-- <nobr>安检册类型</nobr>-->
113
- <!-- </th>-->
114
- <th>
115
- <nobr>用户类型</nobr>
116
- </th>
117
- <th>
118
- <nobr>创建日期</nobr>
119
- </th>
120
- <th>
121
- <nobr>创建人</nobr>
122
- </th>
123
- <th>
124
- <nobr>用户数量</nobr>
125
- </th>
126
- <th>
127
- <nobr>已下发</nobr>
128
- </th>
129
- <th>
130
- <nobr>未下发</nobr>
131
- </th>
132
- <!-- <th>
133
- <nobr>已检</nobr>
134
- </th>
135
- <th>
136
- <nobr>未检</nobr>
137
- </th>-->
138
- <!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
139
- <!-- <nobr>操作</nobr>-->
140
- <!-- </th>-->
141
- </tr>
142
- </template>
143
- <template partial='body'>
144
- <td style="text-align: center;">{{ row.f_checker_name }}</td>
145
- <td style="text-align: center;">{{ row.f_check_book_name }}</td>
146
- <!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
147
- <td style="text-align: center;">{{ row.f_user_type }}</td>
148
- <td style="text-align: center;">{{ row.f_create_date }}</td>
149
- <td style="text-align: center;">{{ row.f_create_person }}</td>
150
- <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num}}</b></button></td>
151
- <td style="text-align: center;">{{ row.xiafa }}</td>
152
- <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
153
- <!-- <td style="text-align: center;">{{ row.yijian }}</td>
154
- <td style="text-align: center;">{{ row.weijian }}</td>-->
155
- <!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
156
- </template>
157
- </data-grid>
158
- </criteria-paged>
159
- <modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
160
- <article slot="modal-body" class="modal-body">
161
- <check-book-entry v-if="showModal" @select-changed="selectedEntry" :showtype="showtype"></check-book-entry>
162
- </article>
163
- <footer slot="modal-footer">
164
- </footer>
165
-
166
- </modal>
167
- <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
168
- <article slot="modal-body" class="modal-body" style="height: 80vh">
169
- <check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
170
- </article>
171
- <footer slot="modal-footer">
172
- </footer>
173
-
174
- </modal>
175
- </div>
176
- </template>
177
-
178
- <script>
179
- import {PagedList} from 'vue-client'
180
- import {HttpResetClass} from 'vue-client'
181
- import bus from '../../../bus'
182
- export default {
183
- title: '用户安检情况',
184
- data () {
185
- return {
186
- checker_name:'',
187
- showSendModal:false,
188
- searchData: {
189
- condition: '1=1'
190
- },
191
- showCaoZuo:false,
192
- userlogin:{
193
- id:this.$login.f.id,
194
- name:this.$login.f.name,
195
- orgid:this.$login.f.orgid,
196
- orgstr:this.$login.f.orgs,
197
- },
198
- checkBooks:[],
199
- bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
200
- userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
201
- aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
202
- showModal:false,
203
- excelHeaders: {
204
-
205
- 'f_userinfo_code': '用户编号',
206
- 'f_user_name': '用户名称',
207
- 'f_user_phone': '用户电话',
208
- 'f_meternumber': '用户表号',
209
- 'f_user_type': '用户类型',
210
- 'f_last_checker': '安检员',
211
- 'f_residential_area': '小区名称',
212
- 'f_address': '地址',
213
- 'f_last_check_date': '安检日期',
214
- 'f_last_check_state': '安检状态',
215
- 'f_last_check_result': '安检结果'
216
- },
217
- model: new PagedList('api/af-safecheck/sql/QueryCheckBook', 20),
218
- checkBookRow:{},
219
- checkBook :{
220
- f_check_book_name: '',
221
- f_run_date: '',
222
- f_around_time: '',
223
- f_around_unit: '',
224
- f_create_date: '',
225
- f_create_person: '',
226
- f_orgid: '',
227
- f_checker_name: ''
228
- }
229
- }
230
- },
231
- props: {
232
- style: {
233
- type: String,
234
- default: 'col-sm-2 form-group'
235
- },
236
- style2: {
237
- type: String,
238
- default: 'col-sm-4 form-group'
239
- },
240
- needprops:{
241
- type: Object,
242
- default:{}
243
- },
244
- showtype:{
245
- type: String
246
- }
247
- },
248
- ready () {
249
- bus.$on('fresh-main',()=>{
250
- console.log("进入方法")
251
- this.$refs.paged.$refs.criteria.search()
252
- })
253
- this.freshCheckBook()
254
- },
255
- beforeDestroy() {
256
- //tag
257
- bus.$off('fresh-main')
258
- },
259
- methods: {
260
- getchecker(val){
261
- this.$refs.paged.$refs.criteria.model.f_checker_id = ''
262
- if(val && val.length > 0){
263
- this.checker_name = ''
264
- val.forEach(user => {
265
- this.checker_name += `'${user.name}',`
266
- })
267
- this.checker_name = this.checker_name.slice(0,this.checker_name.length-1)
268
- }else{
269
- this.checker_name = ''
270
- }
271
- },
272
-
273
- send(row){
274
- console.log(" ",row)
275
- this.checkBookRow = row
276
- this.showSendModal = true
277
- },
278
- freshCheckBook () {
279
- this.checkBooks = []
280
- new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999`, {
281
- data: {
282
- items: 'id,f_check_book_name',
283
- tablename: 't_check_book',
284
- condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
285
- orderitem: 'id desc'
286
- }
287
- }, {resolveMsg: null, rejectMsg: null}).then(res => {
288
- this.checkBooks.push({label: '全部', value: ''})
289
- res.data.forEach(ress => {
290
- this.checkBooks.push({
291
- label: ress.f_check_book_name,
292
- value: ress.id
293
- })
294
- })
295
- })
296
- },
297
- selectedEntry(){
298
- console.log("666666666666666666")
299
- },
300
- details(row){
301
- this.$emit('showdetails' ,row)
302
- },
303
- add(){
304
- this.$emit('addbook')
305
- },
306
- ok (){
307
- //tag
308
- let http = new HttpResetClass()
309
- http.load('POST', 'api/af-safecheck/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
310
- {resolveMsg: '更新安检册信息成功', rejectMsg: '保存安检册信息成功'}).then(res=>{
311
- if (res.data.code===200){
312
- this.$showMessage('修改成功')
313
- this.showModal = false
314
- this.checkBook= {}
315
- }
316
- })
317
- },
318
- cancel () {
319
- this.showModal = false
320
- this.checkBook= {}
321
- },
322
- updateCheckBook(val){
323
- this.checkBook=val
324
- this.showModal = true
325
- },
326
- search (args) {
327
- // //tag
328
- // //tag
329
- if(this.checker_name){
330
- args.condition += ` and f_checker_name in (${this.checker_name}) `
331
- }
332
- this.$parent.showItem = false
333
- this.$parent.showItemUser = false
334
- args.condition += ` and f_orgid in ('${this.$login.f.orgid}')`
335
- args.condition += ` and tcb.f_user_type ='${this.showtype}' `
336
- return this.model.search(args.condition, args.model)
337
- },
338
- getRes (obj) {
339
- // this.model.f_filialeids = this.$login.convertToIn(obj.resids)
340
- },
341
- async deleteCheckBook (val) {
342
- try {
343
- //tag
344
- let http = new HttpResetClass()
345
- let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
346
- let delCheckBook= `delete from t_check_book where id ='${val.id}'`
347
- await http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: upAddress}},
348
- {resolveMsg: null, rejectMsg: '删除安检册失败'})
349
- await http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: delCheckBook}},
350
- {resolveMsg: null, rejectMsg: '删除安检册失败'})
351
- this.$showMessage('删除成功')
352
- this.$refs.paged.$refs.criteria.search()
353
- }catch (e) {
354
- this.$showMessage('删除失败',e)
355
- }
356
- }
357
- },
358
-
359
- watch: {
360
- 'model.rows'(val){
361
- console.log("997997",val)
362
- this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
363
- }
364
- },
365
- computed: {
366
- selected () {
367
- return this.$refs.paged.$refs.grid.selected
368
- }
369
- }
370
- }
371
- </script>
372
- <style scoped>
373
- .newcolor {
374
- color: red;
375
- }
376
-
377
- .table th {
378
- background-color: #f2f6fa;
379
- color: black;
380
- }
381
- </style>
382
- <style lang="less">
383
- #checkbookEntryShow {
384
- .modal-dialog {
385
- width: 80%;
386
- }
387
- }
388
- </style>
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
+ <div :class="$parent.$parent.style2" style="margin: 0px">
8
+ <role-selector-safe-dep
9
+ role-name="安检员"
10
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
11
+ @re-res="$parent.$parent.getRes"
12
+ @alluser="$parent.$parent.getchecker"
13
+ :value.sync="model.f_checker_id"
14
+ v-model="model.f_checker_id"
15
+ :value-multiple="true"
16
+ condition=" f_checker_name in {}">
17
+ >
18
+ </role-selector-safe-dep>
19
+ </div>
20
+ <div :class="$parent.$parent.style">
21
+ <label class="font_normal_body">安检册名称</label>
22
+ <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
23
+ :multiple="true" style="width: 60%"
24
+ class="select_list select"
25
+ :options='$parent.$parent.checkBooks' placeholder='安检册名称'
26
+ close-on-select
27
+ condition="tcb.id in {}"></v-select>
28
+ </div>
29
+ <!-- <div :class="$parent.$parent.style">-->
30
+ <!-- <label class="font_normal_body">表册类型</label>-->
31
+ <!-- <v-select :value.sync="model.f_check_book_type" v-model='model.f_check_book_type'-->
32
+ <!-- :value-single="true" style="width: 60%"-->
33
+ <!-- class="select_list select"-->
34
+ <!-- :options='$parent.$parent.bookTypes' placeholder='表册类型'-->
35
+ <!-- close-on-select-->
36
+ <!-- condition="tcb.f_check_book_type ='{}'"></v-select>-->
37
+ <!-- </div>-->
38
+ <!-- <div :class="$parent.$parent.style">-->
39
+ <!-- <label class="font_normal_body">用户类型</label>-->
40
+ <!-- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'-->
41
+ <!-- :value-single="true" style="width: 60%"-->
42
+ <!-- class="select_list select"-->
43
+ <!-- :options='$parent.$parent.userTypes' placeholder='用户类型'-->
44
+ <!-- close-on-select-->
45
+ <!-- condition="tcb.f_user_type ='{}'"></v-select>-->
46
+ <!-- </div>-->
47
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
48
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
50
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
51
+ <div style="float: right" class="button_spacing"
52
+ v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
53
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
54
+ @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
55
+ </div>
56
+
57
+
58
+ </div>
59
+
60
+
61
+ <div class="row" v-show="$parent.$parent.$parent.showItemAll">
62
+ <div :class="$parent.$parent.style2" style="margin: 0px">
63
+ <role-selector-safe-dep
64
+ role-name="安检员"
65
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
66
+ @re-res="$parent.$parent.getRes"
67
+ @alluser="$parent.$parent.getchecker"
68
+ :value.sync="model.f_checker_id"
69
+ v-model="model.f_checker_id"
70
+ :value-multiple="true"
71
+ condition=" f_checker_name in {}">
72
+ </role-selector-safe-dep>
73
+ </div>
74
+
75
+ <div :class="$parent.$parent.style">
76
+ <label class="font_normal_body">安检册名</label>
77
+ <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
78
+ :value-single="true" style="width: 60%"
79
+ class="select_list select"
80
+ :options='$parent.$parent.checkBooks' placeholder='安检册名称'
81
+ close-on-select
82
+ condition="tcb.id ='{}'"></v-select>
83
+ </div>
84
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
85
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
86
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
87
+ <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
88
+ <div style="float: right" class="button_spacing"
89
+ v-show="$parent.$parent.$parent.showItem ||$parent.$parent.$parent.showItemUser"
90
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItemAll,'button_shrink_right':!$parent.$parent.$parent.showItemAll}"
91
+ @click="($parent.$parent.$parent.showItem =false) || ($parent.$parent.$parent.showItemUser =false)"></div>
92
+ <!-- <div style="float: right" class="button_spacing"-->
93
+ <!-- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"-->
94
+ <!-- @click="$parent.$parent.hidden()">-->
95
+ <!-- </div>-->
96
+ </div>
97
+
98
+ </div>
99
+
100
+ </div>
101
+ </criteria>
102
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
103
+ <template partial='head'>
104
+ <tr>
105
+ <th>
106
+ <nobr>所属安检员</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>安检册名称</nobr>
110
+ </th>
111
+ <!-- <th>-->
112
+ <!-- <nobr>安检册类型</nobr>-->
113
+ <!-- </th>-->
114
+ <th>
115
+ <nobr>用户类型</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>创建日期</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>创建人</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>用户数量</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>已下发</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>未下发</nobr>
131
+ </th>
132
+ <!-- <th>
133
+ <nobr>已检</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>未检</nobr>
137
+ </th>-->
138
+ <!-- <th v-show="$parent.$parent.$parent.showCaoZuo">-->
139
+ <!-- <nobr>操作</nobr>-->
140
+ <!-- </th>-->
141
+ </tr>
142
+ </template>
143
+ <template partial='body'>
144
+ <td style="text-align: center;">{{ row.f_checker_name }}</td>
145
+ <td style="text-align: center;">{{ row.f_check_book_name }}</td>
146
+ <!-- <td style="text-align: center;">{{ row.f_check_book_type }}</td>-->
147
+ <td style="text-align: center;">{{ row.f_user_type }}</td>
148
+ <td style="text-align: center;">{{ row.f_create_date }}</td>
149
+ <td style="text-align: center;">{{ row.f_create_person }}</td>
150
+ <td style="text-align: center;"><button @click.stop="$parent.$parent.$parent.details(row)" class="btn btn-link"><b>{{row.num}}</b></button></td>
151
+ <td style="text-align: center;">{{ row.xiafa }}</td>
152
+ <td style="text-align: center;">{{ row.f_user_type =='民用'?row.num-row.xiafa:row.num4-row.xiafa }}</td>
153
+ <!-- <td style="text-align: center;">{{ row.yijian }}</td>
154
+ <td style="text-align: center;">{{ row.weijian }}</td>-->
155
+ <!-- <td v-show="row.f_check_book_type!='小区'" style="text-align: center;"><button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.send(row)'>下发</button></td>-->
156
+ </template>
157
+ </data-grid>
158
+ </criteria-paged>
159
+ <modal :show.sync="showModal" :backdrop="false" id="checkbookEntryShow">
160
+ <article slot="modal-body" class="modal-body">
161
+ <check-book-entry v-if="showModal" @select-changed="selectedEntry" :showtype="showtype"></check-book-entry>
162
+ </article>
163
+ <footer slot="modal-footer">
164
+ </footer>
165
+
166
+ </modal>
167
+ <modal :show.sync="showSendModal" :backdrop="false" width="90%" height="90%">
168
+ <article slot="modal-body" class="modal-body" style="height: 80vh">
169
+ <check-book-search-user-list v-if="showSendModal" :row="checkBookRow" :bookrow="checkBookRow" :needprops="needprops":userlogin="userlogin"></check-book-search-user-list>
170
+ </article>
171
+ <footer slot="modal-footer">
172
+ </footer>
173
+
174
+ </modal>
175
+ </div>
176
+ </template>
177
+
178
+ <script>
179
+ import {PagedList} from 'vue-client'
180
+ import {HttpResetClass} from 'vue-client'
181
+ import bus from '../../../bus'
182
+ export default {
183
+ title: '用户安检情况',
184
+ data () {
185
+ return {
186
+ checker_name:'',
187
+ showSendModal:false,
188
+ searchData: {
189
+ condition: '1=1'
190
+ },
191
+ showCaoZuo:false,
192
+ userlogin:{
193
+ id:this.$login.f.id,
194
+ name:this.$login.f.name,
195
+ orgid:this.$login.f.orgid,
196
+ orgstr:this.$login.f.orgs,
197
+ },
198
+ checkBooks:[],
199
+ bookTypes: [{label: '全部', value: ''}, {label: '用户', value: '用户'}, {label: '小区', value: '小区'}],
200
+ userTypes: [{label: '全部', value: ''}, {label: '民用', value: '民用'}, {label: '非民用', value: '非民用'}],
201
+ aroundUnit: [{label: '年', value: '年'}, {label: '月', value: '月'}, {label: '日', value: '日'}],
202
+ showModal:false,
203
+ excelHeaders: {
204
+
205
+ 'f_userinfo_code': '用户编号',
206
+ 'f_user_name': '用户名称',
207
+ 'f_user_phone': '用户电话',
208
+ 'f_meternumber': '用户表号',
209
+ 'f_user_type': '用户类型',
210
+ 'f_last_checker': '安检员',
211
+ 'f_residential_area': '小区名称',
212
+ 'f_address': '地址',
213
+ 'f_last_check_date': '安检日期',
214
+ 'f_last_check_state': '安检状态',
215
+ 'f_last_check_result': '安检结果'
216
+ },
217
+ model: new PagedList('api/af-safecheck/sql/QueryCheckBook', 20),
218
+ checkBookRow:{},
219
+ checkBook :{
220
+ f_check_book_name: '',
221
+ f_run_date: '',
222
+ f_around_time: '',
223
+ f_around_unit: '',
224
+ f_create_date: '',
225
+ f_create_person: '',
226
+ f_orgid: '',
227
+ f_checker_name: ''
228
+ }
229
+ }
230
+ },
231
+ props: {
232
+ style: {
233
+ type: String,
234
+ default: 'col-sm-2 form-group'
235
+ },
236
+ style2: {
237
+ type: String,
238
+ default: 'col-sm-4 form-group'
239
+ },
240
+ needprops:{
241
+ type: Object,
242
+ default:{}
243
+ },
244
+ showtype:{
245
+ type: String
246
+ }
247
+ },
248
+ ready () {
249
+ bus.$on('fresh-main',()=>{
250
+ console.log("进入方法")
251
+ this.$refs.paged.$refs.criteria.search()
252
+ })
253
+ this.freshCheckBook()
254
+ },
255
+ beforeDestroy() {
256
+ //tag
257
+ bus.$off('fresh-main')
258
+ },
259
+ methods: {
260
+ getchecker(val){
261
+ this.$refs.paged.$refs.criteria.model.f_checker_id = ''
262
+ if(val && val.length > 0){
263
+ this.checker_name = ''
264
+ val.forEach(user => {
265
+ this.checker_name += `'${user.name}',`
266
+ })
267
+ this.checker_name = this.checker_name.slice(0,this.checker_name.length-1)
268
+ }else{
269
+ this.checker_name = ''
270
+ }
271
+ },
272
+
273
+ send(row){
274
+ console.log(" ",row)
275
+ this.checkBookRow = row
276
+ this.showSendModal = true
277
+ },
278
+ freshCheckBook () {
279
+ this.checkBooks = []
280
+ new HttpResetClass().load('POST', `/api/af-safecheck/sql/safe_singleTable_OrderBy?pageNo=1&pageSize=9999999`, {
281
+ data: {
282
+ items: 'id,f_check_book_name',
283
+ tablename: 't_check_book',
284
+ condition: this.$refs.paged.$refs.criteria.model.f_orgid?`f_orgid in ${this.$refs.paged.$refs.criteria.model.f_orgid} and f_user_type ='${this.showtype}' `:`f_user_type ='${this.showtype}'`,
285
+ orderitem: 'id desc'
286
+ }
287
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
288
+ this.checkBooks.push({label: '全部', value: ''})
289
+ res.data.forEach(ress => {
290
+ this.checkBooks.push({
291
+ label: ress.f_check_book_name,
292
+ value: ress.id
293
+ })
294
+ })
295
+ })
296
+ },
297
+ selectedEntry(){
298
+ console.log("666666666666666666")
299
+ },
300
+ details(row){
301
+ this.$emit('showdetails' ,row)
302
+ },
303
+ add(){
304
+ this.$emit('addbook')
305
+ },
306
+ ok (){
307
+ //tag
308
+ let http = new HttpResetClass()
309
+ http.load('POST', 'api/af-safecheck/logic/safeEntity', {data:{tableName:'t_check_book',entityData:this.checkBook}},
310
+ {resolveMsg: '更新安检册信息成功', rejectMsg: '保存安检册信息成功'}).then(res=>{
311
+ if (res.data.code===200){
312
+ this.$showMessage('修改成功')
313
+ this.showModal = false
314
+ this.checkBook= {}
315
+ }
316
+ })
317
+ },
318
+ cancel () {
319
+ this.showModal = false
320
+ this.checkBook= {}
321
+ },
322
+ updateCheckBook(val){
323
+ this.checkBook=val
324
+ this.showModal = true
325
+ },
326
+ search (args) {
327
+ // //tag
328
+ // //tag
329
+ if(this.checker_name){
330
+ args.condition += ` and f_checker_name in (${this.checker_name}) `
331
+ }
332
+ this.$parent.showItem = false
333
+ this.$parent.showItemUser = false
334
+ args.condition += ` and f_orgid in ('${this.$login.f.orgid}')`
335
+ args.condition += ` and tcb.f_user_type ='${this.showtype}' `
336
+ return this.model.search(args.condition, args.model)
337
+ },
338
+ getRes (obj) {
339
+ // this.model.f_filialeids = this.$login.convertToIn(obj.resids)
340
+ },
341
+ async deleteCheckBook (val) {
342
+ try {
343
+ //tag
344
+ let http = new HttpResetClass()
345
+ let upAddress = `update t_user_address set f_check_book_id = null where f_check_book_id = '${val.id}'`
346
+ let delCheckBook= `delete from t_check_book where id ='${val.id}'`
347
+ await http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: upAddress}},
348
+ {resolveMsg: null, rejectMsg: '删除安检册失败'})
349
+ await http.load('POST', 'api/af-safecheck/logic/runSQL', {data: {sql: delCheckBook}},
350
+ {resolveMsg: null, rejectMsg: '删除安检册失败'})
351
+ this.$showMessage('删除成功')
352
+ this.$refs.paged.$refs.criteria.search()
353
+ }catch (e) {
354
+ this.$showMessage('删除失败',e)
355
+ }
356
+ }
357
+ },
358
+
359
+ watch: {
360
+ 'model.rows'(val){
361
+ console.log("997997",val)
362
+ this.showCaoZuo = val.filter(item=>item.f_check_book_type!='小区').length>0
363
+ }
364
+ },
365
+ computed: {
366
+ selected () {
367
+ return this.$refs.paged.$refs.grid.selected
368
+ }
369
+ }
370
+ }
371
+ </script>
372
+ <style scoped>
373
+ .newcolor {
374
+ color: red;
375
+ }
376
+
377
+ .table th {
378
+ background-color: #f2f6fa;
379
+ color: black;
380
+ }
381
+ </style>
382
+ <style lang="less">
383
+ #checkbookEntryShow {
384
+ .modal-dialog {
385
+ width: 80%;
386
+ }
387
+ }
388
+ </style>