safecheck-client 3.0.33-13 → 3.0.33-130

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 (145) 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/Util.js +7 -0
  6. package/src/components/android/CurrentCreate.vue +1 -1
  7. package/src/components/android/SafecheckDevices.vue +2 -0
  8. package/src/components/android/SafecheckOrderV.vue +15 -11
  9. package/src/components/android/SwitchValve.vue +1 -1
  10. package/src/components/map/checkScreen.vue +27 -21
  11. package/src/components/paper/PlanChooser.vue +4 -2
  12. package/src/components/planmanage/PlanManage.vue +14 -4
  13. package/src/components/planmanage/checkPlanList.vue +2 -1
  14. package/src/components/planmanage/checkUserList.vue +2 -0
  15. package/src/components/report/CheckPlanCountChartArea.vue +120 -120
  16. package/src/components/report/HiddenSituation.vue +3 -3
  17. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
  18. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  19. package/src/components/rongcheng/DefectPaper.vue +1 -1
  20. package/src/components/rongcheng/PaperListNPSQ.vue +35 -1
  21. package/src/components/rongcheng/PaperListSQ.vue +32 -11
  22. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  23. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  24. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  25. package/src/components/safecheckNew/PaperList.vue +785 -0
  26. package/src/components/safecheckNew/android/AddPlanItem.vue +419 -0
  27. package/src/components/safecheckNew/android/AreaPlan.vue +561 -0
  28. package/src/components/safecheckNew/android/CurrentCreate.vue +1050 -0
  29. package/src/components/safecheckNew/android/Recheck.vue +379 -0
  30. package/src/components/safecheckNew/android/SafecheckDevices.vue +1400 -0
  31. package/src/components/safecheckNew/android/SafecheckOrderV.vue +2692 -0
  32. package/src/filiale/Util.js +5 -0
  33. package/src/filiale/baiyin/android.js +9 -0
  34. package/src/filiale/baiyin/pc/PlanManage.vue +834 -0
  35. package/src/filiale/baiyin/pc.js +13 -0
  36. package/src/filiale/bayan/android/AddPlanItem.vue +7 -2
  37. package/src/filiale/bayan/android/CheckPlanDown.vue +249 -0
  38. package/src/filiale/bayan/android/SafecheckOrderV.vue +2855 -2853
  39. package/src/filiale/bayan/android/SafecheckUserInfo.vue +863 -811
  40. package/src/filiale/bayan/android.js +1 -0
  41. package/src/filiale/bayan/pc/CheckDetail.vue +205 -0
  42. package/src/filiale/bayan/pc/CheckPlan.vue +59 -0
  43. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +565 -0
  44. package/src/filiale/bayan/pc/CheckSearchUser.vue +1110 -0
  45. package/src/filiale/bayan/pc/DefectListNew.vue +597 -0
  46. package/src/filiale/bayan/pc/DefectMainNew.vue +63 -0
  47. package/src/filiale/bayan/pc/DefectPaperNew.vue +1218 -0
  48. package/src/filiale/bayan/pc/HiddenSituation.vue +256 -0
  49. package/src/filiale/bayan/pc/NewCheckpaper.vue +31 -1
  50. package/src/filiale/bayan/pc/PaperList.vue +899 -792
  51. package/src/filiale/bayan/pc/PlanManage.vue +29 -8
  52. package/src/filiale/bayan/pc/SelectCheckPlan.vue +333 -0
  53. package/src/filiale/bayan/pc.js +6 -0
  54. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  55. package/src/filiale/dexin/android/SafecheckOrderV.vue +123 -24
  56. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  57. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  58. package/src/filiale/fugou/android/SafecheckOrderV.vue +2796 -0
  59. package/src/filiale/fugou/android.js +2 -1
  60. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  61. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  62. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  63. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  64. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  65. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  66. package/src/filiale/fugou/pc/DefectPaperNew.vue +10 -6
  67. package/src/filiale/fugou/pc/PaperDefectMain.vue +12 -6
  68. package/src/filiale/fugou/pc/PaperList.vue +14 -6
  69. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  70. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  71. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  72. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  73. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  74. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  75. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  76. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  77. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  78. package/src/filiale/jingyang/pc.js +1 -0
  79. package/src/filiale/kelai/pc/CheckPlanAreaList.vue +2 -22
  80. package/src/filiale/liaoyuan/pc/checkPlanList.vue +373 -0
  81. package/src/filiale/liaoyuan/pc.js +2 -1
  82. package/src/filiale/qianneng/pc/PaperList.vue +31 -1
  83. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  84. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  85. package/src/filiale/rongchuang/android.js +1 -0
  86. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  87. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  88. package/src/filiale/rongchuang/pc.js +1 -0
  89. package/src/filiale/siyang/android/PhoneRecordInfo.vue +214 -0
  90. package/src/filiale/siyang/android/SafecheckOrderV.vue +2796 -0
  91. package/src/filiale/siyang/android/SafecheckUserInfo.vue +789 -0
  92. package/src/filiale/siyang/android.js +11 -0
  93. package/src/filiale/siyang/pc/PaperDefectMain.vue +864 -0
  94. package/src/filiale/siyang/pc/PaperList.vue +834 -0
  95. package/src/filiale/siyang/pc/PlanManage.vue +839 -0
  96. package/src/filiale/siyang/pc/checkUserList.vue +781 -0
  97. package/src/filiale/siyang/pc.js +15 -0
  98. package/src/filiale/tianke/pc/checkScreen.vue +36 -31
  99. package/src/filiale/tongchuan/pc/NewCheckpaper.vue +1 -1
  100. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  101. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  102. package/src/filiale/weinan/android/SafecheckDevices.vue +6 -2
  103. package/src/filiale/weinan/android/SafecheckOrderV.vue +16 -2
  104. package/src/filiale/weinan/android/SafecheckUserInfo.vue +7 -2
  105. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  106. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  107. package/src/filiale/weinan/pc.js +1 -0
  108. package/src/filiale/wenxi/android/PhoneUpUserinfo.vue +1076 -1076
  109. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +84 -63
  110. package/src/filiale/wenxi/pc/NewCheckpaper.vue +1 -1
  111. package/src/filiale/yangchunboneng/android/AddPlanItem.vue +46 -1
  112. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +39 -2
  113. package/src/filiale/yangchunboneng/android/PhoneUpUserinfo.vue +1235 -0
  114. package/src/filiale/yangchunboneng/android/SafecheckDevices.vue +1 -1
  115. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +15 -4
  116. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +16 -6
  117. package/src/filiale/yangchunboneng/android.js +1 -0
  118. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +4 -4
  119. package/src/filiale/yangchunboneng/pc/CheckBookSearchUser.vue +76 -32
  120. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +72 -1
  121. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +187 -13
  122. package/src/filiale/yangchunboneng/pc/PaperList.vue +17 -0
  123. package/src/filiale/yongzhou/android/SafecheckOrderV.vue +221 -256
  124. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  125. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1 -1
  126. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  127. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +412 -107
  128. package/src/filiale/yongzhou/pc/PaperDefectMain.vue +872 -0
  129. package/src/filiale/yongzhou/pc/PaperList.vue +1 -1
  130. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  131. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +56 -125
  132. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  133. package/src/filiale/yongzhou/pc/safeDetail.vue +311 -20
  134. package/src/filiale/yongzhou/pc/safeStatistics.vue +74 -24
  135. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +2 -2
  136. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +2 -2
  137. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +47 -23
  138. package/src/filiale/yongzhou/pc/safeTable.vue +3 -3
  139. package/src/filiale/yongzhou/pc.js +4 -0
  140. package/src/filiale/zhongsheng/android/CurrentCreate.vue +7 -2
  141. package/src/filiale/zhongsheng/pc/DefectPaperWeiXiu.vue +6 -2
  142. package/src/main.js +33 -33
  143. package/src/rongcheng.js +3 -1
  144. package/src/safecheck-android.js +6 -0
  145. package/src/safecheck.js +3 -0
