safecheck-client 3.0.33-5 → 3.0.33-50

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 (55) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +31 -31
  3. package/src/components/paper/PaperList.vue +5 -4
  4. package/src/components/planmanage/checkUserList.vue +34 -2
  5. package/src/components/report/CheckPlanCountChartArea.vue +5 -0
  6. package/src/filiale/Util.js +5 -0
  7. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  8. package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
  9. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  10. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  11. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  12. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  13. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  14. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  15. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  16. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  17. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  18. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  19. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  20. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  21. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  22. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  23. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  24. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  25. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  26. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  27. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  28. package/src/filiale/jingyang/pc.js +1 -0
  29. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  30. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  31. package/src/filiale/rongchuang/android.js +1 -0
  32. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  33. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  34. package/src/filiale/rongchuang/pc.js +1 -0
  35. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  36. package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
  37. package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
  38. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  39. package/src/filiale/weinan/pc/DefectPaperNew.vue +1065 -1059
  40. package/src/filiale/weinan/pc.js +45 -44
  41. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  42. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  43. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  44. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
  45. package/src/filiale/wuhai/pc/PaperList.vue +785 -0
  46. package/src/filiale/wuhai/pc.js +1 -0
  47. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2 -2
  48. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  49. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  50. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  51. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  52. package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
  53. package/src/filiale/yongzhou/pc.js +3 -0
  54. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
  55. package/src/main.js +1 -1
@@ -183,7 +183,7 @@
183
183
  //后台查询数据
184
184
  let getData = function* (self) {
185
185
  let load = new HttpResetClass()
186
- load.load('POST', 'rs/sql/CheckStatusQuery', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type}},
186
+ load.load('POST', 'rs/sql/CheckStatusQuery', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type,f_safecheck_type:self.f_safecheck_type}},
187
187
  {resolveMsg: null, rejectMsg: null})
