safecheck-client 3.0.32 → 3.0.33-2

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 (88) hide show
  1. package/package.json +133 -133
  2. package/src/App.vue +31 -31
  3. package/src/assets//345/215/225/345/205/203/345/217/267.png +0 -0
  4. package/src/assets//345/234/260/345/235/200.png +0 -0
  5. package/src/assets//345/247/223/345/220/215.png +0 -0
  6. package/src/assets//345/260/217/345/214/272.png +0 -0
  7. package/src/assets//345/260/217/345/214/272/350/223/235/350/211/262.png +0 -0
  8. package/src/assets//345/272/225/346/225/260.png +0 -0
  9. package/src/assets//346/210/267/347/274/226/345/217/267.png +0 -0
  10. package/src/assets//346/245/274/345/217/267.png +0 -0
  11. package/src/assets//346/245/274/345/261/202.png +0 -0
  12. package/src/assets//350/241/250/347/261/273/345/236/213.png +0 -0
  13. package/src/assets//351/227/250/347/211/214/345/217/267.png +0 -0
  14. package/src/components/android/AndroidDefectDeal.vue +5 -5
  15. package/src/components/android/PhoneUpUserinfo.vue +6 -0
  16. package/src/components/android/SafecheckOrderV.vue +4 -1
  17. package/src/components/map/checkScreen.vue +1 -1
  18. package/src/components/planmanage/checkPlanList.vue +3 -3
  19. package/src/components/rongcheng/AspiratedDevices.vue +34 -1
  20. package/src/components/rongcheng/DefectPaper.vue +4 -1
  21. package/src/components/rongcheng/SafecheckDevices.vue +34 -1
  22. package/src/components/rongcheng/SafecheckOrderV.vue +1 -0
  23. package/src/components/rongcheng/SafecheckUserInfo.vue +17 -0
  24. package/src/filiale/Util.js +7 -0
  25. package/src/filiale/ankangyihua/android/AndroidDefectDeal.vue +1 -1
  26. package/src/filiale/ankangyihua/android/CurrentCreate.vue +1 -1
  27. package/src/filiale/bayan/pc/NewCheckpaper.vue +1 -1
  28. package/src/filiale/dexin/android/CasualSave.vue +1050 -0
  29. package/src/filiale/dexin/android/SafecheckDevices.vue +4 -4
  30. package/src/filiale/dexin/android/SafecheckOrderV.vue +2407 -2355
  31. package/src/filiale/dexin/android/WebMeterOpen.vue +377 -0
  32. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +225 -0
  33. package/src/filiale/dexin/android.js +4 -1
  34. package/src/filiale/fugou/pc/AddToCheckBook.vue +160 -0
  35. package/src/filiale/fugou/pc/CheckBook.vue +301 -0
  36. package/src/filiale/fugou/pc/CheckBookAll.vue +67 -0
  37. package/src/filiale/fugou/pc/CheckBookArea.vue +146 -0
  38. package/src/filiale/fugou/pc/CheckBookCompany.vue +144 -0
  39. package/src/filiale/fugou/pc/CheckBookDetails.vue +161 -0
  40. package/src/filiale/fugou/pc/CheckBookEntry.vue +66 -0
  41. package/src/filiale/fugou/pc/CheckBookList.vue +366 -0
  42. package/src/filiale/fugou/pc/CheckBookSearchArea.vue +560 -0
  43. package/src/filiale/fugou/pc/CheckBookSearchUnit.vue +229 -0
  44. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +651 -0
  45. package/src/filiale/fugou/pc/CheckBookSearchUserList.vue +674 -0
  46. package/src/filiale/fugou/pc/CheckBookUser.vue +101 -0
  47. package/src/filiale/fugou/pc/DefectPaperNew.vue +1 -1
  48. package/src/filiale/fugou/pc/PaperDefectMain.vue +22 -1
  49. package/src/filiale/fugou/pc/PlanManage.vue +1007 -0
  50. package/src/filiale/fugou/pc/checkPlanList.vue +371 -0
  51. package/src/filiale/fugou/pc/checkUserList.vue +20 -120
  52. package/src/filiale/fugou/pc.js +60 -5
  53. package/src/filiale/jingyang/android/AddPlanItem.vue +246 -246
  54. package/src/filiale/jingyang/android/CurrentCreate.vue +18 -18
  55. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2281 -2281
  56. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +1 -0
  57. package/src/filiale/jingyang/android.js +4 -0
  58. package/src/filiale/kelai/android/SafecheckDevices.vue +1 -1
  59. package/src/filiale/qianneng/pc/NewCheckpaper.vue +1 -1
  60. package/src/filiale/qingjian/android/SafecheckOrderV.vue +1 -0
  61. package/src/filiale/qingjian/android/SafecheckUserInfo.vue +4 -0
  62. package/src/filiale/rongchuang/android/SafecheckDevices.vue +1680 -0
  63. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +975 -488
  64. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +111 -48
  65. package/src/filiale/shanxian/android/SafecheckOrderV.vue +1 -1
  66. package/src/filiale/shexian/pc/PaperList.vue +822 -0
  67. package/src/filiale/shexian/pc.js +1 -0
  68. package/src/filiale/tongchuan/pc/CheckPlanCountChartArea.vue +1 -1
  69. package/src/filiale/wensu/android/CurrentCreate.vue +1 -1
  70. package/src/filiale/wensu/pc/CheckSearchUser.vue +58 -53
  71. package/src/filiale/wensu/pc/DefectPaperNew.vue +15 -9
  72. package/src/filiale/wensu/pc/PlanManage.vue +831 -0
  73. package/src/filiale/wensu/pc/PrintMaterialBill.vue +28 -11
  74. package/src/filiale/wensu/pc/RoleSelector.vue +2 -2
  75. package/src/filiale/wensu/pc/SelectCheckPlan.vue +208 -168
  76. package/src/filiale/wensu/pc/checkUserList.vue +5 -1
  77. package/src/filiale/wensu/pc.js +20 -19
  78. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +6 -2
  79. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +3 -3
  80. package/src/filiale/yangchunboneng/android/SafecheckUserInfo.vue +1 -1
  81. package/src/filiale/yangchunboneng/pc/CheckBookUser.vue +3 -3
  82. package/src/filiale/yongzhou/pc/safeStatistics.vue +1 -0
  83. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +1 -0
  84. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +3 -0
  85. package/src/filiale/zhongyi/pc/DefectListNew.vue +6 -6
  86. package/src/main.js +33 -33
  87. package/static/stretch_bottom.png +0 -0
  88. package/static/stretch_top.png +0 -0