@@ -275,13 +275,26 @@
275
275
  >
276
276
  </v-select>
277
277
  </div>
278
- <div class="form-group col-sm-4" v-show="createPlan.isShare=='否'">
279
- <label class=" font_normal_body">选择站点</label>
278
+ <div class="form-group col-sm-4">
279
+ <label class=" font_normal_body">选择部门</label>
280
280
  <input style="width: 60%" type="text" v-show="false" v-model="createPlan.f_outlets">
281
281
  <right-tree islist :userid="userid" :source="source" v-on:re-res="reres" :textContent="选择站点">
282
282
 
283
283
  </right-tree>
284
284
  </div>
285
+ <div class="form-group col-sm-4" v-show="createPlan.isShare=='是'">
286
+ <label class=" font_normal_body">选择班组</label>
287
+ <v-select
288
+ class="select select_list"
289
+ :value.sync="createPlan.f_class"
290
+ v-model="createPlan.f_class"
291
+ :options='classes'
292
+ placeholder='请选择'
293
+ close-on-select
294
+ value-single
295
+ >
296
+ </v-select>
297
+ </div>
285
298
  <div class="form-group col-sm-4" v-show="createPlan.isShare=='否'">
286
299
  <label class="font_normal_body">安&ensp;检&ensp;员:</label>
