safecheck-client 4.0.2-7 → 4.0.2-70

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 (78) hide show
  1. package/build/reports/problems/problems-report.html +663 -0
  2. package/package.json +132 -132
  3. package/src/components/NewDefectList/DefectPaperNew.vue +1184 -1184
  4. package/src/components/android/AndroidNotifiedDeal.vue +417 -0
  5. package/src/components/android/PhoneUpUserinfo.vue +1249 -1249
  6. package/src/components/android/SafeRightTree.vue +218 -218
  7. package/src/components/android/SafecheckDevices.vue +1340 -1340
  8. package/src/components/android/week/CheckResultSimple.vue +258 -0
  9. package/src/components/android/week/FirstWeekCheck.vue +301 -0
  10. package/src/components/android/week/StepHeaderBar.vue +485 -0
  11. package/src/components/android/week/WeekCheck.vue +267 -0
  12. package/src/components/android/week/WeekCheckPaper.vue +274 -0
  13. package/src/components/android/week/WeekCheckPlan.vue +145 -0
  14. package/src/components/android/week/WeekCheckUserInfo.vue +99 -0
  15. package/src/components/checkplan/CheckDetail.vue +1 -1
  16. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  17. package/src/components/paper/safetyledger.vue +198 -0
  18. package/src/components/pc/CheckBook.vue +303 -303
  19. package/src/components/pc/CheckBookArea.vue +146 -146
  20. package/src/components/pc/CheckBookCompany.vue +144 -144
  21. package/src/components/pc/CheckBookDetails.vue +161 -161
  22. package/src/components/pc/CheckBookEntry.vue +60 -60
  23. package/src/components/pc/CheckBookSearchArea.vue +560 -560
  24. package/src/components/pc/CheckBookSearchUnit.vue +229 -229
  25. package/src/components/pc/CheckBookSearchUser.vue +659 -659
  26. package/src/components/pc/CheckBookSearchUserList.vue +674 -674
  27. package/src/components/pc/DefectDeal.vue +22 -7
  28. package/src/components/pc/PaperDefectMain.vue +22 -0
  29. package/src/components/planmanage/checkUserList.vue +1 -1
  30. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  31. package/src/components/report/CheckPlanAreaList.vue +53 -7
  32. package/src/components/report/CheckPlanUserList.vue +12 -2
  33. package/src/filiale/jinhong/android/AddPlanItem.vue +481 -0
  34. package/src/filiale/jinhong/android/AndroidDefectDeal.vue +748 -0
  35. package/src/filiale/jinhong/android/AndroidNotifiedDeal.vue +569 -0
  36. package/src/filiale/jinhong/android/CurrentCreate.vue +63 -21
  37. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  38. package/src/filiale/jinhong/android/SafecheckOrderV.vue +2300 -0
  39. package/src/filiale/jinhong/android.js +5 -1
  40. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  41. package/src/filiale/jinhong/pc/CheckSearchUser.vue +45 -2
  42. package/src/filiale/jinhong/pc/NewCheckpaper.vue +1958 -0
  43. package/src/filiale/jinhong/pc/PaperList.vue +8 -1
  44. package/src/filiale/jinhong/pc/PlanManage.vue +9 -3
  45. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  46. package/src/filiale/jinhong/pc/checkUserList.vue +36 -0
  47. package/src/filiale/jinhong/pc.js +1 -0
  48. package/src/filiale/meihekou/android/CheckPlanList.vue +198 -198
  49. package/src/filiale/meihekou/android/CheckPlanListArea.vue +190 -190
  50. package/src/filiale/meihekou/android/CurrentCreate.vue +16 -0
  51. package/src/filiale/meihekou/android/PaperFeedback.vue +1545 -1542
  52. package/src/filiale/meihekou/android/SafecheckDevices.vue +1343 -1340
  53. package/src/filiale/meihekou/android/SafecheckOrderV.vue +70 -54
  54. package/src/filiale/meihekou/android.js +22 -22
  55. package/src/filiale/meihekou/pc/CheckDetail.vue +217 -0
  56. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  57. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +505 -0
  58. package/src/filiale/meihekou/pc/NewCheckpaper.vue +249 -280
  59. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2051 -2050
  60. package/src/filiale/meihekou/pc/NewCheckpaperTemp.vue +1 -0
  61. package/src/filiale/meihekou/pc/PaperList.vue +9 -23
  62. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  63. package/src/filiale/meihekou/pc/checkUserList.vue +790 -0
  64. package/src/filiale/meihekou/pc.js +19 -15
  65. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  66. package/src/filiale/taiyuan/android/AddPlanItem.vue +1 -0
  67. package/src/filiale/taiyuan/android/SafecheckDevices.vue +1343 -0
  68. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +17 -17
  69. package/src/filiale/taiyuan/android.js +1 -0
  70. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +22 -0
  71. package/src/filiale/xinkang/android/SafecheckDevices.vue +2 -2
  72. package/src/filiale/xinkang/android/SafecheckOrderV.vue +9 -2
  73. package/src/filiale/xinkang/pc/NewCheckpaper.vue +17 -46
  74. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  75. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  76. package/src/filiale/xinliansihui/pc.js +13 -0
  77. package/src/safecheck-android.js +12 -0
  78. package/src/safecheck.js +3 -0
