safecheck-client 3.0.39-8 → 3.0.39-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 (110) hide show
  1. package/package.json +5 -5
  2. package/src/App.vue +31 -26
  3. package/src/assets//345/256/232/344/275/215.png +0 -0
  4. package/src/components/Util/ImgSelfSafePlus.vue +2 -2
  5. package/src/components/android/AndroidDefectDeal.vue +2 -2
  6. package/src/components/android/NewCheckpaperAndroid.vue +2 -2
  7. package/src/components/android/PhoneUpUserinfo.vue +11 -0
  8. package/src/components/android/rejectInspecCheck.vue +322 -0
  9. package/src/components/pc/AddPlanItemYyChange.vue +5 -1
  10. package/src/components/pc/NewCheckpaper.vue +108 -14
  11. package/src/components/pc/NewCheckpaperTemp.vue +1308 -1295
  12. package/src/components/pc/PaperDefectMain.vue +1 -1
  13. package/src/components/pc/RoleSelector.vue +172 -172
  14. package/src/components/pc/SafeCheckOrder/SafeCheckOrderList.vue +34 -0
  15. package/src/components/rongcheng/AddPlanItem.vue +344 -344
  16. package/src/components/rongcheng/CheckCurrentCreate.vue +1081 -1081
  17. package/src/components/rongcheng/PaperDefectMain.vue +828 -828
  18. package/src/components/rongcheng/PaperStatem.vue +6 -6
  19. package/src/components/rongcheng/PhoneUpUserinfo.vue +1 -0
  20. package/src/filiale/BFshiye/android/AndroidDefectDeal.vue +652 -0
  21. package/src/filiale/BFshiye/android/PhoneUpUserinfo.vue +3 -1
  22. package/src/filiale/BFshiye/android/SafecheckUserInfo.vue +2 -2
  23. package/src/filiale/BFshiye/pc/DefectListNew.vue +637 -0
  24. package/src/filiale/BFshiye/pc/NewCheckpaper.vue +18 -56
  25. package/src/filiale/BFshiye/pc/checkUserList.vue +772 -772
  26. package/src/filiale/BFshiye/pc.js +17 -16
  27. package/src/filiale/baiyin/android/SafecheckUserInfo.vue +775 -0
  28. package/src/filiale/baiyin/android.js +12 -11
  29. package/src/filiale/bayan/pc/NewCheckpaper.vue +2 -2
  30. package/src/filiale/bayan/pc/SelectAreaReport.vue +1 -0
  31. package/src/filiale/bayan/pc/SummaryOfSecurityInspectionProgress.vue +7 -7
  32. package/src/filiale/dexin/android/SafecheckDevicesTemp.vue +1419 -1360
  33. package/src/filiale/dexin/android/SafecheckOrderV.vue +1 -1
  34. package/src/filiale/dexin/android/SafecheckOrderVTemp.vue +4 -1
  35. package/src/filiale/dexin/pc/PaperList.vue +840 -840
  36. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +2 -2
  37. package/src/filiale/hanzhong/pc/CheckNumberStatistics.vue +1 -1
  38. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +6 -1
  39. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  40. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +1 -1
  41. package/src/filiale/huatong/android/SafecheckOrderV.vue +2 -2
  42. package/src/filiale/jiaocheng/android/AddPlanItem.vue +20 -0
  43. package/src/filiale/jiaocheng/android/CurrentCreate.vue +1083 -0
  44. package/src/filiale/jiaocheng/android.js +1 -0
  45. package/src/filiale/jiaocheng/pc/CheckSearchUser.vue +18 -1
  46. package/src/filiale/jiaocheng/pc/NewCheckpaper.vue +64 -4
  47. package/src/filiale/jiaocheng/pc/PaperList.vue +803 -0
  48. package/src/filiale/jiaocheng/pc.js +1 -0
  49. package/src/filiale/jinhuang/android/AddPlanItem.vue +430 -0
  50. package/src/filiale/jinhuang/android/PhoneUpUserinfo.vue +183 -145
  51. package/src/filiale/jinhuang/android.js +2 -1
  52. package/src/filiale/kelai/android/PaperFeedback.vue +1553 -1550
  53. package/src/filiale/kelai/android/PhoneUpUserinfo.vue +1 -1
  54. package/src/filiale/kelai/android/SafecheckOrderV.vue +1 -1
  55. package/src/filiale/kelai/android/SafecheckUserInfo.vue +1 -1
  56. package/src/filiale/kelai/pc/PaperList.vue +13 -0
  57. package/src/filiale/kelai/pc/UserInfoAudit.vue +126 -90
  58. package/src/filiale/liaoyuan/pc/DefectPaperWeiXiu.vue +4 -6
  59. package/src/filiale/liaoyuan/pc/NewCheckpaper.vue +7 -7
  60. package/src/filiale/liaoyuan/pc/checkPlanList.vue +2 -3
  61. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +1357 -1270
  62. package/src/filiale/qingjian/android/SafecheckDevices.vue +1 -1
  63. package/src/filiale/qingjian/android/SafecheckOrderV.vue +3 -0
  64. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +823 -800
  65. package/src/filiale/qingjian/pc/NewCheckpaper.vue +1919 -1919
  66. package/src/filiale/rongchuang/android/AddPlanItemVisitingWithoutMeeting.vue +454 -0
  67. package/src/filiale/rongchuang/android/AddPlanItemYy.vue +498 -0
  68. package/src/filiale/rongchuang/android/PhoneUpUserinfo.vue +1262 -0
  69. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1 -1
  70. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +3 -2
  71. package/src/filiale/rongchuang/android.js +3 -0
  72. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +13 -1
  73. package/src/filiale/rongchuang/pc/checkPlanList.vue +398 -0
  74. package/src/filiale/rongchuang/pc.js +18 -17
  75. package/src/filiale/shanxian/pc/NewCheckpaper.vue +4 -4
  76. package/src/filiale/siyang/android/PhoneInsurancePurchaseDetail.vue +532 -498
  77. package/src/filiale/tongchuan/android/PhoneUpUserinfo.vue +888 -889
  78. package/src/filiale/tongchuan/android/SafecheckDevices.vue +909 -885
  79. package/src/filiale/tongchuan/pc/AMapTrailShowZk.vue +226 -0
  80. package/src/filiale/tongchuan/pc/CheckPlanCountChartAreaByWangGeYuan.vue +137 -0
  81. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +47 -1
  82. package/src/filiale/tongchuan/pc/DefectPaperWeiXiu.vue +46 -0
  83. package/src/filiale/tongchuan/pc/NoCheckplanSafecheck.vue +34 -0
  84. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +34 -0
  85. package/src/filiale/tongchuan/pc/PaperList.vue +44 -10
  86. package/src/filiale/tongchuan/pc/PersonTrack.vue +269 -0
  87. package/src/filiale/tongchuan/pc/SelectCheckPlan.vue +42 -2
  88. package/src/filiale/tongchuan/pc.js +3 -0
  89. package/src/filiale/wensu/android/SafecheckOrderV.vue +2444 -2444
  90. package/src/filiale/wensu/android/SafecheckUserInfo.vue +712 -712
  91. package/src/filiale/wensu/pc/CheckSearchUser.vue +1251 -1251
  92. package/src/filiale/wenxi/pc/PaperList.vue +9 -3
  93. package/src/filiale/wuan/android/SafecheckOrderV.vue +2242 -2242
  94. package/src/filiale/wuan/android/SafecheckUserInfo.vue +659 -659
  95. package/src/filiale/yangchunboneng/android/AndiroidSecurityAudit.vue +2 -1
  96. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +1191 -1191
  97. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +913 -913
  98. package/src/filiale/yangchunboneng/android.js +21 -21
  99. package/src/filiale/yangchunboneng/pc/CheckBookList.vue +353 -353
  100. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +3 -3
  101. package/src/filiale/yangchunboneng/pc/CheckSearchUser.vue +1197 -1197
  102. package/src/filiale/yangchunboneng/pc/HiddenSituation.vue +171 -171
  103. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +1112 -1112
  104. package/src/filiale/yangchunboneng/pc/PaperList.vue +757 -757
  105. package/src/filiale/yangchunboneng/pc/SelectCheckPlan.vue +331 -331
  106. package/src/filiale/yangchunboneng/pc.js +29 -29
  107. package/src/main.js +33 -33
  108. package/src/rongcheng.js +319 -319
  109. package/src/safecheck-android.js +316 -315
  110. package/yarn-error.log +0 -140