287
300
  <v-select
@@ -450,6 +463,7 @@
450
463
  title: '计划管理',
451
464
  data() {
452
465
  return {
466
+ classes:[],
453
467
  source:
454
468
  'dep=this.getParentByType($organization$).getSpecialResByType($department$),' +
455
469
  'tool.getFullTree(dep.where(row.hasSpecialRole($派单员$)))',
@@ -528,19 +542,26 @@
528
542
  return
529
543
  }
530
544
  this.createPlan.f_outlets = val.res[0]
531
- this.checker = []
532
- let vali = {
545
+ if (this.createPlan.isShare=='否'){
546
+ this.checker = []
547
+ let vali = {
533
548
  source: `this.getSpecialResByType($user$).where(row.getAttributes().get($rolestr$).indexOf($安检员$)!=-1)`,
534
549
  userid: `${val.resids[0]}`
535
- }
536
- let http = new HttpResetClass()
537
- http.load('POST', '/rs/search', {data: vali}, {resolveMsg: null, rejectMsg: null}).then((res) => {
550
+ }
551
+ let http = new HttpResetClass()
552
+ http.load('POST', '/rs/search', {data: vali}, {resolveMsg: null, rejectMsg: null}).then((res) => {
538
553
  res.data.forEach((item) => {
539
554
  if (item.state == '在职'){
540
555
  this.checker.push({label:item.name,value:item})
541
556
  }
542
557
  })
543
- })
558
+ })
559
+ }else {
560
+ this.classes = this.$appdata.getParam(`工单-` + val.res[0]) ? [{
561
+ label: '请选择',
562
+ value: ''
563
+ }, ...this.$appdata.getParam(`工单-` + val.res[0])] : [{label: '请选择', value: ''}]
564
+ }
544
565
  },
