safecheck-client 3.0.33-8 → 3.0.33-81

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 (91) hide show
  1. package/index.html +6 -2
  2. package/package.json +3 -3
  3. package/src/App.vue +31 -31
  4. package/src/components/Util/ImgSelfSafePlus.vue +12 -10
  5. package/src/components/android/CurrentCreate.vue +1 -1
  6. package/src/components/android/SafecheckOrderV.vue +3 -3
  7. package/src/components/paper/PaperList.vue +5 -4
  8. package/src/components/planmanage/PlanManage.vue +3 -2
  9. package/src/components/planmanage/checkPlanList.vue +2 -1
  10. package/src/components/planmanage/checkUserList.vue +34 -2
  11. package/src/components/report/CheckPlanCountChartArea.vue +5 -0
  12. package/src/components/report/HiddenSituation.vue +3 -3
  13. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
  14. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  15. package/src/components/rongcheng/DefectPaper.vue +1 -1
  16. package/src/components/rongcheng/PaperListNPSQ.vue +35 -1
  17. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  18. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  19. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  20. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  21. package/src/filiale/Util.js +5 -0
  22. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  23. package/src/filiale/bayan/android/SafecheckOrderV.vue +9 -5
  24. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  25. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  26. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  27. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  28. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  29. package/src/filiale/fugou/android.js +2 -1
  30. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  31. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  32. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  33. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  34. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  35. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  36. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  37. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  38. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  39. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  40. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  41. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  42. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  43. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  44. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  45. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  46. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  47. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  48. package/src/filiale/jingyang/pc.js +1 -0
  49. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  50. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  51. package/src/filiale/rongchuang/android.js +1 -0
  52. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  53. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  54. package/src/filiale/rongchuang/pc.js +1 -0
  55. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  56. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  57. package/src/filiale/weinan/android/SafecheckDevices.vue +1 -1
  58. package/src/filiale/weinan/android/SafecheckOrderV.vue +75 -26
  59. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  60. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  61. package/src/filiale/weinan/pc.js +1 -0
  62. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  63. package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
  64. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  65. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
  66. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1 -1
  67. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1230 -0
  68. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2832 -2832
  69. package/src/filiale/yangchunboneng/android.js +1 -0
  70. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +28 -1
  71. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1168 -1018
  72. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  73. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  74. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  75. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  76. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  77. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  78. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  79. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  80. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +55 -125
  81. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  82. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  83. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  84. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  85. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  86. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  87. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  88. package/src/filiale/yongzhou/pc.js +4 -0
  89. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +753 -753
  90. package/src/main.js +2 -2
  91. package/src/rongcheng.js +3 -1
@@ -6,9 +6,9 @@
6
6
  <div partial>
7
7
  <div class="row">
8
8
  <div class="form-group col-sm-4">
9
- <label class="font_normal_body">开始时间:</label>
9
+ <label class="font_normal_body">计划开始:</label>
10
10
  <datepicker
11
- placeholder='请选择'
11
+ placeholder='计划开始'
12
12
  style="width:60%"
13
13
  :disabled-days-of-week="[]"
14
14
  :format="'yyyy-MM-dd'"
@@ -19,9 +19,9 @@
19
19
  </datepicker>
20
20
  </div>
21
21
  <div class="form-group col-sm-4">
22
- <label class="font_normal_body">结束时间:</label>
22
+ <label class="font_normal_body">计划结束:</label>
23
23
  <datepicker
24
- placeholder='请选择'
24
+ placeholder='计划结束'
25
25
  :disabled-days-of-week="[]"
26
26
  style="width:60%"
27
27
  :format="'yyyy-MM-dd'"
@@ -53,7 +53,7 @@
53
53
  @re-res="$parent.$parent.getRes"
54
54
  :value.sync="model.f_checker_id"
55
55
  v-model="model.f_checker_id"
56
- condition="tcp.f_checker_name = '{}'">
56
+ condition="tcp.f_checker = '{}'">
57
57
  </role-selector-safe>