@@ -581,6 +581,7 @@
581
581
  operator: "fail",
582
582
  audit_time: Util.getNowDate(),
583
583
  user_name: this.$login.f.name,
584
+ ename: this.$login.f.ename,
584
585
  id: this.item.id,
585
586
  f_check_item_id: this.item.f_check_item_id
586
587
  }
@@ -345,6 +345,9 @@
345
345
  <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
346
346
  <template partial='head'>
347
347
  <tr>
348
+ <th>
349
+ <nobr>操作</nobr>
350
+ </th>
348
351
  <th>
349
352
  <nobr>回访</nobr>
350
353
  </th>
@@ -406,10 +409,7 @@
406
409
  <nobr>审核人</nobr>
407
410
  </th>
408
411
  <th v-if="$parent.$parent.$parent.safeAudit">
409
- <nobr>审核起始</nobr>
410
- </th>
411
- <th v-if="$parent.$parent.$parent.safeAudit">
412
- <nobr>审核结束</nobr>
412
+ <nobr>审核时间</nobr>
413
413
  </th>
414
414
  <th v-if="$parent.$parent.$parent.safeAudit">
415
415
  <nobr>审核状态</nobr>
@@ -417,15 +417,16 @@
417
417
  <th v-if="$parent.$parent.$parent.safeAudit">
418
418
  <nobr>审核未通过原因</nobr>
419
419
  </th>
420
- <th>
421
- <nobr>操作</nobr>
422
- </th>
420
+
423
421
  <th v-if="$parent.$parent.$parent.audioshow">
424
422
  <nobr>录音</nobr>
425
423
  </th>
426
424
  </tr>
427
425
  </template>
428
426
  <template partial='body'>
427
+ <td style="text-align: center">
428
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
429
+ </td>
429
430
  <td style="text-align: center">
430
431
  <button class="button_spacing button_search-1" v-if="!row.f_is_visit" @click='$parent.$parent.$parent.visit(row)'>回访</button>
431
432
  <button class="button_spacing button_search-1" v-else @click='$parent.$parent.$parent.showVisit(row)'>查看</button>
@@ -450,7 +451,6 @@
450
451
  <td style="text-align: center">{{ row.f_visit_date }}</td>
451
452
  <td style="text-align: center">{{ row.f_visit_people }}</td>
452
453
  <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_by }}</td>
453
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approvedstart_time }}</td>
454
454
  <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_time }}</td>
455
455
  <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
456
456
  {{ row.f_approved ? row.f_approved : '未审核' }}
@@ -458,11 +458,7 @@
458
458
  <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
459
459
  {{row.f_approved_note}}
460
460
  </td>
461
- <td style="text-align: center">
462
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
463
461
 
464
-
465
- </td>
466
462
  <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
467
463
  <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
468
464
  <audio controls="controls" v-if="row.f_recording1_path">
@@ -821,7 +817,7 @@ export default {
821
817
  'f_address': '客户地址',
822
818
  'f_entry_status': '安检状态',
823
819
  'f_usegas': '用气状态',
824
- 'f_defect_content':'有无隐患',
820
+ 'f_defect_text':'有无隐患',
825
821
  'f_offsite_time': '安检时间',
826
822
  'f_checker_name': '安检员',
827
823
  'f_safecheck_type':'安检类型',
@@ -1148,16 +1144,6 @@ export default {
1148
1144
  }
1149
1145
  },
