safecheck-client 3.0.30-9 → 3.0.30-90

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 (102) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/App.vue +2 -2
  4. package/src/components/DefectDealMain/DefectListNew.vue +5 -5
  5. package/src/components/Util.js +15 -0
  6. package/src/components/android/AddPlanItem.vue +5 -2
  7. package/src/components/android/AreaPlan.vue +2 -2
  8. package/src/components/android/CurrentCreate.vue +3 -2
  9. package/src/components/android/CurrentCreate_new.vue +563 -559
  10. package/src/components/android/PaperFeedback.vue +4 -2
  11. package/src/components/android/SafecheckOrderV.vue +2 -2
  12. package/src/components/android/UploadPage.vue +13 -123
  13. package/src/components/paper/PaperList.vue +9 -2
  14. package/src/components/paper/PlanChooser.vue +8 -6
  15. package/src/components/pc/Edit.vue +126 -0
  16. package/src/components/pc/LodopFuncs.js +159 -0
  17. package/src/components/pc/NewCheckpaper.vue +9 -5
  18. package/src/components/pc/PaperEdit.vue +151 -0
  19. package/src/components/pc/PrintData.vue +243 -0
  20. package/src/components/pc/PrintTable.vue +241 -0
  21. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  22. package/src/components/report/NoCheckplanSafecheck.vue +0 -2
  23. package/src/components/rongcheng/CheckCurrentCreate.vue +8 -0
  24. package/src/components/rongcheng/PaperStatem.vue +42 -1
  25. package/src/components/rongcheng/PhoneUpUserinfo.vue +149 -199
  26. package/src/components/rongcheng/SafecheckOrderV.vue +8 -0
  27. package/src/components/rongcheng/SafecheckUserInfo.vue +419 -0
  28. package/src/components/rongcheng/report/CheckPlanAreaList.vue +21 -3
  29. package/src/filiale/ankangyihua/pc/checkUserList.vue +1 -0
  30. package/src/filiale/bayan/android/CurrentCreate.vue +1 -1
  31. package/src/filiale/bayan/android/Edit.vue +132 -0
  32. package/src/filiale/bayan/android/SafecheckOrderV.vue +2 -2
  33. package/src/filiale/bayan/android/SafecheckUserInfo.vue +6 -1
  34. package/src/filiale/bayan/android.js +2 -1
  35. package/src/filiale/fugou/android/AddPlanItem.vue +413 -0
  36. package/src/filiale/fugou/android.js +10 -0
  37. package/src/filiale/fugou/pc/DefectMainNew.vue +63 -0
  38. package/src/filiale/fugou/pc/DefectPaperNew.vue +1081 -0
  39. package/src/filiale/fugou/pc/PaperDefectMain.vue +890 -0
  40. package/src/filiale/fugou/pc/PaperList.vue +46 -0
  41. package/src/filiale/fugou/pc/checkUserList.vue +824 -0
  42. package/src/filiale/fugou/pc.js +5 -1
  43. package/src/filiale/hanzhong/android/SafecheckDevices.vue +24 -24
  44. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2 -2
  45. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +1 -1
  46. package/src/filiale/hanzhong/pc/NewCheckpaper.vue +1923 -0
  47. package/src/filiale/hanzhong/pc.js +4 -1
  48. package/src/filiale/huatong/android/CurrentCreate.vue +564 -564
  49. package/src/filiale/huatong/android/SafecheckOrderV.vue +8 -0
  50. package/src/filiale/jingyang/android/AddPlanItem.vue +458 -0
  51. package/src/filiale/jingyang/android/CurrentCreate.vue +1080 -0
  52. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  53. package/src/filiale/jingyang/android/SafecheckOrderV.vue +2734 -0
  54. package/src/filiale/jingyang/android/SafecheckUserInfo.vue +780 -0
  55. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  56. package/src/filiale/kelai/android.js +1 -0
  57. package/src/filiale/liaoyuan/android/CurrentCreate.vue +1066 -0
  58. package/src/filiale/liaoyuan/android.js +1 -0
  59. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  60. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  61. package/src/filiale/qianneng/pc/PaperList.vue +6 -0
  62. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +6 -0
  63. package/src/filiale/tianke/pc/checkScreen.vue +4 -4
  64. package/src/filiale/tianke/pc/cq.jpg +0 -0
  65. package/src/filiale/tianke/pc/qy.jpg +0 -0
  66. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  67. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +371 -401
  68. package/src/filiale/wensu/android/AndroidDefectDeal.vue +321 -366
  69. package/src/filiale/wensu/android/AndroidDefectDealItems.vue +480 -0
  70. package/src/filiale/wensu/android.js +1 -0
  71. package/src/filiale/wensu/pc/CheckSearchUser.vue +64 -0
  72. package/src/filiale/wensu/pc/DefectPaperNew.vue +16 -10
  73. package/src/filiale/wensu/pc/NewCheckpaper.vue +1936 -0
  74. package/src/filiale/wensu/pc/RoleSelector.vue +4 -1
  75. package/src/filiale/wensu/pc/checkUserList.vue +50 -0
  76. package/src/filiale/wensu/pc.js +2 -1
  77. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  78. package/src/filiale/wuhai/android/SafecheckOrderV.vue +2069 -2041
  79. package/src/filiale/wuhai/pc/NewCheckpaper.vue +26 -24
  80. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  81. package/src/filiale/yangchunboneng/pc/CheckBookDetails.vue +19 -0
  82. package/src/filiale/yongzhou/pc/CheckSearchUser.vue +1092 -0
  83. package/src/filiale/yongzhou/pc/LodopFuncs.js +159 -0
  84. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +252 -0
  85. package/src/filiale/yongzhou/pc/PaperList.vue +798 -0
  86. package/src/filiale/yongzhou/pc/PrintData.vue +243 -0
  87. package/src/filiale/yongzhou/pc/PrintTable.vue +241 -0
  88. package/src/filiale/yongzhou/pc/communityDetail.vue +35 -12
  89. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +28 -14
  90. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +28 -14
  91. package/src/filiale/yongzhou/pc/safeDetail.vue +43 -15
  92. package/src/filiale/yongzhou/pc/safeStatistics.vue +16 -6
  93. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +81 -27
  94. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +56 -26
  95. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +16 -6
  96. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  97. package/src/filiale/yongzhou/pc.js +17 -12
  98. package/src/filiale/zhongsheng/android/CurrentCreate.vue +540 -536
  99. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  100. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  101. package/src/main.js +1 -1
  102. package/src/safecheck.js +12 -0
