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