58
58
  </div>
59
59
  <div style="float: right">
@@ -64,10 +64,10 @@
64
64
  :choose-col="true"></export-excel-safe>
65
65
  </div>
66
66
  <print-data-safe :sum-field="$parent.$parent.excelHeaders" :model="$parent.$parent.print_model"
67
- :field="$parent.$parent.excelHeaders"
68
- :defaultfield="$parent.$parent.defaultPrint"
69
- :titletable="'安检情况明细'" :starthead="$parent.$parent.getstart"
70
- ></print-data-safe>
67
+ :field="$parent.$parent.excelHeaders"
68
+ :defaultfield="$parent.$parent.defaultPrint"
69
+ :titletable="'安检情况明细'" :starthead="$parent.$parent.getstart"
70
+ ></print-data-safe>
71
71
  <button class="button_spacing button_search" @click="search()">查询</button>
72
72
  </div>
73
73
  </div>
@@ -84,6 +84,7 @@
84
84
  <th>
85
85
  <nobr>计划安检总户数</nobr>
86
86
  </th>
87
+
87
88
  <th>
88
89
  <nobr>未检户数</nobr>
89
90
  </th>
@@ -111,13 +112,19 @@
111
112
  <th>
112
113
  <nobr>安检率</nobr>
113
114
  </th>
115
+ <th>
116
+ <nobr>申请安检户数</nobr>
117
+ </th>
118
+ <th>
119
+ <nobr>总入户数</nobr>
120
+ </th>
114
121
  </tr>
115
122
  </template>
116
123
  <template partial='body'>
117
124
 
118
125
  <td style="text-align: center">{{ $index + 1 }}</td>
119
126
  <td style="text-align: center">{{ row.f_residential_area }}</td>
120
- <td style="text-align: center">{{ row.totalcount }}</td>
127
+ <td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'1')">{{ row.totalcount }}</a></td>
121
128
  <td style="text-align: center">{{ row.wjcount }}</td>
122
129
  <td style="text-align: center">{{ row.yjcount }}</td>
123
130
  <td style="text-align: center">{{ row.rhcount }}</td>
@@ -127,17 +134,16 @@
127
134
  <td style="text-align: center">{{ row.unique_dfby_count }}</td>
128
135
  <td style="text-align: center">{{ row.jjcount }}</td>
129
136
  <td style="text-align: center">{{ row.check_bv }}</td>
137
+ <td style="text-align: center"><a @click="$parent.$parent.$parent.modalShow(row,'0')">{{ row.sqajcount }}</a></td>
138
+ <td style="text-align: center">{{ row.ruhucount }}</td>
139
+
130
140
  </template>
131
141
  <template partial="foot">
132
142
  <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
133
143
  <td style="text-align: center">{{ model.sums.totalcount }}</td>
134
-
135
144
  <td style="text-align: center">{{ model.sums.wjcount }}</td>
136
-
137
145
  <td style="text-align: center">{{ model.sums.yjcount }}</td>
138
-
139
146
  <td style="text-align: center">{{ model.sums.rhcount }}</td>
140
-
141
147
  <td style="text-align: center">{{ model.sums.dfbycount1 }}</td>
142
148
  <td style="text-align: center">{{ model.sums.dfbycount2 }}</td>
143
149
  <td style="text-align: center">{{ model.sums.dfbycount3 }}</td>
@@ -146,11 +152,155 @@
146
152
  <td style="text-align: center">
147
153
  {{ ((model.sums.yjcount / model.sums.totalcount)*100.0).toFixed(2) }}%
148
154
  </td>
149
-
155
+ <td style="text-align: center">{{ model.sums.sqajcount }}</td>
156
+ <td style="text-align: center">{{ model.sums.ruhucount }}</td>
150
157
  </template>
151
158
  </data-grid>
152
159
  </criteria-paged>
153
160
  </div>
