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
@@ -0,0 +1,1078 @@
1
+ <template>
2
+ <div class="flex">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.search' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
7
+ <div :class="$parent.$parent.style">
8
+ <label class="font_normal_body">用户编号</label>
9
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
10
+ id="f_userinfo_code"
11
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
12
+ </div>
13
+ <div :class="$parent.$parent.style">
14
+ <label class="font_normal_body">用户姓名</label>
15
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name" id="f_user_name"
16
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div :class="$parent.$parent.style">
19
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
20
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
21
+ id="f_residential_area"
22
+ placeholder="小区" condition="f_residential_area like '%{}%'">
23
+ </div>
24
+ <div :class="$parent.$parent.style">
25
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
26
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address" id="f_address"
27
+ placeholder="地址" condition="f_address like '%{}%'">
28
+ </div>
29
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
30
+ <export-excel-safe :data="$parent.$parent.searchData"
31
+ :field="$parent.$parent.excelHeaders"
32
+ :choose-col="true"
33
+ sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
34
+ template-name='用户安检情况'></export-excel-safe>
35
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
36
+ <div style="float: right" class="button_spacing"
37
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
38
+ @click="$parent.$parent.hiddenr()"></div>
39
+ <div style="float: right" class="button_spacing"
40
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
41
+ @click="$parent.$parent.hidden()">
42
+
43
+ </div>
44
+ </div>
45
+
46
+
47
+ </div>
48
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
49
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
50
+ <label class="font_normal_body">用户类型</label>
51
+ <v-select id="f_usertype"
52
+ placeholder='用户类型'
53
+ class="select select_list"
54
+ :value.sync="model.f_usertype"
55
+ :value-single="true"
56
+ :options='$parent.$parent.usertypes'
57
+ v-model="model.f_usertype"
58
+ condition="f_user_type = '{}'"
59
+ close-on-select clear-button></v-select>
60
+ </div>
61
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
62
+
63
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
64
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
65
+ <v-select
66
+ placeholder='安检筛选'
67
+ :value-single="true"
68
+ class="select select_list"
69
+ :value.sync="$parent.$parent.SafeCheckXZ"
70
+ :options='$parent.$parent.SafeCheckXZs'
71
+ v-model="$parent.$parent.SafeCheckXZ"
72
+ close-on-select clear-button></v-select>
73
+ </div>
74
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
75
+ <label class="font_normal_body">安检起始</label>
76
+ <datepicker
77
+ :value.sync="model.f_check_start"
78
+ placeholder='最后安检时间起始'
79
+ style="width: 60%"
80
+ :format="'yyyy-MM-dd 00:00:00'"
81
+ :show-rest-button="reset"
82
+ v-model="model.f_check_start">
83
+ </datepicker>
84
+ </div>
85
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
86
+ <label class="font_normal_body">安检结束</label>
87
+ <datepicker
88
+ :value.sync="model.f_check_end"
89
+ placeholder='最后安检时间结束'
90
+ style="width: 60%"
91
+ :format="'yyyy-MM-dd 23:59:59'"
92
+ :show-rest-button="reset"
93
+ v-model="model.f_check_end">
94
+ </datepicker>
95
+ </div>
96
+
97
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
98
+ <label class="font_normal_body">安检状态</label>
99
+ <v-select id="f_entry"
100
+ placeholder='安检状态'
101
+ :multiple="true"
102
+ class="select select_list"
103
+ :value.sync="$parent.$parent.checkStates"
104
+ :options='$parent.$parent.checkstatus'
105
+ ></v-select>
106
+ </div>
107
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
108
+ <label class="font_normal_body">隐患情况</label>
109
+ <v-select
110
+ placeholder='隐患情况'
111
+ class="select select_list"
112
+ :value-single="true"
113
+ v-model='model.f_check_result'
114
+ :value.sync="model.f_check_result"
115
+ :options='$parent.$parent.f_check_results'
116
+ condition="f_defect_content like '%{}%'"
117
+ close-on-select clear-button></v-select>
118
+ </div>
119
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
120
+ </div>
121
+ <div class="row" v-show="!$parent.$parent.$parent.showItem">
122
+
123
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
124
+ <role-selector-safe
125
+ role-name="安检员"
126
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
127
+ @re-res="$parent.$parent.getRes"
128
+ :value.sync="model.f_checker_id"
129
+ v-model="model.f_checker_id"
130
+ :value-multiple="true"
131
+ condition=" f_checker_name in {}">
132
+ </role-selector-safe>
133
+ </div>
134
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
135
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
136
+ <v-select class="select_list select"
137
+ placeholder='片区/管理站' style="width: 60%"
138
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
139
+ :options='$parent.$parent.sliceArea'
140
+ filer-key="name"
141
+ close-on-select clear-button
142
+ condition="f_slice_area='{}'"
143
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
144
+ :value-single="true">
145
+ </v-select>
146
+ </div>
147
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
148
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
149
+ <v-select class="select_list select"
150
+ placeholder='抄表册' style="width: 60%"
151
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
152
+ :options='$parent.$parent.cbc'
153
+ filer-key="name"
154
+ close-on-select clear-button
155
+ condition="f_meter_book_num={}"
156
+ :value-single="true">
157
+ </v-select>
158
+ </div>
159
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
160
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
161
+ <v-select class="select_list select"
162
+ placeholder='请选择' style="width: 60%"
163
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
164
+ :options='$parent.$parent.pcds'
165
+ filer-key="name"
166
+ close-on-select clear-button
167
+ condition="f_pcd='{}'"
168
+ :value-single="true">
169
+ </v-select>
170
+ </div>
171
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
172
+ <label class="font_normal_body">用户状态</label>
173
+ <v-select class="select_list select"
174
+ placeholder='用户状态' style="width: 60%"
175
+ :value.sync="model.f_user_state" v-model="model.f_user_state"
176
+ :options='$parent.$parent.userstates'
177
+ close-on-select clear-button
178
+ condition="f_user_state = '{}'"
179
+ :value-single="true">
180
+ </v-select>
181
+ </div>
182
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
183
+ <label class="font_normal_body">连续到访不遇</label>
184
+ <input type="number" class="input_search" v-model="model.f_daofang_year"
185
+ style="width: 60%" placeholder="连续到访不遇年数" >
186
+ </div>
187
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
188
+ <!-- <label class="font_normal_body">距上次安检天数</label>-->
189
+ <!-- <input type="number" class="input_search" v-model="model.f_check_date"-->
190
+ <!-- style="width: 60%" placeholder="距上次安检天数" >-->
191
+ <!-- </div>-->
192
+ <!-- <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">-->
193
+ <!-- <label class="font_normal_body">到访不遇次数</label>-->
194
+ <!-- <input type="number" class="input_search" v-model="model.f_check_version"-->
195
+ <!-- style="width: 60%" placeholder="到访不遇次数">-->
196
+ <!-- </div>-->
197
+ </div>
198
+
199
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
200
+ <div :class="$parent.$parent.style">
201
+ <label class="font_normal_body">用户编号</label>
202
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_userinfo_code"
203
+
204
+ placeholder="用户编号" condition="f_userinfo_code like '%{}%'">
205
+ </div>
206
+ <div :class="$parent.$parent.style">
207
+ <label class="font_normal_body">用户姓名</label>
208
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_user_name"
209
+ placeholder="用户姓名" condition="f_user_name like '%{}%'">
210
+ </div>
211
+ <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
212
+ <export-excel-safe :data="$parent.$parent.searchData"
213
+ :field="$parent.$parent.excelHeaders"
214
+ sqlurl="rs/logic/SafeExportExcel" sql-name="根据安检员查询用户档案"
215
+ template-name='用户安检情况'></export-excel-safe>
216
+ <button type="button" class="button_search button_spacing" @click="search()">查询</button>
217
+ <div style="float: right" class="button_spacing"
218
+ :class="{'button_shrink_left':$parent.$parent.$parent.showItem,'button_shrink_right':!$parent.$parent.$parent.showItem}"
219
+ @click="$parent.$parent.hiddenr()"></div>
220
+ <div style="float: right" class="button_spacing"
221
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
222
+ @click="$parent.$parent.hidden()">
223
+
224
+ </div>
225
+ </div>
226
+
227
+ </div>
228
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
229
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
230
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
231
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_residential_area"
232
+
233
+ placeholder="小区" condition="f_residential_area like '%{}%'">
234
+ </div>
235
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
236
+ <label class="font_normal_body">地&emsp;&emsp;址</label>
237
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_address"
238
+
239
+ placeholder="地址" condition="f_address like '%{}%'">
240
+ </div>
241
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
242
+ <label class="font_normal_body">用户类型</label>
243
+ <v-select
244
+ placeholder='用户类型'
245
+ class="select select_list"
246
+
247
+ :value.sync="model.f_usertype"
248
+ :value-single="true"
249
+ :options='$parent.$parent.usertypes'
250
+ v-model="model.f_usertype"
251
+ condition="f_user_type = '{}'"
252
+ close-on-select clear-button></v-select>
253
+ </div>
254
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow && !$parent.$parent.$parent.showItem"></div>-->
255
+
256
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
257
+ <label class="font_normal_body" style="color: red;">安检筛选</label>
258
+ <v-select
259
+ placeholder='安检筛选'
260
+ :value-single="true"
261
+
262
+ class="select select_list"
263
+ :value.sync="$parent.$parent.SafeCheckXZ"
264
+ :options='$parent.$parent.SafeCheckXZs'
265
+ v-model="$parent.$parent.SafeCheckXZ"
266
+ close-on-select clear-button></v-select>
267
+ </div>
268
+
269
+ </div>
270
+ <div class="row" v-show="$parent.$parent.$parent.showItem">
271
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
272
+ <label class="font_normal_body">安检起始</label>
273
+ <datepicker
274
+ :value.sync="model.f_check_start"
275
+ placeholder='最后安检时间起始'
276
+ :disabled-days-of-week="[]"
277
+ style="width: 60%"
278
+ :format="'yyyy-MM-dd'"
279
+ :show-rest-button="reset"
280
+ v-model="model.f_check_start">
281
+ </datepicker>
282
+ </div>
283
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
284
+ <label class="font_normal_body">安检结束</label>
285
+ <datepicker
286
+ :value.sync="model.f_check_end"
287
+ placeholder='最后安检时间结束'
288
+ style="width: 60%"
289
+ :disabled-days-of-week="[]"
290
+ :format="'yyyy-MM-dd'"
291
+ :show-rest-button="reset"
292
+ v-model="model.f_check_end">
293
+ </datepicker>
294
+ </div>
295
+
296
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
297
+ <label class="font_normal_body">安检状态</label>
298
+ <v-select
299
+ placeholder='安检状态'
300
+ class="select select_list"
301
+ :value.sync="$parent.$parent.checkStates"
302
+ :options='$parent.$parent.checkstatus'
303
+ :multiple="true"
304
+ close-on-select clear-button></v-select>
305
+ </div>
306
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
307
+ <label class="font_normal_body">隐患情况</label>
308
+ <v-select
309
+ placeholder='隐患情况'
310
+ class="select select_list"
311
+ :value-single="true"
312
+ v-model='model.f_check_result'
313
+ :value.sync="model.f_check_result"
314
+ :options='$parent.$parent.f_check_results'
315
+ condition="f_defect_content like '%{}%'"
316
+ close-on-select clear-button></v-select>
317
+ </div>
318
+ </div>
319
+ <!--<div class="row" v-show="$parent.$parent.$parent.showItem">
320
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
321
+ <label class="font_normal_body">公&emsp;&emsp;司</label>
322
+ <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">
323
+ </right-tree>
324
+ </div>
325
+
326
+ </div>-->
327
+ </div>
328
+ </criteria>
329
+ <data-grid :model="model" partial="list" class="list_area table_sy" v-ref:grid>
330
+ <template partial='head'>
331
+ <tr>
332
+ <th>
333
+ <nobr>用户编号</nobr>
334
+ </th>
335
+ <th>
336
+ <nobr>用户名称</nobr>
337
+ </th>
338
+ <th>
339
+ <nobr>已安检天数</nobr>
340
+ </th>
341
+ <th>
342
+ <nobr>用户电话</nobr>
343
+ </th>
344
+ <th>
345
+ <nobr>用户表号</nobr>
346
+ </th>
347
+ <!-- <th>-->
348
+ <!-- <nobr>气表品牌</nobr>-->
349
+ <!-- </th>-->
350
+ <th>
351
+ <nobr>用户类型</nobr>
352
+ </th>
353
+ <!-- <th>-->
354
+ <!-- <nobr>壁挂炉</nobr>-->
355
+ <!-- </th>-->
356
+ <!-- <th>-->
357
+ <!-- <nobr>灶具</nobr>-->
358
+ <!-- </th>-->
359
+ <th>
360
+ <nobr>小区名称</nobr>
361
+ </th>
362
+ <th style="padding: 0 40px">
363
+ <nobr>地址</nobr>
364
+ </th>
365
+ <th>
366
+ <nobr>安检员</nobr>
367
+ </th>
368
+ <!-- <th>-->
369
+ <!-- <nobr>安检员备注</nobr>-->
370
+ <!-- </th>-->
371
+ <th>
372
+ <nobr>安检日期</nobr>
373
+ </th>
374
+ <th>
375
+ <nobr>安检状态</nobr>
376
+ </th>
377
+ <th>
378
+ <nobr>安检结果</nobr>
379
+ </th>
380
+ <th>
381
+ <nobr>建档日期</nobr>
382
+ </th>
383
+ <th>
384
+ <nobr>通气日期</nobr>
385
+ </th>
386
+ <th v-show="$parent.$parent.$parent.showcode">
387
+ <nobr>二维码</nobr>
388
+ </th>
389
+ </tr>
390
+ </template>
391
+ <template partial='body'>
392
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_userinfo_code }}</td>
393
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_name }}</td>
394
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{$parent.$parent.$parent.dateDiff(row.f_last_check_date)}}</td>
395
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{ row.f_user_phone }}</td>
396
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meternumber}}</td>
397
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center;">{{row.f_meter_brand}}</td>-->
398
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_user_type }}</td>
399
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_hasfurnace }}</td>-->
400
+ <!-- <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_safe_haskitchen }}</td>-->
401
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_residential_area }}</td>
402
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_address }}</td>
403
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_checker_name }}</td>
404
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
405
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
406
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
407
+ {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
408
+ </td>
409
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
410
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_gas_date }}</td>
411
+ <td v-bind:class="{newcolor:row.code==1}" style="text-align: center" v-show="$parent.$parent.$parent.showcode">
412
+ <button class="button_spacing button_search-1" @click.stop='$parent.$parent.$parent.searchInfo(row.f_userinfo_code)' >点击</button>
413
+ </td>
414
+ </template>
415
+ </data-grid>
416
+ </criteria-paged>
417
+ <modal :show.sync="dialogVisible" style="text-align: center" destroyOnClose={true} v-ref:modal v-if="dialogVisible">
418
+ <div slot="modal-header" class="modal-header">
419
+ <h4 class="modal-title">
420
+ 二维码
421
+ </h4>
422
+ </div>
423
+ <div slot="modal-body" class="modal-body" >
424
+ <div id="dd" ></div>
425
+ </div>
426
+ <div slot="modal-footer" class="modal-footer">
427
+ <print-element class="btn btn-success width-80" id="dd" styleid='style1' top='40' left='60' width='100%' height='100%' v-ref:printelement>打印</print-element>
428
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false">确认</button>
429
+ <button type="button" class="btn btn-success width-80" @click="dialogVisible = false" >取消</button>
430
+ </div>
431
+ </modal>
432
+ </div>
433
+
434
+ </template>
435
+
436
+ <script>
437
+ import {PagedList} from 'vue-client'
438
+ import {HttpResetClass} from 'vue-client'
439
+ import co from 'co'
440
+ import * as Util from './../../Util'
441
+ import Vue from 'vue'
442
+
443
+ // let select = function * (self,userid) {
444
+ // let http = new HttpResetClass()
445
+ // let getGasman = yield http.load('POST','/rs/search', {
446
+ // source: 'this.getChildByName($安检员$).getUsers()',
447
+ // userid: userid
448
+ // }, {resolveMsg: null, rejectMsg: null})
449
+ // //tag
450
+ // getGasman.data.forEach((checker)=>{
451
+ // self.checkersid.push({label:checker.name,value:checker.id})
452
+ // })
453
+ // self.checkersid.push({label:'全部',value:''})
454
+ // }
455
+
456
+
457
+ export default {
458
+ title: '用户安检情况',
459
+ data() {
460
+ let options = []
461
+ let year = (new Date()).getFullYear()
462
+ for (let i = year; i <= year + 3; i++)
463
+ options.push({label: i + '', value: i + ''})
464
+ let moptions = []
465
+ for (let i = 1; i <= 12; i++)
466
+ moptions.push({label: i + '', value: i + ''})
467
+
468
+ return {
469
+ dialogVisible: false,
470
+ searchData: {
471
+ condition: '1=1',
472
+ orderitem: "f_last_check_date",
473
+ timetype: "dd",
474
+ f_defect_content: "CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '正常' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END"
475
+ },
476
+ excelHeaders: {
477
+ //用户编号 用户名称 用户电话 安检次数 用户类型 小区名称 地址 安检日期 安检状态 安检结果
478
+
479
+ 'f_userinfo_code': '用户编号',
480
+ 'f_user_name': '用户名称',
481
+ 'f_user_phone': '用户电话',
482
+ 'f_meternumber': '用户表号',
483
+ 'f_user_type': '用户类型',
484
+ 'f_checker_name': '安检员',
485
+ 'f_residential_area': '小区名称',
486
+ 'f_address': '地址',
487
+ 'f_last_check_date': '安检日期',
488
+ 'f_last_check_state': '安检状态',
489
+ 'f_last_check_result': '安检结果',
490
+ 'f_createfile_date': '建档日期',
491
+ 'f_gas_date': '通气日期'
492
+ },
493
+ model: new PagedList('rs/sql/根据安检员查询用户档案', 20, {
494
+ orderitem: "'f_last_check_date'",
495
+ timetype: "'dd'",
496
+ f_defect_content: 'this.f_defect_content'
497
+ }),
498
+ f_defect_content:"CASE WHEN CHARINDEX( '\"result\":\"正常\"', tp.f_defect_content ) > 0 THEN '无隐患' ELSE replace(replace(replace( replace( RIGHT ( tp.f_defect_content, len( tp.f_defect_content ) - 26 ), substring('{}',2,1), '' ), substring('{}',1,1), '' ),']',''),'\"','') END",
499
+ orgstrs: [{label: '全部', value: ''}],
500
+ checkersid: [],
501
+ checkStates:[],
502
+ SafeCheckXZ: '',
503
+ civil: '', //民用安检周期
504
+ civilian: '', //非民用安检周期
505
+ SafeCheckXZs: [{label: '全部', value: ''}, {label: '未安检', value: '未安检'}, {label: '已安检', value: '已安检'}], // 安检筛选选项
506
+ SafeCheckSXs: [{label: '是', value: '是'}, {label: '否', value: '否'}, {label: '全部', value: ''}],
507
+ // user_states:[{label: '全部', value: ''}, ...this.$appdata.getParam('用户状态')],
508
+ IsShares: [{label: '是', value: '是'}, {label: '否', value: '否'}],
509
+ IsShare: '否',
510
+ checker: {},
511
+ NoBuys: [{label: '是', value: '是'}, {label: '否', value: '否'}],
512
+ criteriaShow: false,
513
+ checkers: [],
514
+ showcode:false,
515
+ chosenOrg: {id: 0},
516
+ showModal: false,
517
+ checkedAll: false,
518
+ checkrows: [],
519
+ adjustables: [],
520
+ f_plan_year: year + '',
521
+ f_plan_month: moptions[new Date().getMonth()].value,
522
+ f_effective_start_time: '', //计划有效起始时间
523
+ f_effective_end_time: '', //计划有效结束时间
524
+ checkboxModel: {},
525
+ c_year_list: options,
526
+ c_month_list: moptions,
527
+ // areas: this.areas(),
528
+ checkstatus: this.checkstatus(),
529
+ usertypes: this.usertypes(),
530
+ userstates: this.userstates(),
531
+ sqlname: '',
532
+ f_check_results: [{label: '全部', value: ''}, {label: '正常', value: '正常'}, {label: '有隐患', value: '有隐患'}],
533
+ creatPlanWay: '',
534
+ sliceArea: [],
535
+ cbcs:[],
536
+ cbc:[],
537
+ pcds:[]
538
+ }
539
+ },
540
+ props: {
541
+ style: {
542
+ type: String,
543
+ default: 'col-sm-2 form-group'
544
+ },
545
+ style2: {
546
+ type: String,
547
+ default: 'col-sm-4 form-group'
548
+ },
549
+ checkplan: { // 传入一条安检计划信息
550
+ type: Object
551
+ },
552
+ additemshow: {
553
+ type: Boolean,
554
+ default: false
555
+ }
556
+ },
557
+ ready() {
558
+ // 获取分公司信息
559
+ this.model.f_defect_content=this.f_defect_content
560
+ this.showcode=this.$appdata.getSingleValue('用户安检情况二维码')
561
+ //this.getfengongsi()
562
+ this.model.chosenOrg = {id: 0}
563
+ this.model.f_filialeids = this.$login.f.f_orgids
564
+ this.model.f_filiale = this.$login.f.f_fengongsi
565
+ this.model.f_OrgStr = this.$login.f.orgpathstr
566
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
567
+ this.getAllMeterBook(`('${this.$login.f.orgid}')`)
568
+ },
569
+ methods: {
570
+
571
+ dateDiff(date1Str) {
572
+ // 确保传入的date1Str是有效的字符串格式
573
+ if (typeof date1Str !== 'string' || !/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(date1Str)) {
574
+ throw new Error('Invalid date format. Expected format: yyyy-mm-dd hh:mm:ss');
575
+ }
576
+ // 将date1Str格式化为Date对象,并提取日期部分
577
+ const date1 = new Date(date1Str);
578
+ const year = date1.getFullYear();
579
+ const month = String(date1.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
580
+ const day = String(date1.getDate()).padStart(2, '0');
581
+ const formattedDate1 = `${year}-${month}-${day}`;
582
+ // 获取当前日期,并同样格式化为yyyy-mm-dd
583
+ const date2 = new Date();
584
+ const currentYear = date2.getFullYear();
585
+ const currentMonth = String(date2.getMonth() + 1).padStart(2, '0');
586
+ const currentDay = String(date2.getDate()).padStart(2, '0');
587
+ const formattedDate2 = `${currentYear}-${currentMonth}-${currentDay}`;
588
+ // 将格式化后的日期字符串转换为Date对象,以便比较
589
+ const formattedDate1Obj = new Date(`${formattedDate1}T00:00:00`); // 添加时间部分以确保比较准确
590
+ const formattedDate2Obj = new Date(`${formattedDate2}T00:00:00`);
591
+ // 计算两个日期之间的差值(以毫秒为单位),然后转换为天数
592
+ const diffInMilliseconds = Math.abs(formattedDate2Obj - formattedDate1Obj);
593
+ const diffInDays = Math.ceil(diffInMilliseconds / (1000 * 60 * 60 * 24));
594
+ // 返回天数差
595
+ return diffInDays;
596
+ },
597
+ //查询二维码
598
+ searchInfo(val){
599
+ this.dialogVisible = true
600
+ //tag
601
+ new HttpResetClass().load('POST','rs/logic/QrcodeUtil', {
602
+ data: {
603
+ id:val
604
+ }
605
+ },{resolveMsg: null, rejectMsg: null}).then(res=>{
606
+ //tag
607
+ //tag
608
+ let imageer=new Image()
609
+ imageer.src="data:image/jpg;base64,"+res.data.result
610
+ document.getElementById("dd").appendChild(imageer);
611
+ //tag
612
+ })
613
+
614
+ },
615
+ //获取省市区列表
616
+ getPcd(val){
617
+ this.pcds = [{label:'全部',value:''}]
618
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
619
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
620
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
621
+ pcdlist.data.forEach((result)=>{
622
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
623
+ })
624
+ })
625
+ },
626
+ getmeterbook(val){
627
+
628
+ //tag
629
+ this.cbc=[]
630
+ this.cbc.push({
631
+ label:'全部',
632
+ value:''
633
+ })
634
+ if (val==''){
635
+
636
+ this.cbcs.forEach(res=>{
637
+ this.cbc.push({
638
+ label:res.f_book_name,
639
+ value:res.id
640
+ })
641
+ })
642
+ }else{
643
+ this.cbcs.forEach(res=>{
644
+ if (res.f_book_slice_area==val){
645
+ this.cbc.push({
646
+ label:res.f_book_name,
647
+ value:res.id
648
+ })
649
+ }
650
+ })
651
+ }
652
+ },
653
+ Mreadibook(val){
654
+ ////tag
655
+ ////tag
656
+ if (val){
657
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
658
+ items: 'name',
659
+ tablename: 't_zone',
660
+ condition: `parentid in ${val}`,
661
+ orderitem: 'id'
662
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
663
+ this.sliceArea=[]
664
+ this.sliceArea.push({
665
+ label:'全部',
666
+ value:''
667
+ })
668
+ res.data.forEach(ress=>{
669
+ this.sliceArea.push({
670
+ label:ress.name,
671
+ value:ress.name
672
+ })
673
+ })
674
+
675
+ })
676
+ }
677
+ },
678
+ // 获取县域分公司内容
679
+ getfengongsi() {
680
+ let val = {
681
+ source: 'this.getParentByType($organization$).getSpecialResByType($organization$)',
682
+ userid: `${this.$login.f.id}`
683
+ }
684
+ let http = new HttpResetClass()
685
+ http.load('POST', '/rs/search', {data: val}, {resolveMsg: null, rejectMsg: null}).then((res) => {
686
+ res.data.forEach((item) => {
687
+ this.orgstrs.push({label: item.name, value: item.id})
688
+ })
689
+ //tag
690
+ })
691
+ },
692
+ // 县域分公司发生改变
693
+ // orgstrchange(val){
694
+ // if(val == undefined || val == ''){
695
+ // return
696
+ // }else {
697
+ // this.checkersid = []
698
+ // let gen = select(this,val)
699
+ // return co(gen)
700
+ // }
701
+ // },
702
+ getDefect(val) {
703
+ if (val) {
704
+ try {
705
+ var defect = JSON.parse(val)
706
+ return defect.result
707
+ } catch (e) {
708
+ //tag
709
+ return '正常'
710
+ }
711
+ }
712
+ return '正常'
713
+ },
714
+ checkerchange(val) {
715
+ this.checkboxModel.f_checker = val.name
716
+ this.checkboxModel.f_checker_id = val.id
717
+ },
718
+ search(args) {
719
+ if (this.SafeCheckXZ && (args.model.f_check_start == '' || args.model.f_check_end == '')) {
720
+ this.$showMessage('如果选择 已安检/未安检 选项,需要选择 安检起始时间!')
721
+ return
722
+ }
723
+ if ((args.model.f_check_start || args.model.f_check_end ) && !this.SafeCheckXZ) {
724
+ this.$showMessage('如果录入 安检起始时间,需要选择 安检筛选条件!')
725
+ return
726
+ }
727
+ /*if (this.SafeCheckXZ == '未安检') {
728
+ args.condition += " and ( f_last_check_date >= '" + args.model.f_check_start + "' or f_last_check_date <= '" + args.model.f_check_end + "' or f_last_check_date is null)"
729
+ } else {
730
+ if (args.model.f_check_start) {
731
+ args.condition += " and f_last_check_date >= '" + args.model.f_check_start + "'"
732
+ }
733
+ if (args.model.f_check_end) {
734
+ args.condition += " and f_last_check_date <= '" + args.model.f_check_end + "'"
735
+ }
736
+ }*/
737
+ args.condition += " and f_filialeid in " + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
738
+ let con = ' f_filialeid in ' + (this.model.f_filialeids ? this.model.f_filialeids : `(${this.$login.f.orgid})`)
739
+ con += args.model.f_userinfo_code ? ` and f_userinfo_code like '%${args.model.f_userinfo_code}%'`:''
740
+ /*con += args.model.f_user_name ? ` and f_user_name like '%${args.model.f_user_name}%'` : ''
741
+ con += args.model.f_residential_area ? ` and f_residential_area like '%${args.model.f_residential_area}%'` : ''
742
+ con += args.model.f_address ? ` and f_address like '%${args.model.f_address}%'` : ''
743
+ con += args.model.f_usertype ? ` and f_check_type = '${args.model.f_usertype}'` : ''*/
744
+ if (this.SafeCheckXZ) {
745
+ con += ` and f_offsite_time >= '${args.model.f_check_start}' and f_offsite_time <= '${args.model.f_check_end}' `
746
+ if (this.SafeCheckXZ == '未安检'){
747
+ args.condition += ' and ruhuid is null'
748
+ }else{
749
+ args.condition += ' and ruhuid is not null'
750
+ }
751
+ }
752
+ let states = ` (`
753
+ if (this.checkStates.length > 0 ){
754
+ for (let i = 0; i < this.checkStates.length; i++) {
755
+ if (this.checkStates[i]){
756
+ states += `'${this.checkStates[i]}',`
757
+ }else {
758
+ states = ''
759
+ break
760
+ }
761
+ }
762
+ if (states){
763
+ states=states.substring(0,states.length-1)
764
+ states += `) `
765
+ args.condition += ` and f_last_check_state in ${states}`
766
+ }
767
+ }else {
768
+ states = ''
769
+ }
770
+ if(args.model.f_check_date){
771
+ const daysBefore = Number(args.model.f_check_date);
772
+ if ( daysBefore > 0) {
773
+ // 获取当前日期
774
+ const now = new Date();
775
+ // 计算三天前的日期
776
+ const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
777
+ // 如果需要格式化日期,可以使用Date对象的方法
778
+ var formattedDate = threeDaysBefore.toISOString().split('T')[0];
779
+ args.condition += ` and f_last_check_date<='${formattedDate} 23:59:59'`;
780
+ } else {
781
+ console.error('f_check_date不是一个有效的正整数');
782
+ }
783
+ }
784
+ let condition3 = ' 1 = 2'
785
+ if (args.model.f_daofang_year){
786
+ condition3 = ` f_offsite_time >= DATEADD(YEAR, ${0-args.model.f_daofang_year}, GETDATE()) `
787
+ args.condition += ` and daofangbuyu = check_num`
788
+ }
789
+ if (args.model.f_check_version){
790
+ con+= ` and f_check_version = '${args.model.f_check_version}'`
791
+ }
792
+ con += args.model.f_checker_id ? ` and f_checker_name in ${args.model.f_checker_id}` : ' and 1=1'
793
+ let condition = {
794
+ condition1: args.condition,
795
+ condition2: con,
796
+ condition3:condition3
797
+ }
798
+ this.searchData.condition = condition
799
+ return this.model.search(condition, args.model)
800
+ },
801
+ checkstatus() {
802
+ return this.$appdata.getParam('安检状态') ? [{
803
+ label: '全部',
804
+ value: ''
805
+ }, ...this.$appdata.getParam('安检状态')] : [{label: '全部', value: ''}]
806
+ },
807
+ usertypes() {
808
+ return this.$appdata.getParam('用户类型') ? [{
809
+ label: '全部',
810
+ value: ''
811
+ }, ...this.$appdata.getParam('用户类型')] : [{label: '全部', value: ''}]
812
+ },
813
+ userstates() {
814
+ return this.$appdata.getParam('用户状态') ? [{
815
+ label: '全部',
816
+ value: ''
817
+ }, ...this.$appdata.getParam('用户状态')] : [{label: '全部', value: ''}]
818
+ },
819
+ hiddenr() {
820
+ this.$parent.showItem = !this.$parent.showItem
821
+ },
822
+ hidden() {
823
+ this.criteriaShow = !this.criteriaShow
824
+ },
825
+ confirm() {
826
+ if (!this.checkboxModel.f_plan_name) {
827
+ this.$showMessage('请填写安检计划名称!')
828
+ return
829
+ }
830
+ // if(this.f_effective_start_time == ''){
831
+ // this.$showMessage('请选择有效起始日期!')
832
+ // return
833
+ // }
834
+ // if(this.f_effective_end_time == ''){
835
+ // this.$showMessage('请选择有效结束日期!')
836
+ // return
837
+ // }
838
+ if (this.IsShare == '否') {
839
+ if (!this.checkboxModel.f_checker_id) {
840
+ this.$showMessage('请选择安检员!')
841
+ return
842
+ }
843
+ }
844
+ let gen = saveGen(this)
845
+ return co(gen)
846
+ },
847
+ changeStates() {
848
+ if (this.checkedAll) {//实现反选/
849
+ this.checkrows = [];
850
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
851
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
852
+ }
853
+ } else {//实现全选
854
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
855
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
856
+ }
857
+ let _this = this
858
+ let condition = this.$refs.paged.$refs.criteria.condition
859
+ let url = this.model.url
860
+ this.$resetpost(`${url}?pageSize=9999999`, {
861
+ data: {
862
+ condition: condition,
863
+ groupitem: '',
864
+ orderitem: 'f_residential_area',
865
+ f_usertype: this.model.f_usertype,
866
+ f_filialeids: this.model.f_filialeids,
867
+ month: this.model.month,
868
+ safeCycle: this.model.safeCycle,
869
+ f_checktime_start: this.model.f_checktime_start,
870
+ f_checktime_end: this.model.f_checktime_end,
871
+ SafeCheckSX: this.model.SafeCheckSX,
872
+ f_last_check_state: this.model.f_last_check_state
873
+ },
874
+ }, {resolveMsg: null, rejectMsg: null}, -1).then(
875
+ (respanse) => {
876
+ if (respanse.data.length >= 5000) {
877
+ this.$showMessage("数据量太大,请重新选择")
878
+ } else {
879
+ _this.checkrows = []
880
+ for (let j = 0; j < respanse.data.length; j++) {
881
+ _this.checkrows.push(respanse.data[j])
882
+ }
883
+ //tag;
884
+ }
885
+ })
886
+ }
887
+ },
888
+ addChecked(item) {
889
+ //tag;
890
+ if (!item.checked) {
891
+ this.checkrows.push(item);
892
+ //tag;
893
+ } else {
894
+ for (let i = 0; i < this.checkrows.length; i++) {
895
+ if (item.f_userinfo_id == this.checkrows[i].f_userinfo_id) {
896
+ this.checkrows.splice(i, 1)
897
+ }
898
+ }
899
+ }
900
+ },
901
+ ToshowModal() {
902
+ this.creatPlanWay = 'single'
903
+ if (this.checkrows.length > 0) {
904
+ this.showModal = true
905
+ } else {
906
+ this.$showMessage("请选择需要安检的用户!")
907
+ }
908
+ },
909
+ FiltrationPlan() {
910
+ if (this.model.rows.length == 0) {
911
+ this.$showMessage("暂无可生成的计划!")
912
+ return
913
+ }
914
+ this.creatPlanWay = 'filtration'
915
+ this.showModal = true
916
+ },
917
+ AllPlan() {
918
+ if (this.model.rows.length == 0) {
919
+ this.$showMessage("暂无可生成的计划!")
920
+ return
921
+ }
922
+ this.creatPlanWay = 'all'
923
+ this.showModal = true
924
+ },
925
+ cancel() {
926
+ this.showModal = false
927
+ },
928
+ /*areas() {
929
+ let rs = []
930
+ for (let i = 0; i < this.$login.f.f_allArea.length; i++) {
931
+ let temp = {
932
+ label: this.$login.f.f_allArea[i].label,
933
+ value: this.$login.f.f_allArea[i].label
934
+ }
935
+ rs.push(temp)
936
+ }
937
+ return [{label: '全部', value: ''}, ...rs]
938
+ },*/
939
+ initAdjustables() {
940
+ //tag
941
+ let arr = []
942
+ let filter = this.$login.f.f_orgids
943
+ this.$GetSaleParam.getAdjustable(filter).forEach((item) => {
944
+ let temp = {}
945
+ temp.label = `[${item.value.f_adjustable_id}]-${item.label}`
946
+ temp.value = `${item.value.id}`
947
+ arr.push(temp)
948
+ })
949
+ this.adjustables = [{label: '全部', value: ''}, ...arr]
950
+ },
951
+ getAllMeterBook(val){
952
+ ////tag
953
+ ////tag
954
+ this.cbcs=[]
955
+ if (val){
956
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
957
+ items: 'f_book_name,f_book_slice_area,id',
958
+ tablename: 't_meter_book',
959
+ condition: `f_filiale_id in ${val}`,
960
+ orderitem: 'id'
961
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
962
+ res.data.forEach(ress=>{
963
+ this.cbcs.push({
964
+ id:ress.id,
965
+ f_book_name:ress.f_book_name,
966
+ f_book_slice_area:ress.f_book_slice_area
967
+ })
968
+ })
969
+ this.cbc=[]
970
+ this.cbc.push({
971
+ label:'全部',
972
+ value:''
973
+ })
974
+ this.cbcs.forEach(res=>{
975
+ this.cbc.push({
976
+ label:res.f_book_name,
977
+ value:res.id
978
+ })
979
+ })
980
+ })
981
+ }
982
+ },
983
+ getRes(obj) {
984
+ this.model.f_filialeids = this.$login.convertToIn(obj.resids);
985
+ this.Mreadibook(this.model.f_filialeids)
986
+ this.getAllMeterBook(this.model.f_filialeids)
987
+ this.getPcd(this.model.f_filialeids)
988
+ }
989
+ },
990
+
991
+ watch: {
992
+ 'model.f_usertype'(val) {
993
+ if (val == '民用') {
994
+ this.model.safeCycle = this.civil
995
+ } else if (val == '非民用') {
996
+ this.model.safeCycle = this.civilian
997
+ }
998
+ },
999
+ 'model.SafeCheckXZ'(val) {
1000
+ this.model.SafeCheckSC = ''
1001
+ if (val == '已安检') {
1002
+ this.model.SafeCheckCQ = ''
1003
+ this.model.SafeCheckSX = {
1004
+ f_check_end: '', // 安检时间 查询起始条件
1005
+ f_check_start: ''// 安检时间 查询终止条件
1006
+ }
1007
+ } else {
1008
+ // 当使用筛选条件时,清空不需要的条件选项
1009
+ this.model.f_issue_start = ''
1010
+ this.model.f_issue_end = ''
1011
+ this.$refs.paged.$refs.criteria.model.f_check_start = ''
1012
+ this.$refs.paged.$refs.criteria.model.f_check_end = ''
1013
+ this.$refs.paged.$refs.criteria.model.f_last_check_state = ''
1014
+ this.model.month = ''
1015
+ if (val == '应安检') {
1016
+ this.model.SafeCheckSC = '否'
1017
+
1018
+ this.model.f_issue_start = Util.toStartDateString()
1019
+ this.model.f_issue_end = Util.toStandardDateString()
1020
+ }
1021
+ // this.model.f_checktime_start = ''
1022
+ // this.model.f_checktime_end = ''
1023
+ }
1024
+ },
1025
+ 'model.SafeCheckSC'(val) {
1026
+ if (val == '') {
1027
+ this.model.f_issue_start = ''
1028
+ this.model.f_issue_end = ''
1029
+ }
1030
+ },
1031
+ // 'checker'(val){
1032
+ // //tag
1033
+ // if(val){
1034
+ // this.checkboxModel.f_checker = this.checker[0].name
1035
+ // this.checkboxModel.f_checker_id = this.checker[0].id
1036
+ // }
1037
+ // },
1038
+ 'model.rows'() {
1039
+ // if (!this.checkedAll) {//实现反选/
1040
+ // this.checkrows = [];
1041
+ for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1042
+ var k = false
1043
+ for (let j = 0; j < this.checkrows.length; j++) {
1044
+ if (this.$refs.paged.model.rows[i].f_userinfo_id == this.checkrows[j].f_userinfo_id) {
1045
+ this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1046
+ k = true
1047
+ continue
1048
+ }
1049
+ }
1050
+ if (!k) {
1051
+ this.$set('$refs.paged.model.rows[' + i + '].checked', false)
1052
+ }
1053
+ }
1054
+ // } else {//实现全选
1055
+ // // this.checkboxModel = {};
1056
+ // for (let i = 0; i < this.$refs.paged.model.rows.length; i++) {
1057
+ // this.$set('$refs.paged.model.rows[' + i + '].checked', true)
1058
+ // }
1059
+ // }
1060
+ }
1061
+ },
1062
+ computed: {
1063
+ selected() {
1064
+ return this.$refs.paged.$refs.grid.selected
1065
+ }
1066
+ }
1067
+ }
1068
+ </script>
1069
+ <style scoped>
1070
+ .newcolor {
1071
+ color: red;
1072
+ }
1073
+
1074
+ .table th {
1075
+ background-color: #f2f6fa;
1076
+ color: black;
1077
+ }
1078
+ </style>