safecheck-client 3.0.30-7 → 3.0.30-71

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 (79) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/components/Util.js +15 -0
  4. package/src/components/android/AddPlanItem.vue +5 -2
  5. package/src/components/android/AreaPlan.vue +2 -2
  6. package/src/components/android/CurrentCreate.vue +3 -2
  7. package/src/components/android/CurrentCreate_new.vue +563 -559
  8. package/src/components/android/PhoneotherInfo.vue +132 -132
  9. package/src/components/android/SafecheckOrderV.vue +2 -2
  10. package/src/components/android/UploadPage.vue +13 -123
  11. package/src/components/paper/PlanChooser.vue +8 -6
  12. package/src/components/pc/Edit.vue +126 -0
  13. package/src/components/pc/LodopFuncs.js +159 -0
  14. package/src/components/pc/NewCheckpaper.vue +9 -5
  15. package/src/components/pc/PaperEdit.vue +151 -0
  16. package/src/components/pc/PrintData.vue +243 -0
  17. package/src/components/pc/PrintTable.vue +241 -0
  18. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +281 -278
  19. package/src/components/querycheckpaper/CheckSearchUser.vue +1067 -1067
  20. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  21. package/src/filiale/bayan/android/SafecheckDevices.vue +1303 -1303
  22. package/src/filiale/bayan/android/SafecheckOrderV.vue +2850 -2850
  23. package/src/filiale/bayan/android/SafecheckUserInfo.vue +806 -806
  24. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  25. package/src/filiale/fugou/android.js +10 -0
  26. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -1477
  27. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -1294
  28. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -2683
  29. package/src/filiale/hanzhong/android.js +16 -16
  30. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  31. package/src/filiale/hanzhong/pc.js +4 -1
  32. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  33. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  34. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  35. package/src/filiale/jingyang/pc/PaperList.vue +1 -2
  36. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  37. package/src/filiale/kelai/android.js +1 -0
  38. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  39. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  40. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  41. package/src/filiale/tianke/pc/checkScreen.vue +781 -781
  42. package/src/filiale/tianke/pc/cq.jpg +0 -0
  43. package/src/filiale/tianke/pc/qy.jpg +0 -0
  44. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  45. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1095 -1090
  46. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  47. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  48. package/src/filiale/wensu/android.js +1 -0
  49. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  50. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  51. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  52. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  53. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  54. package/src/filiale/wensu/pc.js +2 -1
  55. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  56. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  57. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  58. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  59. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  60. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  61. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  62. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  63. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  64. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  65. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  66. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  67. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  68. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  69. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  70. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +88 -29
  71. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +63 -27
  72. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  73. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  74. package/src/filiale/yongzhou/pc.js +17 -12
  75. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  76. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  77. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  78. package/src/safecheck-android.js +290 -290
  79. package/src/safecheck.js +12 -0
