safecheck-client 3.0.33-5 → 3.0.33-50

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 (55) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +31 -31
  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/Util.js +5 -0
  7. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  8. package/src/filiale/bayan/android/SafecheckOrderV.vue +4 -1
  9. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  10. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  11. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  12. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  13. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  14. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  15. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  16. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  17. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  18. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  19. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  20. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  21. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  22. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  23. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  24. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  25. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  26. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  27. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  28. package/src/filiale/jingyang/pc.js +1 -0
  29. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  30. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  31. package/src/filiale/rongchuang/android.js +1 -0
  32. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  33. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  34. package/src/filiale/rongchuang/pc.js +1 -0
  35. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  36. package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
  37. package/src/filiale/weinan/android/SafecheckOrderV.vue +71 -26
  38. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  39. package/src/filiale/weinan/pc/DefectPaperNew.vue +1065 -1059
  40. package/src/filiale/weinan/pc.js +45 -44
  41. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  42. package/src/filiale/wensu/pc/DefectPaperNew.vue +1148 -1148
  43. package/src/filiale/wensu/pc/checkUserList.vue +650 -650
  44. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +1 -1
  45. package/src/filiale/wuhai/pc/PaperList.vue +785 -0
  46. package/src/filiale/wuhai/pc.js +1 -0
  47. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2 -2
  48. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  49. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  50. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  51. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  52. package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
  53. package/src/filiale/yongzhou/pc.js +3 -0
  54. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
  55. package/src/main.js +1 -1
