safecheck-client 3.0.35-4 → 3.0.35-41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. package/package.json +1 -1
  2. package/src/bootstrap/less/pager.less +76 -76
  3. package/src/components/NewDefectList/DefectListNew.vue +617 -617
  4. package/src/components/Util/SafecheckUpload.vue +4 -0
  5. package/src/components/android/CheckPlanDown.vue +1 -1
  6. package/src/components/android/CivilCurrentCreate.vue +56 -41
  7. package/src/components/android/NoCivilCurrentCreate.vue +10 -0
  8. package/src/components/android/PhoneUpUserinfo.vue +25 -6
  9. package/src/components/android/SafecheckDevices.vue +1298 -1298
  10. package/src/components/android/SafecheckOrderV.vue +2 -529
  11. package/src/components/pc/AddPlanItemYyChange.vue +743 -0
  12. package/src/components/pc/NewCheckpaper.vue +1998 -1943
  13. package/src/components/pc/SecurityCheckLedger.vue +133 -0
  14. package/src/components/pc/SecurityCheckList.vue +144 -0
  15. package/src/components/pc/SecurityCheckManage.vue +106 -0
  16. package/src/components/planmanage/PlanManage.vue +47 -2
  17. package/src/components/report/CheckPlanAreaList.vue +25 -5
  18. package/src/components/rongcheng/AddPlanItem.vue +1 -1
  19. package/src/components/rongcheng/AspiratedAreaPlan.vue +1 -0
  20. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +4 -0
  21. package/src/components/rongcheng/AspiratedUserInfo.vue +12 -4
  22. package/src/components/rongcheng/CheckSearchUser.vue +1 -1
  23. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  24. package/src/components/rongcheng/SafecheckUserInfo.vue +12 -12
  25. package/src/filiale/bayan/android/AddPlanItem.vue +22 -2
  26. package/src/filiale/bayan/android/CheckPlanDown.vue +2 -2
  27. package/src/filiale/bayan/android/CurrentCreate.vue +10 -0
  28. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +908 -905
  29. package/src/filiale/bayan/android/SafecheckOrderV.vue +76 -20
  30. package/src/filiale/bayan/android/SafecheckUserInfo.vue +4 -0
  31. package/src/filiale/bayan/pc/PlanManage.vue +2 -0
  32. package/src/filiale/bayan/pc/SelectCheckPlan.vue +6 -1
  33. package/src/filiale/dexin/pc/DefectListNew.vue +643 -0
  34. package/src/filiale/dexin/pc/DefectMainNew.vue +63 -0
  35. package/src/filiale/dexin/pc/DefectPaperNew.vue +1066 -0
  36. package/src/filiale/dexin/pc.js +1 -0
  37. package/src/filiale/huaran/android/CheckPlanDown.vue +212 -0
  38. package/src/filiale/huaran/android.js +1 -0
  39. package/src/filiale/huaran/pc/PaperList.vue +22 -1
  40. package/src/filiale/huaran/pc/PlanManage.vue +53 -6
  41. package/src/filiale/huaran/pc/checkUserList.vue +55 -22
  42. package/src/filiale/huaran/pc.js +1 -0
  43. package/src/filiale/jiaxian/android/SafecheckOrderV.vue +2807 -2807
  44. package/src/filiale/qianneng/android/SafecheckOrderV.vue +2785 -2785
  45. package/src/filiale/qianneng/android/SwitchValve.vue +1 -0
  46. package/src/filiale/shanxian/android/AddPlanItem.vue +447 -447
  47. package/src/filiale/shanxian/android/SafecheckOrderV.vue +2979 -2979
  48. package/src/filiale/shanxian/pc/checkUserList.vue +700 -700
  49. package/src/filiale/siyang/pc/CheckSearchUser.vue +1035 -1035
  50. package/src/filiale/siyang/pc/checkUserList.vue +108 -133
  51. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3 -3
  52. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +5 -13
  53. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +1060 -1060
  54. package/src/filiale/weinan/pc/CheckBookSearchUserList.vue +735 -735
  55. package/src/filiale/weinan/pc/CheckDetail.vue +278 -278
  56. package/src/filiale/weinan/pc/checkUserList.vue +712 -712
  57. package/src/filiale/xilan/android/CurrentCreate.vue +1053 -1067
  58. package/src/filiale/xilan/android.js +0 -1
  59. package/src/filiale/xilan/pc/PaperList.vue +795 -0
  60. package/src/filiale/xilan/pc.js +13 -12
  61. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  62. package/src/safecheck.js +12 -0
  63. package/src/filiale/xilan/android/AddPlanItem.vue +0 -461