188
188
  .then((res) => {
189
189
  let echartData = res.data
@@ -202,7 +202,7 @@
202
202
 
203
203
  let getData1 = function* (self) {
204
204
  let Http = new HttpResetClass()
205
- Http.load('POST','rs/sql/HiddenLevel', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type}},
205
+ Http.load('POST','rs/sql/HiddenLevel', {data: {startDate:self.startDate,f_orgstr: self.orgid, endDate: self.endDate,plan_type:self.plan_type,f_safecheck_type:self.f_safecheck_type}},
206
206
  {resolveMsg: null, rejectMsg: null})
207
207
  .then((res) => {
208
208
  let legendname = [] //分类名,横坐标分类,隐患级别
@@ -259,7 +259,8 @@
259
259
  endDate: Util.toStandardDateString(),
260
260
  xc: '',
261
261
  plan_types:[{label:'全部',value:''},{label:'年度安检单',value:'false'},{label:'首次通气单',value:'true'}],
262
- plan_type:''
262
+ plan_type:'',
263
+ f_safecheck_type:''
263
264
  }
264
265
  },
265
266
  props:{
@@ -304,19 +305,21 @@
304
305
  this.$emit('echarts-changed', this.echarts)
305
306
  },
306
307
  setstatustable() {
307
- this.model = new PagedList('rs/sql/QueryCheckStatus', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type'},{rh:'',dfby:'',wsy:'',jj:''})
308
+ this.model = new PagedList('rs/sql/QueryCheckStatus', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type',f_safecheck_type: 'this.f_safecheck_type'},{rh:'',dfby:'',wsy:'',jj:''})
308
309
  this.model.startDate = this.startDate
309
310
  this.model.endDate = this.endDate
310
311
  this.model.orgid = this.orgid
311
312
  this.model.plan_type = this.plan_type
313
+ this.model.f_safecheck_type = this.f_safecheck_type
312
314
  this.model.search('1=1')
313
315
  },
314
316
  setleveltable() {
315
- this.model1 = new PagedList('rs/sql/QueryHiddenLevel', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type'},{a:'',b:'',c:'',ac:'',bc:'',cc:''})
317
+ this.model1 = new PagedList('rs/sql/QueryHiddenLevel', 20, {startDate: 'this.startDate',endDate: 'this.endDate', orgid: 'this.orgid',plan_type:'this.plan_type',f_safecheck_type: 'this.f_safecheck_type'},{a:'',b:'',c:'',ac:'',bc:'',cc:''})
316
318
  this.model1.startDate = this.startDate
317
319
  this.model1.endDate = this.endDate
318
320
  this.model1.orgid = this.orgid
319
321
  this.model1.plan_type = this.plan_type
322
+ this.model1.f_safecheck_type = this.f_safecheck_type
320
323
  this.model1.search('1=1')
321
324
  },
322
325
  //隐患饼状图
@@ -575,6 +578,13 @@
575
578
  },
576
579
  'plan_type' (val) {
577
580
  console.log("我是watch")
581
+ this.f_safecheck_type = ''
582
+ if (this.plan_type == 'false') {
583
+ this.f_safecheck_type = '年度普检'
584
+ }
585
+ if (this.plan_type == 'true') {
586
+ this.f_safecheck_type = '首次通气'
587
+ }
578
588
  this.searchdata()
579
589
  this.searchdata1()
580
590
  },
@@ -149,7 +149,7 @@ let getData = function* (self) {
149
149
  console.log('self.plan_type', self.plan_type)
150
150
  console.log('self.orgid', self.orgid)
151
151
  self.set()
152
- load.load('POST', 'rs/sql/YearCountRate', {data: {year: self.year, orgid: self.orgid, plan_type: self.plan_type}},
152
+ load.load('POST', 'rs/sql/YearCountRate', {data: {year: self.year, orgid: self.orgid, plan_type: self.plan_type,f_safecheck_type:self.f_safecheck_type}},
153
153
  {resolveMsg: null, rejectMsg: null})
154
154
  .then((res) => {
155
155
  let legendname = []
@@ -222,6 +222,7 @@ export default {
222
222
  // orgid:'2586252.6314787',
223
223
  year: (new Date()).getFullYear(),
224
224
  plan_type: '',
225
+ f_safecheck_type:'',
225
226
  xc: '',
226
227
  plan_types: [{label: '全部', value: ''}, {label: '年度安检单', value: 'false'}, {label: '首次通气单', value: 'true'}]
227
228
  }
@@ -271,11 +272,13 @@ export default {
271
272
  this.model = new PagedList('rs/sql/YearCountRate', 20, {
272
273
  year: 'this.year',
273
274
  orgid: 'this.orgid',
274
- plan_type: 'this.plan_type'
275
+ plan_type: 'this.plan_type',
276
+ f_safecheck_type: 'this.f_safecheck_type'
275
277
  })
276
278
  this.model.year = this.year
277
279
  this.model.orgid = this.orgid
278
280
  this.model.plan_type = this.plan_type
281
+ this.model.f_safecheck_type = this.f_safecheck_type
279
282
  this.model.search('1=1')
280
283
  },
281
284
  set(legendname, zongliangArray, yijianArray) {
@@ -435,6 +438,13 @@ export default {
435
438
  },
436
439
  'plan_type'(val) {
437
440
  console.log("我是plan_type")
441
+ this.f_safecheck_type = ''
442
+ if (this.plan_type == 'false') {
443
+ this.f_safecheck_type = '年度普检'
444
+ }
445
+ if (this.plan_type == 'true') {
446
+ this.f_safecheck_type = '首次通气'
447
+ }
438
448
  this.searchdata()
439
449
  },
440
450
  'f_filialeids'(){
@@ -92,7 +92,7 @@
92
92
  let getData = function * (self) {
93
93
  let load = new HttpResetClass()
94
94
  self.set()
95
- load.load('POST','rs/sql/CheckComplete', {data: {year:self.year,orgid:self.orgid,plan_type:self.plan_type}},
95
+ load.load('POST','rs/sql/CheckComplete', {data: {year:self.year,orgid:self.orgid,plan_type:self.plan_type,f_safecheck_type:self.f_safecheck_type}},
96
96
  {resolveMsg: null, rejectMsg: null})
97
97
  .then((res) => {
98
98
  let legendname = []
@@ -158,7 +158,8 @@
158
158
  year:(new Date()).getFullYear(),
159
159
  xc: '',
160
160
  plan_types:[{label:'全部',value:''},{label:'年度安检单',value:'false'},{label:'首次通气单',value:'true'}],
161
- plan_type:''
161
+ plan_type:'',
162
+ f_safecheck_type:''
162
163
  }
163
164
  },
164
165
  props:{
@@ -203,10 +204,11 @@
203
204
  this.$emit('echarts-changed', this.echarts)
204
205
  },
205
206
  settable() {
206
- this.model= new PagedList('rs/sql/CheckComplete',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type'})
207
+ this.model= new PagedList('rs/sql/CheckComplete',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_safecheck_type: 'this.f_safecheck_type'})
207
208
  this.model.year = this.year
208
209
  this.model.orgid = this.orgid
209
210
  this.model.plan_type = this.plan_type
211
+ this.model.f_safecheck_type = this.f_safecheck_type
210
212
  this.model.search('1=1')
211
213
  },
212
214
  set(scaledata,legendname,zongliangArray,yijianArray) {
@@ -370,6 +372,13 @@
370
372
  this.searchdata()
371
373
  },
372
374
  'plan_type' (val) {
375
+ this.f_safecheck_type = ''
376
+ if (this.plan_type == 'false') {
377
+ this.f_safecheck_type = '年度普检'
378
+ }
379
+ if (this.plan_type == 'true') {
380
+ this.f_safecheck_type = '首次通气'
381
+ }
373
382
  console.log("我是plan_type")
374
383
  this.searchdata()
375
384
  },
@@ -218,6 +218,18 @@
218
218
  :options='$parent.$parent.entry_status'
219
219
  ></v-select>
220
220
  </div>
221
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
222
+ <label class="font_normal_body">计划类型</label>
223
+ <v-select class="select_list select"
224
+ placeholder='请选择'
225
+ :value.sync="model.f_safe_type" v-model="model.f_safe_type"
226
+ :options='$parent.$parent.safe_types'
227
+ filer-key="name"
228
+ condition="f_safe_type = '{}'"
229
+ close-on-select clear-button
230
+ :value-single="true">
231
+ </v-select>
232
+ </div>
221
233
  </div>
222
234
 
223
235
  <div class="row" v-show="$parent.$parent.$parent.showItem">
@@ -520,6 +532,7 @@ export default {
520
532
  f_defect_content: 'this.f_defect_content'
521
533
  }),
522
534
  entry_status:[{label: '入户', value: '入户'}, {label: '拒检', value: '拒检'}, {label: '到访不遇', value: '到访不遇'}],
535
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
523
536
  f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
524
537
  orgstrs: [{label: '全部', value: ''}],
525
538
  checkersid: [],
@@ -221,7 +221,7 @@
221
221
  :show-rest-button="reset"
222
222
  :value.sync="model.f_start_time"
223
223
  v-model="model.f_start_time"
224
- condition="ui.f_last_check_date >='{} 00:00:00'">
224
+
225
225
  </datepicker>
226
226
  </div>
227
227
  <div class="form-group col-sm-4" >
@@ -234,7 +234,7 @@
234
234
  :show-rest-button="reset"
235
235
  :value.sync="model.f_end_time"
236
236
  v-model="model.f_end_time"
237
- condition="ui.f_last_check_date <='{} 23:59:59'">
237
+
238
238
  </datepicker>
239
239
  </div>
240
240
  <div class="form-group col-sm-4">
@@ -246,7 +246,6 @@
246
246
  v-model="model.f_last_check_state"
247
247
  :options='$parent.$parent.entry_status'
248
248
  placeholder='请选择'
249
- condition="ui.f_last_check_state = '{}'"
250
249
  :search="false"
251
250
  close-on-select
252
251
  value-single
@@ -485,13 +484,7 @@
485
484
  this.excelUserCondtion=true
486
485
  },
487
486
  selfSearch (args) {
488
- //tag)
489
487
  args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
490
- /*if(args.model.f_hasHousehold=='已入户'){
491
- args.condition +=` and Extract(year from TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'))=2021 and ua.F_LAST_CHECK_STATE='入户'`
492
- }else if(args.model.f_hasHousehold=='未入户'){
493
- args.condition +=` and (Extract(year from nvl(TO_DATE(ua.f_last_check_date,'yyyy-mm-dd hh24:mi:ss'),'1990-01-01 00:00:00'))!=2021 or nvl(ua.F_LAST_CHECK_STATE,'未入户')!='入户')`
494
- }*/
495
488
  if(args.model.checkBook){
496
489
  let arr=args.model.checkBook.split('-')
497
490
  if(arr[1] == '用户'){
@@ -500,8 +493,34 @@
500
493
  args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
501
494
  }
502
495
  }
503
- if (args.model.f_last_check_state == '未检'){
504
- args.condition = args.condition.replace("ui.f_last_check_state = '未检'"," ui.f_last_check_state is null or ui.f_last_check_date is null ")
496
+ // if (args.model.f_last_check_state == '未检'){
497
+ // args.condition += ` and ui.f_last_check_date <='${args.model.f_start_time}' or ui.f_last_check_date >='${args.model.f_start_time}' and ( ui.f_last_check_date is null or ui.f_last_check_state is null or ui.f_last_check_date ='' ) `
498
+ // }else if(args.model.f_last_check_state == '') {
499
+ // args.model.f_start_time ==''?
500
+ // args.condition +=` and ui.f_last_check_date >='${args.model.f_start_time}' and ui.f_last_check_date <='${args.model.f_start_time}' `
501
+ // }else {
502
+ // args.condition +=` and ui.f_last_check_state = ${args.model.f_last_check_state?args.model.f_last_check_state:''} and ui.f_last_check_date >='${args.model.f_start_time}' and ui.f_last_check_date <='${args.model.f_start_time}' `
503
+ // }
504
+ if (!Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_start_time) || !Util.isEmpty(args.model.f_end_time) )){
505
+ if (args.model.f_last_check_state == '未检'){
506
+ var lscon = args.model.f_start_time ? ` or ui.f_last_check_date <= '${args.model.f_start_time} 00:00:00'` :''
507
+ lscon += lscon ? (args.model.f_end_time ? ` or ui.f_last_check_date >= '${args.model.f_end_time} 23:59:59'` :''): (args.model.f_end_time ? `ui.f_last_check_date >= '${args.model.f_end_time} 23:59:59'` :'')
508
+ args.condition +=`and (ui.f_last_check_state is null or ui.f_last_check_state ='' ${lscon} ) `
509
+ }else {
510
+ var lscon = args.model.f_start_time ? ` and ui.f_last_check_date >= '${args.model.f_start_time} 00:00:00'` :''
511
+ lscon += lscon ? (args.model.f_end_time ? ` and ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'') : (args.model.f_end_time ? ` ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'')
512
+ args.condition += `and ui.f_last_check_state = '${args.model.f_last_check_state}' ${lscon}`
513
+ }
514
+
515
+ }else if (Util.isEmpty(args.model.f_last_check_state) && (!Util.isEmpty(args.model.f_start_time) || !Util.isEmpty(args.model.f_end_time) )) {
516
+ var lscon = args.model.f_start_time ? ` and ui.f_last_check_date >= '${args.model.f_start_time} 00:00:00'` :''
517
+ lscon += lscon ? (args.model.f_end_time ? ` and ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'') : (args.model.f_end_time ? ` ui.f_last_check_date <= '${args.model.f_end_time} 23:59:59'` :'')
518
+ args.condition += lscon
519
+ }else if (!Util.isEmpty(args.model.f_last_check_state) && Util.isEmpty(args.model.f_start_time) && Util.isEmpty(args.model.f_end_time)){
520
+ this.$showMessage("选择安检状态时,需要选择安检时间区间!")
521
+ return
522
+ }else{
523
+ console.log('这块无条件')
505
524
  }
506
525
  if(this.uploadCodeCondition){
507
526
  args.condition +=` and ${this.uploadCodeCondition}`
@@ -129,7 +129,7 @@
129
129
  console.log('self.plan_type',self.plan_type)
130
130
  console.log('self.orgid',self.orgid)
131
131
  self.set()
132
- load.load('POST','rs/sql/YearCheckerCountRate', {data: {orgid:self.orgid,plan_type:self.plan_type,f_start_time:self.f_start_time,f_end_time:self.f_end_time}},
132
+ load.load('POST','rs/sql/YearCheckerCountRate', {data: {orgid:self.orgid,plan_type:self.plan_type,f_start_time:self.f_start_time,f_end_time:self.f_end_time,f_safecheck_type:self.f_safecheck_type}},
133
133
  {resolveMsg: null, rejectMsg: null})
134
134
  .then((res) => {
135
135
  let checkerArrray = []
@@ -202,6 +202,7 @@
202
202
  // orgid:'2586252.6314787',
203
203
  year:(new Date()).getFullYear(),
204
204
  plan_type:'',
205
+ f_safecheck_type:'',
205
206
  f_start_time:'',
206
207
  f_end_time:'',
207
208
  xc: '',
@@ -250,12 +251,13 @@
250
251
  this.$emit('echarts-changed', this.echarts)
251
252
  },
252
253
  settable() {
253
- this.model= new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time'})
254
+ this.model= new PagedList('rs/sql/YearCheckerCountRate',20, {year:'this.year',orgid:'this.orgid',plan_type:'this.plan_type',f_start_time:'this.f_start_time',f_end_time:'this.f_end_time',f_safecheck_type: 'this.f_safecheck_type'})
254
255
  this.model.year = this.year
255
256
  this.model.orgid = this.orgid
256
257
  this.model.f_start_time = this.f_start_time
257
258
  this.model.f_end_time = this.f_end_time
258
259
  this.model.plan_type = this.plan_type
260
+ this.model.f_safecheck_type = this.f_safecheck_type
259
261
  this.model.search('1=1')
260
262
  },
261
263
  set(checkerArrray,ruhuArray,dfbyArray,jjArray,wsytrqArray) {
@@ -458,6 +460,13 @@
458
460
  },
459
461
  'plan_type' (val) {
460
462
  console.log("我是plan_type")
463
+ this.f_safecheck_type = ''
464
+ if (this.plan_type == 'false') {
465
+ this.f_safecheck_type = '年度普检'
466
+ }
467
+ if (this.plan_type == 'true') {
468
+ this.f_safecheck_type = '首次通气'
469
+ }
461
470
  this.searchdata()
462
471
  },
463
472
  'f_filialeids'(){