161
+ <modal :show.sync="modal_show" backdrop="false"
162
+ class="allQuotaRecordModalShow" width="80%">
163
+ <header slot="modal-header" class="modal-header" style="text-align: center">
164
+ </header>
165
+ <article slot="modal-body" class="modal-body">
166
+ <criteria-paged :model="modalModel" v-ref:paged2>
167
+ <criteria partial='criteria' class="search_area" v-ref:criteria2>
168
+ <div partial>
169
+ <div class="row">
170
+ <div class="form-group col-sm-4">
171
+ <label class="font_normal_body">开始时间</label>
172
+ <datepicker
173
+ placeholder='请选择'
174
+ style="width:60%"
175
+ :disabled-days-of-week="[]"
176
+ :format="'yyyy-MM-dd'"
177
+ :show-rest-button="reset"
178
+ :value.sync="$parent.$parent.modalSearchData.start_time"
179
+ v-model="$parent.$parent.modalSearchData.start_time"
180
+ >
181
+ </datepicker>
182
+ </div>
183
+ <div class="form-group col-sm-4">
184
+ <label class="font_normal_body">结束时间</label>
185
+ <datepicker
186
+ placeholder='请选择'
187
+ :disabled-days-of-week="[]"
188
+ style="width:60%"
189
+ :format="'yyyy-MM-dd'"
190
+ :show-rest-button="reset"
191
+ :value.sync="$parent.$parent.$parent.modalSearchData.end_time"
192
+ v-model="$parent.$parent.$parent.modalSearchData.end_time">
193
+ </datepicker>
194
+ </div>
195
+ <div class="col-sm-4 form-group">
196
+ <label class="font_normal_body">用户编号</label>
197
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_userinfo_code">
198
+ </div>
199
+ <div class="col-sm-4 form-group">
200
+ <label class="font_normal_body">用户名称</label>
201
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_name">
202
+ </div>
203
+ <div class="col-sm-4 form-group">
204
+ <label class="font_normal_body">用户地址</label>
205
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_address">
206
+ </div>
207
+ <div class="col-sm-4 form-group">
208
+ <label class="font_normal_body">用户电话</label>
209
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_user_phone">
210
+ </div>
211
+ <div class="col-sm-4 form-group">
212
+ <label class="font_normal_body">安&nbsp;检&nbsp;员</label>
213
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_checker">
214
+ </div>
215
+ <div class="col-sm-4 form-group">
216
+ <label class="font_normal_body">安检状态</label>
217
+ <v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_last_check_state" v-model='$parent.$parent.$parent.modalSearchData.f_last_check_state'
218
+ :value-single="true" style="width: 60%"
219
+ class="select_list select"
220
+ :options='$parent.$parent.$parent.last_check_states' placeholder='安检状态'
221
+ close-on-select
222
+ ></v-select>
223
+ </div>
224
+ <div class="form-group col-sm-4">
225
+ <label class="font_normal_body">用户类型</label>
226
+ <v-select :value.sync="$parent.$parent.$parent.modalSearchData.f_user_type" v-model='$parent.$parent.$parent.modalSearchData.f_user_type'
227
+ :value-single="true" style="width: 60%"
228
+ class="select_list select"
229
+ :options='$parent.$parent.$parent.user_types' placeholder='用户类型'
230
+ close-on-select
231
+ ></v-select>
232
+ </div>
233
+ <div class="col-sm-4 form-group">
234
+ <label class="font_normal_body">到访次数</label>
235
+ <input style="width: 60%" class="input_search" v-model="$parent.$parent.$parent.modalSearchData.f_check_version">
236
+ </div>
237
+ <div style="float: right">
238
+ <button class="button_spacing button_search" @click="$parent.$parent.$parent.modalSearch()">查询</button>
239
+ <export-excel-safe :data="$parent.$parent.$parent.modalSearchExcelData"
240
+ :field="$parent.$parent.$parent.modalExcelHeaders"
241
+ progress="safeGetExportProgress"
242
+ sqlurl="rs/logic/SafeExportExcel" sql-name="safe_singleTable_OrderBy" template-name='安检情况明细'
243
+ :choose-col="true"></export-excel-safe>
244
+ </div>
245
+ </div>
246
+ </div>
247
+ </criteria>
248
+ <data-grid class="list_area table_sy" :model="$parent.$parent.modalModel" v-ref:modalgrid partial='list'>
249
+ <template partial='head'>
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
+ <th>
272
+ <nobr>安检员</nobr>
273
+ </th>
274
+ <th>
275
+ <nobr>计划名称</nobr>
276
+ </th>
277
+ <th>
278
+ <nobr>用户类型</nobr>
279
+ </th>
280
+ <th>
281
+ <nobr>安检状态</nobr>
282
+ </th>
283
+ </template>
284
+ <template partial='body'>
285
+ <td style="text-align:center">{{row.f_userinfo_code}}</td>
286
+ <td style="text-align:center">{{row.f_user_name }}</td>
287
+ <td style="text-align:center">{{row.f_residential_area}}</td>
288
+ <td style="text-align:center">{{row.f_address}}</td>
289
+ <td style="text-align:center">{{row.f_user_phone}}</td>
290
+ <td style="text-align:center">{{row.f_check_version}}</td>
291
+ <td style="text-align:center">{{row.f_last_check_date}}</td>
292
+ <td style="text-align:center">{{row.f_checker}}</td>
293
+ <td style="text-align:center">{{row.f_plan_name}}</td>
294
+ <td style="text-align:center">{{row.f_user_type}}</td>
295
+ <td style="text-align:center">{{row.f_last_check_state}}</td>
296
+ </template>
297
+ </data-grid>
298
+ </criteria-paged>
299
+ </article>
300
+ <footer slot="modal-footer" class="modal-footer">
301
+ <button type="button" class="btn btn-default" @click='modal_show = false'>关闭</button>
302
+ </footer>
303
+ </modal>
154
304
  </div>
