safecheck-client 3.0.33-8 → 3.0.33-81

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