safecheck-client 3.0.33-3 → 3.0.33-30

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 (38) hide show
  1. package/package.json +133 -133
  2. package/src/App.vue +2 -2
  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/bayan/android/AddPlanItem.vue +5 -1
  7. package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
  8. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  9. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  10. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  11. package/src/filiale/fugou/pc/CheckBook.vue +303 -301
  12. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -161
  13. package/src/filiale/fugou/pc/CheckBookEntry.vue +94 -66
  14. package/src/filiale/fugou/pc/CheckBookList.vue +366 -366
  15. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -560
  16. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +809 -651
  17. package/src/filiale/fugou/pc/CheckBookUser.vue +47 -44
  18. package/src/filiale/fugou/pc/PlanManage.vue +27 -8
  19. package/src/filiale/fugou/pc/checkPlanList.vue +371 -371
  20. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  21. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  22. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  23. package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
  24. package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
  25. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  26. package/src/filiale/wensu/pc/DefectPaperNew.vue +1 -1
  27. package/src/filiale/wensu/pc/checkUserList.vue +8 -8
  28. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
  29. package/src/filiale/wuhai/pc/PaperList.vue +785 -0
  30. package/src/filiale/wuhai/pc.js +1 -0
  31. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  32. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  33. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  34. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +114 -207
  35. package/src/filiale/yongzhou/pc/safeDetail.vue +446 -248
  36. package/src/filiale/yongzhou/pc.js +3 -0
  37. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
  38. package/src/main.js +1 -1
