safecheck-client 3.0.39-73 → 3.0.39-74

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