@@ -1,278 +1,278 @@
1
- <template>
2
- <div>
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
- <div partial>
6
- <!-- <p class="text-center" style="padding: 7px;"><b>安检计划项明细</b></p>-->
7
- <ul class="nav nav-tabs">
8
- <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
9
- </ul>
10
- <div class="row">
11
- <div class="form-group col-sm-4" >
12
- <label class="font_normal_body">安检状态</label>
13
- <v-select style="width:60% "
14
- class="select select_list"
15
- :value.sync="$parent.$parent.f_state"
16
- v-model="$parent.$parent.f_state"
17
- :options='$parent.$parent.checkState'
18
- placeholder='安检状态'
19
- close-on-select
20
- value-single
21
- >
22
- </v-select>
23
- </div>
24
- <div class="form-group col-sm-4" >
25
- <v-select style="width:60% "
26
- v-if="$parent.$parent.f_state=='未入户'"
27
- class="select select_list"
28
- :value.sync="$parent.$parent.f_noruhu"
29
- v-model="$parent.$parent.f_noruhu"
30
- :options='$parent.$parent.noChecks'
31
- placeholder='请选择状态'
32
- :multiple="true"
33
- >
34
- </v-select>
35
- </div>
36
- <div class="form-group col-sm-4 button-range" >
37
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
38
- <export-excel-safe :data="$parent.$parent.exportParameter"
39
- :field="$parent.$parent.excelHeaders"
40
- sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
41
- template-name='安检计划明细' :choose-col="true">
42
- </export-excel-safe>
43
- <!--<export-excel-safe-->
44
- <!--:data="{condition: $parent.$parent.condition}"-->
45
- <!--:field="$parent.$parent.getfield"-->
46
- <!--sqlurl="rs/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
47
- <!--:choose-col="true"></export-excel-safe>-->
48
-
49
- </div>
50
- </div>
51
- </div>
52
- </criteria>
53
- <data-grid :model="model" partial='list' class="table_sy">
54
-
55
- <template partial='head'>
56
- <tr>
57
- <th><nobr>计划名称</nobr></th>
58
- <th><nobr>用户编号</nobr></th>
59
- <th><nobr>用户名称</nobr></th>
60
- <th><nobr>小区名称</nobr></th>
61
- <th><nobr>地址</nobr></th>
62
- <th><nobr>安检状态</nobr></th>
63
- <th><nobr>是否安检</nobr></th>
64
- </tr>
65
- </template>
66
- <template partial='body'>
67
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
68
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
69
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
70
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
71
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
72
- <td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
73
- <td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
74
- </template>
75
- </data-grid>
76
- </criteria-paged>
77
- </div>
78
- </template>
79
-
80
- <script>
81
- import { PagedList } from 'vue-client'
82
-
83
- export default {
84
- title: '安检计划项列表',
85
- data () {
86
- return {
87
- model: new PagedList('rs/sql/planItem', 20),
88
- checkState:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'未入户',value:'未入户'}],
89
- noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'复访不遇',value:'复访不遇'}],
90
- excelHeaders: {
91
- //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
92
- 'f_plan_name':'计划名称',
93
- 'f_userinfo_code': '用户编号',
94
- 'f_user_name': '用户名称',
95
- 'f_user_phone': '用户电话',
96
- //'count_item':'安检次数',
97
- 'f_user_type': '用户类型',
98
- 'f_residential_area': '小区名称',
99
- 'f_address':'地址',
100
- 'f_state':'是否已检',
101
- 'f_last_check_date':'安检日期',
102
- 'f_last_check_state': '安检状态'
103
- },
104
- f_state:'',
105
- f_noruhu:''
106
- }
107
- },
108
- props: [ 'check','checkstatus','checkstart','checkend','starttime','endtime' ],
109
- watch: {
110
- 'check' (val) {
111
- let condition
112
- //tag
113
- condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
114
- if(this.checkstatus){
115
- condition += ` and cp.f_entry_status = '${this.checkstatus}'`
116
- }
117
- if (this.checkstart && this.checkend ) {
118
- let year1 = this.checkstart.substr(0,4)
119
- let year2 = this.checkend.substr(0,4)
120
- let month1 = this.checkstart.substr(5,2)
121
- let month2 = this.checkend.substr(5,2)
122
- if(year1 == year2){
123
- condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
124
- }else{
125
- condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
126
- }
127
- }
128
- if(this.checkstart && !this.checkend){
129
- this.$showMessage('计划起始和截至时间必须同时选择!')
130
- return
131
- }
132
- if(!this.checkstart && this.checkend){
133
- this.$showMessage('计划起始和截至时间必须同时选择!')
134
- return
135
- }
136
- if(this.starttime){
137
- condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
138
- }
139
- if(this.endtime){
140
- condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
141
- }
142
- this.f_noruhu=[]
143
- this.f_state=''
144
- this.model.search(condition, {})
145
-
146
- }
147
- },
148
-
149
- ready () {
150
- //tag
151
- if (this.check) {
152
- let condition
153
- //tag
154
- condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
155
- if(this.checkstatus){
156
- condition += ` and cp.f_entry_status = '${this.checkstatus}'`
157
- }
158
- if (this.checkstart && this.checkend ) {
159
- let year1 = this.checkstart.substr(0,4)
160
- let year2 = this.checkend.substr(0,4)
161
- let month1 = this.checkstart.substr(5,2)
162
- let month2 = this.checkend.substr(5,2)
163
- if(year1 == year2){
164
- condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
165
- }else{
166
- condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
167
- }
168
- }
169
- if(this.checkstart && !this.checkend){
170
- this.$showMessage('计划起始和截至时间必须同时选择!')
171
- return
172
- }
173
- if(!this.checkstart && this.checkend){
174
- this.$showMessage('计划起始和截至时间必须同时选择!')
175
- return
176
- }
177
- if(this.starttime){
178
- condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
179
- }
180
- if(this.endtime){
181
- condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
182
- }
183
-
184
- this.model.search(condition, {})
185
- }
186
- },
187
- methods:{
188
- selfSearch(args){
189
- //
190
- if (this.check) {
191
- args.condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
192
- if(this.checkstatus){
193
- args.condition += ` and cp.f_entry_status = '${this.checkstatus}'`
194
- }
195
- if (this.checkstart && this.checkend ) {
196
- let year1 = this.checkstart.substr(0,4)
197
- let year2 = this.checkend.substr(0,4)
198
- let month1 = this.checkstart.substr(5,2)
199
- let month2 = this.checkend.substr(5,2)
200
- if(year1 == year2){
201
- args.condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
202
- }else{
203
- args.condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
204
- }
205
- }
206
- if(this.checkstart && !this.checkend){
207
- this.$showMessage('计划起始和截至时间必须同时选择!')
208
- return
209
- }
210
- if(!this.checkstart && this.checkend){
211
- this.$showMessage('计划起始和截至时间必须同时选择!')
212
- return
213
- }
214
- if(this.starttime){
215
- args.condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
216
- }
217
- if(this.endtime){
218
- args.condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
219
- }
220
- //
221
- if( this.f_state){
222
- if(this.f_state=='入户'){
223
- args.condition=args.condition+" and i.f_state='已检' and i.f_last_check_state='入户'"
224
- }else if(this.f_state=='未入户'){
225
- if(this.f_noruhu && this.f_noruhu.length==1){
226
- if(this.f_noruhu[0]=='复访不遇'){
227
- args.condition += "and i.f_state='已检' and i.f_last_check_state='到访不遇' and i.f_check_version > 1 "
228
- }else{
229
- args.condition += this.f_noruhu[0]=='未检'?" and i.f_state='未检'":` and i.f_state='已检' and i.f_last_check_state='${this.f_noruhu[0]}'`
230
- }
231
- }else if(this.f_noruhu && this.f_noruhu.length==2){
232
- if(this.f_noruhu.indexOf('未检')!=-1){
233
- //
234
- if(this.f_noruhu.indexOf('到访不遇')!=-1){
235
- args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='到访不遇'))"
236
- }else if(this.f_noruhu.indexOf('复访不遇')!=-1) {
237
- args.condition=args.condition + " and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state = '到访不遇' AND i.f_check_version >2))"
238
- }else{
239
- args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='拒检'))"
240
- }
241
-
242
- }else{
243
- if(this.f_noruhu.indexOf('复访不遇')!=-1){
244
- if(this.f_noruhu.indexOf('到访不遇')!=-1){
245
- args.condition=args.condition + " and (i.f_state='已检' and (i.f_last_check_state='到访不遇'))"
246
- }else{
247
- args.condition=args.condition + " and i.f_state='已检' and ((i.f_last_check_state='到访不遇' and f_check_version >2) or i.f_last_check_state='拒检' )"
248
- }
249
- }else{
250
- args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
251
- }
252
- }
253
- }else{
254
- if(this.f_noruhu.indexOf('未检')!=-1){
255
- args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检')))"
256
- }
257
- else{
258
- args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
259
- }
260
- }
261
-
262
- }
263
-
264
- }
265
- this.model.search(args.condition, args.model)
266
- }
267
- }
268
- },
269
- computed: {
270
- // 导出到Excel的条件构造
271
- exportParameter() {
272
- return {
273
- condition: this.$refs.paged.model.condition
274
- }
275
- }
276
- },
277
- }
278
- </script>
1
+ <template>
2
+ <div>
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div partial>
6
+ <!-- <p class="text-center" style="padding: 7px;"><b>安检计划项明细</b></p>-->
7
+ <ul class="nav nav-tabs">
8
+ <li role="presentation" class="active"><a style=" color: #5ac0d9 !important;">安检计划项明细</a></li>
9
+ </ul>
10
+ <div class="row">
11
+ <div class="form-group col-sm-4" >
12
+ <label class="font_normal_body">安检状态</label>
13
+ <v-select style="width:60% "
14
+ class="select select_list"
15
+ :value.sync="$parent.$parent.f_state"
16
+ v-model="$parent.$parent.f_state"
17
+ :options='$parent.$parent.checkState'
18
+ placeholder='安检状态'
19
+ close-on-select
20
+ value-single
21
+ >
22
+ </v-select>
23
+ </div>
24
+ <div class="form-group col-sm-4" >
25
+ <v-select style="width:60% "
26
+ v-if="$parent.$parent.f_state=='未入户'"
27
+ class="select select_list"
28
+ :value.sync="$parent.$parent.f_noruhu"
29
+ v-model="$parent.$parent.f_noruhu"
30
+ :options='$parent.$parent.noChecks'
31
+ placeholder='请选择状态'
32
+ :multiple="true"
33
+ >
34
+ </v-select>
35
+ </div>
36
+ <div class="form-group col-sm-4 button-range" >
37
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
38
+ <export-excel-safe :data="$parent.$parent.exportParameter"
39
+ :field="$parent.$parent.excelHeaders"
40
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
41
+ template-name='安检计划明细' :choose-col="true">
42
+ </export-excel-safe>
43
+ <!--<export-excel-safe-->
44
+ <!--:data="{condition: $parent.$parent.condition}"-->
45
+ <!--:field="$parent.$parent.getfield"-->
46
+ <!--sqlurl="rs/logic/saleExport" sql-name="getGasUser" :template-name="$parent.$parent.pricename+'气价使用人'"-->
47
+ <!--:choose-col="true"></export-excel-safe>-->
48
+
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </criteria>
53
+ <data-grid :model="model" partial='list' class="table_sy">
54
+
55
+ <template partial='head'>
56
+ <tr>
57
+ <th><nobr>计划名称</nobr></th>
58
+ <th><nobr>用户编号</nobr></th>
59
+ <th><nobr>用户名称</nobr></th>
60
+ <th><nobr>小区名称</nobr></th>
61
+ <th><nobr>地址</nobr></th>
62
+ <th><nobr>安检状态</nobr></th>
63
+ <th><nobr>是否安检</nobr></th>
64
+ </tr>
65
+ </template>
66
+ <template partial='body'>
67
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
68
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
69
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
70
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
71
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
72
+ <td style="text-align: center"><nobr>{{row.f_last_check_state}}</nobr></td>
73
+ <td style="text-align: center"><nobr>{{row.f_state}}</nobr></td>
74
+ </template>
75
+ </data-grid>
76
+ </criteria-paged>
77
+ </div>
78
+ </template>
79
+
80
+ <script>
81
+ import { PagedList } from 'vue-client'
82
+
83
+ export default {
84
+ title: '安检计划项列表',
85
+ data () {
86
+ return {
87
+ model: new PagedList('rs/sql/planItem', 20),
88
+ checkState:[{label:'全部',value:''},{label:'入户',value:'入户'},{label:'未入户',value:'未入户'}],
89
+ noChecks:[{label:'未检',value:'未检'},{label:'到访不遇',value:'到访不遇'},{label:'拒检',value:'拒检'},{label:'复访不遇',value:'复访不遇'}],
90
+ excelHeaders: {
91
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
92
+ 'f_plan_name':'计划名称',
93
+ 'f_userinfo_code': '用户编号',
94
+ 'f_user_name': '用户名称',
95
+ 'f_user_phone': '用户电话',
96
+ //'count_item':'安检次数',
97
+ 'f_user_type': '用户类型',
98
+ 'f_residential_area': '小区名称',
99
+ 'f_address':'地址',
100
+ 'f_state':'是否已检',
101
+ 'f_last_check_date':'安检日期',
102
+ 'f_last_check_state': '安检状态'
103
+ },
104
+ f_state:'',
105
+ f_noruhu:''
106
+ }
107
+ },
108
+ props: [ 'check','checkstatus','checkstart','checkend','starttime','endtime' ],
109
+ watch: {
110
+ 'check' (val) {
111
+ let condition
112
+ //tag
113
+ condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
114
+ if(this.checkstatus){
115
+ condition += ` and cp.f_entry_status = '${this.checkstatus}'`
116
+ }
117
+ if (this.checkstart && this.checkend ) {
118
+ let year1 = this.checkstart.substr(0,4)
119
+ let year2 = this.checkend.substr(0,4)
120
+ let month1 = this.checkstart.substr(5,2)
121
+ let month2 = this.checkend.substr(5,2)
122
+ if(year1 == year2){
123
+ condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
124
+ }else{
125
+ condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
126
+ }
127
+ }
128
+ if(this.checkstart && !this.checkend){
129
+ this.$showMessage('计划起始和截至时间必须同时选择!')
130
+ return
131
+ }
132
+ if(!this.checkstart && this.checkend){
133
+ this.$showMessage('计划起始和截至时间必须同时选择!')
134
+ return
135
+ }
136
+ if(this.starttime){
137
+ condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
138
+ }
139
+ if(this.endtime){
140
+ condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
141
+ }
142
+ this.f_noruhu=[]
143
+ this.f_state=''
144
+ this.model.search(condition, {})
145
+
146
+ }
147
+ },
148
+
149
+ ready () {
150
+ //tag
151
+ if (this.check) {
152
+ let condition
153
+ //tag
154
+ condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
155
+ if(this.checkstatus){
156
+ condition += ` and cp.f_entry_status = '${this.checkstatus}'`
157
+ }
158
+ if (this.checkstart && this.checkend ) {
159
+ let year1 = this.checkstart.substr(0,4)
160
+ let year2 = this.checkend.substr(0,4)
161
+ let month1 = this.checkstart.substr(5,2)
162
+ let month2 = this.checkend.substr(5,2)
163
+ if(year1 == year2){
164
+ condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
165
+ }else{
166
+ condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
167
+ }
168
+ }
169
+ if(this.checkstart && !this.checkend){
170
+ this.$showMessage('计划起始和截至时间必须同时选择!')
171
+ return
172
+ }
173
+ if(!this.checkstart && this.checkend){
174
+ this.$showMessage('计划起始和截至时间必须同时选择!')
175
+ return
176
+ }
177
+ if(this.starttime){
178
+ condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
179
+ }
180
+ if(this.endtime){
181
+ condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
182
+ }
183
+
184
+ this.model.search(condition, {})
185
+ }
186
+ },
187
+ methods:{
188
+ selfSearch(args){
189
+ //
190
+ if (this.check) {
191
+ args.condition = `c.f_checker='${this.check.f_checker}' and i.f_state!='作废' and i.f_filialeid = '${this.$login.f.orgid}'`
192
+ if(this.checkstatus){
193
+ args.condition += ` and cp.f_entry_status = '${this.checkstatus}'`
194
+ }
195
+ if (this.checkstart && this.checkend ) {
196
+ let year1 = this.checkstart.substr(0,4)
197
+ let year2 = this.checkend.substr(0,4)
198
+ let month1 = this.checkstart.substr(5,2)
199
+ let month2 = this.checkend.substr(5,2)
200
+ if(year1 == year2){
201
+ args.condition += ` and f_plan_year = ${year1} and f_plan_month >= ${month1} and f_plan_month <= ${month2}`
202
+ }else{
203
+ args.condition += ` and ((f_plan_year = ${year1} and f_plan_month >= ${month1}) or (f_plan_year = ${year2} and f_plan_month <= ${month2}) or (f_plan_year >${year1} and f_plan_year < ${year2}))`
204
+ }
205
+ }
206
+ if(this.checkstart && !this.checkend){
207
+ this.$showMessage('计划起始和截至时间必须同时选择!')
208
+ return
209
+ }
210
+ if(!this.checkstart && this.checkend){
211
+ this.$showMessage('计划起始和截至时间必须同时选择!')
212
+ return
213
+ }
214
+ if(this.starttime){
215
+ args.condition += ` and f_last_check_date > '${this.starttime} 00:00:00'`
216
+ }
217
+ if(this.endtime){
218
+ args.condition += ` and f_last_check_date < '${this.endtime} 23:59:59'`
219
+ }
220
+ //
221
+ if( this.f_state){
222
+ if(this.f_state=='入户'){
223
+ args.condition=args.condition+" and i.f_state='已检' and i.f_last_check_state='入户'"
224
+ }else if(this.f_state=='未入户'){
225
+ if(this.f_noruhu && this.f_noruhu.length==1){
226
+ if(this.f_noruhu[0]=='复访不遇'){
227
+ args.condition += "and i.f_state='已检' and i.f_last_check_state='到访不遇' and i.f_check_version > 1 "
228
+ }else{
229
+ args.condition += this.f_noruhu[0]=='未检'?" and i.f_state='未检'":` and i.f_state='已检' and i.f_last_check_state='${this.f_noruhu[0]}'`
230
+ }
231
+ }else if(this.f_noruhu && this.f_noruhu.length==2){
232
+ if(this.f_noruhu.indexOf('未检')!=-1){
233
+ //
234
+ if(this.f_noruhu.indexOf('到访不遇')!=-1){
235
+ args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='到访不遇'))"
236
+ }else if(this.f_noruhu.indexOf('复访不遇')!=-1) {
237
+ args.condition=args.condition + " and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state = '到访不遇' AND i.f_check_version >2))"
238
+ }else{
239
+ args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and i.f_last_check_state='拒检'))"
240
+ }
241
+
242
+ }else{
243
+ if(this.f_noruhu.indexOf('复访不遇')!=-1){
244
+ if(this.f_noruhu.indexOf('到访不遇')!=-1){
245
+ args.condition=args.condition + " and (i.f_state='已检' and (i.f_last_check_state='到访不遇'))"
246
+ }else{
247
+ args.condition=args.condition + " and i.f_state='已检' and ((i.f_last_check_state='到访不遇' and f_check_version >2) or i.f_last_check_state='拒检' )"
248
+ }
249
+ }else{
250
+ args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
251
+ }
252
+ }
253
+ }else{
254
+ if(this.f_noruhu.indexOf('未检')!=-1){
255
+ args.condition=args.condition+" and (i.f_state='未检' or (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检')))"
256
+ }
257
+ else{
258
+ args.condition=args.condition+" and (i.f_state='已检' and (i.f_last_check_state='到访不遇' or i.f_last_check_state='拒检'))"
259
+ }
260
+ }
261
+
262
+ }
263
+
264
+ }
265
+ this.model.search(args.condition, args.model)
266
+ }
267
+ }
268
+ },
269
+ computed: {
270
+ // 导出到Excel的条件构造
271
+ exportParameter() {
272
+ return {
273
+ condition: this.$refs.paged.model.condition
274
+ }
275
+ }
276
+ },
277
+ }
278
+ </script>