@@ -1,331 +1,331 @@
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 @keyup.enter="search()">
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.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
61
- <!--<label class="font_normal_body">安检起始</label>-->
62
- <!--<datepicker-->
63
- <!--:value.sync="$parent.$parent.f_start_time"-->
64
- <!--placeholder='起始时间' style="width:60%"-->
65
- <!--:disabled-days-of-week="[]"-->
66
- <!--:format="'yyyy-MM-dd'"-->
67
- <!--:show-rest-button="reset">-->
68
- <!--</datepicker>-->
69
- <!--</div>-->
70
- <!--<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">-->
71
- <!--<label class="font_normal_body">安检结束</label>-->
72
- <!--<datepicker-->
73
- <!--:value.sync="$parent.$parent.f_end_time"-->
74
- <!--placeholder='结束时间' style="width:60%"-->
75
- <!--:disabled-days-of-week="[]"-->
76
- <!--:format="'yyyy-MM-dd'"-->
77
- <!--:show-rest-button="reset">-->
78
- <!--</datepicker>-->
79
- <!--</div>-->
80
- <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}">
81
- <export-excel-safe
82
- v-if="$parent.$parent.excelStart"
83
- :data="$parent.$parent.searchData"
84
- :field="$parent.$parent.excelHeaders"
85
- progress="safeGetExportProgress"
86
- sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
87
- <button type="button" class="button_search button_spacing" @click="search()" @keyup.enter="search()">查询</button>
88
- <!--<div class="button_spacing"-->
89
- <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
90
- <!--@click="$parent.$parent.hidden()">-->
91
- <!--</div>-->
92
- <div class="button_spacing"
93
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
94
- @click="$parent.$parent.hiddenr()"></div>
95
- </div>
96
- </div>
97
- </div>
98
- </criteria>
99
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
100
- <template partial='head'>
101
- <tr>
102
- <th>安检员</th>
103
- <th>总入户量</th>
104
- <th>总到访不遇量</th>
105
- <th>总拒检量</th>
106
- <th>安检总量</th>
107
- <th>计划总数</th>
108
- <th>入户</th>
109
- <th>到访不遇</th>
110
- <th>拒检</th>
111
- <th>无计划总数</th>
112
- <th>无计划入户</th>
113
- <th>无计划到访不遇</th>
114
- <th>无计划拒检</th>
115
- </tr>
116
- </template>
117
- <template partial='body'>
118
- <td style="text-align: center">{{row.f_checker}}</td>
119
- <td style="text-align: center">{{row.ruhu_total}}</td>
120
- <td style="text-align: center">{{row.daofang_total}}</td>
121
- <td style="text-align: center">{{row.jujian_total}}</td>
122
- <td style="text-align: center">{{row.total_sum}}</td>
123
- <td style="text-align: center">{{row.plannum}}</td>
124
- <td style="text-align: center">{{row.ruhu}}</td>
125
- <td style="text-align: center">{{row.daofang}}</td>
126
- <td style="text-align: center">{{row.jujian}}</td>
127
- <td style="text-align: center">{{row.no_plan_num}}</td>
128
- <td style="text-align: center">{{row.noruhu}}</td>
129
- <td style="text-align: center">{{row.nodaofang}}</td>
130
- <td style="text-align: center">{{row.nojujian}}</td>
131
- </template>
132
- <template partial="foot">
133
- <td style="text-align: center"><span><b>合计:</b></span></td>
134
- <td style="text-align: center">{{model.sums.ruhu_total}}</td>
135
- <td style="text-align: center">{{model.sums.daofang_total}}</td>
136
- <td style="text-align: center">{{model.sums.jujian_total}}</td>
137
- <td style="text-align: center">{{model.sums.total_sum}}</td>
138
- <td style="text-align: center">{{model.sums.plannum}}</td>
139
- <td style="text-align: center">{{model.sums.ruhu}}</td>
140
- <td style="text-align: center">{{model.sums.daofang}}</td>
141
- <td style="text-align: center">{{model.sums.jujian}}</td>
142
- <td style="text-align: center">{{model.sums.no_plan_num}}</td>
143
- <td style="text-align: center">{{model.sums.noruhu}}</td>
144
- <td style="text-align: center">{{model.sums.nodaofang}}</td>
145
- <td style="text-align: center">{{model.sums.nojujian}}</td>
146
- </template>
147
- </data-grid>
148
- </criteria-paged>
149
- </div>
150
- </template>
151
- <script>
152
- import {PagedList} from 'vue-client'
153
-
154
-
155
- export default {
156
- title: '安检计划查询',
157
- data() {
158
- let options = []
159
- let year = (new Date()).getFullYear()
160
- for (let i = year - 8; i <= year + 1; i++)
161
- options.push({label: i + '', value: i + ''})
162
- let model = new PagedList('rs/sql/planCount', 20, {
163
- f_filialeids: 'this.f_filialeids',
164
- f_start_time: 'this.f_start_time',
165
- condition1:'this.condition1',
166
- condition2:'this.condition2',
167
- condition3:'this.condition3',
168
- f_end_time: 'this.f_end_time'
169
- }, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
170
- model.f_filialeids = '('+this.$login.f.orgid+')'
171
- return {
172
- excelHeaders:{
173
- 'f_checker': '安检员',
174
- 'plannum': '计划总数',
175
- // 'yrj': '计划中已入户',
176
- // 'wrj': '计划中未入户',
177
- 'ruhu': '入户',
178
- 'jujian': '拒检',
179
- 'daofang': '到访不遇',
180
- 'no_plan_num': '无计划总数',
181
- 'noruhu': '无计划入户',
182
- 'nojujian': '无计划拒检',
183
- 'nodaofang': '无计划到访不遇'
184
- },
185
- searchData:{
186
- condition:"1=1",
187
- condition1:"1=1",
188
- condition2:"1=1",
189
- condition3:"and 1=1",
190
- f_plan_year:year[0],
191
- f_checker:'',
192
- f_filialeids:'('+this.$login.f.orgid+')',
193
- f_start_time:'',
194
- f_end_time:''
195
- },
196
- checker: this.$login.f,
197
- checkers: [],
198
- checkersname: [],
199
- checkStates: this.$appdata.getParam('安检状态'),
200
- f: this.$login.f,
201
- criteriaShow: false,
202
- model: model,
203
- c_year_list: options,
204
- f_check_start:'',
205
- f_check_end: '',
206
- f_start_time:'',
207
- f_end_time:''
208
- }
209
- },
210
- methods: {
211
- // 添加处理回车键的方法
212
- handleKeyUp(e) {
213
- if (e.key === 'Enter') {
214
- this.selfsearch()
215
- }
216
- },
217
- hidden() {
218
- this.criteriaShow = !this.criteriaShow
219
- },
220
- hiddenr() {
221
- this.$parent.showItem = !this.$parent.showItem
222
- },
223
- search(args) {
224
- let tempStr = args.condition
225
- let condition1 =tempStr
226
- let condition2 =tempStr
227
- let condition3 = ' and 1=1 '
228
- if (this.f_check_start) {
229
- condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
230
- condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
231
- }
232
- if (this.f_check_end) {
233
- condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
234
- condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
235
- }
236
- if(this.f_start_time){
237
- condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
238
- }
239
- if (this.f_end_time){
240
- condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
241
- }
242
- if (this.$refs.paged.$refs.cri.model.f_checker_id){
243
- condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
244
- condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
245
- }
246
- this.model.f_start_time=this.f_start_time
247
- this.model.f_end_time=this.f_end_time
248
- this.model.condition1=condition1
249
- this.model.condition2=condition2
250
- this.model.condition3=condition3
251
-
252
- this.searchData.condition1=condition1
253
- this.searchData.condition2=condition2
254
- this.searchData.condition3=condition3
255
-
256
- this.model.search(args.condition, args.model)
257
- },
258
- getRes(obj){
259
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
260
- //tag
261
- },
262
- selfsearch() {
263
- this.$refs.paged.$refs.cri.search()
264
- },
265
- },
266
- ready() {
267
- this.model.id = this.$login.f.id
268
- this.model.f_subcompany = this.$login.f.f_fengongsi
269
- this.model.f_filialeid = this.$login.f.orgid
270
- // 添加回车键监听
271
- document.addEventListener('keyup', this.handleKeyUp)
272
- },
273
- beforeDestroy() {
274
- // 组件销毁前移除事件监听
275
- document.removeEventListener('keyup', this.handleKeyUp)
276
- },
277
-
278
- watch: {
279
- 'model.condition'(val) {
280
- if(val){
281
- this.searchData.condition = val
282
- }
283
- },
284
- 'model.f_checker'(val) {
285
- if(val){
286
- this.searchData.f_checker = val
287
- }
288
- },
289
- 'f_start_time'(val) {
290
- if(val){
291
- this.searchData.f_start_time = val
292
- }
293
- },
294
- 'f_end_time'(val) {
295
- if(val){
296
- this.searchData.f_end_time = val
297
- }
298
- },
299
- 'checker'() {
300
- // //tag
301
- //tag
302
- this.model.chosenOrg = this.checker[0]
303
- },
304
- 'model.rows.length'() {
305
- // 如果查询无结果,将合计置为0
306
- if(this.model.rows.length < 1 &&this. model.sums){
307
- this.model.sums.yrj = 0
308
- this.model.sums.no_plan_num = 0
309
- this.model.sums.wrj = 0
310
- this.model.sums.ruhu = 0
311
- this.model.sums.jujian = 0
312
- this.model.sums.daofang = 0
313
- this.model.sums.ruhu_total=0
314
- this.model.sums.daofang_total=0
315
- this.model.sums.jujian_total=0
316
- this.model.sums.total_sum=0
317
- }
318
- }
319
- },
320
- computed: {
321
- selected() {
322
- // //tag
323
- // this.$parent.showItem=!this.$parent.showItem
324
- return this.$refs.paged.$refs.grid.selected
325
- },
326
- excelStart () {
327
- return this.$login.r.includes('安检员考核导出')
328
- }
329
- }
330
- }
331
- </script>
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 @keyup.enter="search()">
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.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" v-if="$parent.$parent.criteriaShow">-->
61
+ <!--<label class="font_normal_body">安检起始</label>-->
62
+ <!--<datepicker-->
63
+ <!--:value.sync="$parent.$parent.f_start_time"-->
64
+ <!--placeholder='起始时间' style="width:60%"-->
65
+ <!--:disabled-days-of-week="[]"-->
66
+ <!--:format="'yyyy-MM-dd'"-->
67
+ <!--:show-rest-button="reset">-->
68
+ <!--</datepicker>-->
69
+ <!--</div>-->
70
+ <!--<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">-->
71
+ <!--<label class="font_normal_body">安检结束</label>-->
72
+ <!--<datepicker-->
73
+ <!--:value.sync="$parent.$parent.f_end_time"-->
74
+ <!--placeholder='结束时间' style="width:60%"-->
75
+ <!--:disabled-days-of-week="[]"-->
76
+ <!--:format="'yyyy-MM-dd'"-->
77
+ <!--:show-rest-button="reset">-->
78
+ <!--</datepicker>-->
79
+ <!--</div>-->
80
+ <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}">
81
+ <export-excel-safe
82
+ v-if="$parent.$parent.excelStart"
83
+ :data="$parent.$parent.searchData"
84
+ :field="$parent.$parent.excelHeaders"
85
+ progress="safeGetExportProgress"
86
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
87
+ <button type="button" class="button_search button_spacing" @click="search()" @keyup.enter="search()">查询</button>
88
+ <!--<div class="button_spacing"-->
89
+ <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
90
+ <!--@click="$parent.$parent.hidden()">-->
91
+ <!--</div>-->
92
+ <div class="button_spacing"
93
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
94
+ @click="$parent.$parent.hiddenr()"></div>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ </criteria>
99
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
100
+ <template partial='head'>
101
+ <tr>
102
+ <th>安检员</th>
103
+ <th>总入户量</th>
104
+ <th>总到访不遇量</th>
105
+ <th>总拒检量</th>
106
+ <th>安检总量</th>
107
+ <th>计划总数</th>
108
+ <th>入户</th>
109
+ <th>到访不遇</th>
110
+ <th>拒检</th>
111
+ <th>无计划总数</th>
112
+ <th>无计划入户</th>
113
+ <th>无计划到访不遇</th>
114
+ <th>无计划拒检</th>
115
+ </tr>
116
+ </template>
117
+ <template partial='body'>
118
+ <td style="text-align: center">{{row.f_checker}}</td>
119
+ <td style="text-align: center">{{row.ruhu_total}}</td>
120
+ <td style="text-align: center">{{row.daofang_total}}</td>
121
+ <td style="text-align: center">{{row.jujian_total}}</td>
122
+ <td style="text-align: center">{{row.total_sum}}</td>
123
+ <td style="text-align: center">{{row.plannum}}</td>
124
+ <td style="text-align: center">{{row.ruhu}}</td>
125
+ <td style="text-align: center">{{row.daofang}}</td>
126
+ <td style="text-align: center">{{row.jujian}}</td>
127
+ <td style="text-align: center">{{row.no_plan_num}}</td>
128
+ <td style="text-align: center">{{row.noruhu}}</td>
129
+ <td style="text-align: center">{{row.nodaofang}}</td>
130
+ <td style="text-align: center">{{row.nojujian}}</td>
131
+ </template>
132
+ <template partial="foot">
133
+ <td style="text-align: center"><span><b>合计:</b></span></td>
134
+ <td style="text-align: center">{{model.sums.ruhu_total}}</td>
135
+ <td style="text-align: center">{{model.sums.daofang_total}}</td>
136
+ <td style="text-align: center">{{model.sums.jujian_total}}</td>
137
+ <td style="text-align: center">{{model.sums.total_sum}}</td>
138
+ <td style="text-align: center">{{model.sums.plannum}}</td>
139
+ <td style="text-align: center">{{model.sums.ruhu}}</td>
140
+ <td style="text-align: center">{{model.sums.daofang}}</td>
141
+ <td style="text-align: center">{{model.sums.jujian}}</td>
142
+ <td style="text-align: center">{{model.sums.no_plan_num}}</td>
143
+ <td style="text-align: center">{{model.sums.noruhu}}</td>
144
+ <td style="text-align: center">{{model.sums.nodaofang}}</td>
145
+ <td style="text-align: center">{{model.sums.nojujian}}</td>
146
+ </template>
147
+ </data-grid>
148
+ </criteria-paged>
149
+ </div>
150
+ </template>
151
+ <script>
152
+ import {PagedList} from 'vue-client'
153
+
154
+
155
+ export default {
156
+ title: '安检计划查询',
157
+ data() {
158
+ let options = []
159
+ let year = (new Date()).getFullYear()
160
+ for (let i = year - 8; i <= year + 1; i++)
161
+ options.push({label: i + '', value: i + ''})
162
+ let model = new PagedList('rs/sql/planCount', 20, {
163
+ f_filialeids: 'this.f_filialeids',
164
+ f_start_time: 'this.f_start_time',
165
+ condition1:'this.condition1',
166
+ condition2:'this.condition2',
167
+ condition3:'this.condition3',
168
+ f_end_time: 'this.f_end_time'
169
+ }, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
170
+ model.f_filialeids = '('+this.$login.f.orgid+')'
171
+ return {
172
+ excelHeaders:{
173
+ 'f_checker': '安检员',
174
+ 'plannum': '计划总数',
175
+ // 'yrj': '计划中已入户',
176
+ // 'wrj': '计划中未入户',
177
+ 'ruhu': '入户',
178
+ 'jujian': '拒检',
179
+ 'daofang': '到访不遇',
180
+ 'no_plan_num': '无计划总数',
181
+ 'noruhu': '无计划入户',
182
+ 'nojujian': '无计划拒检',
183
+ 'nodaofang': '无计划到访不遇'
184
+ },
185
+ searchData:{
186
+ condition:"1=1",
187
+ condition1:"1=1",
188
+ condition2:"1=1",
189
+ condition3:"and 1=1",
190
+ f_plan_year:year[0],
191
+ f_checker:'',
192
+ f_filialeids:'('+this.$login.f.orgid+')',
193
+ f_start_time:'',
194
+ f_end_time:''
195
+ },
196
+ checker: this.$login.f,
197
+ checkers: [],
198
+ checkersname: [],
199
+ checkStates: this.$appdata.getParam('安检状态'),
200
+ f: this.$login.f,
201
+ criteriaShow: false,
202
+ model: model,
203
+ c_year_list: options,
204
+ f_check_start:'',
205
+ f_check_end: '',
206
+ f_start_time:'',
207
+ f_end_time:''
208
+ }
209
+ },
210
+ methods: {
211
+ // 添加处理回车键的方法
212
+ handleKeyUp(e) {
213
+ if (e.key === 'Enter') {
214
+ this.selfsearch()
215
+ }
216
+ },
217
+ hidden() {
218
+ this.criteriaShow = !this.criteriaShow
219
+ },
220
+ hiddenr() {
221
+ this.$parent.showItem = !this.$parent.showItem
222
+ },
223
+ search(args) {
224
+ let tempStr = args.condition
225
+ let condition1 =tempStr
226
+ let condition2 =tempStr
227
+ let condition3 = ' and 1=1 '
228
+ if (this.f_check_start) {
229
+ condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
230
+ condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
231
+ }
232
+ if (this.f_check_end) {
233
+ condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
234
+ condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
235
+ }
236
+ if(this.f_start_time){
237
+ condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
238
+ }
239
+ if (this.f_end_time){
240
+ condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
241
+ }
242
+ if (this.$refs.paged.$refs.cri.model.f_checker_id){
243
+ condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
244
+ condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
245
+ }
246
+ this.model.f_start_time=this.f_start_time
247
+ this.model.f_end_time=this.f_end_time
248
+ this.model.condition1=condition1
249
+ this.model.condition2=condition2
250
+ this.model.condition3=condition3
251
+
252
+ this.searchData.condition1=condition1
253
+ this.searchData.condition2=condition2
254
+ this.searchData.condition3=condition3
255
+
256
+ this.model.search(args.condition, args.model)
257
+ },
258
+ getRes(obj){
259
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
260
+ //tag
261
+ },
262
+ selfsearch() {
263
+ this.$refs.paged.$refs.cri.search()
264
+ },
265
+ },
266
+ ready() {
267
+ this.model.id = this.$login.f.id
268
+ this.model.f_subcompany = this.$login.f.f_fengongsi
269
+ this.model.f_filialeid = this.$login.f.orgid
270
+ // 添加回车键监听
271
+ document.addEventListener('keyup', this.handleKeyUp)
272
+ },
273
+ beforeDestroy() {
274
+ // 组件销毁前移除事件监听
275
+ document.removeEventListener('keyup', this.handleKeyUp)
276
+ },
277
+
278
+ watch: {
279
+ 'model.condition'(val) {
280
+ if(val){
281
+ this.searchData.condition = val
282
+ }
283
+ },
284
+ 'model.f_checker'(val) {
285
+ if(val){
286
+ this.searchData.f_checker = val
287
+ }
288
+ },
289
+ 'f_start_time'(val) {
290
+ if(val){
291
+ this.searchData.f_start_time = val
292
+ }
293
+ },
294
+ 'f_end_time'(val) {
295
+ if(val){
296
+ this.searchData.f_end_time = val
297
+ }
298
+ },
299
+ 'checker'() {
300
+ // //tag
301
+ //tag
302
+ this.model.chosenOrg = this.checker[0]
303
+ },
304
+ 'model.rows.length'() {
305
+ // 如果查询无结果,将合计置为0
306
+ if(this.model.rows.length < 1 &&this. model.sums){
307
+ this.model.sums.yrj = 0
308
+ this.model.sums.no_plan_num = 0
309
+ this.model.sums.wrj = 0
310
+ this.model.sums.ruhu = 0
311
+ this.model.sums.jujian = 0
312
+ this.model.sums.daofang = 0
313
+ this.model.sums.ruhu_total=0
314
+ this.model.sums.daofang_total=0
315
+ this.model.sums.jujian_total=0
316
+ this.model.sums.total_sum=0
317
+ }
318
+ }
319
+ },
320
+ computed: {
321
+ selected() {
322
+ // //tag
323
+ // this.$parent.showItem=!this.$parent.showItem
324
+ return this.$refs.paged.$refs.grid.selected
325
+ },
326
+ excelStart () {
327
+ return this.$login.r.includes('安检员考核导出')
328
+ }
329
+ }
330
+ }
331
+ </script>