@@ -1,650 +1,650 @@
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
- <div class="row " >
7
- <label class="form-group font_normal_body"><b>用户信息</b></label>
8
-
9
- <div class="form-group col-sm-1" >
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 95%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
- </div>
13
- <div class="form-group col-sm-1" >
14
- <input type="text" class="input_search" v-model="model.f_user_name"
15
- style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
16
- </div>
17
- <div class="form-group col-sm-1" >
18
- <input type="text" class="input_search" v-model="model.f_address"
19
- style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
20
- </div>
21
- <div class="form-group col-sm-1 upuserinfo_sel" >
22
- <v-select
23
- class="select select_list"
24
- :width="'95%'"
25
- :value.sync="model.f_area"
26
- v-model="model.f_area"
27
- :options='$parent.$parent.areaList'
28
- :timeout="500"
29
- @select-search="$parent.$parent.select_search"
30
- placeholder='小区选择'
31
- condition="ua.f_residential_area = '{}'"
32
- close-on-select
33
- value-single
34
- >
35
- </v-select>
36
- </div>
37
- <div class="form-group col-sm-4" >
38
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
40
- <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
41
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
42
- </div>
43
- <div class="form-group col-sm-1" style="float: right">
44
- <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
45
- </div>
46
- <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
47
- <div slot="modal-header" class="modal-header">
48
- <h4 class="modal-title">
49
- 用户查询条件
50
- </h4>
51
- </div>
52
- <div slot="modal-body" class="modal-body">
53
- <div class="row">
54
- <div class="form-group col-sm-4" >
55
- <label class="font_normal_body">用户类型:</label>
56
- <v-select
57
- class="select select_list"
58
- :value.sync="model.f_user_type"
59
- v-model="model.f_user_type"
60
- :options='$parent.$parent.userTypes'
61
- placeholder='请选择'
62
- condition="uf.f_user_type='{}'"
63
- :search="false"
64
- close-on-select
65
- value-single
66
- >
67
- </v-select>
68
- </div>
69
- <div class="form-group col-sm-4" >
70
- <label class="font_normal_body">用户状态:</label>
71
- <v-select
72
- class="select select_list"
73
- :value.sync="model.f_user_state"
74
- v-model="model.f_user_state"
75
- :options='$parent.$parent.userStates'
76
- placeholder='请选择'
77
- condition="ui.f_user_state='{}'"
78
- :search="false"
79
- close-on-select
80
- value-single
81
- >
82
- </v-select>
83
- </div>
84
- <div class="form-group col-sm-4" >
85
- <label class="font_normal_body">用气性质:</label>
86
- <v-select
87
- class="select select_list"
88
- :value.sync="model.f_gasproperties"
89
- v-model="model.f_gasproperties"
90
- :options='$parent.$parent.gasproperties'
91
- placeholder='请选择'
92
- condition="uf.f_gasproperties='{}'"
93
- :search="false"
94
- close-on-select
95
- value-single
96
- >
97
- </v-select>
98
- </div>
99
- <div class="form-group col-sm-4" >
100
- <label class="font_normal_body">气表类型:</label>
101
- <v-select
102
- class="select select_list"
103
- :value.sync="model.meter_classify"
104
- v-model="model.meter_classify"
105
- :options='$parent.$parent.meter_classifys'
106
- placeholder='请选择'
107
- condition="uf.F_METER_CLASSIFY='{}'"
108
- :search="false"
109
- close-on-select
110
- value-single
111
- >
112
- </v-select>
113
- </div>
114
- <!--<div class="form-group col-sm-4" >
115
- <label class="font_normal_body">小区名称:</label>
116
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
117
- style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
118
- </div>-->
119
- <div class="form-group col-sm-4" >
120
- <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
121
- <input type="text" class="input_search" v-model="model.f_building"
122
- style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
123
- </div>
124
- <div class="form-group col-sm-4" >
125
- <label class="font_normal_body">单&ensp;元&ensp;号:</label>
126
- <input type="text" class="input_search" v-model="model.f_unit"
127
- style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
128
- </div>
129
- <div class="form-group col-sm-4" >
130
- <label class="font_normal_body">开户起始:</label>
131
- <datepicker
132
- placeholder='请选择'
133
- style="width:60%"
134
- :disabled-days-of-week="[]"
135
- :format="'yyyy-MM-dd'"
136
- :show-rest-button="reset"
137
- :value.sync="model.f_startfile_time"
138
- v-model="model.f_startfile_time"
139
- condition="ui.f_createfile_date >= '{} 00:00:00'">
140
- </datepicker>
141
- </div>
142
- <div class="form-group col-sm-4" >
143
- <label class="font_normal_body">开户截止:</label>
144
- <datepicker
145
- placeholder='请选择'
146
- :disabled-days-of-week="[]"
147
- style="width:60%"
148
- :format="'yyyy-MM-dd'"
149
- :show-rest-button="reset"
150
- :value.sync="model.f_endfile_time"
151
- v-model="model.f_endfile_time"
152
- condition="ui.f_createfile_date <= '{} 00:00:00'">
153
- </datepicker>
154
- </div>
155
- <div class="form-group col-sm-4" >
156
- <label class="font_normal_body">表&ensp;箱&ensp;号:</label>
157
- <input type="text" class="input_search" v-model="model.f_metertitles"
158
- style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
159
- </div>
160
- <div class="form-group col-sm-4" >
161
- <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号:</label>
162
- <input type="text" class="input_search" v-model="model.f_meternumber"
163
- style="width: 60%" placeholder="请输入表号" condition="uf.f_meternumber='{}'">
164
- </div>
165
- <div class="form-group col-sm-4" >
166
- <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
167
- <v-select
168
- class="select select_list"
169
- :value.sync="model.f_book_slice_area"
170
- v-model="model.f_book_slice_area"
171
- :options='$parent.$parent.sliceArea'
172
- @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
173
- placeholder='请选择'
174
- condition="ua.f_slice_area ='{}'"
175
- close-on-select
176
- value-single
177
- >
178
- </v-select>
179
- </div>
180
- <div class="form-group col-sm-4" >
181
- <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
182
- <v-select
183
- class="select select_list"
184
- :value.sync="model.f_meter_book_num"
185
- v-model="model.f_meter_book_num"
186
- :options='$parent.$parent.cbc'
187
- placeholder='请选择'
188
- condition="uf.f_meter_book_num='{}'"
189
- close-on-select
190
- value-single
191
- >
192
- </v-select>
193
- </div>
194
- <div class="form-group col-sm-4" >
195
- <label class="font_normal_body">派发情况:</label>
196
- <v-select
197
- class="select select_list"
198
- :value.sync="model.yearCheck"
199
- v-model="model.yearCheck"
200
- :options='$parent.$parent.yearCheckList'
201
- placeholder='请选择'
202
- condition="{}"
203
- :search="false"
204
- close-on-select
205
- value-single
206
- >
207
- </v-select>
208
- </div>
209
- <div class="form-group col-sm-4" >
210
- <label class="font_normal_body">安检起始:</label>
211
- <datepicker
212
- placeholder='最后一次安检时间起始'
213
- style="width:60%"
214
- :disabled-days-of-week="[]"
215
- :format="'yyyy-MM-dd'"
216
- :show-rest-button="reset"
217
- :value.sync="model.f_start_time"
218
- v-model="model.f_start_time"
219
- >
220
- </datepicker>
221
- </div>
222
- <div class="form-group col-sm-4" >
223
- <label class="font_normal_body">安检截止:</label>
224
- <datepicker
225
- placeholder='最后一次安检时间截止'
226
- :disabled-days-of-week="[]"
227
- style="width:60%"
228
- :format="'yyyy-MM-dd'"
229
- :show-rest-button="reset"
230
- :value.sync="model.f_end_time"
231
- v-model="model.f_end_time"
232
- >
233
- </datepicker>
234
- </div>
235
- <div class="form-group col-sm-4">
236
- <label class="font_normal_body">安检状态:</label>
237
- <v-select
238
- class="select select_list"
239
- :value.sync="model.f_last_check_state"
240
- v-model="model.f_last_check_state"
241
- :options='$parent.$parent.entry_status'
242
- placeholder='请选择'
243
- :search="false"
244
- close-on-select
245
- value-single
246
- >
247
- </v-select>
248
- </div>
249
- <div class="form-group col-sm-4" >
250
- <label class="font_normal_body">安检筛选:</label>
251
- <v-select
252
- class="select select_list"
253
- :value.sync="model.f_hasHousehold"
254
- v-model="model.f_hasHousehold"
255
- :options='$parent.$parent.hasHousehold'
256
- placeholder='请选择'
257
- close-on-select
258
- :search="false"
259
- value-single
260
- >
261
- </v-select>
262
- </div>
263
-
264
- </div>
265
- </div>
266
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
267
- <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
268
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
269
- </div>
270
- </modal>
271
- <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
272
- <div slot="modal-header" class="modal-header">
273
- <h4 class="modal-title">
274
- 导入用户编号
275
- </h4>
276
- </div>
277
- <div slot="modal-body" class="modal-body">
278
- <div class="row">
279
- <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
280
- action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
281
- <img src="../../../assets/Excelformat.png" style="width: 100%"/>
282
- </div>
283
- </div>
284
- <footer slot="modal-footer" class="modal-footer">
285
- </footer>
286
- </modal>
287
- <!--<div class="form-group col-sm-4 button-range" >
288
-
289
- <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
290
- <export-excel-safe :data="$parent.$parent.exportParameter"
291
- :field="$parent.$parent.excelHeaders"
292
- sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
293
- template-name='安检计划明细' :choose-col="true">
294
- </export-excel-safe>
295
-
296
- </div>-->
297
- </div>
298
- </div>
299
- </criteria>
300
- <data-grid :model="model" partial='list' class="table_sy">
301
-
302
- <template partial='head'>
303
- <tr>
304
- <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
305
- <th><nobr>用户编号</nobr></th>
306
- <th><nobr>用户名称</nobr></th>
307
- <th><nobr>用户类型</nobr></th>
308
- <th><nobr>表号</nobr></th>
309
- <th><nobr>小区名称</nobr></th>
310
- <th><nobr>片区</nobr></th>
311
- <th><nobr>抄表册</nobr></th>
312
- <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
313
- <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
314
- <th><nobr>详细地址</nobr></th>
315
- </tr>
316
- </template>
317
- <template partial='body'>
318
- <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
319
- <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
320
- <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
321
- <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
322
- <td style="text-align: center"><nobr>{{row.f_meternumber}}</nobr></td>
323
- <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
324
- <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
325
- <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
326
- <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
327
- <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
328
- <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
329
- </template>
330
- </data-grid>
331
- </criteria-paged>
332
- </div>
333
- </template>
334
-
335
- <script>
336
- import {HttpResetClass, PagedList} from "vue-client";
337
- import * as Util from "../../../components/Util";
338
- import Vue from "vue";
339
-
340
- export default {
341
- name: "PlanManage",
342
- title: '计划管理',
343
- data() {
344
- return {
345
- model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
346
- "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
347
- "f_usertype": "''",
348
- "month": "''",
349
- "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
350
- "SafeCheckCQ": "''",
351
- "startday":"''",
352
- "endday":"''"}),
353
- a:'1',
354
- opt:[{label:"测试",value:"测试"}],
355
- showCondtion:false,
356
- userTypes:[],//用户类型
357
- userStates:[],//用户状态
358
- gasproperties:[],//用气性质
359
- meter_classifys:[],//气表类型
360
- entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
361
- hasHousehold:[{label:"全部",value:""},{label:"入户",value:"入户"},{label:"未入户",value:"未入户"}],
362
- yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
363
- sliceArea:[],
364
- meterbooks:[],
365
- cbc:[],
366
- areaList:[],
367
- checkAll:false,
368
- checkes:[],
369
- excelUserCondtion:false,
370
- uploadCodeCondition:''
371
- }
372
- },
373
- props:["selectplan","userlogin"],
374
- ready(){
375
- this.$refs.paged.$refs.criteria.model.f_user_state='正常'
376
- // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
377
- //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
378
- this.setConList()
379
- this.loadpage()
380
- },
381
- methods: {
382
- loadpage(){
383
- this.select_search()
384
- this.Mreadibook()
385
- this.getSliceArea()
386
- },
387
- cancel(){
388
- this.showCondtion=false
389
- this.excelUserCondtion=false
390
- },
391
- //清空用户编号
392
- clearUserInfoId(){
393
- this.uploadCodeCondition=''
394
- Vue.showMessage("已清空用户编号")
395
- },
396
- showUploadCodeCondition(){
397
- this.excelUserCondtion=true
398
- },
399
- selfSearch (args) {
400
- //tag)
401
- args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
402
- if(args.model.f_hasHousehold=='入户'){
403
- args.condition +=` and ua.F_LAST_CHECK_STATE='入户'`
404
- }else if(args.model.f_hasHousehold=='未入户'){
405
- args.condition +=` and (ua.F_LAST_CHECK_STATE !='入户' or ua.F_LAST_CHECK_STATE is null)`
406
- }
407
- if(this.uploadCodeCondition){
408
- args.condition +=` and ${this.uploadCodeCondition}`
409
- }
410
- if(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
- }
416
- }
417
- if(args.model.f_start_time){
418
- args.condition += ` and ua.f_last_check_date >='${args.model.f_start_time} 00:00:00' `
419
- }
420
- if(args.model.f_end_time){
421
- args.condition += ` and ua.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
422
- }
423
- this.cancel()
424
- this.checkes=[]
425
- this.checkAll=false
426
- this.model.search(args.condition, args.model, args.condValue)
427
- },
428
- showUserCondition(){
429
- this.showCondtion=true
430
- },
431
- setConList(){
432
- this.userTypes=this.$appdata.getParam('用户类型') ? [{
433
- label: '全部',
434
- value: ''
435
- }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
436
-
437
- this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
438
- this.gasproperties=this.$appdata.getParam('用气性质') ? [{
439
- label: '全部',
440
- value: ''
441
- }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
442
- this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
443
- label: '全部',
444
- value: ''
445
- }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
446
- },
447
- select_search(text){
448
- //tag
449
- let pcdText=text?` and f_residential_area like '%${text}%'`:''
450
- new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
451
- //tag)
452
- if(res.data.length>0){
453
- this.areaList=[]
454
- this.areaList.push({label:"全部",value:""})
455
- res.data.forEach((result)=>{
456
- this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
457
- })
458
- }
459
- //tag)
460
- })
461
- },
462
- //获取抄表册
463
- async Mreadibook(){
464
- this.cbc=[]
465
- this.sliceArea=[]
466
- let http = new HttpResetClass()
467
- let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
468
- {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
469
- {resolveMsg: null, rejectMsg: '获取失败!!!'})
470
- this.cbc = [{label: '全部', value: ''}]
471
- //tag
472
- //tag)
473
- //tag
474
- this.meterbooks=[]
475
- this.meterbooks=getMeterReadingBooks.data.meterbooks
476
- this.meterbooks.forEach((res) => {
477
- this.cbc.push({label: res.f_book_name, value: res.id})
478
- /*if(res.f_book_slice_area){
479
- if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
480
- this.sliceArea.push(res.f_book_slice_area)
481
- }
482
- }*/
483
- })
484
-
485
- },
486
- //片区获取
487
- async getSliceArea() {
488
- let http = new HttpResetClass()
489
- let getAllArea = await http.load('POST', '/rs/search', {
490
- source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
491
- userid: this.userlogin.id
492
- }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
493
- this.sliceArea = [{label: '全部', value: ''}]
494
- //tag
495
- //tag
496
- //tag
497
- getAllArea.data.forEach((res) => {
498
- if(res.parentid==this.userlogin.orgid){
499
- this.sliceArea.push({label:res.name,value:res.name})
500
- }
501
- })
502
- //tag
503
- },
504
- //片区改变-对应抄表册下拉重新赋值
505
- slice_areaChange(value) {
506
- //tag
507
- if(!value){
508
- this.cbc=[]
509
- this.meterbooks.forEach((res) => {
510
- this.cbc.push({label: res.f_book_name, value: res.id})
511
- })
512
- }else{
513
- this.cbc=[]
514
- this.meterbooks.forEach((res) => {
515
- if(res.f_book_slice_area==value){
516
- this.cbc.push({label: res.f_book_name, value: res.id})
517
- }
518
- })
519
- }
520
- },
521
- isChecked(v) {
522
- // 如果全选,不在的按选中算,否则,在的按选中算
523
- if (this.checkAll) {
524
- return this.checkes.indexOf(v) == -1
525
- } else {
526
- return this.checkes.indexOf(v) != -1
527
- }
528
- },
529
- setCheckAll() {
530
- this.checkAll=this.checkAll?false:true;
531
- // 全选改变后,清空选中数据
532
- this.checkes = []
533
- },
534
- setCheckes(id) {
535
- let index=this.checkes.indexOf(id)
536
- if(index<0){
537
- this.checkes.push(id)
538
- }else{
539
- this.checkes.splice(index,1)
540
- }
541
- },
542
- //将客户信息拖至计划中
543
- async dragtoPlanItem() {
544
- if(this.model.rows.length==0){
545
- Vue.showMessage("未检测到列表中有用户!")
546
- return
547
- }
548
- if(!this.checkAll && this.checkes.length==0){
549
- Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
550
- return
551
- }
552
- if(this.selectplan && this.selectplan.id){
553
- this.$parent.isSend=true
554
- try{
555
- let res=await new HttpResetClass().load("POST", "/rs/logic/AddCheckPlanItem", {
556
- data:{
557
- f_operator:this.userlogin.name,
558
- f_plan_id:this.selectplan.id,
559
- f_safecheck_type:this.selectplan.f_safecheck_type,
560
- f_filialeid:this.userlogin.orgid,
561
- f_subscribe_date:'',
562
- condition:this.model.condition,
563
- switchCheckAll:true,
564
- checkAll:this.checkAll,
565
- param:this.checkes,
566
- columnName: "ua.id"
567
- }
568
- }, {resolveMsg: null, rejectMsg: null})
569
- //tag+"---"+res.data.result.length)
570
- this.$parent.isSend=false
571
- if(res.data.code==200){
572
- //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
573
- this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
574
- this.$parent.refresh()
575
- }else{
576
- this.$showMessage("添加失败!")
577
- }
578
- }catch (e) {
579
- this.$showMessage("添加失败!")
580
- }
581
- }else{
582
- this.$parent.isSend=false
583
- this.$showMessage("请先打开一个计划再进行操作")
584
- }
585
- }
586
- },
587
- events: {
588
- onFileUpload: function (file, res) {
589
- //tag)
590
- //tag)
591
- let data = {
592
- filepath: res.f_downloadpath
593
- }
594
- new HttpResetClass().load('POST','/rs/logic/safe_GetUserInfoFromExcel', {data: data}, {
595
- resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
596
- rejectMsg: '导入失败'
597
- }).then((res) => {
598
- this.uploadCodeCondition=res.data.condition
599
- this.excelUserCondtion = false
600
- })
601
- },
602
-
603
- }
604
- }
605
- </script>
606
-
607
- <style scoped>
608
- .safe-planfont{
609
- font-family: MicrosoftYaHei;
610
- font-size: 15px;
611
- font-weight: normal;
612
- font-stretch: normal;
613
- letter-spacing: 2px;
614
- color: #333333;
615
- line-height: 25px;
616
- }
617
- .safe-bodyfont{
618
- font-family: MicrosoftYaHei;
619
- font-size: 14px;
620
- font-weight: normal;
621
- font-stretch: normal;
622
- letter-spacing: 0px;
623
- color: #999999;
624
- line-height: 30px;
625
- }
626
- .safe-leftplan{
627
- height:auto;
628
- border-bottom:1px solid #ececec;
629
- padding: 10px 5px
630
- }
631
- .leftplan-center{
632
- border-top:1px solid #ececec;
633
- border-bottom:1px solid #ececec;
634
- }
635
- .safe_p{
636
- white-space: nowrap;
637
- overflow: hidden;
638
- text-overflow: ellipsis;
639
- }
640
- .safe-div-p{
641
- color: #4792de;
642
- text-align: end;
643
- padding: 8px 15px;
644
- }
645
- </style>
646
- <style lang="less">
647
- .upuserinfo_sel ul{
648
- width: 150% !important;
649
- }
650
- </style>
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
+ <div class="row " >
7
+ <label class="form-group font_normal_body"><b>用户信息</b></label>
8
+
9
+ <div class="form-group col-sm-1" >
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
+ style="width: 95%" placeholder="客户编号" condition="ui.f_userinfo_code='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-1" >
14
+ <input type="text" class="input_search" v-model="model.f_user_name"
15
+ style="width: 95%" placeholder="客户名称" condition="ui.f_user_name like '%{}%'">
16
+ </div>
17
+ <div class="form-group col-sm-1" >
18
+ <input type="text" class="input_search" v-model="model.f_address"
19
+ style="width: 95%" placeholder="客户地址" condition="ua.f_address like '%{}%'">
20
+ </div>
21
+ <div class="form-group col-sm-1 upuserinfo_sel" >
22
+ <v-select
23
+ class="select select_list"
24
+ :width="'95%'"
25
+ :value.sync="model.f_area"
26
+ v-model="model.f_area"
27
+ :options='$parent.$parent.areaList'
28
+ :timeout="500"
29
+ @select-search="$parent.$parent.select_search"
30
+ placeholder='小区选择'
31
+ condition="ua.f_residential_area = '{}'"
32
+ close-on-select
33
+ value-single
34
+ >
35
+ </v-select>
36
+ </div>
37
+ <div class="form-group col-sm-4" >
38
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUserCondition()">更多条件</button>
39
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.showUploadCodeCondition()">导入编号</button>
40
+ <button class="button_new" style="margin-right: 10px" @click="$parent.$parent.clearUserInfoId()">清空编号</button>
41
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
42
+ </div>
43
+ <div class="form-group col-sm-1" style="float: right">
44
+ <button class="button_search" style="margin-right: 10px" @click="$parent.$parent.dragtoPlanItem()">添入计划</button>
45
+ </div>
46
+ <modal :show.sync="$parent.$parent.showCondtion" v-ref:modal :width="'50%'" :backdrop="false">
47
+ <div slot="modal-header" class="modal-header">
48
+ <h4 class="modal-title">
49
+ 用户查询条件
50
+ </h4>
51
+ </div>
52
+ <div slot="modal-body" class="modal-body">
53
+ <div class="row">
54
+ <div class="form-group col-sm-4" >
55
+ <label class="font_normal_body">用户类型:</label>
56
+ <v-select
57
+ class="select select_list"
58
+ :value.sync="model.f_user_type"
59
+ v-model="model.f_user_type"
60
+ :options='$parent.$parent.userTypes'
61
+ placeholder='请选择'
62
+ condition="uf.f_user_type='{}'"
63
+ :search="false"
64
+ close-on-select
65
+ value-single
66
+ >
67
+ </v-select>
68
+ </div>
69
+ <div class="form-group col-sm-4" >
70
+ <label class="font_normal_body">用户状态:</label>
71
+ <v-select
72
+ class="select select_list"
73
+ :value.sync="model.f_user_state"
74
+ v-model="model.f_user_state"
75
+ :options='$parent.$parent.userStates'
76
+ placeholder='请选择'
77
+ condition="ui.f_user_state='{}'"
78
+ :search="false"
79
+ close-on-select
80
+ value-single
81
+ >
82
+ </v-select>
83
+ </div>
84
+ <div class="form-group col-sm-4" >
85
+ <label class="font_normal_body">用气性质:</label>
86
+ <v-select
87
+ class="select select_list"
88
+ :value.sync="model.f_gasproperties"
89
+ v-model="model.f_gasproperties"
90
+ :options='$parent.$parent.gasproperties'
91
+ placeholder='请选择'
92
+ condition="uf.f_gasproperties='{}'"
93
+ :search="false"
94
+ close-on-select
95
+ value-single
96
+ >
97
+ </v-select>
98
+ </div>
99
+ <div class="form-group col-sm-4" >
100
+ <label class="font_normal_body">气表类型:</label>
101
+ <v-select
102
+ class="select select_list"
103
+ :value.sync="model.meter_classify"
104
+ v-model="model.meter_classify"
105
+ :options='$parent.$parent.meter_classifys'
106
+ placeholder='请选择'
107
+ condition="uf.F_METER_CLASSIFY='{}'"
108
+ :search="false"
109
+ close-on-select
110
+ value-single
111
+ >
112
+ </v-select>
113
+ </div>
114
+ <!--<div class="form-group col-sm-4" >
115
+ <label class="font_normal_body">小区名称:</label>
116
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
117
+ style="width: 60%" placeholder="请选择" condition="ua.f_residential_area = '{}'">
118
+ </div>-->
119
+ <div class="form-group col-sm-4" >
120
+ <label class="font_normal_body">楼&ensp;栋&ensp;号:</label>
121
+ <input type="text" class="input_search" v-model="model.f_building"
122
+ style="width: 60%" placeholder="请选择" condition="ua.f_building='{}'">
123
+ </div>
124
+ <div class="form-group col-sm-4" >
125
+ <label class="font_normal_body">单&ensp;元&ensp;号:</label>
126
+ <input type="text" class="input_search" v-model="model.f_unit"
127
+ style="width: 60%" placeholder="请选择" condition="ua.f_unit='{}'">
128
+ </div>
129
+ <div class="form-group col-sm-4" >
130
+ <label class="font_normal_body">开户起始:</label>
131
+ <datepicker
132
+ placeholder='请选择'
133
+ style="width:60%"
134
+ :disabled-days-of-week="[]"
135
+ :format="'yyyy-MM-dd'"
136
+ :show-rest-button="reset"
137
+ :value.sync="model.f_startfile_time"
138
+ v-model="model.f_startfile_time"
139
+ condition="ui.f_createfile_date >= '{} 00:00:00'">
140
+ </datepicker>
141
+ </div>
142
+ <div class="form-group col-sm-4" >
143
+ <label class="font_normal_body">开户截止:</label>
144
+ <datepicker
145
+ placeholder='请选择'
146
+ :disabled-days-of-week="[]"
147
+ style="width:60%"
148
+ :format="'yyyy-MM-dd'"
149
+ :show-rest-button="reset"
150
+ :value.sync="model.f_endfile_time"
151
+ v-model="model.f_endfile_time"
152
+ condition="ui.f_createfile_date <= '{} 00:00:00'">
153
+ </datepicker>
154
+ </div>
155
+ <div class="form-group col-sm-4" >
156
+ <label class="font_normal_body">表&ensp;箱&ensp;号:</label>
157
+ <input type="text" class="input_search" v-model="model.f_metertitles"
158
+ style="width: 60%" placeholder="请选择" condition="uf.f_metertitles='{}'">
159
+ </div>
160
+ <div class="form-group col-sm-4" >
161
+ <label class="font_normal_body">表&ensp;&ensp;&ensp;&ensp;号:</label>
162
+ <input type="text" class="input_search" v-model="model.f_meternumber"
163
+ style="width: 60%" placeholder="请输入表号" condition="uf.f_meternumber='{}'">
164
+ </div>
165
+ <div class="form-group col-sm-4" >
166
+ <label class="font_normal_body">片&ensp;&ensp;&ensp;&ensp;区:</label>
167
+ <v-select
168
+ class="select select_list"
169
+ :value.sync="model.f_book_slice_area"
170
+ v-model="model.f_book_slice_area"
171
+ :options='$parent.$parent.sliceArea'
172
+ @change="$parent.$parent.slice_areaChange(model.f_book_slice_area)"
173
+ placeholder='请选择'
174
+ condition="ua.f_slice_area ='{}'"
175
+ close-on-select
176
+ value-single
177
+ >
178
+ </v-select>
179
+ </div>
180
+ <div class="form-group col-sm-4" >
181
+ <label class="font_normal_body">抄&ensp;表&ensp;册:</label>
182
+ <v-select
183
+ class="select select_list"
184
+ :value.sync="model.f_meter_book_num"
185
+ v-model="model.f_meter_book_num"
186
+ :options='$parent.$parent.cbc'
187
+ placeholder='请选择'
188
+ condition="uf.f_meter_book_num='{}'"
189
+ close-on-select
190
+ value-single
191
+ >
192
+ </v-select>
193
+ </div>
194
+ <div class="form-group col-sm-4" >
195
+ <label class="font_normal_body">派发情况:</label>
196
+ <v-select
197
+ class="select select_list"
198
+ :value.sync="model.yearCheck"
199
+ v-model="model.yearCheck"
200
+ :options='$parent.$parent.yearCheckList'
201
+ placeholder='请选择'
202
+ condition="{}"
203
+ :search="false"
204
+ close-on-select
205
+ value-single
206
+ >
207
+ </v-select>
208
+ </div>
209
+ <div class="form-group col-sm-4" >
210
+ <label class="font_normal_body">安检起始:</label>
211
+ <datepicker
212
+ placeholder='最后一次安检时间起始'
213
+ style="width:60%"
214
+ :disabled-days-of-week="[]"
215
+ :format="'yyyy-MM-dd'"
216
+ :show-rest-button="reset"
217
+ :value.sync="model.f_start_time"
218
+ v-model="model.f_start_time"
219
+ >
220
+ </datepicker>
221
+ </div>
222
+ <div class="form-group col-sm-4" >
223
+ <label class="font_normal_body">安检截止:</label>
224
+ <datepicker
225
+ placeholder='最后一次安检时间截止'
226
+ :disabled-days-of-week="[]"
227
+ style="width:60%"
228
+ :format="'yyyy-MM-dd'"
229
+ :show-rest-button="reset"
230
+ :value.sync="model.f_end_time"
231
+ v-model="model.f_end_time"
232
+ >
233
+ </datepicker>
234
+ </div>
235
+ <div class="form-group col-sm-4">
236
+ <label class="font_normal_body">安检状态:</label>
237
+ <v-select
238
+ class="select select_list"
239
+ :value.sync="model.f_last_check_state"
240
+ v-model="model.f_last_check_state"
241
+ :options='$parent.$parent.entry_status'
242
+ placeholder='请选择'
243
+ :search="false"
244
+ close-on-select
245
+ value-single
246
+ >
247
+ </v-select>
248
+ </div>
249
+ <div class="form-group col-sm-4" >
250
+ <label class="font_normal_body">安检筛选:</label>
251
+ <v-select
252
+ class="select select_list"
253
+ :value.sync="model.f_hasHousehold"
254
+ v-model="model.f_hasHousehold"
255
+ :options='$parent.$parent.hasHousehold'
256
+ placeholder='请选择'
257
+ close-on-select
258
+ :search="false"
259
+ value-single
260
+ >
261
+ </v-select>
262
+ </div>
263
+
264
+ </div>
265
+ </div>
266
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
267
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
268
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
269
+ </div>
270
+ </modal>
271
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
272
+ <div slot="modal-header" class="modal-header">
273
+ <h4 class="modal-title">
274
+ 导入用户编号
275
+ </h4>
276
+ </div>
277
+ <div slot="modal-body" class="modal-body">
278
+ <div class="row">
279
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
280
+ action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
281
+ <img src="../../../assets/Excelformat.png" style="width: 100%"/>
282
+ </div>
283
+ </div>
284
+ <footer slot="modal-footer" class="modal-footer">
285
+ </footer>
286
+ </modal>
287
+ <!--<div class="form-group col-sm-4 button-range" >
288
+
289
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
290
+ <export-excel-safe :data="$parent.$parent.exportParameter"
291
+ :field="$parent.$parent.excelHeaders"
292
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
293
+ template-name='安检计划明细' :choose-col="true">
294
+ </export-excel-safe>
295
+
296
+ </div>-->
297
+ </div>
298
+ </div>
299
+ </criteria>
300
+ <data-grid :model="model" partial='list' class="table_sy">
301
+
302
+ <template partial='head'>
303
+ <tr>
304
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
305
+ <th><nobr>用户编号</nobr></th>
306
+ <th><nobr>用户名称</nobr></th>
307
+ <th><nobr>用户类型</nobr></th>
308
+ <th><nobr>表号</nobr></th>
309
+ <th><nobr>小区名称</nobr></th>
310
+ <th><nobr>片区</nobr></th>
311
+ <th><nobr>抄表册</nobr></th>
312
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
313
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
314
+ <th><nobr>详细地址</nobr></th>
315
+ </tr>
316
+ </template>
317
+ <template partial='body'>
318
+ <td style="text-align: center;white-space:nowrap;"><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.isChecked(row.id)" @change="$parent.$parent.$parent.setCheckes(row.id)" /></td>
319
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
320
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
321
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
322
+ <td style="text-align: center"><nobr>{{row.f_meternumber}}</nobr></td>
323
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
324
+ <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
325
+ <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
326
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
327
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
328
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
329
+ </template>
330
+ </data-grid>
331
+ </criteria-paged>
332
+ </div>
333
+ </template>
334
+
335
+ <script>
336
+ import {HttpResetClass, PagedList} from "vue-client";
337
+ import * as Util from "../../../components/Util";
338
+ import Vue from "vue";
339
+
340
+ export default {
341
+ name: "PlanManage",
342
+ title: '计划管理',
343
+ data() {
344
+ return {
345
+ model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
346
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
347
+ "f_usertype": "''",
348
+ "month": "''",
349
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
350
+ "SafeCheckCQ": "''",
351
+ "startday":"''",
352
+ "endday":"''"}),
353
+ a:'1',
354
+ opt:[{label:"测试",value:"测试"}],
355
+ showCondtion:false,
356
+ userTypes:[],//用户类型
357
+ userStates:[],//用户状态
358
+ gasproperties:[],//用气性质
359
+ meter_classifys:[],//气表类型
360
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
361
+ hasHousehold:[{label:"全部",value:""},{label:"入户",value:"入户"},{label:"未入户",value:"未入户"}],
362
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
363
+ sliceArea:[],
364
+ meterbooks:[],
365
+ cbc:[],
366
+ areaList:[],
367
+ checkAll:false,
368
+ checkes:[],
369
+ excelUserCondtion:false,
370
+ uploadCodeCondition:''
371
+ }
372
+ },
373
+ props:["selectplan","userlogin"],
374
+ ready(){
375
+ this.$refs.paged.$refs.criteria.model.f_user_state='正常'
376
+ // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
377
+ //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
378
+ this.setConList()
379
+ this.loadpage()
380
+ },
381
+ methods: {
382
+ loadpage(){
383
+ this.select_search()
384
+ this.Mreadibook()
385
+ this.getSliceArea()
386
+ },
387
+ cancel(){
388
+ this.showCondtion=false
389
+ this.excelUserCondtion=false
390
+ },
391
+ //清空用户编号
392
+ clearUserInfoId(){
393
+ this.uploadCodeCondition=''
394
+ Vue.showMessage("已清空用户编号")
395
+ },
396
+ showUploadCodeCondition(){
397
+ this.excelUserCondtion=true
398
+ },
399
+ selfSearch (args) {
400
+ //tag)
401
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
402
+ if(args.model.f_hasHousehold=='入户'){
403
+ args.condition +=` and ua.F_LAST_CHECK_STATE='入户'`
404
+ }else if(args.model.f_hasHousehold=='未入户'){
405
+ args.condition +=` and (ua.F_LAST_CHECK_STATE !='入户' or ua.F_LAST_CHECK_STATE is null)`
406
+ }
407
+ if(this.uploadCodeCondition){
408
+ args.condition +=` and ${this.uploadCodeCondition}`
409
+ }
410
+ if(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
+ }
416
+ }
417
+ if(args.model.f_start_time){
418
+ args.condition += ` and ua.f_last_check_date >='${args.model.f_start_time} 00:00:00' `
419
+ }
420
+ if(args.model.f_end_time){
421
+ args.condition += ` and ua.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
422
+ }
423
+ this.cancel()
424
+ this.checkes=[]
425
+ this.checkAll=false
426
+ this.model.search(args.condition, args.model, args.condValue)
427
+ },
428
+ showUserCondition(){
429
+ this.showCondtion=true
430
+ },
431
+ setConList(){
432
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
433
+ label: '全部',
434
+ value: ''
435
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
436
+
437
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
438
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
439
+ label: '全部',
440
+ value: ''
441
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
442
+ this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
443
+ label: '全部',
444
+ value: ''
445
+ }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
446
+ },
447
+ select_search(text){
448
+ //tag
449
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
450
+ new HttpResetClass().load("POST", `${this.$androidUtil.getProxyUrl()}/rs/sql/safe_singleTable_OrderBy`, {data:{items:"*",tablename:"t_area",orderitem:"id",condition:`f_orgid = '${this.userlogin.orgid}' ${pcdText} `}}, {resolveMsg: null, rejectMsg: null}).then((res)=>{
451
+ //tag)
452
+ if(res.data.length>0){
453
+ this.areaList=[]
454
+ this.areaList.push({label:"全部",value:""})
455
+ res.data.forEach((result)=>{
456
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
457
+ })
458
+ }
459
+ //tag)
460
+ })
461
+ },
462
+ //获取抄表册
463
+ async Mreadibook(){
464
+ this.cbc=[]
465
+ this.sliceArea=[]
466
+ let http = new HttpResetClass()
467
+ let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
468
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
469
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
470
+ this.cbc = [{label: '全部', value: ''}]
471
+ //tag
472
+ //tag)
473
+ //tag
474
+ this.meterbooks=[]
475
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
476
+ this.meterbooks.forEach((res) => {
477
+ this.cbc.push({label: res.f_book_name, value: res.id})
478
+ /*if(res.f_book_slice_area){
479
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
480
+ this.sliceArea.push(res.f_book_slice_area)
481
+ }
482
+ }*/
483
+ })
484
+
485
+ },
486
+ //片区获取
487
+ async getSliceArea() {
488
+ let http = new HttpResetClass()
489
+ let getAllArea = await http.load('POST', '/rs/search', {
490
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
491
+ userid: this.userlogin.id
492
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
493
+ this.sliceArea = [{label: '全部', value: ''}]
494
+ //tag
495
+ //tag
496
+ //tag
497
+ getAllArea.data.forEach((res) => {
498
+ if(res.parentid==this.userlogin.orgid){
499
+ this.sliceArea.push({label:res.name,value:res.name})
500
+ }
501
+ })
502
+ //tag
503
+ },
504
+ //片区改变-对应抄表册下拉重新赋值
505
+ slice_areaChange(value) {
506
+ //tag
507
+ if(!value){
508
+ this.cbc=[]
509
+ this.meterbooks.forEach((res) => {
510
+ this.cbc.push({label: res.f_book_name, value: res.id})
511
+ })
512
+ }else{
513
+ this.cbc=[]
514
+ this.meterbooks.forEach((res) => {
515
+ if(res.f_book_slice_area==value){
516
+ this.cbc.push({label: res.f_book_name, value: res.id})
517
+ }
518
+ })
519
+ }
520
+ },
521
+ isChecked(v) {
522
+ // 如果全选,不在的按选中算,否则,在的按选中算
523
+ if (this.checkAll) {
524
+ return this.checkes.indexOf(v) == -1
525
+ } else {
526
+ return this.checkes.indexOf(v) != -1
527
+ }
528
+ },
529
+ setCheckAll() {
530
+ this.checkAll=this.checkAll?false:true;
531
+ // 全选改变后,清空选中数据
532
+ this.checkes = []
533
+ },
534
+ setCheckes(id) {
535
+ let index=this.checkes.indexOf(id)
536
+ if(index<0){
537
+ this.checkes.push(id)
538
+ }else{
539
+ this.checkes.splice(index,1)
540
+ }
541
+ },
542
+ //将客户信息拖至计划中
543
+ async dragtoPlanItem() {
544
+ if(this.model.rows.length==0){
545
+ Vue.showMessage("未检测到列表中有用户!")
546
+ return
547
+ }
548
+ if(!this.checkAll && this.checkes.length==0){
549
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
550
+ return
551
+ }
552
+ if(this.selectplan && this.selectplan.id){
553
+ this.$parent.isSend=true
554
+ try{
555
+ let res=await new HttpResetClass().load("POST", "/rs/logic/AddCheckPlanItem", {
556
+ data:{
557
+ f_operator:this.userlogin.name,
558
+ f_plan_id:this.selectplan.id,
559
+ f_safecheck_type:this.selectplan.f_safecheck_type,
560
+ f_filialeid:this.userlogin.orgid,
561
+ f_subscribe_date:'',
562
+ condition:this.model.condition,
563
+ switchCheckAll:true,
564
+ checkAll:this.checkAll,
565
+ param:this.checkes,
566
+ columnName: "ua.id"
567
+ }
568
+ }, {resolveMsg: null, rejectMsg: null})
569
+ //tag+"---"+res.data.result.length)
570
+ this.$parent.isSend=false
571
+ if(res.data.code==200){
572
+ //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
573
+ this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
574
+ this.$parent.refresh()
575
+ }else{
576
+ this.$showMessage("添加失败!")
577
+ }
578
+ }catch (e) {
579
+ this.$showMessage("添加失败!")
580
+ }
581
+ }else{
582
+ this.$parent.isSend=false
583
+ this.$showMessage("请先打开一个计划再进行操作")
584
+ }
585
+ }
586
+ },
587
+ events: {
588
+ onFileUpload: function (file, res) {
589
+ //tag)
590
+ //tag)
591
+ let data = {
592
+ filepath: res.f_downloadpath
593
+ }
594
+ new HttpResetClass().load('POST','/rs/logic/safe_GetUserInfoFromExcel', {data: data}, {
595
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
596
+ rejectMsg: '导入失败'
597
+ }).then((res) => {
598
+ this.uploadCodeCondition=res.data.condition
599
+ this.excelUserCondtion = false
600
+ })
601
+ },
602
+
603
+ }
604
+ }
605
+ </script>
606
+
607
+ <style scoped>
608
+ .safe-planfont{
609
+ font-family: MicrosoftYaHei;
610
+ font-size: 15px;
611
+ font-weight: normal;
612
+ font-stretch: normal;
613
+ letter-spacing: 2px;
614
+ color: #333333;
615
+ line-height: 25px;
616
+ }
617
+ .safe-bodyfont{
618
+ font-family: MicrosoftYaHei;
619
+ font-size: 14px;
620
+ font-weight: normal;
621
+ font-stretch: normal;
622
+ letter-spacing: 0px;
623
+ color: #999999;
624
+ line-height: 30px;
625
+ }
626
+ .safe-leftplan{
627
+ height:auto;
628
+ border-bottom:1px solid #ececec;
629
+ padding: 10px 5px
630
+ }
631
+ .leftplan-center{
632
+ border-top:1px solid #ececec;
633
+ border-bottom:1px solid #ececec;
634
+ }
635
+ .safe_p{
636
+ white-space: nowrap;
637
+ overflow: hidden;
638
+ text-overflow: ellipsis;
639
+ }
640
+ .safe-div-p{
641
+ color: #4792de;
642
+ text-align: end;
643
+ padding: 8px 15px;
644
+ }
645
+ </style>
646
+ <style lang="less">
647
+ .upuserinfo_sel ul{
648
+ width: 150% !important;
649
+ }
650
+ </style>