safecheck-client 4.0.2-52 → 4.0.2-54

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 (255) hide show
  1. package/.babelrc +5 -5
  2. package/.editorconfig +9 -9
  3. package/android.html +18 -18
  4. package/build/css-loaders.js +34 -0
  5. package/build/dev-android.js +151 -0
  6. package/build/dev-client.js +8 -0
  7. package/build/example-server.js +157 -0
  8. package/build/release.sh +28 -0
  9. package/build/utils.js +71 -0
  10. package/build/webpack.base.conf.js +129 -0
  11. package/build/webpack.baseandroid.conf.js +83 -0
  12. package/build/webpack.dev.conf.js +44 -0
  13. package/build/webpack.devandroid.conf.js +33 -0
  14. package/build/webpack.example.conf.js +49 -0
  15. package/build/webpack.hanwei.conf.js +57 -0
  16. package/build/webpack.hwbase.conf.js +78 -0
  17. package/build/webpack.prod.conf.js +78 -0
  18. package/build/webpack.prodandroid.conf.js +60 -0
  19. package/build/webpack.test.conf.js +31 -0
  20. package/config/dev.env.js +6 -6
  21. package/config/index.js +38 -38
  22. package/config/prod.env.js +3 -3
  23. package/config/test.env.js +6 -6
  24. package/docs/AppBase.md +22 -22
  25. package/docs/Busy.md +14 -14
  26. package/docs/CriteriaPaged.md +47 -47
  27. package/docs/DataGrid.md +54 -54
  28. package/docs/DataModel.md +22 -22
  29. package/docs/Dynamic.md +42 -42
  30. package/docs/GetParams.md +11 -11
  31. package/docs/HttpBusy.md +13 -13
  32. package/docs/HttpStore.md +29 -29
  33. package/docs/MessageBox.md +28 -28
  34. package/docs/PagedList.md +29 -29
  35. package/docs/Pager.md +21 -21
  36. package/docs/Project.md +23 -23
  37. package/docs/Route.md +105 -105
  38. package/docs/SafetyCheck/AdjustPlan.md +13 -13
  39. package/docs/SafetyCheck/CheckerPlan.md +12 -12
  40. package/docs/Task.md +46 -46
  41. package/docs/TreeList.md +28 -28
  42. package/docs/TreeMixin.md +18 -18
  43. package/docs/all.md +10 -10
  44. package/docs/list.md +42 -42
  45. package/docs/partial.md +75 -75
  46. package/docs/selector.md +82 -82
  47. package/docs//345/274/200/345/217/221/346/226/207/346/241/243/Snippets.md +28 -28
  48. 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
  49. 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
  50. 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
  51. package/docs//347/225/214/351/235/242/345/210/266/344/275/234/350/247/204/350/214/203.md +54 -54
  52. package/examples/AddressList/App.vue +13 -13
  53. package/examples/AddressList/index.html +11 -11
  54. package/examples/DispatchList/App.vue +10 -10
  55. package/examples/DispatchList/BaseTree.vue +13 -13
  56. package/examples/DispatchList/Init.vue +22 -22
  57. package/examples/DispatchList/Test.vue +20 -20
  58. package/examples/DispatchList/index.html +11 -11
  59. package/examples/DispatchList/main.js +18 -18
  60. package/home.html +16 -16
  61. package/package.json +1 -1
  62. package/publish.bat +7 -7
  63. package/release.bat +5 -5
  64. package/src/Widget.vue +13 -13
  65. package/src/android-bootstrap/fonts/glyphicons-halflings-regular.svg +287 -287
  66. package/src/android-bootstrap/less/.csscomb.json +304 -304
  67. package/src/android-bootstrap/less/.csslintrc +19 -19
  68. package/src/android-bootstrap/less/alerts.less +73 -73
  69. package/src/android-bootstrap/less/badges.less +66 -66
  70. package/src/android-bootstrap/less/bootstrap.less +56 -56
  71. package/src/android-bootstrap/less/breadcrumbs.less +26 -26
  72. package/src/android-bootstrap/less/button-groups.less +247 -247
  73. package/src/android-bootstrap/less/buttons.less +173 -173
  74. package/src/android-bootstrap/less/carousel.less +269 -269
  75. package/src/android-bootstrap/less/close.less +34 -34
  76. package/src/android-bootstrap/less/code.less +69 -69
  77. package/src/android-bootstrap/less/component-animations.less +33 -33
  78. package/src/android-bootstrap/less/grid.less +84 -84
  79. package/src/android-bootstrap/less/input-groups.less +167 -167
  80. package/src/android-bootstrap/less/jumbotron.less +52 -52
  81. package/src/android-bootstrap/less/labels.less +64 -64
  82. package/src/android-bootstrap/less/list-group.less +141 -141
  83. package/src/android-bootstrap/less/media.less +66 -66
  84. package/src/android-bootstrap/less/mixins/alerts.less +14 -14
  85. package/src/android-bootstrap/less/mixins/background-variant.less +9 -9
  86. package/src/android-bootstrap/less/mixins/border-radius.less +18 -18
  87. package/src/android-bootstrap/less/mixins/buttons.less +69 -69
  88. package/src/android-bootstrap/less/mixins/center-block.less +7 -7
  89. package/src/android-bootstrap/less/mixins/clearfix.less +22 -22
  90. package/src/android-bootstrap/less/mixins/forms.less +90 -90
  91. package/src/android-bootstrap/less/mixins/gradients.less +59 -59
  92. package/src/android-bootstrap/less/mixins/grid-framework.less +92 -92
  93. package/src/android-bootstrap/less/mixins/grid.less +122 -122
  94. package/src/android-bootstrap/less/mixins/hide-text.less +21 -21
  95. package/src/android-bootstrap/less/mixins/image.less +33 -33
  96. package/src/android-bootstrap/less/mixins/labels.less +12 -12
  97. package/src/android-bootstrap/less/mixins/list-group.less +30 -30
  98. package/src/android-bootstrap/less/mixins/nav-divider.less +10 -10
  99. package/src/android-bootstrap/less/mixins/nav-vertical-align.less +9 -9
  100. package/src/android-bootstrap/less/mixins/opacity.less +8 -8
  101. package/src/android-bootstrap/less/mixins/pagination.less +24 -24
  102. package/src/android-bootstrap/less/mixins/panels.less +24 -24
  103. package/src/android-bootstrap/less/mixins/progress-bar.less +10 -10
  104. package/src/android-bootstrap/less/mixins/reset-filter.less +8 -8
  105. package/src/android-bootstrap/less/mixins/reset-text.less +18 -18
  106. package/src/android-bootstrap/less/mixins/resize.less +6 -6
  107. package/src/android-bootstrap/less/mixins/responsive-visibility.less +15 -15
  108. package/src/android-bootstrap/less/mixins/size.less +10 -10
  109. package/src/android-bootstrap/less/mixins/tab-focus.less +9 -9
  110. package/src/android-bootstrap/less/mixins/table-row.less +44 -44
  111. package/src/android-bootstrap/less/mixins/text-emphasis.less +9 -9
  112. package/src/android-bootstrap/less/mixins/text-overflow.less +8 -8
  113. package/src/android-bootstrap/less/mixins/vendor-prefixes.less +227 -227
  114. package/src/android-bootstrap/less/mixins.less +40 -40
  115. package/src/android-bootstrap/less/modals.less +151 -151
  116. package/src/android-bootstrap/less/navbar.less +660 -660
  117. package/src/android-bootstrap/less/navs.less +290 -290
  118. package/src/android-bootstrap/less/normalize.less +424 -424
  119. package/src/android-bootstrap/less/pager.less +76 -76
  120. package/src/android-bootstrap/less/pagination.less +89 -89
  121. package/src/android-bootstrap/less/panels.less +274 -274
  122. package/src/android-bootstrap/less/popovers.less +131 -131
  123. package/src/android-bootstrap/less/print.less +101 -101
  124. package/src/android-bootstrap/less/progress-bars.less +87 -87
  125. package/src/android-bootstrap/less/responsive-embed.less +35 -35
  126. package/src/android-bootstrap/less/responsive-utilities.less +194 -194
  127. package/src/android-bootstrap/less/scaffolding.less +161 -161
  128. package/src/android-bootstrap/less/tables.less +262 -262
  129. package/src/android-bootstrap/less/theme.less +291 -291
  130. package/src/android-bootstrap/less/thumbnails.less +36 -36
  131. package/src/android-bootstrap/less/tooltip.less +102 -102
  132. package/src/android-bootstrap/less/type.less +303 -303
  133. package/src/android-bootstrap/less/utilities.less +55 -55
  134. package/src/android-bootstrap/less/variables.less +896 -896
  135. package/src/android-bootstrap/less/wells.less +29 -29
  136. package/src/bootstrap/less/.csscomb.json +304 -304
  137. package/src/bootstrap/less/.csslintrc +19 -19
  138. package/src/bootstrap/less/alerts.less +73 -73
  139. package/src/bootstrap/less/badges.less +66 -66
  140. package/src/bootstrap/less/breadcrumbs.less +26 -26
  141. package/src/bootstrap/less/button-groups.less +247 -247
  142. package/src/bootstrap/less/buttons.less +172 -172
  143. package/src/bootstrap/less/carousel.less +269 -269
  144. package/src/bootstrap/less/close.less +34 -34
  145. package/src/bootstrap/less/code.less +69 -69
  146. package/src/bootstrap/less/component-animations.less +33 -33
  147. package/src/bootstrap/less/dropdowns.less +216 -216
  148. package/src/bootstrap/less/grid.less +84 -84
  149. package/src/bootstrap/less/input-groups.less +167 -167
  150. package/src/bootstrap/less/jumbotron.less +52 -52
  151. package/src/bootstrap/less/labels.less +64 -64
  152. package/src/bootstrap/less/list-group.less +141 -141
  153. package/src/bootstrap/less/media.less +66 -66
  154. package/src/bootstrap/less/mixins/alerts.less +14 -14
  155. package/src/bootstrap/less/mixins/background-variant.less +9 -9
  156. package/src/bootstrap/less/mixins/border-radius.less +18 -18
  157. package/src/bootstrap/less/mixins/buttons.less +69 -69
  158. package/src/bootstrap/less/mixins/center-block.less +7 -7
  159. package/src/bootstrap/less/mixins/clearfix.less +22 -22
  160. package/src/bootstrap/less/mixins/forms.less +90 -90
  161. package/src/bootstrap/less/mixins/gradients.less +59 -59
  162. package/src/bootstrap/less/mixins/grid-framework.less +92 -92
  163. package/src/bootstrap/less/mixins/grid.less +122 -122
  164. package/src/bootstrap/less/mixins/hide-text.less +21 -21
  165. package/src/bootstrap/less/mixins/image.less +33 -33
  166. package/src/bootstrap/less/mixins/labels.less +12 -12
  167. package/src/bootstrap/less/mixins/list-group.less +30 -30
  168. package/src/bootstrap/less/mixins/nav-divider.less +10 -10
  169. package/src/bootstrap/less/mixins/nav-vertical-align.less +9 -9
  170. package/src/bootstrap/less/mixins/opacity.less +8 -8
  171. package/src/bootstrap/less/mixins/pagination.less +24 -24
  172. package/src/bootstrap/less/mixins/panels.less +24 -24
  173. package/src/bootstrap/less/mixins/progress-bar.less +10 -10
  174. package/src/bootstrap/less/mixins/reset-filter.less +8 -8
  175. package/src/bootstrap/less/mixins/reset-text.less +18 -18
  176. package/src/bootstrap/less/mixins/resize.less +6 -6
  177. package/src/bootstrap/less/mixins/responsive-visibility.less +15 -15
  178. package/src/bootstrap/less/mixins/size.less +10 -10
  179. package/src/bootstrap/less/mixins/tab-focus.less +9 -9
  180. package/src/bootstrap/less/mixins/table-row.less +44 -44
  181. package/src/bootstrap/less/mixins/text-emphasis.less +9 -9
  182. package/src/bootstrap/less/mixins/text-overflow.less +8 -8
  183. package/src/bootstrap/less/mixins/vendor-prefixes.less +227 -227
  184. package/src/bootstrap/less/mixins.less +40 -40
  185. package/src/bootstrap/less/modals.less +151 -151
  186. package/src/bootstrap/less/navbar.less +660 -660
  187. package/src/bootstrap/less/normalize.less +424 -424
  188. package/src/bootstrap/less/pagination.less +89 -89
  189. package/src/bootstrap/less/panels.less +275 -275
  190. package/src/bootstrap/less/popovers.less +131 -131
  191. package/src/bootstrap/less/print.less +101 -101
  192. package/src/bootstrap/less/progress-bars.less +87 -87
  193. package/src/bootstrap/less/responsive-embed.less +35 -35
  194. package/src/bootstrap/less/responsive-utilities.less +194 -194
  195. package/src/bootstrap/less/scaffolding.less +161 -161
  196. package/src/bootstrap/less/theme.less +291 -291
  197. package/src/bootstrap/less/thumbnails.less +36 -36
  198. package/src/bootstrap/less/tooltip.less +102 -102
  199. package/src/bootstrap/less/type.less +303 -303
  200. package/src/bootstrap/less/utilities.less +55 -55
  201. package/src/bootstrap/less/wells.less +29 -29
  202. package/src/components/FileUpload.vue +696 -696
  203. package/src/components/Hello.vue +39 -39
  204. package/src/components/LeftTree.vue +27 -27
  205. package/src/components/android/AttendanceTally.vue +116 -116
  206. package/src/components/android/Blank.vue +10 -10
  207. package/src/components/android/CheckUnplanPage.vue +56 -56
  208. package/src/components/android/Checker.vue +12 -12
  209. package/src/components/android/CheckerAnnual.vue +81 -81
  210. package/src/components/android/CheckerAvarta.vue +82 -82
  211. package/src/components/android/EquipmentInspection.vue +348 -348
  212. package/src/components/android/FootprintMap.vue +120 -120
  213. package/src/components/android/HiddentroubleInvestigation.vue +192 -192
  214. package/src/components/android/MasterMain.vue +77 -77
  215. package/src/components/android/Menu.vue +132 -132
  216. package/src/components/android/PaperAlarm.vue +85 -85
  217. package/src/components/android/PaperDeviceNoncivil.vue +214 -214
  218. package/src/components/android/PlumberAnnual.vue +83 -83
  219. package/src/components/android/PlumberAnnualDetail.vue +65 -65
  220. package/src/components/android/PlumberMonthly.vue +84 -84
  221. package/src/components/android/PostMap.vue +83 -83
  222. package/src/components/android/QueryCheckHistory.vue +122 -122
  223. package/src/components/android/QueryCheckHistoryItem.vue +62 -62
  224. package/src/components/android/RepairMain.vue +60 -60
  225. package/src/components/android/Repairman.vue +12 -12
  226. package/src/components/android/StationMaster.vue +12 -12
  227. package/src/components/defects/DefectModal.vue +101 -101
  228. package/src/components/defects/DevicesAndItem.vue +39 -39
  229. package/src/components/issueplan/IssuePlanMain.vue +23 -23
  230. package/src/components/notice/NoticeForm.vue +100 -100
  231. package/src/components/notice/NoticeIssue.vue +20 -20
  232. package/src/components/paper/PicViewer.vue +18 -18
  233. package/src/components/phonestate/MonthlyTraffic.vue +66 -66
  234. package/src/components/phonestate/MonthlyTrafficRouter.vue +15 -15
  235. package/src/components/phonestate/PostMap.vue +82 -82
  236. package/src/components/querycheckpaper/PaperItem.vue +59 -59
  237. package/src/components/userfile/MeterFile.vue +145 -145
  238. package/src/components/userfile/MeterModify.vue +46 -46
  239. package/src/components/userfileaudit/MeterAuditFile.vue +129 -129
  240. package/src/filiale/jinhong/android/CurrentCreate.vue +1335 -1335
  241. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -217
  242. package/src/plugins/LoadData.js +10 -10
  243. package/src/plugins/LoadParams.js +24 -24
  244. package/src/stores/wxconfig.js +10 -10
  245. package/src/utils/getNowDate.js +33 -33
  246. package/test/e2e/custom-assertions/elementCount.js +26 -26
  247. package/test/e2e/nightwatch.conf.js +40 -40
  248. package/test/e2e/runner.js +30 -30
  249. package/test/e2e/specs/test.js +13 -13
  250. package/test/unit/.eslintrc +5 -5
  251. package/test/unit/TestUtil.js +62 -62
  252. package/test/unit/context.html +20 -20
  253. package/test/unit/index.js +13 -13
  254. package/build/libs/SafecheckClient-1.15.6-9.jar +0 -0
  255. package/build/tmp/jar/MANIFEST.MF +0 -2
