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