1150
1146
  ready() {
1151
- if(this.safeAudit){
1152
- let oa = {
1153
- 'f_approved_by':'审核人',
1154
- 'f_approvedstart_time':'审核开始时间',
1155
- 'f_approved_time':'审核结束时间',
1156
- 'f_approved':'审核状态',
1157
- 'f_approved_note': '审核备注'
1158
- }
1159
- this.excelHeaders = Object.assign({}, this.excelHeaders, oa)
1160
- }
1161
1147
  this.function = this.f
1162
1148
  //获取气表品牌
1163
1149
  this.getTableBrands()
@@ -0,0 +1,262 @@
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_start_time"
20
+ placeholder='安检起始' style="width:60%"
21
+ :show-rest-button="reset">
22
+ </datepicker>
23
+ </div>
24
+ <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
25
+ <label class="font_normal_body">安检截止</label>
26
+ <datepicker
27
+ :value.sync="$parent.$parent.f_end_time"
28
+ placeholder='安检截止' style="width:60%"
29
+ :show-rest-button="reset">
30
+ </datepicker>
31
+ </div>
32
+ <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}">
33
+ <export-excel :data="$parent.$parent.searchData"
34
+ :field="$parent.$parent.excelHeaders"
35
+ progress="safeGetExportProgress"
36
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="planCount" template-name='安检计划明细' ></export-excel>
37
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
38
+ <div class="button_spacing"
39
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
40
+ @click="$parent.$parent.hiddenr()"></div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </criteria>
45
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
46
+ <template partial='head'>
47
+ <tr>
48
+ <th>安检员</th>
49
+ <th>总入户量</th>
50
+ <th>总到访不遇量</th>
51
+ <th>总拒检量</th>
52
+ <th>安检总量</th>
53
+ <th>计划总数</th>
54
+ <th>入户</th>
55
+ <th>到访不遇</th>
56
+ <th>拒检</th>
57
+ <th>剩余户数</th>
58
+ <th>无计划总数</th>
59
+ <th>无计划入户</th>
60
+ <th>无计划到访不遇</th>
61
+ <th>无计划拒检</th>
62
+ </tr>
63
+ </template>
64
+ <template partial='body'>
65
+ <td style="text-align: center">{{row.f_checker}}</td>
66
+ <td style="text-align: center">{{row.ruhu_total}}</td>
67
+ <td style="text-align: center">{{row.daofang_total}}</td>
68
+ <td style="text-align: center">{{row.jujian_total}}</td>
69
+ <td style="text-align: center">{{row.total_sum}}</td>
70
+ <td style="text-align: center">{{row.plannum}}</td>
71
+ <td style="text-align: center">{{row.ruhu}}</td>
72
+ <td style="text-align: center">{{row.daofang}}</td>
73
+ <td style="text-align: center">{{row.jujian}}</td>
74
+ <td style="text-align: center">{{row.remainder}}</td>
75
+ <td style="text-align: center">{{row.no_plan_num}}</td>
76
+ <td style="text-align: center">{{row.noruhu}}</td>
77
+ <td style="text-align: center">{{row.nodaofang}}</td>
78
+ <td style="text-align: center">{{row.nojujian}}</td>
79
+ </template>
80
+ <template partial="foot">
81
+ <td style="text-align: center"><span><b>合计:</b></span></td>
82
+ <td style="text-align: center">{{model.sums.ruhu_total}}</td>
83
+ <td style="text-align: center">{{model.sums.daofang_total}}</td>
84
+ <td style="text-align: center">{{model.sums.jujian_total}}</td>
85
+ <td style="text-align: center">{{model.sums.total_sum}}</td>
86
+ <td style="text-align: center">{{model.sums.plannum}}</td>
87
+ <td style="text-align: center">{{model.sums.ruhu}}</td>
88
+ <td style="text-align: center">{{model.sums.daofang}}</td>
89
+ <td style="text-align: center">{{model.sums.jujian}}</td>
90
+ <td style="text-align: center">{{model.sums.remainder}}</td>
91
+ <td style="text-align: center">{{model.sums.no_plan_num}}</td>
92
+ <td style="text-align: center">{{model.sums.noruhu}}</td>
93
+ <td style="text-align: center">{{model.sums.nodaofang}}</td>
94
+ <td style="text-align: center">{{model.sums.nojujian}}</td>
95
+ </template>
96
+ </data-grid>
97
+ </criteria-paged>
98
+ </div>
99
+ </template>
100
+ <script>
101
+ import {PagedList} from 'vue-client'
102
+
103
+
104
+ export default {
105
+ title: '安检计划查询',
106
+ data() {
107
+ let options = []
108
+ let year = (new Date()).getFullYear()
109
+ for (let i = year - 8; i <= year + 1; i++)
110
+ options.push({label: i + '', value: i + ''})
111
+ let model = new PagedList('api/af-safecheck/sql/planCount', 20, {
112
+ f_filialeids: 'this.f_filialeids',
113
+ f_start_time: 'this.f_start_time',
114
+ condition1:'this.condition1',
115
+ condition2:'this.condition2',
116
+ condition3:'this.condition3',
117
+ f_end_time: 'this.f_end_time'
118
+ }, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
119
+ model.f_filialeids = '('+this.$login.f.orgid+')'
120
+ return {
121
+ excelHeaders:{
122
+ 'f_checker': '安检员',
123
+ 'plannum': '计划总数',
124
+ // 'yrj': '计划中已入户',
125
+ // 'wrj': '计划中未入户',
126
+ 'ruhu': '入户',
127
+ 'jujian': '拒检',
128
+ 'daofang': '到访不遇',
129
+ 'no_plan_num': '无计划总数',
130
+ 'noruhu': '无计划入户',
131
+ 'nojujian': '无计划拒检',
132
+ 'nodaofang': '无计划到访不遇'
133
+ },
134
+ searchData:{
135
+ condition:"1=1",
136
+ condition1:"1=1",
137
+ condition2:"1=1",
138
+ condition3:"and 1=1",
139
+ f_plan_year:year[0],
140
+ f_checker:'',
141
+ f_filialeids:'('+this.$login.f.orgid+')',
142
+ f_start_time:'',
143
+ f_end_time:''
144
+ },
145
+ checker: this.$login.f,
146
+ checkers: [],
147
+ checkersname: [],
148
+ checkStates: this.$appdata.getParam('安检状态'),
149
+ f: this.$login.f,
150
+ criteriaShow: false,
151
+ model: model,
152
+ c_year_list: options,
153
+ f_check_start:'',
154
+ f_check_end: '',
155
+ f_start_time:'',
156
+ f_end_time:''
157
+ }
158
+ },
159
+ methods: {
160
+ hidden() {
161
+ this.criteriaShow = !this.criteriaShow
162
+ },
163
+ hiddenr() {
164
+ this.$parent.showItem = !this.$parent.showItem
165
+ },
166
+ search(args) {
167
+ let tempStr = args.condition
168
+ let condition1 =tempStr
169
+ let condition2 =tempStr
170
+ let condition3 = ' and 1=1 '
171
+ if (this.f_check_start) {
172
+ condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
173
+ condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
174
+ }
175
+ if (this.f_check_end) {
176
+ condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
177
+ condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
178
+ }
179
+ if(this.f_start_time){
180
+ condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
181
+ }
182
+ if (this.f_end_time){
183
+ condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
184
+ }
185
+ if (this.$refs.paged.$refs.cri.model.f_checker_id){
186
+ condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
187
+ condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
188
+ }
189
+ this.model.f_start_time=this.f_start_time
190
+ this.model.f_end_time=this.f_end_time
191
+ this.model.condition1=condition1
192
+ this.model.condition2=condition2
193
+ this.model.condition3=condition3
194
+
195
+ this.searchData.condition1=condition1
196
+ this.searchData.condition2=condition2
197
+ this.searchData.condition3=condition3
198
+
199
+ this.model.search(args.condition, args.model)
200
+ },
201
+ getRes(obj){
202
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
203
+ //tag
204
+ }
205
+ },
206
+ ready() {
207
+ this.model.id = this.$login.f.id
208
+ this.model.f_subcompany = this.$login.f.f_fengongsi
209
+ this.model.f_filialeid = this.$login.f.orgid
210
+ },
211
+
212
+ watch: {
213
+ 'model.condition'(val) {
214
+ if(val){
215
+ this.searchData.condition = val
216
+ }
217
+ },
218
+ 'model.f_checker'(val) {
219
+ if(val){
220
+ this.searchData.f_checker = val
221
+ }
222
+ },
223
+ 'f_start_time'(val) {
224
+ if(val){
225
+ this.searchData.f_start_time = val
226
+ }
227
+ },
228
+ 'f_end_time'(val) {
229
+ if(val){
230
+ this.searchData.f_end_time = val
231
+ }
232
+ },
233
+ 'checker'() {
234
+ // //tag
235
+ //tag
236
+ this.model.chosenOrg = this.checker[0]
237
+ },
238
+ 'model.rows.length'() {
239
+ // 如果查询无结果,将合计置为0
240
+ if(this.model.rows.length < 1 &&this. model.sums){
241
+ this.model.sums.yrj = 0
242
+ this.model.sums.no_plan_num = 0
243
+ this.model.sums.wrj = 0
244
+ this.model.sums.ruhu = 0
245
+ this.model.sums.jujian = 0
246
+ this.model.sums.daofang = 0
247
+ this.model.sums.ruhu_total=0
248
+ this.model.sums.daofang_total=0
249
+ this.model.sums.jujian_total=0
250
+ this.model.sums.total_sum=0
251
+ }
252
+ }
253
+ },
254
+ computed: {
255
+ selected() {
256
+ // //tag
257
+ // this.$parent.showItem=!this.$parent.showItem
258
+ return this.$refs.paged.$refs.grid.selected
259
+ }
260
+ }
261
+ }
262
+ </script>