@@ -35,21 +35,33 @@
35
35
  </tr>
36
36
  <tr>
37
37
  <td>安检员</td>
38
+ <td>总入户量</td>
39
+ <td>总到访不遇量</td>
40
+ <td>总拒检量</td>
41
+ <td>安检总量</td>
38
42
  <td>计划总数</td>
39
- <td>已检总数</td>
40
- <td>计划中已入户</td>
41
- <td>计划中未入户</td>
42
- <td>拒检</td>
43
+ <td>入户</td>
43
44
  <td>到访不遇</td>
45
+ <td>拒检</td>
46
+ <td>无计划总数</td>
47
+ <td>无计划入户</td>
48
+ <td>无计划到访不遇</td>
49
+ <td>无计划拒检</td>
44
50
  </tr>
45
51
  <tr v-for="item in data">
46
- <td>{{ item.f_checker }}</td>
47
- <td>{{ item.plannum }}</td>
48
- <td>{{ item.yijiansum }}</td>
49
- <td>{{ item.yrj }}</td>
50
- <td>{{ item.wrj }}</td>
51
- <td>{{ item.jujian }}</td>
52
- <td>{{ item.daofang }}</td>
52
+ <td style="text-align: center">{{item.f_checker}}</td>
53
+ <td style="text-align: center">{{item.ruhu_total}}</td>
54
+ <td style="text-align: center">{{item.daofang_total}}</td>
55
+ <td style="text-align: center">{{item.jujian_total}}</td>
56
+ <td style="text-align: center">{{item.total_sum}}</td>
57
+ <td style="text-align: center">{{item.plannum}}</td>
58
+ <td style="text-align: center">{{item.ruhu}}</td>
59
+ <td style="text-align: center">{{item.daofang}}</td>
60
+ <td style="text-align: center">{{item.jujian}}</td>
61
+ <td style="text-align: center">{{item.no_plan_num}}</td>
62
+ <td style="text-align: center">{{item.noruhu}}</td>
63
+ <td style="text-align: center">{{item.nodaofang}}</td>
64
+ <td style="text-align: center">{{item.nojujian}}</td>
53
65
  </tr>