155
305
  </template>
156
306
 
@@ -165,6 +315,8 @@ export default {
165
315
  return {
166
316
  model: new PagedList("/rs/sql/safeDetail", 999, {orgid: this.$login.f.orgid}, {
167
317
  totalcount: '',
318
+ sqajcount:'',
319
+ ruhucount:'',
168
320
  wjcount: '',
169
321
  yjcount: '',
170
322
  rhcount: '',
@@ -175,11 +327,43 @@ export default {
175
327
  jjcount: ''
176
328
  }),
177
329
  resids: {},
330
+ modalModel: new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
331
+ items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
332
+ tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
333
+ orderitem: '"1"'
334
+ }),
335
+ modalModel2: new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
336
+ items: '"*,f_offsite_time as f_last_check_date,f_checker_name as f_checker,f_check_type as f_user_type,f_entry_status as f_last_check_state"',
337
+ tablename: '"t_check_paper"',
338
+ orderitem: '"1"'
339
+ }),
340
+ modalSearchData:{},
341
+ modalSearchExcelData:{
342
+ items: "tcpi.*,tcp.f_checker,tcp.f_plan_name",
343
+ tablename: "t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id",
344
+ orderitem: "f_userinfo_code"
345
+ },
346
+ modalExcelHeaders:{
347
+ 'f_userinfo_code': '用户编号',
348
+ 'f_user_name': '用户名称',
349
+ 'f_residential_area': '小区',
350
+ 'f_address': '地址',
351
+ 'f_user_phone': '客户电话',
352
+ 'f_check_version': '到访不遇次数',
353
+ 'f_last_check_date': '安检时间',
354
+ 'f_checker': '安检员',
355
+ 'f_plan_name':"计划名称",
356
+ 'f_user_type': '用户类型',
357
+ 'f_last_check_state': '安检状态'
358
+
359
+ },
178
360
  searchData: {
179
361
  condition: "1=1",
180
362
  orgid: this.$login.f.orgid
181
363
  },
364
+ modal_show:false,
182
365
  print_model:{},
366
+ last_check_states:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'拒检',value:'拒检'},{label:'到访不遇',value:'到访不遇'}],
183
367
  user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
