safecheck-client 4.0.2-3 → 4.0.2-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 (35) hide show
  1. package/package.json +2 -2
  2. package/src/components/android/week/CheckResultSimple.vue +222 -0
  3. package/src/components/android/week/FirstWeekCheck.vue +236 -0
  4. package/src/components/android/week/StepHeaderBar.vue +323 -0
  5. package/src/components/android/week/WeekCheck.vue +151 -0
  6. package/src/components/android/week/WeekCheckPaper.vue +151 -0
  7. package/src/components/checkplan/SelectCheckPlan.vue +39 -0
  8. package/src/components/paper/safetyledger.vue +194 -0
  9. package/src/components/pc/CheckBook.vue +1 -1
  10. package/src/components/planmanage/PlanManage.vue +902 -902
  11. package/src/components/planmanage/checkUserList.vue +1 -1
  12. package/src/components/querycheckpaper/CheckSearchUser.vue +2 -1
  13. package/src/components/report/CheckByPlan.vue +1 -1
  14. package/src/components/report/CheckPlanAreaList.vue +45 -2
  15. package/src/filiale/jinhong/android/CurrentCreate.vue +6 -3
  16. package/src/filiale/jinhong/android/PhoneInsurancePurchaseDetail.vue +28 -3
  17. package/src/filiale/jinhong/pc/CheckBookList.vue +28 -18
  18. package/src/filiale/jinhong/pc/PaperList.vue +1 -1
  19. package/src/filiale/jinhong/pc/checkPlanList.vue +73 -24
  20. package/src/filiale/meihekou/android/CurrentCreate.vue +1038 -1038
  21. package/src/filiale/meihekou/android/SafecheckDevices.vue +6 -3
  22. package/src/filiale/meihekou/android/SafecheckOrderV.vue +9 -8
  23. package/src/filiale/meihekou/pc/CheckDetail.vue +208 -0
  24. package/src/filiale/meihekou/pc/CheckPlan.vue +52 -0
  25. package/src/filiale/meihekou/pc/CheckPlanAreaList.vue +504 -0
  26. package/src/filiale/meihekou/pc/SelectCheckPlan.vue +262 -0
  27. package/src/filiale/meihekou/pc.js +3 -0
  28. package/src/filiale/qingjian/pc/SecurityCheckCoordinates.vue +2 -2
  29. package/src/filiale/xinkang/android/SafecheckOrderV.vue +1 -1
  30. package/src/filiale/xinliansihui/pc/PaperList.vue +814 -0
  31. package/src/filiale/xinliansihui/pc/PaperVisitMain.vue +206 -0
  32. package/src/filiale/xinliansihui/pc.js +13 -0
  33. package/src/main.js +33 -33
  34. package/src/safecheck-android.js +10 -0
  35. package/src/safecheck.js +3 -0
@@ -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>
@@ -6,7 +6,10 @@ let specialComp = {
6
6
  'new-check-paper': (resolve) => { require(['./pc/NewCheckpaper'], resolve) },
7
7
  'new-check-paper-new': (resolve) => { require(['./pc/NewCheckpaperNew'], resolve) },
8
8
  'new-check-paper-temp': (resolve) => { require(['./pc/NewCheckpaperTemp'], resolve) },
9
+ 'check-plan-area-list': (resolve) => { require(['./pc/CheckPlanAreaList'], resolve) },
9
10
  'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
11
+ 'check-plan': (resolve) => { require(['./pc/CheckPlan'], resolve) },
12
+ 'select-check-plan-new ': (resolve) => { require(['./pc/SelectCheckPlan'], resolve) },
10
13
  }
11
14
  exports.specialComp = specialComp
12
15
 
@@ -114,9 +114,9 @@ export default {
114
114
  this.level3 = []
115
115
  this.problems = []
116
116
  arr.data.forEach((defect) => {
117
- if (defect.f_entry_status == '拒检' ) {
117
+ if (defect.f_last_check_state == '拒检' ) {
118
118
  this.level1.push(defect)
119
- } else if (defect.f_entry_status == '到访不遇' ) {
119
+ } else if (defect.f_last_check_state == '到访不遇' ) {
120
120
  this.level3.push(defect)
121
121
  } else {
122
122
  this.problems.push(defect)
@@ -186,7 +186,7 @@ export default {
186
186
  "气量异常差值(方)":{"index":15,"type":"number","readonly": true,"checkmust": false,isshow:true},
187
187
  "金额异常差值":{"index":15,"type":"number","readonly": true,isshow:true},
188
188
  // "是否自闭阀 (状态)":{"index":15,"type":"string","readonly": true,isshow:false},
189
- "是否自闭阀":{"index":16,"type":"selector","options":[{"data":"是","isdefault":false},{"data":"否","isdefault":false,"isdefect":true,"level":"一级"}],"checkmust": true,},
189
+ "是否自闭阀":{"index":16,"type":"selector","options":[{"data":"是","isdefault":true},{"data":"否","isdefault":false,"isdefect":true,"level":"一级"}],"checkmust": false,},
190
190
  "现场问题":{"index":17,"type":"string","readonly": false,isshow:true},
191
191
  "表箱号":{"index":18,"type":"string","readonly": true,isshow:true}
192
192
  }