@@ -0,0 +1,824 @@
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_type"
74
+ v-model="model.f_user_type"
75
+ :options='$parent.$parent.userTypes'
76
+ placeholder='请选择'
77
+ condition="uf.f_user_type='{}'"
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_user_state"
89
+ v-model="model.f_user_state"
90
+ :options='$parent.$parent.userStates'
91
+ placeholder='请选择'
92
+ condition="ui.f_user_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_community_name"
314
+ v-model="model.f_community_name"
315
+ :options='$parent.$parent.community'
316
+ placeholder='请选择'
317
+ condition="area.f_community='{}'"
318
+ :search="false"
319
+ close-on-select
320
+ value-single
321
+ >
322
+ </v-select>
323
+ </div>
324
+ <div class="form-group col-sm-4" >
325
+ <label class="font_normal_body">用户标签:</label>
326
+ <v-select
327
+ class="select select_list"
328
+ :value.sync="model.f_user_tags"
329
+ v-model="model.f_user_tags"
330
+ :options='$parent.$parent.user_tags'
331
+ placeholder='请选择'
332
+ condition="ui.f_user_tags='{}'"
333
+ :search="false"
334
+ close-on-select
335
+ value-single
336
+ >
337
+ </v-select>
338
+ </div>
339
+ <div class="form-group col-sm-4" >
340
+ <label class="font_normal_body">用气类型:</label>
341
+ <v-select
342
+ class="select select_list"
343
+ :value.sync="model.f_user_gas_type"
344
+ v-model="model.f_user_gas_type"
345
+ :options='$parent.$parent.user_gas_types'
346
+ placeholder='请选择'
347
+ condition="ui.f_user_gas_type='{}'"
348
+ :search="false"
349
+ close-on-select
350
+ value-single
351
+ >
352
+ </v-select>
353
+ </div>
354
+ <!--<div class="form-group col-sm-4" >
355
+ <label class="font_normal_body">入户情况:</label>
356
+ <v-select
357
+ class="select select_list"
358
+ :value.sync="model.f_hasHousehold"
359
+ v-model="model.f_hasHousehold"
360
+ :options='$parent.$parent.hasHousehold'
361
+ placeholder='请选择'
362
+ close-on-select
363
+ :search="false"
364
+ value-single
365
+ >
366
+ </v-select>
367
+ </div>-->
368
+
369
+ </div>
370
+ </div>
371
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
372
+ <button class="button_search" style="margin-right: 15px" @click="search()">查询</button>
373
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
374
+ </div>
375
+ </modal>
376
+ <modal :show.sync="$parent.$parent.excelUserCondtion" width="500px" v-ref:modal1 >
377
+ <div slot="modal-header" class="modal-header">
378
+ <h4 class="modal-title">
379
+ 导入用户编号
380
+ </h4>
381
+ </div>
382
+ <div slot="modal-body" class="modal-body">
383
+ <div class="row">
384
+ <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
385
+ action="rs/file/uploadFile" tagname="档案信息导入" v-ref:file :headers="headers" multiple></file-upload>
386
+ <img src="../../../assets/Excelformat.png" style="width: 100%"/>
387
+ </div>
388
+ </div>
389
+ <footer slot="modal-footer" class="modal-footer">
390
+ </footer>
391
+ </modal>
392
+ <!--<div class="form-group col-sm-4 button-range" >
393
+
394
+ <button class="button_search" style="margin-right: 10px" @click="search()">查询</button>
395
+ <export-excel-safe :data="$parent.$parent.exportParameter"
396
+ :field="$parent.$parent.excelHeaders"
397
+ sqlurl="rs/logic/SafeExportExcel" sql-name="planItem"
398
+ template-name='安检计划明细' :choose-col="true">
399
+ </export-excel-safe>
400
+
401
+ </div>-->
402
+ </div>
403
+ </div>
404
+ </criteria>
405
+ <data-grid :model="model" partial='list' class="table_sy">
406
+
407
+ <template partial='head'>
408
+ <tr>
409
+ <th><nobr><input type="checkbox" onClick="event.cancelBubble = true" :checked="$parent.$parent.$parent.checkAll" @change="$parent.$parent.$parent.setCheckAll()"/> 全选</nobr></th>
410
+ <th><nobr>用户编号</nobr></th>
411
+ <th><nobr>用户名称</nobr></th>
412
+ <th><nobr>用户类型</nobr></th>
413
+ <th><nobr>用户电话</nobr></th>
414
+ <th><nobr>表具类型</nobr></th>
415
+ <th><nobr>小区名称</nobr></th>
416
+ <th><nobr>片区</nobr></th>
417
+ <th><nobr>抄表册</nobr></th>
418
+ <th title="当前所在的安检计划名称"><nobr>所属计划</nobr></th>
419
+ <th title="最后一次安检日期"><nobr>安检日期</nobr></th>
420
+ <th><nobr>详细地址</nobr></th>
421
+ </tr>
422
+ </template>
423
+ <template partial='body'>
424
+ <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>
425
+ <td style="text-align: center"><nobr>{{row.f_userinfo_code}}</nobr></td>
426
+ <td style="text-align: center"><nobr>{{row.f_user_name}}</nobr></td>
427
+ <td style="text-align: center"><nobr>{{row.f_user_type}}</nobr></td>
428
+ <td style="text-align: center"><nobr>{{row.f_user_phone}}</nobr></td>
429
+ <td style="text-align: center"><nobr>{{row.f_meter_classify}}</nobr></td>
430
+ <td style="text-align: center"><nobr>{{row.f_residential_area}}</nobr></td>
431
+ <td style="text-align: center"><nobr>{{row.f_book_slice_area}}</nobr></td>
432
+ <td style="text-align: center"><nobr>{{row.f_book_name}}</nobr></td>
433
+ <td style="text-align: center"><nobr>{{row.f_plan_name}}</nobr></td>
434
+ <td style="text-align: center"><nobr>{{row.f_last_check_date}}</nobr></td>
435
+ <td style="text-align: center"><nobr>{{row.f_address}}</nobr></td>
436
+ </template>
437
+ </data-grid>
438
+ </criteria-paged>
439
+ </div>
440
+ </template>
441
+
442
+ <script>
443
+ import {HttpResetClass, PagedList} from "vue-client";
444
+ import * as Util from "../../Util";
445
+ import Vue from "vue";
446
+
447
+ export default {
448
+ name: "PlanManage",
449
+ title: '计划管理',
450
+ data() {
451
+ return {
452
+ model:new PagedList('/rs/sql/FetchUserFileByOrgNoRuHuSXQ', 100, {
453
+ "orderitem": "'f_residential_area,f_building,f_unit,f_floor,f_room'",
454
+ "f_usertype": "''",
455
+ "month": "''",
456
+ "SafeCheckSX": {"f_check_start": '', "f_check_end": ''},
457
+ "SafeCheckCQ": "''",
458
+ "startday":"''",
459
+ "endday":"''"}),
460
+ a:'1',
461
+ opt:[{label:"测试",value:"测试"}],
462
+ showCondtion:false,
463
+ userTypes:[],//用户类型
464
+ community:[],
465
+ user_tags:this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
466
+ user_gas_types:this.$appdata.getParam('用气类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气类型')]:[{label: '全部', value: ''}],
467
+ userTags:[],
468
+ userStates:[],//用户状态
469
+ userGasType:[],//用气类型
470
+ gasproperties:[],//用气性质
471
+ meter_classifys:[],//气表类型
472
+ hasHousehold:[{label:"全部",value:""},{label:"已入户",value:"已入户"},{label:"未入户",value:"未入户"}],
473
+ yearCheckList:[{label:"全部",value:""},{label:"已在计划中",value:"ua.f_plan_id is not null"},{label:"未在计划中",value:"ua.f_plan_id is null"}],
474
+ entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
475
+ sliceArea:[],
476
+ meterbooks:[],
477
+ hasCheckBooks:'否',
478
+ checkBooks:[],
479
+ cbc:[],
480
+ areaList:[],
481
+ checkAll:false,
482
+ checkes:[],
483
+ excelUserCondtion:false,
484
+ uploadCodeCondition:''
485
+ }
486
+ },
487
+ props:["selectplan","userlogin"],
488
+ ready(){
489
+ this.$refs.paged.$refs.criteria.model.f_user_state='正常'
490
+ this.hasCheckBooks=this.$appdata.getSingleValue('是否使用安检册')
491
+ // this.$refs.paged.$refs.criteria.model.f_endfile_time=Util.toStartDateYearString()
492
+ //this.$refs.paged.$refs.criteria.model.f_hasHousehold='未入户'
493
+ this.getCheckBook()
494
+ this.setConList()
495
+ this.loadpage()
496
+ this.getCommunity()
497
+ },
498
+ methods: {
499
+ getCommunity(){
500
+ this.community=[]
501
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
502
+ data: {
503
+ items: '*',
504
+ tablename: 't_community',
505
+ condition: `f_filialeid = '${this.userlogin.orgid}'`,
506
+ orderitem: 'id desc'
507
+ }
508
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
509
+ this.community.push({label: '全部', value: ''})
510
+ res.data.forEach(ress => {
511
+ this.community.push({
512
+ label: ress.f_community_name,
513
+ value: ress.f_community_name
514
+ })
515
+ })
516
+ })
517
+ },
518
+ getCheckBook(){
519
+ this.checkBooks=[]
520
+ new HttpResetClass().load('POST', `/rs/sql/safe_singleTable_OrderBy`, {
521
+ data: {
522
+ items: 'id,f_check_book_name,f_check_book_type',
523
+ tablename: 't_check_book',
524
+ condition: `f_orgid = '${this.userlogin.orgid}'`,
525
+ orderitem: 'id desc'
526
+ }
527
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
528
+ this.checkBooks.push({label: '全部', value: ''})
529
+ res.data.forEach(ress => {
530
+ this.checkBooks.push({
531
+ label: ress.f_check_book_name,
532
+ value: `${ress.id}-${ress.f_check_book_type}`
533
+ })
534
+ })
535
+ })
536
+ },
537
+ loadpage(){
538
+ this.select_search()
539
+ this.Mreadibook()
540
+ this.getSliceArea()
541
+ },
542
+ cancel(){
543
+ this.showCondtion=false
544
+ this.excelUserCondtion=false
545
+ },
546
+ //清空用户编号
547
+ clearUserInfoId(){
548
+ this.uploadCodeCondition=''
549
+ Vue.showMessage("已清空用户编号")
550
+ },
551
+ showUploadCodeCondition(){
552
+ this.excelUserCondtion=true
553
+ },
554
+ selfSearch (args) {
555
+ //tag)
556
+ args.condition += ` and ui.f_filialeid='${this.userlogin.orgid}'`
557
+ /*if(args.model.f_hasHousehold=='已入户'){
558
+ 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='入户'`
559
+ }else if(args.model.f_hasHousehold=='未入户'){
560
+ 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,'未入户')!='入户')`
561
+ }*/
562
+
563
+ if (args.model.f_last_check_state == '未检') {
564
+ let nocheckcon = 'and ( ui.f_last_check_date is null '
565
+ if(args.model.f_start_time){
566
+ nocheckcon += ` or ui.f_last_check_date <='${args.model.f_start_time} 00:00:00' `
567
+ }
568
+ if(args.model.f_end_time){
569
+ nocheckcon += ` or ui.f_last_check_date >='${args.model.f_end_time} 23:59:59' `
570
+ }
571
+ nocheckcon += ')'
572
+ args.condition += nocheckcon
573
+ }else{
574
+ if(args.model.f_last_check_state){
575
+ args.condition += ` and ui.f_last_check_state = '${args.model.f_last_check_state}'`
576
+ }
577
+ if(args.model.f_start_time){
578
+ args.condition += ` and ui.f_last_check_date >='${args.model.f_start_time} 00:00:00' `
579
+ }
580
+ if(args.model.f_end_time){
581
+ args.condition += ` and ui.f_last_check_date <='${args.model.f_end_time} 23:59:59' `
582
+ }
583
+ }
584
+
585
+ if(args.model.checkBook){
586
+ let arr=args.model.checkBook.split('-')
587
+ if(arr[1] == '用户'){
588
+ args.condition +=` and ua.f_check_book_id='${arr[0]}'`
589
+ }else{
590
+ args.condition +=` and area.f_check_book_id=${arr[0]} and ua.f_check_book_id is null`
591
+ }
592
+ }
593
+ if(this.uploadCodeCondition){
594
+ args.condition +=` and ${this.uploadCodeCondition}`
595
+ }
596
+ this.cancel()
597
+ this.checkes=[]
598
+ this.checkAll=false
599
+ this.model.search(args.condition, args.model, args.condValue)
600
+ },
601
+ showUserCondition(){
602
+ this.showCondtion=true
603
+ },
604
+ setConList(){
605
+ this.userTypes=this.$appdata.getParam('用户类型') ? [{
606
+ label: '全部',
607
+ value: ''
608
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
609
+ this.userTags=this.$appdata.getParam('用户类型') ? [...this.$appdata.getParam('用户类型')] : []
610
+ this.userGasType=this.$appdata.getParam('用气类型') ? [...this.$appdata.getParam('用气类型')] : []
611
+ this.userStates=this.$appdata.getParam('安检用户状态') ? [...this.$appdata.getParam('安检用户状态')] : []
612
+ this.gasproperties=this.$appdata.getParam('用气性质') ? [{
613
+ label: '全部',
614
+ value: ''
615
+ }, ...this.$appdata.getParam('用气性质')] : [{label: '全部', value: ''}]
616
+ this.meter_classifys=this.$appdata.getParam('气表类型') ? [{
617
+ label: '全部',
618
+ value: ''
619
+ }, ...this.$appdata.getParam('气表类型')] : [{label: '全部', value: ''}]
620
+ },
621
+ select_search(text){
622
+ //tag
623
+ let pcdText=text?` and f_residential_area like '%${text}%'`:''
624
+ 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)=>{
625
+ //tag)
626
+ if(res.data.length>0){
627
+ this.areaList=[]
628
+ this.areaList.push({label:"全部",value:""})
629
+ res.data.forEach((result)=>{
630
+ this.areaList.push({label:result.f_residential_area,value:result.f_residential_area})
631
+ })
632
+ }
633
+ //tag)
634
+ })
635
+ },
636
+ //获取抄表册
637
+ async Mreadibook(){
638
+ this.cbc=[]
639
+ this.sliceArea=[]
640
+ let http = new HttpResetClass()
641
+ let getMeterReadingBooks = await http.load('POST','rs/logic/getMeterBooksData',
642
+ {data: {f_orgid: "('"+this.userlogin.orgid+"')"}},
643
+ {resolveMsg: null, rejectMsg: '获取失败!!!'})
644
+ this.cbc = [{label: '全部', value: ''}]
645
+ //tag
646
+ //tag)
647
+ //tag
648
+ this.meterbooks=[]
649
+ this.meterbooks=getMeterReadingBooks.data.meterbooks
650
+ this.meterbooks.forEach((res) => {
651
+ this.cbc.push({label: res.f_book_name, value: res.id})
652
+ /*if(res.f_book_slice_area){
653
+ if(this.sliceArea.indexOf(res.f_book_slice_area)<0){
654
+ this.sliceArea.push(res.f_book_slice_area)
655
+ }
656
+ }*/
657
+ })
658
+
659
+ },
660
+ //片区获取
661
+ async getSliceArea() {
662
+ let http = new HttpResetClass()
663
+ let getAllArea = await http.load('POST', '/rs/search', {
664
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
665
+ userid: this.userlogin.id
666
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
667
+ this.sliceArea = [{label: '全部', value: ''}]
668
+ //tag
669
+ //tag
670
+ //tag
671
+ getAllArea.data.forEach((res) => {
672
+ if(res.parentid==this.userlogin.orgid){
673
+ this.sliceArea.push({label:res.name,value:res.name})
674
+ }
675
+ })
676
+ //tag
677
+ },
678
+ //片区改变-对应抄表册下拉重新赋值
679
+ slice_areaChange(value) {
680
+ //tag
681
+ if(!value){
682
+ this.cbc=[]
683
+ this.meterbooks.forEach((res) => {
684
+ this.cbc.push({label: res.f_book_name, value: res.id})
685
+ })
686
+ }else{
687
+ this.cbc=[]
688
+ this.meterbooks.forEach((res) => {
689
+ if(res.f_book_slice_area==value){
690
+ this.cbc.push({label: res.f_book_name, value: res.id})
691
+ }
692
+ })
693
+ }
694
+ },
695
+ isChecked(v) {
696
+ // 如果全选,不在的按选中算,否则,在的按选中算
697
+ if (this.checkAll) {
698
+ return this.checkes.indexOf(v) == -1
699
+ } else {
700
+ return this.checkes.indexOf(v) != -1
701
+ }
702
+ },
703
+ setCheckAll() {
704
+ this.checkAll=this.checkAll?false:true;
705
+ // 全选改变后,清空选中数据
706
+ this.checkes = []
707
+ },
708
+ setCheckes(id) {
709
+ let index=this.checkes.indexOf(id)
710
+ if(index<0){
711
+ this.checkes.push(id)
712
+ }else{
713
+ this.checkes.splice(index,1)
714
+ }
715
+ },
716
+ //将客户信息拖至计划中
717
+ async dragtoPlanItem() {
718
+ if(this.model.rows.length==0){
719
+ Vue.showMessage("未检测到列表中有用户!")
720
+ return
721
+ }
722
+ if(!this.checkAll && this.checkes.length==0){
723
+ Vue.showMessage("请先勾选你要添入到上方计划中的用户!")
724
+ return
725
+ }
726
+ if(this.selectplan && this.selectplan.id){
727
+ this.$parent.isSend=true
728
+ try{
729
+ let res=await new HttpResetClass().load("POST", "/rs/logic/AddCheckPlanItem", {
730
+ data:{
731
+ f_operator:this.userlogin.name,
732
+ f_plan_id:this.selectplan.id,
733
+ f_safecheck_type:this.selectplan.f_safecheck_type,
734
+ f_filialeid:this.userlogin.orgid,
735
+ f_subscribe_date:'',
736
+ condition:this.model.condition,
737
+ switchCheckAll:true,
738
+ checkAll:this.checkAll,
739
+ param:this.checkes,
740
+ columnName: "ua.id"
741
+ }
742
+ }, {resolveMsg: null, rejectMsg: null})
743
+ //tag+"---"+res.data.result.length)
744
+ this.$parent.isSend=false
745
+ if(res.data.code==200){
746
+ //alert("添加成功!有"+res.data.result.length+"条用户地址已经存在于其他计划中: \n"+res.data.result.reduce((c,v)=>{c += v.f_user_name+":"+v.f_address+"\n"}),0)
747
+ this.$showMessage("添加成功!"+(res.data.result.length>0?"有"+res.data.result.length+"条用户地址已经存在于其他计划中":""))
748
+ this.$parent.refresh()
749
+ }else{
750
+ this.$showMessage("添加失败!")
751
+ }
752
+ }catch (e) {
753
+ this.$showMessage("添加失败!")
754
+ }
755
+ }else{
756
+ this.$parent.isSend=false
757
+ this.$showMessage("请先打开一个计划再进行操作")
758
+ }
759
+ }
760
+ },
761
+ events: {
762
+ onFileUpload: function (file, res) {
763
+ //tag)
764
+ //tag)
765
+ let data = {
766
+ filepath: res.f_downloadpath
767
+ }
768
+ new HttpResetClass().load('POST','/rs/logic/safe_GetUserInfoFromExcel', {data: data}, {
769
+ resolveMsg: '导入成功!已生成条件,若要去除导入条件请点击旁边 ‘清空用户编号’ 按钮。',
770
+ rejectMsg: '导入失败'
771
+ }).then((res) => {
772
+ this.uploadCodeCondition=res.data.condition
773
+ this.excelUserCondtion = false
774
+ })
775
+ },
776
+
777
+ }
778
+ }
779
+ </script>
780
+
781
+ <style scoped>
782
+ .safe-planfont{
783
+ font-family: MicrosoftYaHei;
784
+ font-size: 15px;
785
+ font-weight: normal;
786
+ font-stretch: normal;
787
+ letter-spacing: 2px;
788
+ color: #333333;
789
+ line-height: 25px;
790
+ }
791
+ .safe-bodyfont{
792
+ font-family: MicrosoftYaHei;
793
+ font-size: 14px;
794
+ font-weight: normal;
795
+ font-stretch: normal;
796
+ letter-spacing: 0px;
797
+ color: #999999;
798
+ line-height: 30px;
799
+ }
800
+ .safe-leftplan{
801
+ height:auto;
802
+ border-bottom:1px solid #ececec;
803
+ padding: 10px 5px
804
+ }
805
+ .leftplan-center{
806
+ border-top:1px solid #ececec;
807
+ border-bottom:1px solid #ececec;
808
+ }
809
+ .safe_p{
810
+ white-space: nowrap;
811
+ overflow: hidden;
812
+ text-overflow: ellipsis;
813
+ }
814
+ .safe-div-p{
815
+ color: #4792de;
816
+ text-align: end;
817
+ padding: 8px 15px;
818
+ }
819
+ </style>
820
+ <style lang="less">
821
+ .upuserinfo_sel ul{
822
+ width: 150% !important;
823
+ }
824
+ </style>