@@ -0,0 +1,364 @@
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.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 :data="$parent.$parent.searchData"
82
+ :field="$parent.$parent.excelHeaders"
83
+ progress="safeGetExportProgress"
84
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planCount" template-name='安检计划明细' ></export-excel-safe>
85
+ <button id="btnaaa" type="button" class="button_search button_spacing" @click="search()">查询</button>
86
+ <!--<div class="button_spacing"-->
87
+ <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
88
+ <!--@click="$parent.$parent.hidden()">-->
89
+ <!--</div>-->
90
+ <div class="button_spacing"
91
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
92
+ @click="$parent.$parent.hiddenr()"></div>
93
+ </div>
94
+ </div>
95
+ <div class="row">
96
+ <div class="col-sm-12">
97
+ <label class="control-label" style="color: #c7254e">汇 总 项</label>
98
+ <input type="checkbox" id="f_residential_area" value="f_residential_area" v-model="$parent.$parent.nameForSql"/>
99
+ <label for="f_residential_area">小区名称</label>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </criteria>
104
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
105
+ <template partial='head'>
106
+ <tr>
107
+ <th>
108
+ <nobr>序号</nobr>
109
+ </th>
110
+ <th v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')"><nobr>小区名称</nobr></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
+ </tr>
125
+ </template>
126
+ <template partial='body'>
127
+ <td style="text-align:center;">{{$index + 1}}</td>
128
+ <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')">{{row.f_residential_area}}</td>
129
+ <td style="text-align: center">{{row.f_checker}}</td>
130
+ <td style="text-align: center">{{row.ruhu_total}}</td>
131
+ <td style="text-align: center">{{row.daofang_total}}</td>
132
+ <td style="text-align: center">{{row.jujian_total}}</td>
133
+ <td style="text-align: center">{{row.total_sum}}</td>
134
+ <td style="text-align: center">{{row.plannum}}</td>
135
+ <td style="text-align: center">{{row.ruhu}}</td>
136
+ <td style="text-align: center">{{row.daofang}}</td>
137
+ <td style="text-align: center">{{row.jujian}}</td>
138
+ <td style="text-align: center">{{row.no_plan_num}}</td>
139
+ <td style="text-align: center">{{row.noruhu}}</td>
140
+ <td style="text-align: center">{{row.nodaofang}}</td>
141
+ <td style="text-align: center">{{row.nojujian}}</td>
142
+ </template>
143
+ <template partial="foot">
144
+ <td style="text-align: center"><span><b>合计:</b></span></td>
145
+ <td style="text-align:center" v-if="$parent.$parent.$parent.nameForSql.includes('f_residential_area')"></td>
146
+ <td style="text-align:center;"></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
+ </template>
160
+ </data-grid>
161
+ </criteria-paged>
162
+ </div>
163
+ </template>
164
+ <script>
165
+ import {PagedList} from 'vue-client'
166
+
167
+
168
+ export default {
169
+ title: '安检计划查询',
170
+ data() {
171
+ let options = []
172
+ let year = (new Date()).getFullYear()
173
+ for (let i = year - 8; i <= year + 1; i++)
174
+ options.push({label: i + '', value: i + ''})
175
+ let model = new PagedList('rs/sql/planCount', 20, {
176
+ f_filialeids: 'this.f_filialeids',
177
+ f_start_time: 'this.f_start_time',
178
+ condition1:'this.condition1',
179
+ condition2:'this.condition2',
180
+ condition3:'this.condition3',
181
+ otheritem:'this.otheritem',
182
+ f_end_time: 'this.f_end_time'
183
+ }, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
184
+ model.f_filialeids = '('+this.$login.f.orgid+')'
185
+ return {
186
+ excelHeaders:{
187
+ 'f_checker': '安检员',
188
+ 'plannum': '计划总数',
189
+ // 'yrj': '计划中已入户',
190
+ // 'wrj': '计划中未入户',
191
+ 'ruhu': '入户',
192
+ 'jujian': '拒检',
193
+ 'daofang': '到访不遇',
194
+ 'no_plan_num': '无计划总数',
195
+ 'noruhu': '无计划入户',
196
+ 'nojujian': '无计划拒检',
197
+ 'nodaofang': '无计划到访不遇'
198
+ },
199
+ nameForSql: [],
200
+ groupNameForSql: '',
201
+ searchData:{
202
+ condition:"1=1",
203
+ condition1:"1=1",
204
+ condition2:"1=1",
205
+ condition3:"and 1=1",
206
+ otheritem:'',
207
+ f_plan_year:year[0],
208
+ f_checker:'',
209
+ f_filialeids:'('+this.$login.f.orgid+')',
210
+ f_start_time:'',
211
+ f_end_time:''
212
+ },
213
+ checker: this.$login.f,
214
+ checkers: [],
215
+ checkersname: [],
216
+ checkStates: this.$appdata.getParam('安检状态'),
217
+ f: this.$login.f,
218
+ criteriaShow: false,
219
+ model: model,
220
+ c_year_list: options,
221
+ f_check_start:'',
222
+ f_check_end: '',
223
+ f_start_time:'',
224
+ f_end_time:''
225
+ }
226
+ },
227
+ methods: {
228
+ hidden() {
229
+ this.criteriaShow = !this.criteriaShow
230
+ },
231
+ hiddenr() {
232
+ this.$parent.showItem = !this.$parent.showItem
233
+ },
234
+ search(args) {
235
+ if (this.nameForSql.length >0 ){
236
+ this.excelHeaders = {
237
+ 'f_residential_area':'小区名称',
238
+ 'f_checker': '安检员',
239
+ 'plannum': '计划总数',
240
+ 'ruhu': '入户',
241
+ 'jujian': '拒检',
242
+ 'daofang': '到访不遇',
243
+ 'no_plan_num': '无计划总数',
244
+ 'noruhu': '无计划入户',
245
+ 'nojujian': '无计划拒检',
246
+ 'nodaofang': '无计划到访不遇'
247
+ }
248
+ this.groupNameForSql = `,${this.nameForSql.join().trim()}`
249
+ }else {
250
+ this.excelHeaders = {
251
+ 'f_checker': '安检员',
252
+ 'plannum': '计划总数',
253
+ 'ruhu': '入户',
254
+ 'jujian': '拒检',
255
+ 'daofang': '到访不遇',
256
+ 'no_plan_num': '无计划总数',
257
+ 'noruhu': '无计划入户',
258
+ 'nojujian': '无计划拒检',
259
+ 'nodaofang': '无计划到访不遇'
260
+ }
261
+ this.groupNameForSql = ``
262
+ }
263
+ debugger
264
+ let tempStr = args.condition
265
+ let condition1 =tempStr
266
+ let condition2 =tempStr
267
+ let condition3 = ' and 1=1 '
268
+ if (this.f_check_start) {
269
+ condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
270
+ condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
271
+ }
272
+ if (this.f_check_end) {
273
+ condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
274
+ condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
275
+ }
276
+ if(this.f_start_time){
277
+ condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
278
+ }
279
+ if (this.f_end_time){
280
+ condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
281
+ }
282
+ if (this.$refs.paged.$refs.cri.model.f_checker_id){
283
+ condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
284
+ condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
285
+ }
286
+ this.model.f_start_time=this.f_start_time
287
+ this.model.f_end_time=this.f_end_time
288
+ this.model.condition1=condition1
289
+ this.model.condition2=condition2
290
+ this.model.condition3=condition3
291
+ this.model.otheritem = this.groupNameForSql
292
+ this.searchData.condition1=condition1
293
+ this.searchData.condition2=condition2
294
+ this.searchData.condition3=condition3
295
+ this.searchData.otheritem = this.groupNameForSql
296
+ this.model.search(args.condition, args.model)
297
+ },
298
+ getRes(obj){
299
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
300
+ //tag
301
+ }
302
+ },
303
+ ready() {
304
+ this.model.id = this.$login.f.id
305
+ this.model.f_subcompany = this.$login.f.f_fengongsi
306
+ this.model.f_filialeid = this.$login.f.orgid
307
+ },
308
+
309
+ watch: {
310
+ 'nameForSql' () {
311
+ var e = document.createEvent("MouseEvents");
312
+ e.initEvent("click", true, true);
313
+ document.getElementById("btnaaa").dispatchEvent(e);
314
+ },
315
+ 'model.condition'(val) {
316
+ if(val){
317
+ this.searchData.condition = val
318
+ }
319
+ },
320
+ 'model.f_checker'(val) {
321
+ if(val){
322
+ this.searchData.f_checker = val
323
+ }
324
+ },
325
+ 'f_start_time'(val) {
326
+ if(val){
327
+ this.searchData.f_start_time = val
328
+ }
329
+ },
330
+ 'f_end_time'(val) {
331
+ if(val){
332
+ this.searchData.f_end_time = val
333
+ }
334
+ },
335
+ 'checker'() {
336
+ // //tag
337
+ //tag
338
+ this.model.chosenOrg = this.checker[0]
339
+ },
340
+ 'model.rows.length'() {
341
+ // 如果查询无结果,将合计置为0
342
+ if(this.model.rows.length < 1 &&this. model.sums){
343
+ this.model.sums.yrj = 0
344
+ this.model.sums.no_plan_num = 0
345
+ this.model.sums.wrj = 0
346
+ this.model.sums.ruhu = 0
347
+ this.model.sums.jujian = 0
348
+ this.model.sums.daofang = 0
349
+ this.model.sums.ruhu_total=0
350
+ this.model.sums.daofang_total=0
351
+ this.model.sums.jujian_total=0
352
+ this.model.sums.total_sum=0
353
+ }
354
+ }
355
+ },
356
+ computed: {
357
+ selected() {
358
+ // //tag
359
+ // this.$parent.showItem=!this.$parent.showItem
360
+ return this.$refs.paged.$refs.grid.selected
361
+ }
362
+ }
363
+ }
364
+ </script>