184
368
  excelHeaders: {
185
369
  'f_residential_area': '小区名称',
@@ -192,10 +376,14 @@ export default {
192
376
  'dfbycount3': '到访不遇-3次',
193
377
  'unique_dfby_count': '到访不遇小计',
194
378
  'jjcount': '拒检户数',
195
- 'check_bv':'安检率'
379
+ 'check_bv':'安检率',
380
+ 'sqajcount': '申请安检户数',
381
+ 'ruhucount': '总入户数',
196
382
  },
383
+ modalRow:{},
384
+ type:'1',
197
385
  printshow: false,
198
- defaultPrint: ['f_residential_area', 'totalcount', 'wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv'],
386
+ defaultPrint: ['f_residential_area', 'totalcount','wjcount', 'rhcount','dfbycount1','dfbycount2','dfbycount3','unique_dfby_count','jjcount','check_bv', 'sqajcount', 'ruhucount'],
199
387
  sumsmodel: {},
200
388
  }
201
389
  },
@@ -203,9 +391,110 @@ export default {
203
391
  // this.model.search('1=1')
204
392
  },
205
393
  methods: {
394
+ async modalShow (row,type) {
395
+ this.type = type
396
+ this.modalRow = row
397
+ this.modal_show = true
398
+ this.modalSearchData = {}
399
+ await this.modalSearch(row)
400
+ },
401
+ modalSearch () {
402
+ this.modalModel = new PagedList('rs/sql/safe_singleTable_OrderBy', 15, {
403
+ items: '"tcpi.*,tcp.f_checker,tcp.f_plan_name"',
404
+ tablename: '"t_check_plan_item tcpi left join t_check_plan tcp on tcpi.f_plan_id = tcp.id"',
405
+ orderitem: '"1"'
406
+ })
407
+ let modalCondition = '1=1'
408
+ if (this.type == '0') {
409
+ modalCondition = this.$refs.paged.model.condition.condition2
410
+ modalCondition += ` and f_no_checkplan='无计划安检'`
411
+ if (this.modalSearchData.f_user_name){
412
+ modalCondition += ` and f_user_name = '${this.modalSearchData.f_user_name}'`
413
+ }
414
+ if (this.modalSearchData.f_user_type){
415
+ modalCondition += ` and f_check_type = '${this.modalSearchData.f_user_type}'`
416
+ }
417
+ if (this.modalSearchData.start_time){
418
+ modalCondition += ` and f_offsite_time >= '${this.modalSearchData.start_time}'`
419
+ }
420
+ if (this.modalSearchData.end_time){
421
+ modalCondition += ` and f_offsite_time <= '${this.modalSearchData.end_time}'`
422
+ }
423
+ if (this.modalSearchData.f_userinfo_code){
424
+ modalCondition += ` and f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
425
+ }
426
+ if (this.modalSearchData.f_address){
427
+ modalCondition += ` and f_address = '${this.modalSearchData.f_address}'`
428
+ }
429
+ if (this.modalSearchData.f_user_phone){
430
+ modalCondition += ` and f_user_phone = '${this.modalSearchData.f_user_phone}'`
431
+ }
432
+ if (this.modalSearchData.f_checker){
433
+ modalCondition += ` and f_checker_name = '${this.modalSearchData.f_checker}'`
434
+ }
435
+ modalCondition += ` and f_residential_area = '${this.modalRow.f_residential_area}'`
436
+ this.modalModel = this.modalModel2
437
+ this.modalModel.search(modalCondition, this.modalModel)
438
+
439
+ }else {
440
+ modalCondition = this.$refs.paged.model.condition.condition1
441
+ if (this.modalSearchData.f_last_check_state){
442
+ modalCondition += ` and tcpi.f_last_check_state = '${this.modalSearchData.f_last_check_state}'`
443
+ }
444
+ if (this.modalSearchData.f_user_name){
445
+ modalCondition += ` and tcpi.f_user_name = '${this.modalSearchData.f_user_name}'`
446
+ }
447
+ if (this.modalSearchData.f_user_type){
448
+ modalCondition += ` and tcpi.f_user_type = '${this.modalSearchData.f_user_type}'`
449
+ }
450
+ if (this.modalSearchData.start_time){
451
+ modalCondition += ` and tcp.f_create_time >= '${this.modalSearchData.start_time}'`
452
+ }
453
+ if (this.modalSearchData.end_time){
454
+ modalCondition += ` and tcp.f_create_time <= '${this.modalSearchData.end_time}'`
455
+ }
456
+ if (this.modalSearchData.f_userinfo_code){
457
+ modalCondition += ` and tcpi.f_userinfo_code = '${this.modalSearchData.f_userinfo_code}'`
458
+ }
459
+ if (this.modalSearchData.f_address){
460
+ modalCondition += ` and tcpi.f_address = '${this.modalSearchData.f_address}'`
461
+ }
462
+ if (this.modalSearchData.f_user_phone){
463
+ modalCondition += ` and tcpi.f_user_phone = '${this.modalSearchData.f_user_phone}'`
464
+ }
465
+ if (this.modalSearchData.f_checker){
466
+ modalCondition += ` and tcp.f_checker = '${this.modalSearchData.f_checker}'`
467
+ }
468
+ if (this.modalSearchData.f_check_version){
469
+ modalCondition += ` and tcpi.f_check_version = '${this.modalSearchData.f_check_version}'`
470
+ }
471
+ modalCondition += ` and tcpi.f_residential_area = '${this.modalRow.f_residential_area}'`
472
+ this.modalModel.search(modalCondition, this.modalModel)
473
+ }
474
+ this.modalSearchExcelData.condition = modalCondition
475
+ },
206
476
  async selfSearch(args) {
207
- await this.model.search(args.condition, args.model, args.condValue)
208
- this.searchData.condition = args.condition
477
+ let condition = {
478
+ condition1 : args.condition,
479
+ condition2 : `1=1 and f_entry_status = '入户'`
480
+ }
481
+ if (args.model.f_checker_id){
482
+ condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
483
+ }
484
+ if (args.model.f_user_type){
485
+ condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
486
+ }
487
+ if (args.model.f_residential_area){
488
+ condition.condition2 += ` and f_residential_area = '${args.model.f_residential_area}'`
489
+ }
490
+ if (args.model.start_time){
491
+ condition.condition2 += ` and f_offsite_time >= '${args.model.start_time}'`
492
+ }
493
+ if (args.model.end_time){
494
+ condition.condition2 += ` and f_offsite_time <= '${args.model.end_time}'`
495
+ }
496
+ await this.model.search(condition, args.model)
497
+ this.searchData.condition = condition
209
498
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums;
210
499
  this.print_model = JSON.parse(JSON.stringify(this.$refs.paged.$refs.grid.model))
211
500
  this.print_model.rows.push({
@@ -218,7 +507,9 @@ export default {
218
507
  dfbycount2: this.sumsmodel.dfbycount2,
219
508
  dfbycount3: this.sumsmodel.dfbycount3,
220
509
  unique_dfby_count: this.sumsmodel.unique_dfby_count,
221
- check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`
510
+ check_bv:`${((this.sumsmodel.yjcount / this.sumsmodel.totalcount)*100.0).toFixed(2)}%`,
511
+ sqajcount: this.sumsmodel.sqajcount,
512
+ ruhucount: this.sumsmodel.ruhucount
222
513
  })
223
514
  this.print_model.totalPage = 0
224
515
  },
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div id='app' class="basic-main" style="height: 100%">
3
3
  <criteria-paged :model="model" :pager='false'>
4
- <criteria partial='criteria' @condition-changed='search' class="search_area">
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' class="search_area">
5
5
  <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
6
  <div class="row">
7
7
  <div class="col-sm-4 form-group">
@@ -14,9 +14,25 @@
14
14
  condition="tcp.f_checker = '{}'">
15
15
  </role-selector-safe>
16
16
  </div>
17
- <div class="col-sm-2 form-group">
18
- <label for="startDate" class="font_normal_body">开始日期:</label>
19
- <datepicker id="startDate" placeholder="开始日期"
17
+ <div class="form-group col-sm-4">
18
+ <label class="font_normal_body">用户类型</label>
19
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
20
+ :value-single="true" style="width: 60%"
21
+ class="select_list select"
22
+ :options='$parent.$parent.user_types' placeholder='用户类型'
23
+ close-on-select
24
+ condition="tcpi.f_user_type = '{}'"></v-select>
25
+ </div>
26
+ <div class="form-group col-sm-4" >
27
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
28
+ <input type="text" class="input_search" v-model="model.f_residential_area"
29
+ style="width: 60%" placeholder="小区" condition="tcpi.f_residential_area like '%{}%'">
30
+ </div>
31
+ </div>
32
+ <div class="row">
33
+ <div class="col-sm-4 form-group">
34
+ <label for="startDate" class="font_normal_body">计划开始:</label>
35
+ <datepicker id="startDate" placeholder="计划开始"
20
36
  v-model="model.startDate"
21
37
  :value.sync="model.startDate"
22
38
  style="width: 60%;"
@@ -26,9 +42,9 @@
26
42
  :show-reset-button="reset">
27
43
  </datepicker>
28
44
  </div>
29
- <div class="col-sm-2 form-group">
30
- <label for="endDate" class="font_normal_body">结束日期:</label>
31
- <datepicker id="endDate" placeholder="结束日期"
45
+ <div class="col-sm-4 form-group">
46
+ <label for="endDate" class="font_normal_body">计划结束:</label>
47
+ <datepicker id="endDate" placeholder="计划结束"
32
48
  v-model="model.endDate"
33
49
  :value.sync="model.endDate"
34
50
  :disabled-days-of-Week="[]"
@@ -38,26 +54,38 @@
38
54
  :show-reset-button="reset">
39
55
  </datepicker>
40
56
  </div>
41
- <div class="form-group col-sm-2">
42
- <label class="font_normal_body">用户类型</label>
43
- <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
44
- :value-single="true" style="width: 60%"
45
- class="select_list select"
46
- :options='$parent.$parent.user_types' placeholder='用户类型'
47
- close-on-select
48
- condition="tcpi.f_user_type = '{}'"></v-select>
49
- </div>
50
- <div class="form-group col-sm-2" >
51
- <label class="font_normal_body">小&emsp;&emsp;区</label>
52
- <input type="text" class="input_search" v-model="model.f_residential_area"
53
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
54
- </div>
55
57
  <div class="col-sm-4 form-group" style="margin-top: 8px">
56
58
  <button class="button_search button_spacing" @click="search()">查询</button>
57
59
  <report-print id='checkerPrint' top='3cm' left='0' width='100%' height='100%' :preview="true"></report-print>
58
60
  <report-excel id='checkerPrint'></report-excel>
59
61
  </div>
60
62
  </div>
63
+ <div class="row">
64
+ <div class="col-sm-4 form-group">
65
+ <label for="startDate" class="font_normal_body">安检开始:</label>
66
+ <datepicker id="startDate" placeholder="安检开始"
67
+ v-model="model.checkstart"
68
+ :value.sync="model.checkstart"
69
+ style="width: 60%;"
70
+ :disabled-days-of-Week="[]"
71
+ :format="'yyyy-MM-dd 00:00:00'"
72
+ condition="tcpi.f_last_check_date >= '{}'"
73
+ :show-reset-button="reset">
74
+ </datepicker>
75
+ </div>
76
+ <div class="col-sm-4 form-group">
77
+ <label for="endDate" class="font_normal_body">安检结束:</label>
78
+ <datepicker id="endDate" placeholder="安检结束"
79
+ v-model="model.checkend"
80
+ :value.sync="model.checkend"
81
+ :disabled-days-of-Week="[]"
82
+ style="width: 60%;"
83
+ condition="tcpi.f_last_check_date <= '{}'"
84
+ :format="'yyyy-MM-dd 23:59:59'"
85
+ :show-reset-button="reset">
86
+ </datepicker>
87
+ </div>
88
+ </div>
61
89
  </div>
62
90
  </criteria>
63
91
  <div partial='list' id='checkerPrint' class="list_area" style="overflow-y: scroll">
@@ -70,8 +98,8 @@
70
98
  </tr>
71
99
  <tr>
72
100
  <th colspan='9' style="font-weight: normal; text-align: center;">
73
- 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
74
- 结束时间:{{ model.model.endDate }}
101
+ 计划开始日期:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
102
+ 计划结束日期:{{ model.model.endDate }}
75
103
  </th>
76
104
  </tr>
77
105
  </thead>
@@ -92,7 +120,7 @@
92
120
  import {DataModel, HttpResetClass} from 'vue-client'
93
121
 
94
122
  export default {
95
- title: '隐患报表',
123
+ title: '安检员明细报表',
96
124
  data () {
97
125
  let model = new DataModel('rs/report/checkerReport', {})
98
126
  // model.f_filialeid = '(' + this.$login.f.orgid + ')'
@@ -107,6 +135,28 @@
107
135
  getRes (obj) {
108
136
  this.model.f_filialeid = this.$login.convertToIn(obj.resids)
109
137
  },
138
+ selfSearch (args) {
139
+ let condition = {
140
+ condition1 : args.condition,
141
+ condition2 : `1=1 and f_entry_status = '入户'`
142
+ }
143
+ if (args.model.f_checker_id){
144
+ condition.condition2 += ` and f_checker_name = '${args.model.f_checker_id}'`
145
+ }
146
+ if (args.model.f_user_type){
147
+ condition.condition2 += ` and f_check_type = '${args.model.f_user_type}'`
148
+ }
149
+ if (args.model.f_residential_area){
150
+ condition.condition2 += ` and f_residential_area = '${args.model.f_residential_area}'`
151
+ }
152
+ if (args.model.checkstart){
153
+ condition.condition2 += ` and f_offsite_time >= '${args.model.checkstart}'`
154
+ }
155
+ if (args.model.checkend){
156
+ condition.condition2 += ` and f_offsite_time <= '${args.model.checkend}'`
157
+ }
158
+ this.model.search(condition, args.model)
159
+ }
110
160
  },
111
161
  ready () {
112
162
  },
@@ -6,7 +6,7 @@
6
6
  <div partial>
7
7
  <div class="row">
8
8
  <div class="form-group col-sm-4">
9
- <label class="font_normal_body">时间选择:</label>
9
+ <label class="font_normal_body">安检时间选择:</label>
10
10
  <datepicker
11
11
  placeholder='请选择'
12
12
  style="width:60%"
@@ -55,7 +55,7 @@
55
55
  @re-res="$parent.$parent.getRes"
56
56
  :value.sync="model.f_checker_id"
57
57
  v-model="model.f_checker_id"
58
- condition="tcp.f_checker = '{}'">
58
+ condition="f_checker = '{}'">
59
59
  </role-selector-safe>
60
60
  </div>
61
61
  <div style="float: right">
@@ -6,7 +6,7 @@
6
6
  <div partial>
7
7
  <div class="row">
8
8
  <div class="form-group col-sm-4">
9
- <label class="font_normal_body">时间选择:</label>
9
+ <label class="font_normal_body">安检时间选择:</label>
10
10
  <datepicker
11
11
  placeholder='请选择'
12
12
  style="width:60%"
@@ -54,7 +54,7 @@
54
54
  @re-res="$parent.$parent.getRes"
55
55
  :value.sync="model.f_checker_id"
56
56
  v-model="model.f_checker_id"
57
- condition="tcp.f_checker = '{}'">
57
+ condition="f_checker = '{}'">
58
58
  </role-selector-safe>
59
59
  </div>
60
60
  <div style="float: right">