@@ -1,217 +1,217 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div partial>
6
- <ul class="nav nav-tabs">
7
- <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
8
- </ul>
9
- <div class="row">
10
- <div class="form-group col-sm-4" >
11
- <label class="font_normal_body">安检状态</label>
12
- <v-select style="width:60% "
13
- class="select select_list"
14
- :value.sync="$parent.$parent.f_state"
15
- v-model="$parent.$parent.f_state"
16
- :options='$parent.$parent.checkState'
17
- placeholder='安检状态'
18
- close-on-select
19
- value-single
20
- >
21
- </v-select>
22
- </div>
23
- <div class="form-group col-sm-4" >
24
- <label class="font_normal_body">有无计划</label>
25
- <v-select style="width:60% "
26
- class="select select_list"
27
- :value.sync="$parent.$parent.f_no_checkplan"
28
- v-model="$parent.$parent.f_no_checkplan"
29
- :options='$parent.$parent.no_checkplans'
30
- placeholder='有无计划'
31
- close-on-select
32
- value-single
33
- >
34
- </v-select>
35
- </div>
36
- <div class="form-group col-sm-4" >
37
- <label class="font_normal_body">入户状态</label>
38
- <v-select style="width:60% "
39
- class="select select_list"
40
- :value.sync="$parent.$parent.f_last_check_state"
41
- v-model="$parent.$parent.f_last_check_state"
42
- :options='$parent.$parent.entry_status'
43
- placeholder='入户状态'
44
- close-on-select
45
- value-single
46
- >
47
- </v-select>
48
- </div>
49
- <div class="form-group col-sm-4" >
50
- <label class="font_normal_body">小区</label>
51
- <input type="text" class="input_search"
52
- v-model="$parent.$parent.f_residential_area"
53
- style="width: 60%" placeholder="小区"
54
- condition="f_residential_area like '%{}%'">
55
- </div>
56
- <div class="form-group col-sm-4" >
57
- <label class="font_normal_body">楼号</label>
58
- <input type="text" class="input_search"
59
- v-model="$parent.$parent.f_building"
60
- style="width: 60%" placeholder="楼号"
61
- condition="f_building like '%{}%'">
62
- </div>
63
- <div class="form-group col-sm-4 button-range" >
64
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
65
- <export-excel :data="$parent.$parent.exportParameter"
66
- :field="$parent.$parent.excelHeaders"
67
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItemNew"
68
- template-name='安检计划明细' :choose-col="true">
69
- </export-excel>
70
- <!--<export-excel-->
71
- <!--:data="{condition: $parent.$parent.condition}"-->
72
- <!--:field="$parent.$parent.getfield"-->
73
- <!--sqlurl="api/af-safecheck/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
74
- <!--:choose-col="true"></export-excel>-->
75
-
76
- </div>
77
- </div>
78
- </div>
79
- </criteria>
80
- <data-grid :model="model" partial='list' class="table_sy">
81
-
82
- <template partial='head'>
83
- <tr>
84
- <th><nobr>计划名称</nobr></th>
85
- <th><nobr>用户编号</nobr></th>
86
- <th><nobr>用户名称</nobr></th>
87
- <th><nobr>小区名称</nobr></th>
88
- <th><nobr>地址</nobr></th>
89
- <th><nobr>安检状态</nobr></th>
90
- <th><nobr>是否安检</nobr></th>
91
- </tr>
92
- </template>
93
- <template partial='body'>
94
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
95
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
96
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
97
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
98
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
99
- <td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
100
- <td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
101
- </template>
102
- </data-grid>
103
- </criteria-paged>
104
- </div>
105
- </template>
106
-
107
- <script>
108
- import { PagedList } from 'vue-client'
109
-
110
- export default {
111
- title: '安检计划项列表',
112
- data () {
113
- return {
114
- model: new PagedList('api/af-safecheck/sql/planItemNew', 20),
115
- checkState:[{label:'全部',value:''},{label:'已检',value:'已检'},{label:'未检',value:'未检'}],
116
- entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
117
- no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
118
- noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'}],
119
- excelHeaders: {
120
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
121
-
122
- 'f_userinfo_code': '用户编号',
123
- 'f_user_name': '用户名称',
124
- 'f_user_phone': '用户电话',
125
- //'count_item':'安检次数',
126
- 'f_user_type': '用户类型',
127
- 'f_residential_area': '小区名称',
128
- 'f_address':'地址',
129
- 'f_last_check_date':'安检日期',
130
- 'f_last_check_state': '安检状态',
131
- 'f_state':'是否已检',
132
- 'f_last_check_result':'安检结果'
133
- },
134
- area:[{label:'全部',value:''}],
135
- f_state:'',
136
- f_no_checkplan:'',
137
- f_last_check_state:'',
138
- f_noruhu:'',
139
- f_residential_area:'',
140
- f_building:'',
141
- }
142
- },
143
- props: [ 'check','checkstatus','checkstart','checkend' ],
144
- watch: {
145
- 'check' (val) {
146
- debugger
147
- let condition
148
- condition = `f_checker='${this.check.f_checker}'`
149
- if(this.checkstart){
150
- condition+= `and f_last_check_date>='${this.checkstart}'`
151
- }
152
- if (this.checkend){
153
- condition += `and f_last_check_date<='${this.f_endcheckend_time}'`
154
- }
155
- this.f_noruhu=[]
156
- this.f_state=''
157
- this.model.search(condition, {})
158
-
159
- }
160
- },
161
-
162
- ready () {
163
- if (this.check) {
164
- let condition
165
- condition = `f_checker='${this.check.f_checker}'`
166
- if(this.checkstart){
167
- condition += `and f_last_check_date>='${this.checkstart}'`
168
- }
169
- if (this.checkend){
170
- condition += ` and f_last_check_date<='${this.f_end_tcheckendime}'`
171
- }
172
- this.model.search(condition, {})
173
- }
174
- },
175
- methods:{
176
- selfSearch(args){
177
- if (this.check) {
178
- args.condition = `f_checker='${this.check.f_checker}'`
179
- if(this.checkstart){
180
- args.condition+= `and f_last_check_date>='${this.checkstart}'`
181
- }
182
- if (this.checkend){
183
- args.condition += `and f_last_check_date<='${this.checkend}'`
184
- }
185
- if (this.f_residential_area){
186
- args.condition += ` and i.f_residential_area like'%${this.f_residential_area}%'`
187
- }
188
- if (this.f_building){
189
- args.condition += ` and i.f_building='${this.f_building}'`
190
- }
191
- if (this.f_state){
192
- args.condition += ` and i.f_state='${this.f_state}'`
193
- }
194
- if (this.f_last_check_state){
195
- args.condition += ` and i.f_last_check_state='${this.f_last_check_state}'`
196
- }
197
- if (this.f_no_checkplan){
198
- if (this.f_no_checkplan == '有计划安检'){
199
- args.condition += ` and i.f_plan_name != '无计划' `
200
- }else {
201
- args.condition += ` and i.f_plan_name = '无计划' `
202
- }
203
- }
204
- this.model.search(args.condition, args.model)
205
- }
206
- }
207
- },
208
- computed: {
209
- // 导出到Excel的条件构造
210
- exportParameter() {
211
- return {
212
- condition: this.$refs.paged.model.condition
213
- }
214
- }
215
- },
216
- }
217
- </script>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <ul class="nav nav-tabs">
7
+ <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
8
+ </ul>
9
+ <div class="row">
10
+ <div class="form-group col-sm-4" >
11
+ <label class="font_normal_body">安检状态</label>
12
+ <v-select style="width:60% "
13
+ class="select select_list"
14
+ :value.sync="$parent.$parent.f_state"
15
+ v-model="$parent.$parent.f_state"
16
+ :options='$parent.$parent.checkState'
17
+ placeholder='安检状态'
18
+ close-on-select
19
+ value-single
20
+ >
21
+ </v-select>
22
+ </div>
23
+ <div class="form-group col-sm-4" >
24
+ <label class="font_normal_body">有无计划</label>
25
+ <v-select style="width:60% "
26
+ class="select select_list"
27
+ :value.sync="$parent.$parent.f_no_checkplan"
28
+ v-model="$parent.$parent.f_no_checkplan"
29
+ :options='$parent.$parent.no_checkplans'
30
+ placeholder='有无计划'
31
+ close-on-select
32
+ value-single
33
+ >
34
+ </v-select>
35
+ </div>
36
+ <div class="form-group col-sm-4" >
37
+ <label class="font_normal_body">入户状态</label>
38
+ <v-select style="width:60% "
39
+ class="select select_list"
40
+ :value.sync="$parent.$parent.f_last_check_state"
41
+ v-model="$parent.$parent.f_last_check_state"
42
+ :options='$parent.$parent.entry_status'
43
+ placeholder='入户状态'
44
+ close-on-select
45
+ value-single
46
+ >
47
+ </v-select>
48
+ </div>
49
+ <div class="form-group col-sm-4" >
50
+ <label class="font_normal_body">小区</label>
51
+ <input type="text" class="input_search"
52
+ v-model="$parent.$parent.f_residential_area"
53
+ style="width: 60%" placeholder="小区"
54
+ condition="f_residential_area like '%{}%'">
55
+ </div>
56
+ <div class="form-group col-sm-4" >
57
+ <label class="font_normal_body">楼号</label>
58
+ <input type="text" class="input_search"
59
+ v-model="$parent.$parent.f_building"
60
+ style="width: 60%" placeholder="楼号"
61
+ condition="f_building like '%{}%'">
62
+ </div>
63
+ <div class="form-group col-sm-4 button-range" >
64
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
65
+ <export-excel :data="$parent.$parent.exportParameter"
66
+ :field="$parent.$parent.excelHeaders"
67
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planItemNew"
68
+ template-name='安检计划明细' :choose-col="true">
69
+ </export-excel>
70
+ <!--<export-excel-->
71
+ <!--:data="{condition: $parent.$parent.condition}"-->
72
+ <!--:field="$parent.$parent.getfield"-->
73
+ <!--sqlurl="api/af-safecheck/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
74
+ <!--:choose-col="true"></export-excel>-->
75
+
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </criteria>
80
+ <data-grid :model="model" partial='list' class="table_sy">
81
+
82
+ <template partial='head'>
83
+ <tr>
84
+ <th><nobr>计划名称</nobr></th>
85
+ <th><nobr>用户编号</nobr></th>
86
+ <th><nobr>用户名称</nobr></th>
87
+ <th><nobr>小区名称</nobr></th>
88
+ <th><nobr>地址</nobr></th>
89
+ <th><nobr>安检状态</nobr></th>
90
+ <th><nobr>是否安检</nobr></th>
91
+ </tr>
92
+ </template>
93
+ <template partial='body'>
94
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
95
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
96
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
97
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
98
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
99
+ <td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
100
+ <td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
101
+ </template>
102
+ </data-grid>
103
+ </criteria-paged>
104
+ </div>
105
+ </template>
106
+
107
+ <script>
108
+ import { PagedList } from 'vue-client'
109
+
110
+ export default {
111
+ title: '安检计划项列表',
112
+ data () {
113
+ return {
114
+ model: new PagedList('api/af-safecheck/sql/planItemNew', 20),
115
+ checkState:[{label:'全部',value:''},{label:'已检',value:'已检'},{label:'未检',value:'未检'}],
116
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
117
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
118
+ noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'}],
119
+ excelHeaders: {
120
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
121
+
122
+ 'f_userinfo_code': '用户编号',
123
+ 'f_user_name': '用户名称',
124
+ 'f_user_phone': '用户电话',
125
+ //'count_item':'安检次数',
126
+ 'f_user_type': '用户类型',
127
+ 'f_residential_area': '小区名称',
128
+ 'f_address':'地址',
129
+ 'f_last_check_date':'安检日期',
130
+ 'f_last_check_state': '安检状态',
131
+ 'f_state':'是否已检',
132
+ 'f_last_check_result':'安检结果'
133
+ },
134
+ area:[{label:'全部',value:''}],
135
+ f_state:'',
136
+ f_no_checkplan:'',
137
+ f_last_check_state:'',
138
+ f_noruhu:'',
139
+ f_residential_area:'',
140
+ f_building:'',
141
+ }
142
+ },
143
+ props: [ 'check','checkstatus','checkstart','checkend' ],
144
+ watch: {
145
+ 'check' (val) {
146
+ debugger
147
+ let condition
148
+ condition = `f_checker='${this.check.f_checker}'`
149
+ if(this.checkstart){
150
+ condition+= `and f_last_check_date>='${this.checkstart}'`
151
+ }
152
+ if (this.checkend){
153
+ condition += `and f_last_check_date<='${this.f_endcheckend_time}'`
154
+ }
155
+ this.f_noruhu=[]
156
+ this.f_state=''
157
+ this.model.search(condition, {})
158
+
159
+ }
160
+ },
161
+
162
+ ready () {
163
+ if (this.check) {
164
+ let condition
165
+ condition = `f_checker='${this.check.f_checker}'`
166
+ if(this.checkstart){
167
+ condition += `and f_last_check_date>='${this.checkstart}'`
168
+ }
169
+ if (this.checkend){
170
+ condition += ` and f_last_check_date<='${this.f_end_tcheckendime}'`
171
+ }
172
+ this.model.search(condition, {})
173
+ }
174
+ },
175
+ methods:{
176
+ selfSearch(args){
177
+ if (this.check) {
178
+ args.condition = `f_checker='${this.check.f_checker}'`
179
+ if(this.checkstart){
180
+ args.condition+= `and f_last_check_date>='${this.checkstart}'`
181
+ }
182
+ if (this.checkend){
183
+ args.condition += `and f_last_check_date<='${this.checkend}'`
184
+ }
185
+ if (this.f_residential_area){
186
+ args.condition += ` and i.f_residential_area like'%${this.f_residential_area}%'`
187
+ }
188
+ if (this.f_building){
189
+ args.condition += ` and i.f_building='${this.f_building}'`
190
+ }
191
+ if (this.f_state){
192
+ args.condition += ` and i.f_state='${this.f_state}'`
193
+ }
194
+ if (this.f_last_check_state){
195
+ args.condition += ` and i.f_last_check_state='${this.f_last_check_state}'`
196
+ }
197
+ if (this.f_no_checkplan){
198
+ if (this.f_no_checkplan == '有计划安检'){
199
+ args.condition += ` and i.f_plan_name != '无计划' `
200
+ }else {
201
+ args.condition += ` and i.f_plan_name = '无计划' `
202
+ }
203
+ }
204
+ this.model.search(args.condition, args.model)
205
+ }
206
+ }
207
+ },
208
+ computed: {
209
+ // 导出到Excel的条件构造
210
+ exportParameter() {
211
+ return {
212
+ condition: this.$refs.paged.model.condition
213
+ }
214
+ }
215
+ },
216
+ }
217
+ </script>
@@ -1,10 +1,10 @@
1
- import Vue from 'vue'
2
- // import AppData from '../stores/AppData'
3
-
4
- let getSafeCheckParams = {
5
- install (Vue, options) {
6
- // 给vue增添对话框显示方法
7
- Vue.getSafeCheckParams = Vue.prototype.$getSafeCheckParams = getSafeCheckParams
8
- }
9
- }
10
- export default getSafeCheckParams
1
+ import Vue from 'vue'
2
+ // import AppData from '../stores/AppData'
3
+
4
+ let getSafeCheckParams = {
5
+ install (Vue, options) {
6
+ // 给vue增添对话框显示方法
7
+ Vue.getSafeCheckParams = Vue.prototype.$getSafeCheckParams = getSafeCheckParams
8
+ }
9
+ }
10
+ export default getSafeCheckParams
@@ -1,24 +1,24 @@
1
- import Vue from 'vue'
2
- // import AppData from '../stores/AppData'
3
-
4
- let LoadParams = {
5
- // 开启卡监听
6
- load () {
7
- return Vue.resetpost('rs/path/getParams', {data: {}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
8
- res.data.forEach((item) => {
9
- let value = []
10
- item.f_paramvalues.forEach((item, index) => {
11
- value[index] = {}
12
- value[index].label = item.name
13
- value[index].value = item.name
14
- })
15
- AppData.params[item.name] = value
16
- })
17
- }).catch((res) => {
18
- this.msg = res.data
19
- this.show = true
20
- })
21
- }
22
- }
23
-
24
- export default LoadParams
1
+ import Vue from 'vue'
2
+ // import AppData from '../stores/AppData'
3
+
4
+ let LoadParams = {
5
+ // 开启卡监听
6
+ load () {
7
+ return Vue.resetpost('rs/path/getParams', {data: {}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
8
+ res.data.forEach((item) => {
9
+ let value = []
10
+ item.f_paramvalues.forEach((item, index) => {
11
+ value[index] = {}
12
+ value[index].label = item.name
13
+ value[index].value = item.name
14
+ })
15
+ AppData.params[item.name] = value
16
+ })
17
+ }).catch((res) => {
18
+ this.msg = res.data
19
+ this.show = true
20
+ })
21
+ }
22
+ }
23
+
24
+ export default LoadParams
@@ -1,10 +1,10 @@
1
- export default {
2
- // 一下为长安呼叫使用云电话地址
3
- // tcUrl: 'http://192.169.1.2:9876/Dual'
4
- /* voiceUrl: 'http://127.0.0.1:9876/Dual',
5
- texttUrl: 'http://192.168.2.77:9876/Dual'*/
6
- // 一下为咸阳呼叫使用地址
7
- // tcUrl: 'http://192.168.2.77:9876/Dual'
8
- // tcUrl: 'http://127.0.0.1:9876/Dual'
9
- // tcUrl: 'http://192.168.30.28:9876/Dual'
10
- }
1
+ export default {
2
+ // 一下为长安呼叫使用云电话地址
3
+ // tcUrl: 'http://192.169.1.2:9876/Dual'
4
+ /* voiceUrl: 'http://127.0.0.1:9876/Dual',
5
+ texttUrl: 'http://192.168.2.77:9876/Dual'*/
6
+ // 一下为咸阳呼叫使用地址
7
+ // tcUrl: 'http://192.168.2.77:9876/Dual'
8
+ // tcUrl: 'http://127.0.0.1:9876/Dual'
9
+ // tcUrl: 'http://192.168.30.28:9876/Dual'
10
+ }
@@ -1,33 +1,33 @@
1
- export default () => {
2
- // 求取当前时间的工具
3
- let myweekday = ''
4
- let year = ''
5
- let mydate = new Date()
6
- myweekday = mydate.getDay()
7
- let mymonth = mydate.getMonth() + 1
8
- let myday = mydate.getDate()
9
- let myyear = mydate.getYear()
10
- year = (myyear > 200) ? myyear : 1900 + myyear
11
- let weekday = ''
12
- if (myweekday === 0) {
13
- weekday = '星期日'
14
- } else if (myweekday === 1) {
15
- weekday = '星期一'
16
- } else if (myweekday === 2) {
17
- weekday = '星期二'
18
- } else if (myweekday === 3) {
19
- weekday = '星期三'
20
- } else if (myweekday === 4) {
21
- weekday = '星期四'
22
- } else if (myweekday === 5) {
23
- weekday = '星期五'
24
- } else if (myweekday === 6) {
25
- weekday = '星期日'
26
- } else if (myweekday === 7) {
27
- weekday = '星期六'
28
- }
29
-
30
-
31
- // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
32
- return year + '年' + mymonth + '月' + myday + '日 ' + weekday
33
- }
1
+ export default () => {
2
+ // 求取当前时间的工具
3
+ let myweekday = ''
4
+ let year = ''
5
+ let mydate = new Date()
6
+ myweekday = mydate.getDay()
7
+ let mymonth = mydate.getMonth() + 1
8
+ let myday = mydate.getDate()
9
+ let myyear = mydate.getYear()
10
+ year = (myyear > 200) ? myyear : 1900 + myyear
11
+ let weekday = ''
12
+ if (myweekday === 0) {
13
+ weekday = '星期日'
14
+ } else if (myweekday === 1) {
15
+ weekday = '星期一'
16
+ } else if (myweekday === 2) {
17
+ weekday = '星期二'
18
+ } else if (myweekday === 3) {
19
+ weekday = '星期三'
20
+ } else if (myweekday === 4) {
21
+ weekday = '星期四'
22
+ } else if (myweekday === 5) {
23
+ weekday = '星期五'
24
+ } else if (myweekday === 6) {
25
+ weekday = '星期日'
26
+ } else if (myweekday === 7) {
27
+ weekday = '星期六'
28
+ }
29
+
30
+
31
+ // document.write("<font color=#ffffff>今天是 "+year+"年"+mymonth+"月"+myday+"日 "+weekday+"</font>");
32
+ return year + '年' + mymonth + '月' + myday + '日 ' + weekday
33
+ }
@@ -1,26 +1,26 @@
1
- // A custom Nightwatch assertion.
2
- // the name of the method is the filename.
3
- // can be used in tests like this:
4
- //
5
- // browser.assert.elementCount(selector, count)
6
- //
7
- // for how to write custom assertions see
8
- // http://nightwatchjs.org/guide#writing-custom-assertions
9
- exports.assertion = function (selector, count) {
10
- this.message = 'Testing if element <' + selector + '> has count: ' + count
11
- this.expected = count
12
- this.pass = function (val) {
13
- return val === this.expected
14
- }
15
- this.value = function (res) {
16
- return res.value
17
- }
18
- this.command = function (cb) {
19
- var self = this
20
- return this.api.execute(function (selector) {
21
- return document.querySelectorAll(selector).length
22
- }, [selector], function (res) {
23
- cb.call(self, res)
24
- })
25
- }
26
- }
1
+ // A custom Nightwatch assertion.
2
+ // the name of the method is the filename.
3
+ // can be used in tests like this:
4
+ //
5
+ // browser.assert.elementCount(selector, count)
6
+ //
7
+ // for how to write custom assertions see
8
+ // http://nightwatchjs.org/guide#writing-custom-assertions
9
+ exports.assertion = function (selector, count) {
10
+ this.message = 'Testing if element <' + selector + '> has count: ' + count
11
+ this.expected = count
12
+ this.pass = function (val) {
13
+ return val === this.expected
14
+ }
15
+ this.value = function (res) {
16
+ return res.value
17
+ }
18
+ this.command = function (cb) {
19
+ var self = this
20
+ return this.api.execute(function (selector) {
21
+ return document.querySelectorAll(selector).length
22
+ }, [selector], function (res) {
23
+ cb.call(self, res)
24
+ })
25
+ }
26
+ }