545
566
  /* ntoway() {
546
567
  /!* return AppData.getParam('安检类型')*!/
@@ -0,0 +1,333 @@
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div :class="{'form-group col-sm-6':$parent.$parent.$parent.showItem,'form-group col-sm-4':!$parent.$parent.$parent.showItem}" style="margin: 0">
8
+ <role-selector-safe
9
+ role-name="安检员"
10
+ role-lable="安&ensp;检&ensp;员"
11
+ @re-res="$parent.$parent.getRes"
12
+ :value.sync="model.f_checker_id"
13
+ v-model="model.f_checker_id">
14
+ </role-selector-safe>
15
+ </div>
16
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
17
+ <label class="font_normal_body">计划起始</label>
18
+ <datepicker
19
+ :value.sync="$parent.$parent.f_check_start"
20
+ placeholder='起始月份' style="width:60%"
21
+ :disabled-days-of-week="[]"
22
+ :format="'yyyy-MM'"
23
+ :select-month="true"
24
+ :show-rest-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
28
+ <label class="font_normal_body">计划截止</label>
29
+ <datepicker
30
+ :value.sync="$parent.$parent.f_check_end"
31
+ placeholder='结束月份' style="width:60%"
32
+ :disabled-days-of-week="[]"
33
+ :format="'yyyy-MM'"
34
+ :select-month="true"
35
+ :show-rest-button="reset">
36
+ </datepicker>
37
+ </div>
38
+ <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
39
+ <label class="font_normal_body">安检状态</label>
40
+ <v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
41
+ style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
42
+ </v-select>
43
+ </div>-->
44
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
45
+ <label class="font_normal_body">安检起始</label>
46
+ <datepicker
47
+ :value.sync="$parent.$parent.f_start_time"
48
+ placeholder='安检起始' style="width:60%"
49
+ :show-rest-button="reset">
50
+ </datepicker>
51
+ </div>
52
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
53
+ <label class="font_normal_body">安检截止</label>
54
+ <datepicker
55
+ :value.sync="$parent.$parent.f_end_time"
56
+ placeholder='安检截止' style="width:60%"
57
+ :show-rest-button="reset">
58
+ </datepicker>
59
+ </div>
60
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.isdetail,'form-group col-sm-2':!$parent.$parent.$parent.isdetail}">
61
+ <label class="font_normal_body">用户类型</label>
62
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
63
+ :value-single="true" style="width: 60%"
64
+ class="select_list select"
65
+ :options='$parent.$parent.checktype' placeholder='客户类型'
66
+ close-on-select
67
+ condition="f_check_type = '{}'"></v-select>
68
+ </div>
69
+ <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
70
+ <!--<label class="font_normal_body">安检起始</label>-->
71
+ <!--<datepicker-->
72
+ <!--:value.sync="$parent.$parent.f_start_time"-->
73
+ <!--placeholder='起始时间' style="width:60%"-->
74
+ <!--:disabled-days-of-week="[]"-->
75
+ <!--:format="'yyyy-MM-dd'"-->
76
+ <!--:show-rest-button="reset">-->
77
+ <!--</datepicker>-->
78
+ <!--</div>-->
79
+ <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
80
+ <!--<label class="font_normal_body">安检结束</label>-->
81
+ <!--<datepicker-->
82
+ <!--:value.sync="$parent.$parent.f_end_time"-->
83
+ <!--placeholder='结束时间' style="width:60%"-->
84
+ <!--:disabled-days-of-week="[]"-->
85
+ <!--:format="'yyyy-MM-dd'"-->
86
+ <!--:show-rest-button="reset">-->
87
+ <!--</datepicker>-->
88
+ <!--</div>-->
89
+ <div style="width: auto;margin-top:8px;float: right" :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
90
+ <export-excel-safe :data="$parent.$parent.searchData"
91
+ :field="$parent.$parent.excelHeaders"
92
+ progress="safeGetExportProgress"
93
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
94
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
95
+ <!--<div class="button_spacing"-->
96
+ <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
97
+ <!--@click="$parent.$parent.hidden()">-->
98
+ <!--</div>-->
99
+ <div class="button_spacing"
100
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
101
+ @click="$parent.$parent.hiddenr()"></div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ </criteria>
106
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
107
+ <template partial='head'>
108
+ <tr>
109
+ <th>安检员</th>
110
+ <th>总入户量</th>
111
+ <th>总到访不遇量</th>
112
+ <th>总拒检量</th>
113
+ <th>安检总量</th>
114
+ <th>计划总数</th>
115
+ <th>入户</th>
116
+ <th>到访不遇</th>
117
+ <th>拒检</th>
118
+ <th>无计划总数</th>
119
+ <th>无计划入户</th>
120
+ <th>无计划到访不遇</th>
121
+ <th>无计划拒检</th>
122
+ <th>入户率</th>
123
+ <th>维修率</th>
124
+ <th>隐患消除率</th>
125
+ </tr>
126
+ </template>
127
+ <template partial='body'>
128
+ <td style="text-align: center">{{row.f_checker}}</td>
129
+ <td style="text-align: center">{{row.ruhu_total}}</td>
130
+ <td style="text-align: center">{{row.daofang_total}}</td>
131
+ <td style="text-align: center">{{row.jujian_total}}</td>
132
+ <td style="text-align: center">{{row.total_sum}}</td>
133
+ <td style="text-align: center">{{row.plannum}}</td>
134
+ <td style="text-align: center">{{row.ruhu}}</td>
135
+ <td style="text-align: center">{{row.daofang}}</td>
136
+ <td style="text-align: center">{{row.jujian}}</td>
137
+ <td style="text-align: center">{{row.no_plan_num}}</td>
138
+ <td style="text-align: center">{{row.noruhu}}</td>
139
+ <td style="text-align: center">{{row.nodaofang}}</td>
140
+ <td style="text-align: center">{{row.nojujian}}</td>
141
+ <td style="text-align: center">{{row.rhl}}%</td>
142
+ <td style="text-align: center">{{row.wxl}}%</td>
143
+ <td style="text-align: center">{{row.cll}}%</td>
144
+ </template>
145
+ <template partial="foot">
146
+ <td style="text-align: center"><span><b>合计:</b></span></td>
147
+ <td style="text-align: center">{{model.sums.ruhu_total}}</td>
148
+ <td style="text-align: center">{{model.sums.daofang_total}}</td>
149
+ <td style="text-align: center">{{model.sums.jujian_total}}</td>
150
+ <td style="text-align: center">{{model.sums.total_sum}}</td>
151
+ <td style="text-align: center">{{model.sums.plannum}}</td>
152
+ <td style="text-align: center">{{model.sums.ruhu}}</td>
153
+ <td style="text-align: center">{{model.sums.daofang}}</td>
154
+ <td style="text-align: center">{{model.sums.jujian}}</td>
155
+ <td style="text-align: center">{{model.sums.no_plan_num}}</td>
156
+ <td style="text-align: center">{{model.sums.noruhu}}</td>
157
+ <td style="text-align: center">{{model.sums.nodaofang}}</td>
158
+ <td style="text-align: center">{{model.sums.nojujian}}</td>
159
+ <td style="text-align: center"></td>
160
+ <td style="text-align: center"></td>
161
+ <td style="text-align: center"></td>
162
+ </template>
163
+ </data-grid>
164
+ </criteria-paged>
165
+ </div>
166
+ </template>
167
+ <script>
168
+ import {PagedList} from 'vue-client'
169
+
170
+
171
+ export default {
172
+ title: '安检计划查询',
173
+ data() {
174
+ let options = []
175
+ let year = (new Date()).getFullYear()
176
+ for (let i = year - 8; i <= year + 1; i++)
177
+ options.push({label: i + '', value: i + ''})
178
+ let model = new PagedList('rs/sql/planCount', 20, {
179
+ f_filialeids: 'this.f_filialeids',
180
+ f_start_time: 'this.f_start_time',
181
+ condition1:'this.condition1',
182
+ condition2:'this.condition2',
183
+ condition3:'this.condition3',
184
+ f_end_time: 'this.f_end_time'
185
+ }, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
186
+ model.f_filialeids = '('+this.$login.f.orgid+')'
187
+ return {
188
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
189
+ excelHeaders:{
190
+ 'f_checker': '安检员',
191
+ 'plannum': '计划总数',
192
+ // 'yrj': '计划中已入户',
193
+ // 'wrj': '计划中未入户',
194
+ 'ruhu': '入户',
195
+ 'jujian': '拒检',
196
+ 'daofang': '到访不遇',
197
+ 'no_plan_num': '无计划总数',
198
+ 'noruhu': '无计划入户',
199
+ 'nojujian': '无计划拒检',
200
+ 'nodaofang': '无计划到访不遇',
201
+ 'rhl':'入户率',
202
+ 'wxl':'维修率',
203
+ 'cll':'隐患消除率'
204
+ },
205
+ searchData:{
206
+ condition:"1=1",
207
+ condition1:"1=1",
208
+ condition2:"1=1",
209
+ condition3:"and 1=1",
210
+ f_plan_year:year[0],
211
+ f_checker:'',
212
+ f_filialeids:'('+this.$login.f.orgid+')',
213
+ f_start_time:'',
214
+ f_end_time:''
215
+ },
216
+ checker: this.$login.f,
217
+ checkers: [],
218
+ checkersname: [],
219
+ checkStates: this.$appdata.getParam('安检状态'),
220
+ f: this.$login.f,
221
+ criteriaShow: false,
222
+ model: model,
223
+ c_year_list: options,
224
+ f_check_start:'',
225
+ f_check_end: '',
226
+ f_start_time:'',
227
+ f_end_time:''
228
+ }
229
+ },
230
+ methods: {
231
+ hidden() {
232
+ this.criteriaShow = !this.criteriaShow
233
+ },
234
+ hiddenr() {
235
+ this.$parent.showItem = !this.$parent.showItem
236
+ },
237
+ search(args) {
238
+ let tempStr = args.condition
239
+ let condition1 =tempStr
240
+ let condition2 =tempStr
241
+ let condition3 = ' and 1=1 '
242
+ if (this.f_check_start) {
243
+ condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
244
+ condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
245
+ }
246
+ if (this.f_check_end) {
247
+ condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
248
+ condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
249
+ }
250
+ if(this.f_start_time){
251
+ condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
252
+ }
253
+ if (this.f_end_time){
254
+ condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
255
+ }
256
+ if (this.$refs.paged.$refs.cri.model.f_checker_id){
257
+ condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
258
+ condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
259
+ }
260
+ this.model.f_start_time=this.f_start_time
261
+ this.model.f_end_time=this.f_end_time
262
+ this.model.condition1=condition1
263
+ this.model.condition2=condition2
264
+ this.model.condition3=condition3
265
+
266
+ this.searchData.condition1=condition1
267
+ this.searchData.condition2=condition2
268
+ this.searchData.condition3=condition3
269
+
270
+ this.model.search(args.condition, args.model)
271
+ },
272
+ getRes(obj){
273
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
274
+ //tag
275
+ }
276
+ },
277
+ ready() {
278
+ this.model.id = this.$login.f.id
279
+ this.model.f_subcompany = this.$login.f.f_fengongsi
280
+ this.model.f_filialeid = this.$login.f.orgid
281
+ },
282
+
283
+ watch: {
284
+ 'model.condition'(val) {
285
+ if(val){
286
+ this.searchData.condition = val
287
+ }
288
+ },
289
+ 'model.f_checker'(val) {
290
+ if(val){
291
+ this.searchData.f_checker = val
292
+ }
293
+ },
294
+ 'f_start_time'(val) {
295
+ if(val){
296
+ this.searchData.f_start_time = val
297
+ }
298
+ },
299
+ 'f_end_time'(val) {
300
+ if(val){
301
+ this.searchData.f_end_time = val
302
+ }
303
+ },
304
+ 'checker'() {
305
+ // //tag
306
+ //tag
307
+ this.model.chosenOrg = this.checker[0]
308
+ },
309
+ 'model.rows.length'() {
310
+ // 如果查询无结果,将合计置为0
311
+ if(this.model.rows.length < 1 &&this. model.sums){
312
+ this.model.sums.yrj = 0
313
+ this.model.sums.no_plan_num = 0
314
+ this.model.sums.wrj = 0
315
+ this.model.sums.ruhu = 0
316
+ this.model.sums.jujian = 0
317
+ this.model.sums.daofang = 0
318
+ this.model.sums.ruhu_total=0
319
+ this.model.sums.daofang_total=0
320
+ this.model.sums.jujian_total=0
321
+ this.model.sums.total_sum=0
322
+ }
323
+ }
324
+ },
325
+ computed: {
326
+ selected() {
327
+ // //tag
328
+ // this.$parent.showItem=!this.$parent.showItem
329
+ return this.$refs.paged.$refs.grid.selected
330
+ }
331
+ }
332
+ }
333
+ </script>
@@ -7,6 +7,12 @@ let specialComp = {
7
7
  'plan-manage': (resolve) => { require(['./pc/PlanManage'], resolve) },
8
8
  'new-check-paper': (resolve) => { require(['./pc/NewCheckpaper.vue'], resolve) },
9
9
  'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
10
+ 'check-plan-area-list': (resolve) => { require(['./pc/CheckPlanAreaList'], resolve) },
11
+ 'hiddensituation': (resolve) => { require(['./pc/HiddenSituation'], resolve) },
12
+ 'check-search-user': (resolve) => { require(['./pc/CheckSearchUser'], resolve) },
13
+ 'check-plan': (resolve) => { require(['./pc/CheckPlan'], resolve) },
14
+ 'select-check-plan': (resolve) => { require(['./pc/SelectCheckPlan'], resolve) },
15
+ 'defect-main-new2': (resolve) => { require(['./pc/DefectMainNew'], resolve) },
10
16
  }
11
17
  exports.specialComp = specialComp
12
18
 
@@ -737,7 +737,7 @@ export default {
737
737
  },
738
738
  getGasAberrantNumber(val) {
739
739
  //tag
740
- if(!this.f_table_base.index || !this.f_gas_balance.index){
740
+ if(!this.f_table_base.index || !this.f_gas_balance.index || !this.f_gas_aberrant_number.index){
741
741
  //tag
742
742
  return
743
743
  }