@@ -1,278 +1,281 @@
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
- condition="tcp.f_checker = '{}'">
15
- </role-selector-safe>
16
- </div>
17
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
18
- <label class="font_normal_body">计划起始</label>
19
- <datepicker
20
- :value.sync="$parent.$parent.f_check_start"
21
- placeholder='起始月份' style="width:60%"
22
- :disabled-days-of-week="[]"
23
- :format="'yyyy-MM'"
24
- :select-month="true"
25
- :show-rest-button="reset">
26
- </datepicker>
27
- </div>
28
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
29
- <label class="font_normal_body">计划截止</label>
30
- <datepicker
31
- :value.sync="$parent.$parent.f_check_end"
32
- placeholder='结束月份' style="width:60%"
33
- :disabled-days-of-week="[]"
34
- :format="'yyyy-MM'"
35
- :select-month="true"
36
- :show-rest-button="reset">
37
- </datepicker>
38
- </div>
39
- <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
40
- <label class="font_normal_body">安检状态</label>
41
- <v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
42
- style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
43
- </v-select>
44
- </div>-->
45
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
46
- <label class="font_normal_body">安检起始</label>
47
- <datepicker
48
- :value.sync="$parent.$parent.f_start_time"
49
- placeholder='安检起始' style="width:60%"
50
- :show-rest-button="reset">
51
- </datepicker>
52
- </div>
53
- <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
54
- <label class="font_normal_body">安检截止</label>
55
- <datepicker
56
- :value.sync="$parent.$parent.f_end_time"
57
- placeholder='安检截止' style="width:60%"
58
- :show-rest-button="reset">
59
- </datepicker>
60
- </div>
61
- <!--<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">-->
62
- <!--<label class="font_normal_body">安检起始</label>-->
63
- <!--<datepicker-->
64
- <!--:value.sync="$parent.$parent.f_start_time"-->
65
- <!--placeholder='起始时间' style="width:60%"-->
66
- <!--:disabled-days-of-week="[]"-->
67
- <!--:format="'yyyy-MM-dd'"-->
68
- <!--:show-rest-button="reset">-->
69
- <!--</datepicker>-->
70
- <!--</div>-->
71
- <!--<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">-->
72
- <!--<label class="font_normal_body">安检结束</label>-->
73
- <!--<datepicker-->
74
- <!--:value.sync="$parent.$parent.f_end_time"-->
75
- <!--placeholder='结束时间' style="width:60%"-->
76
- <!--:disabled-days-of-week="[]"-->
77
- <!--:format="'yyyy-MM-dd'"-->
78
- <!--:show-rest-button="reset">-->
79
- <!--</datepicker>-->
80
- <!--</div>-->
81
- <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}">
82
- <export-excel-safe :data="$parent.$parent.searchData"
83
- :field="$parent.$parent.excelHeaders"
84
- progress="safeGetExportProgress"
85
- sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
86
- <button type="button" class="button_search button_spacing" @click="search()">查询</button>
87
- <!--<div class="button_spacing"-->
88
- <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
89
- <!--@click="$parent.$parent.hidden()">-->
90
- <!--</div>-->
91
- <div class="button_spacing"
92
- :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
93
- @click="$parent.$parent.hiddenr()"></div>
94
- </div>
95
- </div>
96
- </div>
97
- </criteria>
98
- <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
99
- <template partial='head'>
100
- <tr>
101
- <th>安检员</th>
102
- <th>计划总数</th>
103
- <th>无计划总数</th>
104
- <th>计划中未入户</th>
105
- <th>计划中已入户</th>
106
- <th>入户</th>
107
- <th>到访不遇</th>
108
- <th>拒检</th>
109
- </tr>
110
- </template>
111
- <template partial='body'>
112
- <td style="text-align: center">{{row.f_checker}}</td>
113
- <td style="text-align: center">{{row.plannum}}</td>
114
- <td style="text-align: center">{{row.no_plan_num}}</td>
115
- <td style="text-align: center">{{row.wrj}}</td>
116
- <td style="text-align: center">{{row.yrj}}</td>
117
- <td style="text-align: center">{{row.ruhu}}</td>
118
- <td style="text-align: center">{{row.daofang}}</td>
119
- <td style="text-align: center">{{row.jujian}}</td>
120
-
121
- </template>
122
- <template partial="foot">
123
- <td style="text-align: center"><span><b>合计:</b></span></td>
124
- <td style="text-align: center">{{model.sums.plannum}}</td>
125
- <td style="text-align: center">{{model.sums.no_plan_num}}</td>
126
- <td style="text-align: center">{{model.sums.wrj}}</td>
127
- <td style="text-align: center">{{model.sums.yrj}}</td>
128
- <td style="text-align: center">{{model.sums.ruhu}}</td>
129
- <td style="text-align: center">{{model.sums.daofang}}</td>
130
- <td style="text-align: center">{{model.sums.jujian}}</td>
131
- </template>
132
- </data-grid>
133
- </criteria-paged>
134
- </div>
135
- </template>
136
- <script>
137
- import {PagedList} from 'vue-client'
138
-
139
-
140
- export default {
141
- title: '安检计划查询',
142
- data() {
143
- let options = []
144
- let year = (new Date()).getFullYear()
145
- for (let i = year - 8; i <= year + 1; i++)
146
- options.push({label: i + '', value: i + ''})
147
- let model = new PagedList('rs/sql/planCountAndNoPLan', 20, {
148
- f_filialeids: 'this.f_filialeids',
149
- f_start_time: 'this.f_start_time',
150
- condition1:'this.condition1',
151
- condition2:'this.condition2',
152
- f_end_time: 'this.f_end_time'
153
- }, {plannum: '', yrj: '', wrj: '',ruhu: '', jujian: '', daofang: '',no_plan_num:''})
154
- model.f_filialeids = '('+this.$login.f.orgid+')'
155
- return {
156
- excelHeaders:{
157
- 'f_checker': '安检员',
158
- 'plannum': '计划总数',
159
- 'no_plan_num': '无计划总数',
160
- 'yrj': '计划中已入户',
161
- 'wrj': '计划中未入户',
162
- 'ruhu': '入户',
163
- 'jujian': '拒检',
164
- 'daofang': '到访不遇'
165
- },
166
- searchData:{
167
- condition:"1=1",
168
- f_plan_year:year[0],
169
- f_checker:'',
170
- f_filialeids:'('+this.$login.f.orgid+')',
171
- f_start_time:'',
172
- f_end_time:''
173
- },
174
- checker: this.$login.f,
175
- checkers: [],
176
- checkersname: [],
177
- checkStates: this.$appdata.getParam('安检状态'),
178
- f: this.$login.f,
179
- criteriaShow: false,
180
- model: model,
181
- c_year_list: options,
182
- f_check_start:'',
183
- f_check_end: '',
184
- f_start_time:'',
185
- f_end_time:''
186
- }
187
- },
188
- methods: {
189
- hidden() {
190
- this.criteriaShow = !this.criteriaShow
191
- },
192
- hiddenr() {
193
- this.$parent.showItem = !this.$parent.showItem
194
- },
195
- search(args) {
196
- let tempStr = args.condition
197
- let condition1 =tempStr
198
- let condition2 =tempStr
199
- if (this.f_check_start) {
200
- condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
201
- condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
202
- }
203
- if (this.f_check_end) {
204
- condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
205
- condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
206
- }
207
- if(this.f_start_time){
208
- condition2 += ` AND f_offsite_time >= ${this.f_start_time}`
209
- }
210
- if (this.f_end_time){
211
- condition2 += ` AND f_offsite_time <= ${this.f_end_time}`
212
- }
213
- condition2 = condition2.replaceAll('tcp.f_checker','f_checker_name')
214
- this.model.f_start_time=this.f_start_time
215
- this.model.f_end_time=this.f_end_time
216
- this.model.condition1=condition1
217
- this.model.condition2=condition2
218
- this.model.search(args.condition, args.model)
219
- },
220
- getRes(obj){
221
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
222
- //tag
223
- }
224
- },
225
- ready() {
226
- this.model.id = this.$login.f.id
227
- this.model.f_subcompany = this.$login.f.f_fengongsi
228
- this.model.f_filialeid = this.$login.f.orgid
229
- },
230
-
231
- watch: {
232
- 'model.condition'(val) {
233
- if(val){
234
- this.searchData.condition = val
235
- }
236
- },
237
- 'model.f_checker'(val) {
238
- if(val){
239
- this.searchData.f_checker = val
240
- }
241
- },
242
- 'f_start_time'(val) {
243
- if(val){
244
- this.searchData.f_start_time = val
245
- }
246
- },
247
- 'f_end_time'(val) {
248
- if(val){
249
- this.searchData.f_end_time = val
250
- }
251
- },
252
- 'checker'() {
253
- // //tag
254
- //tag
255
- this.model.chosenOrg = this.checker[0]
256
- },
257
- 'model.rows.length'() {
258
- // 如果查询无结果,将合计置为0
259
- if(this.model.rows.length < 1 &&this. model.sums){
260
- this.model.sums.yrj = 0
261
- this.model.sums.no_plan_num = 0
262
- this.model.sums.wrj = 0
263
- this.model.sums.unchecked = 0
264
- this.model.sums.ruhu = 0
265
- this.model.sums.jujian = 0
266
- this.model.sums.daofang = 0
267
- }
268
- }
269
- },
270
- computed: {
271
- selected() {
272
- // //tag
273
- // this.$parent.showItem=!this.$parent.showItem
274
- return this.$refs.paged.$refs.grid.selected
275
- }
276
- }
277
- }
278
- </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>
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
+ condition="tcp.f_checker = '{}'">
15
+ </role-selector-safe>
16
+ </div>
17
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
18
+ <label class="font_normal_body">计划起始</label>
19
+ <datepicker
20
+ :value.sync="$parent.$parent.f_check_start"
21
+ placeholder='起始月份' style="width:60%"
22
+ :disabled-days-of-week="[]"
23
+ :format="'yyyy-MM'"
24
+ :select-month="true"
25
+ :show-rest-button="reset">
26
+ </datepicker>
27
+ </div>
28
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
29
+ <label class="font_normal_body">计划截止</label>
30
+ <datepicker
31
+ :value.sync="$parent.$parent.f_check_end"
32
+ placeholder='结束月份' style="width:60%"
33
+ :disabled-days-of-week="[]"
34
+ :format="'yyyy-MM'"
35
+ :select-month="true"
36
+ :show-rest-button="reset">
37
+ </datepicker>
38
+ </div>
39
+ <!--<div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}" >
40
+ <label class="font_normal_body">安检状态</label>
41
+ <v-select :value.sync="model.f_last_check_state" :options='$parent.$parent.checkStates' placeholder='上次安检状态' close-on-select
42
+ style="width:60% " class="select select_list" v-model='model.f_last_check_state' condition="i.f_last_check_state = '{}'">
43
+ </v-select>
44
+ </div>-->
45
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
46
+ <label class="font_normal_body">安检起始</label>
47
+ <datepicker
48
+ :value.sync="$parent.$parent.f_start_time"
49
+ placeholder='安检起始' style="width:60%"
50
+ :show-rest-button="reset">
51
+ </datepicker>
52
+ </div>
53
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
54
+ <label class="font_normal_body">安检截止</label>
55
+ <datepicker
56
+ :value.sync="$parent.$parent.f_end_time"
57
+ placeholder='安检截止' style="width:60%"
58
+ :show-rest-button="reset">
59
+ </datepicker>
60
+ </div>
61
+ <!--<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">-->
62
+ <!--<label class="font_normal_body">安检起始</label>-->
63
+ <!--<datepicker-->
64
+ <!--:value.sync="$parent.$parent.f_start_time"-->
65
+ <!--placeholder='起始时间' style="width:60%"-->
66
+ <!--:disabled-days-of-week="[]"-->
67
+ <!--:format="'yyyy-MM-dd'"-->
68
+ <!--:show-rest-button="reset">-->
69
+ <!--</datepicker>-->
70
+ <!--</div>-->
71
+ <!--<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">-->
72
+ <!--<label class="font_normal_body">安检结束</label>-->
73
+ <!--<datepicker-->
74
+ <!--:value.sync="$parent.$parent.f_end_time"-->
75
+ <!--placeholder='结束时间' style="width:60%"-->
76
+ <!--:disabled-days-of-week="[]"-->
77
+ <!--:format="'yyyy-MM-dd'"-->
78
+ <!--:show-rest-button="reset">-->
79
+ <!--</datepicker>-->
80
+ <!--</div>-->
81
+ <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}">
82
+ <export-excel-safe :data="$parent.$parent.searchData"
83
+ :field="$parent.$parent.excelHeaders"
84
+ progress="safeGetExportProgress"
85
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
86
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
87
+ <!--<div class="button_spacing"-->
88
+ <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
89
+ <!--@click="$parent.$parent.hidden()">-->
90
+ <!--</div>-->
91
+ <div class="button_spacing"
92
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
93
+ @click="$parent.$parent.hiddenr()"></div>
94
+ </div>
95
+ </div>
96
+ </div>
97
+ </criteria>
98
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
99
+ <template partial='head'>
100
+ <tr>
101
+ <th>安检员</th>
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
+ </tr>
111
+ </template>
112
+ <template partial='body'>
113
+ <td style="text-align: center">{{row.f_checker}}</td>
114
+ <td style="text-align: center">{{row.plannum}}</td>
115
+ <td style="text-align: center">{{row.no_plan_num}}</td>
116
+ <td style="text-align: center">{{row.wrj}}</td>
117
+ <td style="text-align: center">{{row.yrj}}</td>
118
+ <td style="text-align: center">{{row.ruhu}}</td>
119
+ <td style="text-align: center">{{row.daofang}}</td>
120
+ <td style="text-align: center">{{row.jujian}}</td>
121
+ <td style="text-align: center">{{row.wclv}}%</td>
122
+
123
+ </template>
124
+ <template partial="foot">
125
+ <td style="text-align: center"><span><b>合计:</b></span></td>
126
+ <td style="text-align: center">{{model.sums.plannum}}</td>
127
+ <td style="text-align: center">{{model.sums.no_plan_num}}</td>
128
+ <td style="text-align: center">{{model.sums.wrj}}</td>
129
+ <td style="text-align: center">{{model.sums.yrj}}</td>
130
+ <td style="text-align: center">{{model.sums.ruhu}}</td>
131
+ <td style="text-align: center">{{model.sums.daofang}}</td>
132
+ <td style="text-align: center">{{model.sums.jujian}}</td>
133
+ <td style="text-align: center">{{((model.sums.ruhu +model.sums.daofang+model.sums.jujian)/(model.sums.plannum+model.sums.no_plan_num)*100).toFixed(2)}}%</td>
134
+ </template>
135
+ </data-grid>
136
+ </criteria-paged>
137
+ </div>
138
+ </template>
139
+ <script>
140
+ import {PagedList} from 'vue-client'
141
+
142
+
143
+ export default {
144
+ title: '安检计划查询',
145
+ data() {
146
+ let options = []
147
+ let year = (new Date()).getFullYear()
148
+ for (let i = year - 8; i <= year + 1; i++)
149
+ options.push({label: i + '', value: i + ''})
150
+ let model = new PagedList('rs/sql/planCountAndNoPLan', 20, {
151
+ f_filialeids: 'this.f_filialeids',
152
+ f_start_time: 'this.f_start_time',
153
+ condition1:'this.condition1',
154
+ condition2:'this.condition2',
155
+ f_end_time: 'this.f_end_time'
156
+ }, {plannum: '', yrj: '', wrj: '',ruhu: '', jujian: '', daofang: '',no_plan_num:''})
157
+ model.f_filialeids = '('+this.$login.f.orgid+')'
158
+ return {
159
+ excelHeaders:{
160
+ 'f_checker': '安检员',
161
+ 'plannum': '计划总数',
162
+ 'no_plan_num': '无计划总数',
163
+ 'yrj': '计划中已入户',
164
+ 'wrj': '计划中未入户',
165
+ 'ruhu': '入户',
166
+ 'jujian': '拒检',
167
+ 'daofang': '到访不遇'
168
+ },
169
+ searchData:{
170
+ condition:"1=1",
171
+ f_plan_year:year[0],
172
+ f_checker:'',
173
+ f_filialeids:'('+this.$login.f.orgid+')',
174
+ f_start_time:'',
175
+ f_end_time:''
176
+ },
177
+ checker: this.$login.f,
178
+ checkers: [],
179
+ checkersname: [],
180
+ checkStates: this.$appdata.getParam('安检状态'),
181
+ f: this.$login.f,
182
+ criteriaShow: false,
183
+ model: model,
184
+ c_year_list: options,
185
+ f_check_start:'',
186
+ f_check_end: '',
187
+ f_start_time:'',
188
+ f_end_time:''
189
+ }
190
+ },
191
+ methods: {
192
+ hidden() {
193
+ this.criteriaShow = !this.criteriaShow
194
+ },
195
+ hiddenr() {
196
+ this.$parent.showItem = !this.$parent.showItem
197
+ },
198
+ search(args) {
199
+ let tempStr = args.condition
200
+ let condition1 =tempStr
201
+ let condition2 =tempStr
202
+ if (this.f_check_start) {
203
+ condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
204
+ condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
205
+ }
206
+ if (this.f_check_end) {
207
+ condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
208
+ condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
209
+ }
210
+ if(this.f_start_time){
211
+ condition2 += ` AND f_offsite_time >= ${this.f_start_time}`
212
+ }
213
+ if (this.f_end_time){
214
+ condition2 += ` AND f_offsite_time <= ${this.f_end_time}`
215
+ }
216
+ condition2 = condition2.replaceAll('tcp.f_checker','f_checker_name')
217
+ this.model.f_start_time=this.f_start_time
218
+ this.model.f_end_time=this.f_end_time
219
+ this.model.condition1=condition1
220
+ this.model.condition2=condition2
221
+ this.model.search(args.condition, args.model)
222
+ },
223
+ getRes(obj){
224
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
225
+ //tag
226
+ }
227
+ },
228
+ ready() {
229
+ this.model.id = this.$login.f.id
230
+ this.model.f_subcompany = this.$login.f.f_fengongsi
231
+ this.model.f_filialeid = this.$login.f.orgid
232
+ },
233
+
234
+ watch: {
235
+ 'model.condition'(val) {
236
+ if(val){
237
+ this.searchData.condition = val
238
+ }
239
+ },
240
+ 'model.f_checker'(val) {
241
+ if(val){
242
+ this.searchData.f_checker = val
243
+ }
244
+ },
245
+ 'f_start_time'(val) {
246
+ if(val){
247
+ this.searchData.f_start_time = val
248
+ }
249
+ },
250
+ 'f_end_time'(val) {
251
+ if(val){
252
+ this.searchData.f_end_time = val
253
+ }
254
+ },
255
+ 'checker'() {
256
+ // //tag
257
+ //tag
258
+ this.model.chosenOrg = this.checker[0]
259
+ },
260
+ 'model.rows.length'() {
261
+ // 如果查询无结果,将合计置为0
262
+ if(this.model.rows.length < 1 &&this. model.sums){
263
+ this.model.sums.yrj = 0
264
+ this.model.sums.no_plan_num = 0
265
+ this.model.sums.wrj = 0
266
+ this.model.sums.unchecked = 0
267
+ this.model.sums.ruhu = 0
268
+ this.model.sums.jujian = 0
269
+ this.model.sums.daofang = 0
270
+ }
271
+ }
272
+ },
273
+ computed: {
274
+ selected() {
275
+ // //tag
276
+ // this.$parent.showItem=!this.$parent.showItem
277
+ return this.$refs.paged.$refs.grid.selected
278
+ }
279
+ }
280
+ }
281
+ </script>