54
66
  <tr >
55
67
  <td></td>
@@ -60,6 +72,11 @@
60
72
  <td></td>
61
73
  <td></td>
62
74
  <td></td>
75
+ <td></td>
76
+ <td></td>
77
+ <td></td>
78
+ <td></td>
79
+ <td></td>
63
80
  </tr>
64
81
  <tr>
65
82
  </tr>
@@ -120,9 +120,9 @@ import {HttpResetClass} from 'vue-client'
120
120
  this.allUsers.forEach(user => {
121
121
  // if (resids.indexOf(user.orgid) != -1) {
122
122
  // if (typeof user.name == "string"){
123
- if(user.state == '在职'){
123
+
124
124
  this.users.push({label: user.name, value: user.name})
125
- }
125
+
126
126
 
127
127
  // }
128
128
  // }
@@ -10,8 +10,7 @@
10
10
  role-lable="安&ensp;检&ensp;员"
11
11
  @re-res="$parent.$parent.getRes"
12
12
  :value.sync="model.f_checker_id"
13
- v-model="model.f_checker_id"
14
- condition="tcp.f_checker = '{}'">
13
+ v-model="model.f_checker_id">
15
14
  </role-selector-safe>
16
15
  </div>
17
16
  <div :class="{'form-group col-sm-3':$parent.$parent.$parent.showItem,'form-group col-sm-2':!$parent.$parent.$parent.showItem}">
@@ -59,39 +58,39 @@
59
58
  </datepicker>
60
59
  </div>
61
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">-->
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>-->
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>-->
70
69
  <!--</div>-->
71
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">-->
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>-->
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>-->
80
79
  <!--</div>-->
81
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}">
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>
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>
86
85
  <button type="button" class="button_search button_spacing" @click="search()">查询</button>
87
86
  <button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
88
87
  @click="$parent.$parent.print($parent.model.rows)">
89
88
  打印
90
89
  </button>
91
90
  <!--<div class="button_spacing"-->
92
- <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
93
- <!--@click="$parent.$parent.hidden()">-->
94
- <!--</div>-->
91
+ <!--:class="{'button_shrink_top':$parent.criteriaShow,'button_shrink_bottom':!$parent.criteriaShow}"-->
92
+ <!--@click="$parent.$parent.hidden()">-->
93
+ <!--</div>-->
95
94
  <div class="button_spacing"
96
95
  :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
97
96
  @click="$parent.$parent.hiddenr()"></div>
@@ -103,36 +102,52 @@
103
102
  <template partial='head'>
104
103
  <tr>
105
104
  <th>安检员</th>
105
+ <th>总入户量</th>
106
+ <th>总到访不遇量</th>
107
+ <th>总拒检量</th>
108
+ <th>安检总量</th>
106
109
  <th>计划总数</th>
107
- <th>已检总数</th>
108
- <th>计划中未入户</th>
109
- <th>计划中已入户</th>
110
+ <th>入户</th>
110
111
  <th>到访不遇</th>
111
112
  <th>拒检</th>
113
+ <th>无计划总数</th>
114
+ <th>无计划入户</th>
115
+ <th>无计划到访不遇</th>
116
+ <th>无计划拒检</th>
112
117
  </tr>
113
118
  </template>
114
119
  <template partial='body'>
115
120
  <td style="text-align: center">{{row.f_checker}}</td>
121
+ <td style="text-align: center">{{row.ruhu_total}}</td>
122
+ <td style="text-align: center">{{row.daofang_total}}</td>
123
+ <td style="text-align: center">{{row.jujian_total}}</td>
124
+ <td style="text-align: center">{{row.total_sum}}</td>
116
125
  <td style="text-align: center">{{row.plannum}}</td>
117
- <td style="text-align: center">{{row.yijiansum}}</td>
118
- <td style="text-align: center">{{row.wrj}}</td>
119
- <td style="text-align: center">{{row.yrj}}</td>
126
+ <td style="text-align: center">{{row.ruhu}}</td>
120
127
  <td style="text-align: center">{{row.daofang}}</td>
121
128
  <td style="text-align: center">{{row.jujian}}</td>
122
-
129
+ <td style="text-align: center">{{row.no_plan_num}}</td>
130
+ <td style="text-align: center">{{row.noruhu}}</td>
131
+ <td style="text-align: center">{{row.nodaofang}}</td>
132
+ <td style="text-align: center">{{row.nojujian}}</td>
123
133
  </template>
124
134
  <template partial="foot">
125
135
  <td style="text-align: center"><span><b>合计:</b></span></td>
136
+ <td style="text-align: center">{{model.sums.ruhu_total}}</td>
137
+ <td style="text-align: center">{{model.sums.daofang_total}}</td>
138
+ <td style="text-align: center">{{model.sums.jujian_total}}</td>
139
+ <td style="text-align: center">{{model.sums.total_sum}}</td>
126
140
  <td style="text-align: center">{{model.sums.plannum}}</td>
127
- <td style="text-align: center">{{model.sums.yijiansum}}</td>
128
- <td style="text-align: center">{{model.sums.wrj}}</td>
129
- <td style="text-align: center">{{model.sums.yrj}}</td>
141
+ <td style="text-align: center">{{model.sums.ruhu}}</td>
130
142
  <td style="text-align: center">{{model.sums.daofang}}</td>
131
143
  <td style="text-align: center">{{model.sums.jujian}}</td>
144
+ <td style="text-align: center">{{model.sums.no_plan_num}}</td>
145
+ <td style="text-align: center">{{model.sums.noruhu}}</td>
146
+ <td style="text-align: center">{{model.sums.nodaofang}}</td>
147
+ <td style="text-align: center">{{model.sums.nojujian}}</td>
132
148
  </template>
133
149
  </data-grid>
134
150
  </criteria-paged>
135
-
136
151
  <modal :show.sync="showcheckmsg">
137
152
  <div slot="modal-header" class="modal-header">
138
153
  <span class="modal-title font">
@@ -150,153 +165,178 @@
150
165
 
151
166
  </div>
152
167
  </modal>
153
-
154
168
  </div>
155
-
156
169
  </template>
157
170
  <script>
158
- import {PagedList} from 'vue-client'
159
- import co from 'co'
160
- import Vue from 'vue'
161
- import * as Util from "../../../components/Util";
171
+ import {PagedList} from 'vue-client'
162
172
 
163
173
 
164
- export default {
165
- title: '安检计划查询',
166
- data() {
167
- let options = []
168
- let year = (new Date()).getFullYear()
169
- for (let i = year - 8; i <= year + 1; i++)
170
- options.push({label: i + '', value: i + ''})
171
- let model = new PagedList('rs/sql/planCount', 20, {
172
- f_filialeids: 'this.f_filialeids',
173
- f_start_time: 'this.f_start_time',
174
- f_end_time: 'this.f_end_time'
175
- }, {plannum: '', yrj: '', wrj: '',yijiansum: '', jujian: '', daofang: ''})
176
- model.f_filialeids = '('+this.$login.f.orgid+')'
177
- return {
178
- excelHeaders:{
179
- 'f_checker': '安检员',
180
- 'plannum': '计划总数',
181
- 'yrj': '计划中已入户',
182
- 'wrj': '计划中未入户',
183
- 'yijiansum': '已检总数',
184
- 'jujian': '拒检',
185
- 'daofang': '到访不遇'
186
- },
187
- searchData:{
188
- condition:"1=1",
189
- f_plan_year:year[0],
190
- f_checker:'',
191
- f_filialeids:'('+this.$login.f.orgid+')',
192
- f_start_time:'',
193
- f_end_time:''
194
- }
195
- ,
196
- checker: this.$login.f,
197
- checkers: [],
198
- checkersname: [],
199
- showcheckmsg: false,
200
- checkInfo: {},
201
- checkStates: this.$appdata.getParam('安检状态'),
202
- f: this.$login.f,
203
- criteriaShow: false,
204
- model: model,
205
- c_year_list: options,
206
- f_check_start:'',
207
- f_check_end: '',
174
+ export default {
175
+ title: '安检计划查询',
176
+ data() {
177
+ let options = []
178
+ let year = (new Date()).getFullYear()
179
+ for (let i = year - 8; i <= year + 1; i++)
180
+ options.push({label: i + '', value: i + ''})
181
+ let model = new PagedList('rs/sql/planCount', 20, {
182
+ f_filialeids: 'this.f_filialeids',
183
+ f_start_time: 'this.f_start_time',
184
+ condition1:'this.condition1',
185
+ condition2:'this.condition2',
186
+ condition3:'this.condition3',
187
+ f_end_time: 'this.f_end_time'
188
+ }, {plannum: '', ruhu: '', jujian: '', daofang: '',no_plan_num:'',noruhu:'',nodaofang:'',nojujian:'',ruhu_total:'',daofang_total:'',jujian_total:'',total_sum:''})
189
+ model.f_filialeids = '('+this.$login.f.orgid+')'
190
+ return {
191
+ excelHeaders:{
192
+ 'f_checker': '安检员',
193
+ 'plannum': '计划总数',
194
+ // 'yrj': '计划中已入户',
195
+ // 'wrj': '计划中未入户',
196
+ 'ruhu': '入户',
197
+ 'jujian': '拒检',
198
+ 'daofang': '到访不遇',
199
+ 'no_plan_num': '无计划总数',
200
+ 'noruhu': '无计划入户',
201
+ 'nojujian': '无计划拒检',
202
+ 'nodaofang': '无计划到访不遇'
203
+ },
204
+ searchData:{
205
+ condition:"1=1",
206
+ condition1:"1=1",
207
+ condition2:"1=1",
208
+ condition3:"and 1=1",
209
+ f_plan_year:year[0],
210
+ f_checker:'',
211
+ f_filialeids:'('+this.$login.f.orgid+')',
208
212
  f_start_time:'',
209
213
  f_end_time:''
214
+ },
215
+ checker: this.$login.f,
216
+ checkers: [],
217
+ checkersname: [],
218
+ checkStates: this.$appdata.getParam('安检状态'),
219
+ f: this.$login.f,
220
+ criteriaShow: false,
221
+ model: model,
222
+ c_year_list: options,
223
+ f_check_start:'',
224
+ f_check_end: '',
225
+ f_start_time:'',
226
+ f_end_time:'',
227
+ checkInfo: {},
228
+ showcheckmsg:false
229
+ }
230
+ },
231
+ methods: {
232
+ cancel(){
233
+ this.showcheckmsg = false
234
+ },
235
+ print(model) {
236
+ console.log("传给打印的数据" + JSON.stringify(model))
237
+ this.showcheckmsg = true
238
+ this.checkInfo = model
239
+ },
240
+ hidden() {
241
+ this.criteriaShow = !this.criteriaShow
242
+ },
243
+ hiddenr() {
244
+ this.$parent.showItem = !this.$parent.showItem
245
+ },
246
+ search(args) {
247
+ let tempStr = args.condition
248
+ let condition1 =tempStr
249
+ let condition2 =tempStr
250
+ let condition3 = ' and 1=1 '
251
+ if (this.f_check_start) {
252
+ condition1 += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
253
+ condition1 += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
254
+ }
255
+ if (this.f_check_end) {
256
+ condition1 += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
257
+ condition1 += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
258
+ }
259
+ if(this.f_start_time){
260
+ condition2 += ` AND f_offsite_time >= '${this.f_start_time} 00:00:00'`
261
+ }
262
+ if (this.f_end_time){
263
+ condition2 += ` AND f_offsite_time <= '${this.f_end_time} 23:59:59'`
210
264
  }
265
+ if (this.$refs.paged.$refs.cri.model.f_checker_id){
266
+ condition3 += ` AND f_checker = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
267
+ condition2 += ` AND f_checker_name = '${this.$refs.paged.$refs.cri.model.f_checker_id}' `
268
+ }
269
+ this.model.f_start_time=this.f_start_time
270
+ this.model.f_end_time=this.f_end_time
271
+ this.model.condition1=condition1
272
+ this.model.condition2=condition2
273
+ this.model.condition3=condition3
274
+
275
+ this.searchData.condition1=condition1
276
+ this.searchData.condition2=condition2
277
+ this.searchData.condition3=condition3
278
+
279
+ this.model.search(args.condition, args.model)
211
280
  },
212
- methods: {
213
- cancel(){
214
- this.showcheckmsg = false
215
- },
216
- print(model) {
217
- console.log("传给打印的数据" + JSON.stringify(model))
218
- this.showcheckmsg = true
219
- this.checkInfo = model
220
- },
221
- hidden() {
222
- this.criteriaShow = !this.criteriaShow
223
- },
224
- hiddenr() {
225
- this.$parent.showItem = !this.$parent.showItem
226
- },
227
- search(args) {
228
- if (this.f_check_start) {
229
- args.condition += ` AND f_plan_year >= ${this.f_check_start.substr(0,4)} `
230
- args.condition += ` AND f_plan_month >= ${this.f_check_start.substr(5,2)} `
231
- }
232
- if (this.f_check_end) {
233
- args.condition += ` AND f_plan_year <= ${this.f_check_end.substr(0,4)} `
234
- args.condition += ` AND f_plan_month <= ${this.f_check_end.substr(5,2)} `
235
- }
236
- //this.$dispatch('checkstatus-changed', this.$refs.paged.$refs.cri.model.f_last_check_state[0])
237
- //tag
238
- this.model.f_start_time=this.f_start_time
239
- this.model.f_end_time=this.f_end_time
240
- //tag
241
- this.model.search(args.condition, args.model)
242
- //tag
243
- //tag
244
- },
245
- getRes(obj){
246
- this.model.f_filialeids = this.$login.convertToIn(obj.resids);
247
- //tag
281
+ getRes(obj){
282
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
283
+ //tag
284
+ }
285
+ },
286
+ ready() {
287
+ this.model.id = this.$login.f.id
288
+ this.model.f_subcompany = this.$login.f.f_fengongsi
289
+ this.model.f_filialeid = this.$login.f.orgid
290
+ },
291
+
292
+ watch: {
293
+ 'model.condition'(val) {
294
+ if(val){
295
+ this.searchData.condition = val
248
296
  }
249
297
  },
250
- ready() {
251
- this.model.id = this.$login.f.id
252
- this.model.f_subcompany = this.$login.f.f_fengongsi
253
- this.model.f_filialeid = this.$login.f.orgid
298
+ 'model.f_checker'(val) {
299
+ if(val){
300
+ this.searchData.f_checker = val
301
+ }
254
302
  },
255
-
256
- watch: {
257
- 'model.condition'(val) {
258
- if(val){
259
- this.searchData.condition = val
260
- }
261
- },
262
- 'model.f_checker'(val) {
263
- if(val){
264
- this.searchData.f_checker = val
265
- }
266
- },
267
- 'f_start_time'(val) {
268
- if(val){
269
- this.searchData.f_start_time = val
270
- }
271
- },
272
- 'f_end_time'(val) {
273
- if(val){
274
- this.searchData.f_end_time = val
275
- }
276
- },
277
- 'checker'() {
278
- // //tag
279
- //tag
280
- this.model.chosenOrg = this.checker[0]
281
- },
282
- 'model.rows.length'() {
283
- // 如果查询无结果,将合计置为0
284
- if(this.model.rows.length < 1 &&this. model.sums){
285
- this.model.sums.yrj = 0
286
- this.model.sums.wrj = 0
287
- this.model.sums.unchecked = 0
288
- this.model.sums.yijiansum = 0
289
- this.model.sums.jujian = 0
290
- this.model.sums.daofang = 0
291
- }
303
+ 'f_start_time'(val) {
304
+ if(val){
305
+ this.searchData.f_start_time = val
292
306
  }
293
307
  },
294
- computed: {
295
- selected() {
296
- // //tag
297
- // this.$parent.showItem=!this.$parent.showItem
298
- return this.$refs.paged.$refs.grid.selected
308
+ 'f_end_time'(val) {
309
+ if(val){
310
+ this.searchData.f_end_time = val
299
311
  }
312
+ },
313
+ 'checker'() {
314
+ // //tag
315
+ //tag
316
+ this.model.chosenOrg = this.checker[0]
317
+ },
318
+ 'model.rows.length'() {
319
+ // 如果查询无结果,将合计置为0
320
+ if(this.model.rows.length < 1 &&this. model.sums){
321
+ this.model.sums.yrj = 0
322
+ this.model.sums.no_plan_num = 0
323
+ this.model.sums.wrj = 0
324
+ this.model.sums.ruhu = 0
325
+ this.model.sums.jujian = 0
326
+ this.model.sums.daofang = 0
327
+ this.model.sums.ruhu_total=0
328
+ this.model.sums.daofang_total=0
329
+ this.model.sums.jujian_total=0
330
+ this.model.sums.total_sum=0
331
+ }
332
+ }
333
+ },
334
+ computed: {
335
+ selected() {
336
+ // //tag
337
+ // this.$parent.showItem=!this.$parent.showItem
338
+ return this.$refs.paged.$refs.grid.selected
300
339
  }
301
340
  }
341
+ }
302
342
  </script>
@@ -408,7 +408,11 @@
408
408
  args.condition +=` and ${this.uploadCodeCondition}`
409
409
  }
410
410
  if(args.model.f_last_check_state){
411
- args.condition += ` and ua.f_last_check_state = '${args.model.f_last_check_state}'`
411
+ if (args.model.f_last_check_state == '未检'){
412
+ args.condition += ` and (ua.f_last_check_date is null or ua.f_last_check_date is null) `
413
+ }else {
414
+ args.condition += ` and ua.f_last_check_state = '${args.model.f_last_check_state}'`
415
+ }
412
416
  }
413
417
  if(args.model.f_start_time){
414
418
  args.condition += ` and ua.f_last_check_date >='${args.model.f_start_time} 00:00:00' `
@@ -1,19 +1,20 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //手机特殊目录注册到该文件中
5
- let specialComp = {
6
- 'check-user-list': (resolve) => { require(['./pc/checkUserList'], resolve) },
7
- 'select-check-plan': (resolve) => { require(['./pc/SelectCheckPlan'], resolve) },
8
- 'check-detail': (resolve) => { require(['./pc/CheckDetail'], resolve) },
9
- 'print-material-bill': (resolve) => { require(['./pc/PrintMaterialBill'], resolve) },
10
- 'check-search-user':(resolve) => {require(['./pc/CheckSearchUser'], resolve)},
11
- 'defect-main-new2': (resolve) => {require(['./pc/DefectMainNew'], resolve)},
12
- 'role-selector-safe': (resolve) => {require(['./pc/RoleSelector'], resolve)},
13
- 'new-check-paper': (resolve) => {require(['./pc/NewCheckpaper'], resolve)}
14
- }
15
- exports.specialComp = specialComp
16
-
17
-
18
-
19
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //手机特殊目录注册到该文件中
5
+ let specialComp = {
6
+ 'check-user-list': (resolve) => { require(['./pc/checkUserList'], resolve) },
7
+ 'plan-manage': (resolve) => { require(['./pc/PlanManage'], resolve) },
8
+ 'select-check-plan': (resolve) => { require(['./pc/SelectCheckPlan'], resolve) },
9
+ 'check-detail': (resolve) => { require(['./pc/CheckDetail'], resolve) },
10
+ 'print-material-bill': (resolve) => { require(['./pc/PrintMaterialBill'], resolve) },
11
+ 'check-search-user':(resolve) => {require(['./pc/CheckSearchUser'], resolve)},
12
+ 'defect-main-new2': (resolve) => {require(['./pc/DefectMainNew'], resolve)},
13
+ 'role-selector-safe': (resolve) => {require(['./pc/RoleSelector'], resolve)},
14
+ 'new-check-paper': (resolve) => {require(['./pc/NewCheckpaper'], resolve)}
15
+ }
16
+ exports.specialComp = specialComp
17
+
18
+
19
+
20
+
@@ -942,7 +942,7 @@
942
942
  condition += " and ti.f_last_check_state in ('入户','停用','拆除','未通气')"
943
943
  }
944
944
  if(this.$refs.paged.$refs.cri.model.f_state[0] =='未检'){
945
- condition += " and (ti.f_last_check_state in ('到访不遇','拒检') or ti.f_last_check_state is null)"
945
+ condition += " and ti.f_last_check_state not in ('入户','停用','拆除','未通气')"
946
946
  }
947
947
  // if(this.$refs.paged.$refs.cri.model.f_last_state[0])
948
948
  // condition += " and ti.f_last_check_state='"+this.$refs.paged.$refs.cri.model.f_last_state[0]+"'"
@@ -974,7 +974,11 @@
974
974
  if(this.$refs.paged.$refs.cri.model.userinfo){
975
975
  condition += ` and (f_userinfo_code like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_user_name like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_user_phone like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_meter_no like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_address like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_zuhu_phone like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_rent_phone like '%${this.$refs.paged.$refs.cri.model.userinfo}%' or f_user_phone2 like '%${this.$refs.paged.$refs.cri.model.userinfo}%')`
976
976
  }
977
- this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成' or f_complete = '已完成') or (f_state = '未检' or f_state = '已检') or (f_last_check_state = '到访不遇' or f_last_check_state = '拒检' )) and ti.f_no_checkplan = '有计划安检'" + condition)
977
+ if(this.$refs.paged.$refs.cri.model.f_state[0] ==''){
978
+ this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成' or f_complete = '已完成') or (f_state = '未检' or f_state = '已检') or (f_last_check_state = '到访不遇' or f_last_check_state = '拒检' )) and ti.f_no_checkplan = '有计划安检'" + condition)
979
+ }else{
980
+ this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成' or f_complete = '已完成') or (f_state = '未检' or f_state = '已检')) and ti.f_no_checkplan = '有计划安检'" + condition)
981
+ }
978
982
  },
979
983
  getNewOrder(){
980
984
  HostApp.__this__ = this
@@ -684,9 +684,9 @@ export default {
684
684
  hasError = this.verifyDevices()
685
685
  if (hasError)
686
686
  return hasError
687
- hasError = this.verifyFeedback()
688
- if (hasError)
689
- return hasError
687
+ // hasError = this.verifyFeedback()
688
+ // if (hasError)
689
+ // return hasError
690
690
  },
691
691
  verifyState() {
692
692
  if (Vue.android && this.data.f_entry_status == '未使用天然气' && this.data.f_nongasuser_path == Vue.nopic)
@@ -357,7 +357,7 @@ export default {
357
357
  methods: {
358
358
  safeState(){
359
359
  let state = this.userinfo.f_last_check_state
360
- debugger
360
+
361
361
  if(state=='' ||state=='到访不遇' ||state=='拒检' ||state==null){
362
362
  return '未检'
363
363
  }else{
@@ -96,7 +96,7 @@ export default {
96
96
  this.bookList=[]
97
97
  }
98
98
  //如果是全选,则查询这个安检册下的用户
99
- debugger
99
+
100
100
  if(val){
101
101
  //遍历this.model.rows
102
102
  this.model.rows.forEach(res=>{
@@ -139,7 +139,7 @@ export default {
139
139
  }
140
140
  },
141
141
  removes(){
142
- debugger
142
+
143
143
  if(this.bookList.length===0){
144
144
  this.$showMessage('请选择用户')
145
145
  return
@@ -166,7 +166,7 @@ export default {
166
166
  })
167
167
  },
168
168
  remove(row){
169
- debugger
169
+
170
170
  this.$showMessage("确认移出此安检册?",['confirm']).then(res=>{
171
171
  if(res==='confirm'){
172
172
  let data = {