safecheck-client 3.0.35-7 → 3.0.35-8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/App.vue +31 -31
  3. package/src/components/android/AddPlanItemYy.vue +451 -451
  4. package/src/components/android/CivilCurrentCreate.vue +1031 -1031
  5. package/src/components/android/examples/SafeListExamples.vue +296 -296
  6. package/src/components/android/examples/UserExamples.vue +136 -136
  7. package/src/components/rongcheng/AspiratedAreaPlan.vue +574 -574
  8. package/src/components/rongcheng/PhoneUpUserinfo.vue +1236 -1236
  9. package/src/filiale/bayan/android/AddPlanItem.vue +441 -441
  10. package/src/filiale/bayan/android/PaperFeedback.vue +1669 -1669
  11. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1380 -1380
  12. package/src/filiale/bayan/android/SafecheckOrderV.vue +2922 -2922
  13. package/src/filiale/bayan/android/SafecheckUserInfo.vue +872 -872
  14. package/src/filiale/bayan/pc/CheckPlanAreaList.vue +607 -607
  15. package/src/filiale/bayan/pc/HiddenSituation.vue +295 -295
  16. package/src/filiale/bayan/pc/NewCheckpaper.vue +1992 -1992
  17. package/src/filiale/bayan/pc/PaperList.vue +900 -900
  18. package/src/filiale/bayan/pc/SelectCheckPlan.vue +391 -391
  19. package/src/filiale/siyang/android/AddPlanItem.vue +450 -450
  20. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1207 -1207
  21. package/src/filiale/tongchuan/android/SafecheckOrderV.vue +3035 -3035
  22. package/src/filiale/tongchuan/pc/CheckSearchUser.vue +1053 -1053
  23. package/src/filiale/tongchuan/pc/checkUserList.vue +639 -639
  24. package/src/filiale/xilan/android.js +11 -11
  25. package/src/filiale/yangchunboneng/pc/CheckPlanAreaList.vue +642 -642
  26. package/src/safecheck-android.js +307 -307
@@ -1,900 +1,900 @@
1
- <template>
2
- <div class="flex-row">
3
- <div class="basic-main">
4
- <criteria-paged :model="model" v-ref:paged @sort="sort">
5
- <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
- <div class="row">
8
- <div class="form-group col-sm-2" >
9
- <label class="font_normal_body">客户编号</label>
10
- <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
- style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
- </div>
13
- <div class="form-group col-sm-2" >
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-2" >
19
- <label class="font_normal_body">客户电话</label>
20
- <input type="text" class="input_search" v-model="model.f_user_phone"
21
- style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
- </div>
23
- <div class="form-group col-sm-2" >
24
- <label class="font_normal_body">客户表号</label>
25
- <input type="text" class="input_search" v-model="model.f_meternumber"
26
- style="width: 60%" placeholder="客户表号" condition="f_meternumber like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">小&emsp;&emsp;区</label>
30
- <input type="text" class="input_search" v-model="model.f_residential_area"
31
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
32
- </div>
33
- <div class="form-group col-sm-2" >
34
- <label class="font_normal_body">详细地址</label>
35
- <input type="text" class="input_search" v-model="model.f_address"
36
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
37
- </div>
38
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
39
-
40
- <export-excel-safe :data="$parent.$parent.searchData"
41
- :field="$parent.$parent.excelHeaders"
42
- :choose-col="true"
43
- sqlurl="rs/logic/SafeExportExcel" sql-name="查找安检单" template-name='安检计划明细'></export-excel-safe>
44
- <!-- <export-excel :data="$parent.$parent.getCondition" -->
45
- <!-- :field="$parent.$parent.getfield"-->
46
- <!-- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'-->
47
- <!-- :choose-col="true"></export-excel>-->
48
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
49
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
50
-
51
- <button class="button_spacing button_search" @click="search()">查询</button>
52
- <div style="float: right" class="button_spacing"
53
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
- @click="$parent.$parent.hidden()"></div>
55
- </div>
56
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
57
- <label class="font_normal_body">安检计划</label>
58
- <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
59
- @click="$parent.$parent.showChooser"
60
- style="width: 60%" placeholder="安检计划" readonly="readonly">
61
- </div>
62
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
63
- <label class="font_normal_body">开始时间</label>
64
- <datepicker
65
- :value.sync="model.f_check_start"
66
- placeholder='开始时间' style="width: 60%"
67
- :disabled-days-of-week="[]"
68
- :format="'yyyy-MM-dd'"
69
- :show-rest-button="reset"
70
- v-model="model.f_check_start"
71
- condition="f_offsite_time > ='{} 00:00:00'">
72
- </datepicker>
73
- <!-- <datepicker-->
74
- <!-- class="select_list select"-->
75
- <!-- :value.sync="model.f_check_start"-->
76
- <!-- placeholder='开始时间' style="width: 60%"-->
77
- <!-- :disabled-days-of-week="[]"-->
78
- <!-- :format="'yyyy-MM-dd'"-->
79
- <!-- :show-rest-button="reset"-->
80
- <!-- v-model="model.f_check_start"-->
81
- <!-- condition="f_offsite_time > ='{} 00:00:00'">-->
82
- <!-- </datepicker>-->
83
- </div>
84
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
85
- <label class="font_normal_body">结束时间</label>
86
- <datepicker
87
- :value.sync="model.f_check_end"
88
- placeholder='结束时间' style="width: 60%"
89
- :disabled-days-of-week="[]"
90
- :format="'yyyy-MM-dd'"
91
- :show-rest-button="reset"
92
- v-model="model.f_check_end"
93
- condition="f_offsite_time <= '{} 23:59:59'">
94
- </datepicker>
95
- </div>
96
-
97
-
98
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
99
-
100
- <label class="font_normal_body">安检类型</label>
101
- <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'
102
- :value-single="true" style="width: 60%"
103
- class="select_list select"
104
- :options='$parent.$parent.safetype' placeholder='安检类型'
105
- close-on-select
106
- condition="f_safecheck_type = '{}'"></v-select>
107
- </div>
108
-
109
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
110
-
111
- <label class="font_normal_body">客户类型</label>
112
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
113
- :value-single="true" style="width: 60%"
114
- class="select_list select"
115
- :options='$parent.$parent.checktype' placeholder='客户类型'
116
- close-on-select
117
- condition="f_check_type = '{}'"></v-select>
118
- </div>
119
-
120
-
121
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
122
- <label class="font_normal_body">安检状态</label>
123
- <v-select id="f_entry"
124
- class="select_list select"
125
- placeholder='安检状态' style="width: 60%"
126
- v-model='model.f_entry'
127
- :value.sync="$parent.$parent.model.f_entry"
128
- :options='$parent.$parent.f_entry_status'
129
- condition=""
130
- :value-single="true"
131
- close-on-select clear-button></v-select>
132
- </div>
133
-
134
-
135
-
136
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
137
- <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
138
- <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
139
- <!-- :value-single="true" style="width: 60%"-->
140
- <!-- class="select_list select"-->
141
- <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
142
- <!-- close-on-select-->
143
- <!-- condition="f_checker_id = '{}'"></v-select>-->
144
- <!-- </div>-->
145
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
146
- <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
147
- <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
148
- <!-- </right-tree>-->
149
- <!-- </div>-->
150
- <!-- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">-->
151
- <!-- <role-selector-safe-->
152
- <!-- role-name="安检员"-->
153
- <!-- role-lable="安&nbsp;检&nbsp;员&nbsp;"-->
154
- <!-- @re-res="$parent.$parent.getRes"-->
155
- <!-- :value.sync="model.f_checker_id"-->
156
- <!-- v-model="model.f_checker_id"-->
157
- <!-- condition="f_checker_name = '{}'">-->
158
- <!-- </role-selector-safe>-->
159
- <!-- </div>-->
160
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
161
- <label class="font_normal_body">片&emsp;&emsp;区</label>
162
- <v-select class="select_list select"
163
- placeholder='片区/管理站' style="width: 60%"
164
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
165
- :options='$parent.$parent.sliceArea'
166
- filer-key="name"
167
- close-on-select clear-button
168
- condition="f_slice_area='{}'"
169
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
170
- :value-single="true">
171
- </v-select>
172
- </div>
173
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
174
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
175
- <v-select class="select_list select"
176
- placeholder='抄表册' style="width: 60%"
177
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
178
- :options='$parent.$parent.cbc'
179
- filer-key="name"
180
- close-on-select clear-button
181
- condition="f_meter_book_num={}"
182
- :value-single="true">
183
- </v-select>
184
- </div>
185
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
186
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
187
- <v-select class="select_list select"
188
- placeholder='请选择' style="width: 60%"
189
- :value.sync="model.f_pcd" v-model="model.f_pcd"
190
- :options='$parent.$parent.pcds'
191
- filer-key="name"
192
- close-on-select clear-button
193
- condition="f_pcd='{}'"
194
- :value-single="true">
195
- </v-select>
196
- </div>
197
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
198
- <label class="font_normal_body">开户时间</label>
199
- <datepicker
200
- :value.sync="model.f_check_gasstart"
201
- placeholder='开始时间' style="width: 60%"
202
- :disabled-days-of-week="[]"
203
- :format="'yyyy-MM-dd'"
204
- :show-rest-button="reset"
205
- v-model="model.f_check_gasstart"
206
- condition="f_gas_date > ='{} 00:00:00'">
207
- </datepicker>
208
- </div>
209
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
210
- <label class="font_normal_body">开户时间</label>
211
- <datepicker
212
- :value.sync="model.f_check_gasend"
213
- placeholder='结束时间' style="width: 60%"
214
- :disabled-days-of-week="[]"
215
- :format="'yyyy-MM-dd'"
216
- :show-rest-button="reset"
217
- v-model="model.f_check_gasend"
218
- condition="f_gas_date <= '{} 23:59:59'">
219
- </datepicker>
220
- </div>
221
- <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
222
- <label class="font_normal_body">审核时间</label>
223
- <datepicker
224
- :value.sync="model.f_approved_timestart"
225
- placeholder='开始时间' style="width: 60%"
226
- :disabled-days-of-week="[]"
227
- :format="'yyyy-MM-dd'"
228
- :show-rest-button="reset"
229
- v-model="model.f_approved_timestart"
230
- condition="f_approved_time > ='{} 00:00:00'">
231
- </datepicker>
232
- </div>
233
- <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
234
- <label class="font_normal_body">审核时间</label>
235
- <datepicker
236
- :value.sync="model.f_approved_timeend"
237
- placeholder='结束时间' style="width: 60%"
238
- :disabled-days-of-week="[]"
239
- :format="'yyyy-MM-dd'"
240
- :show-rest-button="reset"
241
- v-model="model.f_approved_timeend"
242
- condition="f_approved_time <= '{} 23:59:59'">
243
- </datepicker>
244
- </div>
245
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
246
- <label class="font_normal_body">气表品牌</label>
247
- <v-select
248
- class="select_list select"
249
- placeholder='气表品牌' style="width: 60%"
250
- v-model='model.tableBrand'
251
- :value.sync="model.tableBrand"
252
- :options='$parent.$parent.tableBrands'
253
- condition="f_meter_brand = '{}'"
254
- :value-single="true"
255
- close-on-select clear-button></v-select>
256
- </div>
257
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
258
- <label class="font_normal_body">有无计划</label>
259
- <v-select class="select_list select"
260
- placeholder='请选择' style="width: 60%"
261
- :value.sync="model.f_no_checkplan" v-model="model.f_no_checkplan"
262
- :options='$parent.$parent.no_checkplans'
263
- filer-key="name"
264
- close-on-select clear-button
265
- condition="f_no_checkplan='{}'"
266
- :value-single="true">
267
- </v-select>
268
- </div>
269
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
270
- <!-- <label class="font_normal_body">计划类型</label>-->
271
- <!-- <v-select class="select_list select"-->
272
- <!-- placeholder='请选择' style="width: 60%"-->
273
- <!-- :value.sync="model.f_safe_type" v-model="model.f_safe_type"-->
274
- <!-- :options='$parent.$parent.safe_types'-->
275
- <!-- filer-key="name"-->
276
- <!-- close-on-select clear-button-->
277
- <!-- condition="f_safe_type='{}'"-->
278
- <!-- :value-single="true">-->
279
- <!-- </v-select>-->
280
- <!-- </div>-->
281
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
282
- <label class="font_normal_body">未用燃气</label>
283
- <v-select class="select_list select" style="width: 60%"
284
- placeholder='请选择'
285
- :value.sync="model.f_usegas" v-model="model.f_usegas"
286
- :options='$parent.$parent.usegas'
287
- filer-key="name"
288
- close-on-select clear-button
289
- condition="f_usegas='{}'"
290
- :value-single="true">
291
- </v-select>
292
- </div>
293
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
294
- <label class="font_normal_body">客户卡号</label>
295
- <input type="text" class="input_search" v-model="model.f_card_id"
296
- style="width: 60%" placeholder="客户卡号" condition="f_card_id like '%{}%'">
297
- </div>
298
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
299
- <label class="font_normal_body">距上次安检天数</label>
300
- <input type="number" class="input_search" v-model="model.f_check_date"
301
- style="width: 60%" placeholder="距上次安检天数" >
302
- </div>
303
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
304
- <label class="font_normal_body" >区&emsp;&emsp;域</label>
305
- <v-select :value.sync="model.f_quyu" :value-single="true" v-model="model.f_quyu"
306
- :options='$parent.$parent.quyus' placeholder='区域' class="select_list select" style="width: 60%"
307
- @change="$parent.$parent.quyuChange"
308
- close-on-select>
309
- </v-select>
310
- </div>
311
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
312
- <label class="font_normal_body" >营&ensp;业&ensp;厅</label>
313
- <v-select :value.sync="model.f_bumen" :value-single="true" v-model="model.f_bumen"
314
- :options='$parent.$parent.bumens' placeholder='营业厅'
315
- @change="$parent.$parent.bumenChange" class="select_list select" style="width: 60%"
316
- close-on-select>
317
- </v-select>
318
- </div>
319
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
320
- <label class="font_normal_body">小&emsp;&emsp;组</label>
321
- <v-select :value.sync="model.f_team" :value-single="true" v-model="model.f_team"
322
- :options='$parent.$parent.teams' placeholder='小组'
323
- @change="$parent.$parent.teamChange" class="select_list select" style="width: 60%"
324
- close-on-select>
325
- </v-select>
326
- </div>
327
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
328
- <label class="font_normal_body" >安&ensp;检&ensp;员</label>
329
- <v-select :value.sync="model.f_checker_id" v-model="model.f_checker_id"
330
- :multiple="true" class="select_list select" style="width: 60%"
331
- :options='$parent.$parent.checkers' placeholder='安检员' condition="f_checker_name in {}"
332
- close-on-select>
333
- </v-select>
334
- </div>
335
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >-->
336
- <!-- <label class="font_normal_body">连续时间</label>-->
337
- <!-- <datepicker-->
338
- <!-- :value.sync="model.f_last_start"-->
339
- <!-- placeholder='连续时间开始' style="width: 60%"-->
340
- <!-- :disabled-days-of-week="[]"-->
341
- <!-- :format="'yyyy-MM-dd'"-->
342
- <!-- :show-rest-button="reset"-->
343
- <!-- v-model="model.f_last_start"-->
344
- <!-- condition="f_last_check_date> ='{} 00:00:00'">-->
345
- <!-- </datepicker>-->
346
- <!-- </div>-->
347
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >-->
348
- <!-- <label class="font_normal_body">连续时间</label>-->
349
- <!-- <datepicker-->
350
- <!-- :value.sync="model.f_last_end"-->
351
- <!-- placeholder='连续时间结束' style="width: 60%"-->
352
- <!-- :disabled-days-of-week="[]"-->
353
- <!-- :format="'yyyy-MM-dd'"-->
354
- <!-- :show-rest-button="reset"-->
355
- <!-- v-model="model.f_last_end"-->
356
- <!-- condition="f_last_check_date<= '{} 23:59:59'">-->
357
- <!-- </datepicker>-->
358
- <!-- </div>-->
359
- </div>
360
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
361
- <div slot="modal-header" class="modal-header">
362
- <h4 class="modal-title">
363
- 选择计划
364
- </h4>
365
- </div>
366
- <div slot="modal-body" class="modal-body">
367
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
368
- </div>
369
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
370
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
371
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
372
- </div>
373
- </modal>
374
- </div>
375
- </criteria>
376
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
377
- <template partial='head'>
378
- <tr>
379
- <th>
380
- <nobr>客户编号</nobr>
381
- </th>
382
- <th>
383
- <nobr>客户名称</nobr>
384
- </th>
385
- <th>
386
- <nobr>客户表号</nobr>
387
- </th>
388
- <th>
389
- <nobr>气表品牌</nobr>
390
- </th>
391
- <th>
392
- <nobr>客户电话</nobr>
393
- </th>
394
- <th>
395
- <nobr>客户类型</nobr>
396
- </th>
397
- <th>
398
- <nobr>客户地址</nobr>
399
- </th>
400
- <th>
401
- <nobr>安检状态</nobr>
402
- </th>
403
- <th>
404
- <nobr>用气状态</nobr>
405
- </th>
406
- <th>
407
- <data-order field="f_offsite_time" name="安检时间"></data-order>
408
- </th>
409
- <th>
410
- <nobr>安检员</nobr>
411
- </th>
412
- <th>
413
- <nobr>副操</nobr>
414
- </th>
415
- <th>
416
- <nobr>备注</nobr>
417
- </th>
418
- <th>
419
- <nobr>开户时间</nobr>
420
- </th>
421
- <th v-if="$parent.$parent.$parent.safeAudit">
422
- <nobr>审核人</nobr>
423
- </th>
424
- <th v-if="$parent.$parent.$parent.safeAudit">
425
- <nobr>审核时间</nobr>
426
- </th>
427
- <th v-if="$parent.$parent.$parent.safeAudit">
428
- <nobr>审核状态</nobr>
429
- </th>
430
- <th>
431
- <nobr>操作</nobr>
432
- </th>
433
- <th v-if="$parent.$parent.$parent.audioshow">
434
- <nobr>录音</nobr>
435
- </th>
436
- </tr>
437
- </template>
438
- <template partial='body'>
439
-
440
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
441
- <td style="text-align: center">{{row.f_user_name}}</td>
442
- <td style="text-align: center">{{row.f_meternumber}}</td>
443
- <td style="text-align: center">{{row.f_meter_brand}}</td>
444
- <td style="text-align: center">{{row.f_user_phone}}</td>
445
- <td style="text-align: center">{{row.f_check_type}}</td>
446
-
447
- <td style="text-align: center">{{ row.f_address }}</td>
448
- <td style="text-align: center">{{ row.f_entry_status }}</td>
449
- <td style="text-align: center">{{ row.f_usegas }}</td>
450
- <td style="text-align: center">{{ row.f_offsite_time }}</td>
451
- <td style="text-align: center">{{ row.f_checker_name }}</td>
452
- <td style="text-align: center">{{ row.f_deputy_director}}</td>
453
- <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
454
- <td style="text-align: center">{{ row.f_gas_date }}</td>
455
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_by }}</td>
456
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_time }}</td>
457
- <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
458
- {{ row.f_approved ? row.f_approved : '未审核' }}
459
- </td>
460
- <td style="text-align: center">
461
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
462
-
463
-
464
- </td>
465
- <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
466
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
467
- <audio controls="controls" v-if="row.f_recording1_path">
468
- <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
469
- </audio>
470
- <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
471
- @click="$parent.$parent.$parent.print(row)">
472
- 打印
473
- </button>-->
474
- </td>
475
- </template>
476
- </data-grid>
477
- </criteria-paged>
478
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
479
- </div>
480
- </div>
481
- </template>
482
-
483
- <script>
484
- import {PagedList} from 'vue-client'
485
- import Vue from 'vue'
486
- import co from 'co'
487
- import AppData from '../../../stores/AppData'
488
- import * as Util from '../../Util'
489
- import getNowDate from "../../../utils/getNowDate";
490
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
491
- import BenzAMRRecorder from 'benz-amr-recorder'
492
-
493
- //获取json配置文件
494
- let asyncReady = async function (self) {
495
- // 获取配置信息
496
- try {
497
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
498
- Vue.config = res.data
499
- } catch (error) {
500
- // 忽略704,文件找不到异常R
501
- if (error.status !== 704) {
502
- throw error
503
- }
504
- }
505
- }
506
-
507
- let select = function* (self) {
508
- let http = new HttpResetClass()
509
- let getGasman = yield http.load('POST', '/rs/search', {
510
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
511
- userid: self.$login.f.id
512
- }, {resolveMsg: null, rejectMsg: null})
513
- ////tag
514
- self.checkersid.push({label: '全部', value: ''})
515
- getGasman.data.forEach((checker) => {
516
- self.checkersid.push({label: checker.name, value: checker.id})
517
- })
518
- }
519
-
520
- export default {
521
- title: '安检结果查看',
522
- data() {
523
- let model = new PagedList('rs/sql/查找安检单', 20, {
524
- f_plan_id: 'this.f_plan_id',
525
- f_approved: 'this.f_approved',
526
- f_entry_status: 'this.f_entry',
527
- f_no_checkplan: 'this.f_no_checkplan',
528
- f_filialeid: 'this.f_filialeid',
529
- orderitem: "'f_offsite_time desc'"
530
- })
531
- model.f_check_type = ''
532
- model.f_plan_id = ''
533
- model.f_approved = ''
534
- model.f_entry = ''
535
- model.f_no_checkplan = ''
536
- model.f_filialeid = `('${this.$login.f.orgid}')`
537
- //model.f_check_type='民用'
538
- // let searchData={
539
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
540
- // f_approved: this.model.f_approved,
541
- // f_entry_status: this.model.f_entry,
542
- // f_no_checkplan:this.model.f_no_checkplan[0],
543
- // f_filialeid: this.model.f_filialeid,
544
- // //orderitem: this.model.f_offsite_time,
545
- // //condition:this.model.condition
546
- // }
547
- // model.f_subcompany = this.$login.f.f_fengongsi
548
- return {
549
- allCheckers: [{label: '请选择', value: ''}],
550
- quyus: [{label: '请选择', value: ''}, ...this.$appdata.getParam('区域')],
551
- bumens: [{label: '请选择', value: ''}],
552
- teams: [{label: '请选择', value: ''}],
553
- checkers:[{label: '请选择', value: ''}],
554
- tableBrands: [{label: '全部', value: ''}],
555
- audioshow: false,
556
- safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
557
- searchData: {
558
- condition: "1=1",
559
- orderitem: "f_offsite_time desc",
560
- f_plan_id: "",
561
- f_approved: '',
562
- f_entry_status: '',
563
- f_no_checkplan: '',
564
- f_filialeid: `('${this.$login.f.orgid}')`
565
- },
566
- model: model,
567
- excelHeaders: {
568
- //searchData:searchData,
569
- 'f_userinfo_code': '客户编号',
570
- 'f_user_name': '客户姓名',
571
- 'f_meternumber':'客户表号',
572
- 'f_user_phone':'客户电话',
573
- 'f_check_type': '客户类型',
574
- 'f_residential_area': '小区',
575
- 'f_address': '客户地址',
576
- 'f_entry_status': '安检状态',
577
- 'f_usegas': '用气状态',
578
- 'f_offsite_time': '安检时间',
579
- 'f_checker_name': '安检员',
580
- 'f_safecheck_type':'安检类型',
581
- 'f_repair_approved_note': '备注',
582
- 'f_gas_date': '开户时间',
583
- 'f_plan_name': '计划名称',
584
- },
585
- fun: this.$login.f,
586
- pcds:[],
587
- checkersid: [],
588
- safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
589
- criteriaShow: false,
590
- checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
591
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
592
- showModal: false,
593
- safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
594
- f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
595
- f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
596
- no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
597
- usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
598
- showcheckmsg: false,
599
- checkInfo: {},
600
- orderDefault: "'f_offsite_time'",
601
- orderFields: {
602
- f_offsite_time: 'no'
603
- },
604
- sliceArea: [],
605
- cbc:[]
606
- }
607
- },
608
- methods: {
609
- bumenChange(val) {
610
- if (val) {
611
- this.teams = this.$appdata.getParam(`工单-` + val) ? [{
612
- label: '请选择',
613
- value: ''
614
- }, ...this.$appdata.getParam(`工单-` + val)] : [{label: '请选择', value: ''}]
615
- }else {
616
- this.checkers = this.allCheckers
617
- }
618
- },
619
- teamChange(val) {
620
- if (val) {
621
- this.checkers = this.$appdata.getParam(val) ? [...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
622
- }else {
623
- this.checkers = this.allCheckers
624
- }
625
- },
626
- quyuChange(val) {
627
- if (val) {
628
- this.bumens = this.$appdata.getParam(val) ? [{
629
- label: '请选择',
630
- value: ''
631
- }, ...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
632
- }else {
633
- this.checkers = this.allCheckers
634
- }
635
- },
636
- //气表品牌查询
637
- getTableBrands() {
638
- new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
639
- {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
640
- {resolveMsg: null, rejectMsg: null}).then((resp) => {
641
- resp.data.forEach((result) => {
642
- this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
643
- })
644
- })
645
- },
646
- //获取省市区列表
647
- getPcd(val){
648
- this.pcds = [{label:'全部',value:''}]
649
- new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
650
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
651
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
652
- pcdlist.data.forEach((result)=>{
653
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
654
- })
655
- })
656
- },
657
- showaudio(){
658
- //tag
659
- this.audioshow=!this.audioshow
660
- //tag
661
- },
662
- getmeterbook(val){
663
- this.cbc=[]
664
- this.cbc.push({
665
- label:'全部',
666
- value:''
667
- })
668
- if (val==''){
669
-
670
- this.cbcs.forEach(res=>{
671
- this.cbc.push({
672
- label:res.f_book_name,
673
- value:res.id
674
- })
675
- })
676
- }else{
677
- this.cbcs.forEach(res=>{
678
- if (res.f_book_slice_area==val){
679
- this.cbc.push({
680
- label:res.f_book_name,
681
- value:res.id
682
- })
683
- }
684
- })
685
- }
686
- },
687
- Mreadibook(val){
688
- ////tag
689
- ////tag
690
- if (val){
691
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
692
- items: 'name',
693
- tablename: 't_zone',
694
- condition: `parentid in ${val}`,
695
- orderitem: 'id'
696
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
697
- this.sliceArea=[]
698
- this.sliceArea.push({
699
- label:'全部',
700
- value:''
701
- })
702
- res.data.forEach(ress=>{
703
- this.sliceArea.push({
704
- label:ress.name,
705
- value:ress.name
706
- })
707
- })
708
-
709
- })
710
- }
711
- },
712
- getAllMeterBook(val){
713
- ////tag
714
- ////tag
715
- this.cbcs=[]
716
- if (val){
717
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
718
- items: 'f_book_name,f_book_slice_area,id',
719
- tablename: 't_meter_book',
720
- condition: `f_filiale_id in ${val}`,
721
- orderitem: 'id'
722
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
723
- res.data.forEach(ress=>{
724
- this.cbcs.push({
725
- id:ress.id,
726
- f_book_name:ress.f_book_name,
727
- f_book_slice_area:ress.f_book_slice_area
728
- })
729
- })
730
- this.cbc=[]
731
- this.cbc.push({
732
- label:'全部',
733
- value:''
734
- })
735
- this.cbcs.forEach(res=>{
736
- this.cbc.push({
737
- label:res.f_book_name,
738
- value:res.id
739
- })
740
- })
741
- })
742
- }
743
- },
744
- getRes(obj) {
745
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
746
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
747
- this.Mreadibook(this.model.f_filialeid)
748
- this.getAllMeterBook(this.model.f_filialeid)
749
- this.getPcd(this.model.f_filialeid)
750
- //this.$refs.paged.$refs.criteria.search()
751
- },
752
-
753
- change(row) {
754
- // Vue.$login = {jwt: row.f_checker_id}
755
- asyncReady(this).then(() => {
756
- ////tag)
757
- row.f_upload_state = '已传'
758
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
759
- }).catch(
760
- (respanse) => {
761
- alert('获取配置文件失败')
762
- })
763
- },
764
- readConfig() {
765
- let gen = asyncReady(this)
766
- return co(gen)
767
- },
768
- showChooser() {
769
- this.showModal = true
770
- },
771
- hidden() {
772
- this.criteriaShow = !this.criteriaShow
773
- },
774
- refresh() {
775
- this.$refs.paged.$refs.criteria.search()
776
- },
777
- ok() {
778
- this.showModal = false
779
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
780
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
781
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
782
- }
783
- },
784
- cancel() {
785
- this.showModal = false
786
- this.model.f_check_plan = {f_plan_name: '', id: ''}
787
- this.model.f_plan_id=''
788
- },
789
- print(row) {
790
- this.showcheckmsg = true
791
- this.checkInfo = row
792
- },
793
-
794
- sort(field, rule) {
795
- // 将所有排序方式设为不排序,实现相互排斥
796
- for (let key in this.orderFields) {
797
- if (key === field) {
798
- this.orderFields[key] = rule
799
- } else {
800
- this.orderFields[key] = 'no'
801
- }
802
- }
803
- // 如果新规则不排序,还原为默认排序
804
- if (rule === 'no') {
805
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
806
- } else {
807
- this.model.paramSource.orderitem = `'${field} ${rule}'`
808
- }
809
- this.search()
810
- },
811
- search() {
812
- this.$refs.paged.$refs.criteria.search()
813
- },
814
- selfSearch(args) {
815
- ////tag
816
- //args.condition+=" and f_check_type='民用'"
817
- if(args.model.f_check_date){
818
- const daysBefore = Number(args.model.f_check_date);
819
- if ( daysBefore > 0) {
820
- // 获取当前日期
821
- const now = new Date();
822
- // 计算三天前的日期
823
- const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
824
- // 如果需要格式化日期,可以使用Date对象的方法
825
- var formattedDate = threeDaysBefore.toISOString().split('T')[0];
826
- args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
827
- } else {
828
- console.error('f_check_date不是一个有效的正整数');
829
- }
830
- }
831
- this.model.search(args.condition, args.model, args.condValue)
832
- },
833
- getAllChecker() {
834
- new HttpResetClass().load('POST', `/rs/sql/tel_singleTable_OrderBy`, {
835
- data: {
836
- items: 'name',
837
- tablename: 't_user',
838
- condition: `state = '在职' and rolestr like '%安检员%'`,
839
- orderitem: 'id'
840
- }
841
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
842
- res.data.forEach(ress => {
843
- this.allCheckers.push({
844
- label: ress.name,
845
- value: ress.name
846
- })
847
- })
848
- this.checkers = this.allCheckers
849
- })
850
- }
851
- },
852
-
853
- ready() {
854
- ////tag
855
- this.function = this.f
856
- ////tag
857
- //获取气表品牌
858
- this.getTableBrands()
859
- this.getAllMeterBook()
860
- let gen = select(this)
861
- //this.pianqu()
862
- this.Mreadibook(`('${this.$login.f.orgid}')`)
863
- co(gen)
864
- this.getAllChecker()
865
- },
866
- watch: {
867
- 'model.f_no_checkplan'(val) {
868
- if (this.model.f_no_checkplan){
869
- this.searchData.f_no_checkplan = val
870
- }
871
- if (this.model.f_no_checkplan == '有计划安检') {
872
-
873
- this.showChooser()
874
- }
875
- },
876
- 'model.condition'(val) {
877
- if (val) {
878
- this.searchData.condition = val
879
- }
880
-
881
- },
882
- 'model.f_entry'(val) {
883
- this.searchData.f_entry_status = val
884
- },
885
- 'model.f_plan_id'(val) {
886
- if (val) {
887
- this.searchData.f_plan_id = val
888
- }
889
- },
890
- 'model.f_slice_area'(val) {
891
- },
892
- 'model.f_approved'(val) {
893
- if (val) {
894
- this.searchData.f_approved = val
895
- }
896
- },
897
- }
898
-
899
- }
900
- </script>
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
5
+ <criteria partial='criteria' class="search_area" @condition-changed='$parent.selfSearch' v-ref:criteria>
6
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-2" >
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
+ style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
+ </div>
13
+ <div class="form-group col-sm-2" >
14
+ <label class="font_normal_body">客户名称</label>
15
+ <input type="text" class="input_search" v-model="model.f_user_name"
16
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
+ </div>
18
+ <div class="form-group col-sm-2" >
19
+ <label class="font_normal_body">客户电话</label>
20
+ <input type="text" class="input_search" v-model="model.f_user_phone"
21
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
+ </div>
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">客户表号</label>
25
+ <input type="text" class="input_search" v-model="model.f_meternumber"
26
+ style="width: 60%" placeholder="客户表号" condition="f_meternumber like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2" >
29
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
30
+ <input type="text" class="input_search" v-model="model.f_residential_area"
31
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
32
+ </div>
33
+ <div class="form-group col-sm-2" >
34
+ <label class="font_normal_body">详细地址</label>
35
+ <input type="text" class="input_search" v-model="model.f_address"
36
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
37
+ </div>
38
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
39
+
40
+ <export-excel-safe :data="$parent.$parent.searchData"
41
+ :field="$parent.$parent.excelHeaders"
42
+ :choose-col="true"
43
+ sqlurl="rs/logic/SafeExportExcel" sql-name="查找安检单" template-name='安检计划明细'></export-excel-safe>
44
+ <!-- <export-excel :data="$parent.$parent.getCondition" -->
45
+ <!-- :field="$parent.$parent.getfield"-->
46
+ <!-- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'-->
47
+ <!-- :choose-col="true"></export-excel>-->
48
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
49
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
50
+
51
+ <button class="button_spacing button_search" @click="search()">查询</button>
52
+ <div style="float: right" class="button_spacing"
53
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
54
+ @click="$parent.$parent.hidden()"></div>
55
+ </div>
56
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
57
+ <label class="font_normal_body">安检计划</label>
58
+ <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
59
+ @click="$parent.$parent.showChooser"
60
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
61
+ </div>
62
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
63
+ <label class="font_normal_body">开始时间</label>
64
+ <datepicker
65
+ :value.sync="model.f_check_start"
66
+ placeholder='开始时间' style="width: 60%"
67
+ :disabled-days-of-week="[]"
68
+ :format="'yyyy-MM-dd'"
69
+ :show-rest-button="reset"
70
+ v-model="model.f_check_start"
71
+ condition="f_offsite_time > ='{} 00:00:00'">
72
+ </datepicker>
73
+ <!-- <datepicker-->
74
+ <!-- class="select_list select"-->
75
+ <!-- :value.sync="model.f_check_start"-->
76
+ <!-- placeholder='开始时间' style="width: 60%"-->
77
+ <!-- :disabled-days-of-week="[]"-->
78
+ <!-- :format="'yyyy-MM-dd'"-->
79
+ <!-- :show-rest-button="reset"-->
80
+ <!-- v-model="model.f_check_start"-->
81
+ <!-- condition="f_offsite_time > ='{} 00:00:00'">-->
82
+ <!-- </datepicker>-->
83
+ </div>
84
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
85
+ <label class="font_normal_body">结束时间</label>
86
+ <datepicker
87
+ :value.sync="model.f_check_end"
88
+ placeholder='结束时间' style="width: 60%"
89
+ :disabled-days-of-week="[]"
90
+ :format="'yyyy-MM-dd'"
91
+ :show-rest-button="reset"
92
+ v-model="model.f_check_end"
93
+ condition="f_offsite_time <= '{} 23:59:59'">
94
+ </datepicker>
95
+ </div>
96
+
97
+
98
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
99
+
100
+ <label class="font_normal_body">安检类型</label>
101
+ <v-select :value.sync="model.f_safecheck_type" v-model='model.f_safecheck_type'
102
+ :value-single="true" style="width: 60%"
103
+ class="select_list select"
104
+ :options='$parent.$parent.safetype' placeholder='安检类型'
105
+ close-on-select
106
+ condition="f_safecheck_type = '{}'"></v-select>
107
+ </div>
108
+
109
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
110
+
111
+ <label class="font_normal_body">客户类型</label>
112
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
113
+ :value-single="true" style="width: 60%"
114
+ class="select_list select"
115
+ :options='$parent.$parent.checktype' placeholder='客户类型'
116
+ close-on-select
117
+ condition="f_check_type = '{}'"></v-select>
118
+ </div>
119
+
120
+
121
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
122
+ <label class="font_normal_body">安检状态</label>
123
+ <v-select id="f_entry"
124
+ class="select_list select"
125
+ placeholder='安检状态' style="width: 60%"
126
+ v-model='model.f_entry'
127
+ :value.sync="$parent.$parent.model.f_entry"
128
+ :options='$parent.$parent.f_entry_status'
129
+ condition=""
130
+ :value-single="true"
131
+ close-on-select clear-button></v-select>
132
+ </div>
133
+
134
+
135
+
136
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
137
+ <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
138
+ <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
139
+ <!-- :value-single="true" style="width: 60%"-->
140
+ <!-- class="select_list select"-->
141
+ <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
142
+ <!-- close-on-select-->
143
+ <!-- condition="f_checker_id = '{}'"></v-select>-->
144
+ <!-- </div>-->
145
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
146
+ <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
147
+ <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
148
+ <!-- </right-tree>-->
149
+ <!-- </div>-->
150
+ <!-- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">-->
151
+ <!-- <role-selector-safe-->
152
+ <!-- role-name="安检员"-->
153
+ <!-- role-lable="安&nbsp;检&nbsp;员&nbsp;"-->
154
+ <!-- @re-res="$parent.$parent.getRes"-->
155
+ <!-- :value.sync="model.f_checker_id"-->
156
+ <!-- v-model="model.f_checker_id"-->
157
+ <!-- condition="f_checker_name = '{}'">-->
158
+ <!-- </role-selector-safe>-->
159
+ <!-- </div>-->
160
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
161
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
162
+ <v-select class="select_list select"
163
+ placeholder='片区/管理站' style="width: 60%"
164
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
165
+ :options='$parent.$parent.sliceArea'
166
+ filer-key="name"
167
+ close-on-select clear-button
168
+ condition="f_slice_area='{}'"
169
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
170
+ :value-single="true">
171
+ </v-select>
172
+ </div>
173
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
174
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
175
+ <v-select class="select_list select"
176
+ placeholder='抄表册' style="width: 60%"
177
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
178
+ :options='$parent.$parent.cbc'
179
+ filer-key="name"
180
+ close-on-select clear-button
181
+ condition="f_meter_book_num={}"
182
+ :value-single="true">
183
+ </v-select>
184
+ </div>
185
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
186
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
187
+ <v-select class="select_list select"
188
+ placeholder='请选择' style="width: 60%"
189
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
190
+ :options='$parent.$parent.pcds'
191
+ filer-key="name"
192
+ close-on-select clear-button
193
+ condition="f_pcd='{}'"
194
+ :value-single="true">
195
+ </v-select>
196
+ </div>
197
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
198
+ <label class="font_normal_body">开户时间</label>
199
+ <datepicker
200
+ :value.sync="model.f_check_gasstart"
201
+ placeholder='开始时间' style="width: 60%"
202
+ :disabled-days-of-week="[]"
203
+ :format="'yyyy-MM-dd'"
204
+ :show-rest-button="reset"
205
+ v-model="model.f_check_gasstart"
206
+ condition="f_gas_date > ='{} 00:00:00'">
207
+ </datepicker>
208
+ </div>
209
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
210
+ <label class="font_normal_body">开户时间</label>
211
+ <datepicker
212
+ :value.sync="model.f_check_gasend"
213
+ placeholder='结束时间' style="width: 60%"
214
+ :disabled-days-of-week="[]"
215
+ :format="'yyyy-MM-dd'"
216
+ :show-rest-button="reset"
217
+ v-model="model.f_check_gasend"
218
+ condition="f_gas_date <= '{} 23:59:59'">
219
+ </datepicker>
220
+ </div>
221
+ <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
222
+ <label class="font_normal_body">审核时间</label>
223
+ <datepicker
224
+ :value.sync="model.f_approved_timestart"
225
+ placeholder='开始时间' style="width: 60%"
226
+ :disabled-days-of-week="[]"
227
+ :format="'yyyy-MM-dd'"
228
+ :show-rest-button="reset"
229
+ v-model="model.f_approved_timestart"
230
+ condition="f_approved_time > ='{} 00:00:00'">
231
+ </datepicker>
232
+ </div>
233
+ <div class="form-group col-sm-2" v-show="$parent.$parent.safeAudit && $parent.$parent.criteriaShow ">
234
+ <label class="font_normal_body">审核时间</label>
235
+ <datepicker
236
+ :value.sync="model.f_approved_timeend"
237
+ placeholder='结束时间' style="width: 60%"
238
+ :disabled-days-of-week="[]"
239
+ :format="'yyyy-MM-dd'"
240
+ :show-rest-button="reset"
241
+ v-model="model.f_approved_timeend"
242
+ condition="f_approved_time <= '{} 23:59:59'">
243
+ </datepicker>
244
+ </div>
245
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
246
+ <label class="font_normal_body">气表品牌</label>
247
+ <v-select
248
+ class="select_list select"
249
+ placeholder='气表品牌' style="width: 60%"
250
+ v-model='model.tableBrand'
251
+ :value.sync="model.tableBrand"
252
+ :options='$parent.$parent.tableBrands'
253
+ condition="f_meter_brand = '{}'"
254
+ :value-single="true"
255
+ close-on-select clear-button></v-select>
256
+ </div>
257
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
258
+ <label class="font_normal_body">有无计划</label>
259
+ <v-select class="select_list select"
260
+ placeholder='请选择' style="width: 60%"
261
+ :value.sync="model.f_no_checkplan" v-model="model.f_no_checkplan"
262
+ :options='$parent.$parent.no_checkplans'
263
+ filer-key="name"
264
+ close-on-select clear-button
265
+ condition="f_no_checkplan='{}'"
266
+ :value-single="true">
267
+ </v-select>
268
+ </div>
269
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
270
+ <!-- <label class="font_normal_body">计划类型</label>-->
271
+ <!-- <v-select class="select_list select"-->
272
+ <!-- placeholder='请选择' style="width: 60%"-->
273
+ <!-- :value.sync="model.f_safe_type" v-model="model.f_safe_type"-->
274
+ <!-- :options='$parent.$parent.safe_types'-->
275
+ <!-- filer-key="name"-->
276
+ <!-- close-on-select clear-button-->
277
+ <!-- condition="f_safe_type='{}'"-->
278
+ <!-- :value-single="true">-->
279
+ <!-- </v-select>-->
280
+ <!-- </div>-->
281
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
282
+ <label class="font_normal_body">未用燃气</label>
283
+ <v-select class="select_list select" style="width: 60%"
284
+ placeholder='请选择'
285
+ :value.sync="model.f_usegas" v-model="model.f_usegas"
286
+ :options='$parent.$parent.usegas'
287
+ filer-key="name"
288
+ close-on-select clear-button
289
+ condition="f_usegas='{}'"
290
+ :value-single="true">
291
+ </v-select>
292
+ </div>
293
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
294
+ <label class="font_normal_body">客户卡号</label>
295
+ <input type="text" class="input_search" v-model="model.f_card_id"
296
+ style="width: 60%" placeholder="客户卡号" condition="f_card_id like '%{}%'">
297
+ </div>
298
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
299
+ <label class="font_normal_body">距上次安检天数</label>
300
+ <input type="number" class="input_search" v-model="model.f_check_date"
301
+ style="width: 60%" placeholder="距上次安检天数" >
302
+ </div>
303
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
304
+ <label class="font_normal_body" >区&emsp;&emsp;域</label>
305
+ <v-select :value.sync="model.f_quyu" :value-single="true" v-model="model.f_quyu"
306
+ :options='$parent.$parent.quyus' placeholder='区域' class="select_list select" style="width: 60%"
307
+ @change="$parent.$parent.quyuChange"
308
+ close-on-select>
309
+ </v-select>
310
+ </div>
311
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
312
+ <label class="font_normal_body" >营&ensp;业&ensp;厅</label>
313
+ <v-select :value.sync="model.f_bumen" :value-single="true" v-model="model.f_bumen"
314
+ :options='$parent.$parent.bumens' placeholder='营业厅'
315
+ @change="$parent.$parent.bumenChange" class="select_list select" style="width: 60%"
316
+ close-on-select>
317
+ </v-select>
318
+ </div>
319
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
320
+ <label class="font_normal_body">小&emsp;&emsp;组</label>
321
+ <v-select :value.sync="model.f_team" :value-single="true" v-model="model.f_team"
322
+ :options='$parent.$parent.teams' placeholder='小组'
323
+ @change="$parent.$parent.teamChange" class="select_list select" style="width: 60%"
324
+ close-on-select>
325
+ </v-select>
326
+ </div>
327
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
328
+ <label class="font_normal_body" >安&ensp;检&ensp;员</label>
329
+ <v-select :value.sync="model.f_checker_id" v-model="model.f_checker_id"
330
+ :multiple="true" class="select_list select" style="width: 60%"
331
+ :options='$parent.$parent.checkers' placeholder='安检员' condition="f_checker_name in {}"
332
+ close-on-select>
333
+ </v-select>
334
+ </div>
335
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >-->
336
+ <!-- <label class="font_normal_body">连续时间</label>-->
337
+ <!-- <datepicker-->
338
+ <!-- :value.sync="model.f_last_start"-->
339
+ <!-- placeholder='连续时间开始' style="width: 60%"-->
340
+ <!-- :disabled-days-of-week="[]"-->
341
+ <!-- :format="'yyyy-MM-dd'"-->
342
+ <!-- :show-rest-button="reset"-->
343
+ <!-- v-model="model.f_last_start"-->
344
+ <!-- condition="f_last_check_date> ='{} 00:00:00'">-->
345
+ <!-- </datepicker>-->
346
+ <!-- </div>-->
347
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >-->
348
+ <!-- <label class="font_normal_body">连续时间</label>-->
349
+ <!-- <datepicker-->
350
+ <!-- :value.sync="model.f_last_end"-->
351
+ <!-- placeholder='连续时间结束' style="width: 60%"-->
352
+ <!-- :disabled-days-of-week="[]"-->
353
+ <!-- :format="'yyyy-MM-dd'"-->
354
+ <!-- :show-rest-button="reset"-->
355
+ <!-- v-model="model.f_last_end"-->
356
+ <!-- condition="f_last_check_date<= '{} 23:59:59'">-->
357
+ <!-- </datepicker>-->
358
+ <!-- </div>-->
359
+ </div>
360
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
361
+ <div slot="modal-header" class="modal-header">
362
+ <h4 class="modal-title">
363
+ 选择计划
364
+ </h4>
365
+ </div>
366
+ <div slot="modal-body" class="modal-body">
367
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
368
+ </div>
369
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
370
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
371
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
372
+ </div>
373
+ </modal>
374
+ </div>
375
+ </criteria>
376
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
377
+ <template partial='head'>
378
+ <tr>
379
+ <th>
380
+ <nobr>客户编号</nobr>
381
+ </th>
382
+ <th>
383
+ <nobr>客户名称</nobr>
384
+ </th>
385
+ <th>
386
+ <nobr>客户表号</nobr>
387
+ </th>
388
+ <th>
389
+ <nobr>气表品牌</nobr>
390
+ </th>
391
+ <th>
392
+ <nobr>客户电话</nobr>
393
+ </th>
394
+ <th>
395
+ <nobr>客户类型</nobr>
396
+ </th>
397
+ <th>
398
+ <nobr>客户地址</nobr>
399
+ </th>
400
+ <th>
401
+ <nobr>安检状态</nobr>
402
+ </th>
403
+ <th>
404
+ <nobr>用气状态</nobr>
405
+ </th>
406
+ <th>
407
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
408
+ </th>
409
+ <th>
410
+ <nobr>安检员</nobr>
411
+ </th>
412
+ <th>
413
+ <nobr>副操</nobr>
414
+ </th>
415
+ <th>
416
+ <nobr>备注</nobr>
417
+ </th>
418
+ <th>
419
+ <nobr>开户时间</nobr>
420
+ </th>
421
+ <th v-if="$parent.$parent.$parent.safeAudit">
422
+ <nobr>审核人</nobr>
423
+ </th>
424
+ <th v-if="$parent.$parent.$parent.safeAudit">
425
+ <nobr>审核时间</nobr>
426
+ </th>
427
+ <th v-if="$parent.$parent.$parent.safeAudit">
428
+ <nobr>审核状态</nobr>
429
+ </th>
430
+ <th>
431
+ <nobr>操作</nobr>
432
+ </th>
433
+ <th v-if="$parent.$parent.$parent.audioshow">
434
+ <nobr>录音</nobr>
435
+ </th>
436
+ </tr>
437
+ </template>
438
+ <template partial='body'>
439
+
440
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
441
+ <td style="text-align: center">{{row.f_user_name}}</td>
442
+ <td style="text-align: center">{{row.f_meternumber}}</td>
443
+ <td style="text-align: center">{{row.f_meter_brand}}</td>
444
+ <td style="text-align: center">{{row.f_user_phone}}</td>
445
+ <td style="text-align: center">{{row.f_check_type}}</td>
446
+
447
+ <td style="text-align: center">{{ row.f_address }}</td>
448
+ <td style="text-align: center">{{ row.f_entry_status }}</td>
449
+ <td style="text-align: center">{{ row.f_usegas }}</td>
450
+ <td style="text-align: center">{{ row.f_offsite_time }}</td>
451
+ <td style="text-align: center">{{ row.f_checker_name }}</td>
452
+ <td style="text-align: center">{{ row.f_deputy_director}}</td>
453
+ <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
454
+ <td style="text-align: center">{{ row.f_gas_date }}</td>
455
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_by }}</td>
456
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">{{ row.f_approved_time }}</td>
457
+ <td style="text-align: center" v-show="$parent.$parent.$parent.safeAudit">
458
+ {{ row.f_approved ? row.f_approved : '未审核' }}
459
+ </td>
460
+ <td style="text-align: center">
461
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
462
+
463
+
464
+ </td>
465
+ <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
466
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
467
+ <audio controls="controls" v-if="row.f_recording1_path">
468
+ <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
469
+ </audio>
470
+ <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
471
+ @click="$parent.$parent.$parent.print(row)">
472
+ 打印
473
+ </button>-->
474
+ </td>
475
+ </template>
476
+ </data-grid>
477
+ </criteria-paged>
478
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
479
+ </div>
480
+ </div>
481
+ </template>
482
+
483
+ <script>
484
+ import {PagedList} from 'vue-client'
485
+ import Vue from 'vue'
486
+ import co from 'co'
487
+ import AppData from '../../../stores/AppData'
488
+ import * as Util from '../../Util'
489
+ import getNowDate from "../../../utils/getNowDate";
490
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
491
+ import BenzAMRRecorder from 'benz-amr-recorder'
492
+
493
+ //获取json配置文件
494
+ let asyncReady = async function (self) {
495
+ // 获取配置信息
496
+ try {
497
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
498
+ Vue.config = res.data
499
+ } catch (error) {
500
+ // 忽略704,文件找不到异常R
501
+ if (error.status !== 704) {
502
+ throw error
503
+ }
504
+ }
505
+ }
506
+
507
+ let select = function* (self) {
508
+ let http = new HttpResetClass()
509
+ let getGasman = yield http.load('POST', '/rs/search', {
510
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
511
+ userid: self.$login.f.id
512
+ }, {resolveMsg: null, rejectMsg: null})
513
+ ////tag
514
+ self.checkersid.push({label: '全部', value: ''})
515
+ getGasman.data.forEach((checker) => {
516
+ self.checkersid.push({label: checker.name, value: checker.id})
517
+ })
518
+ }
519
+
520
+ export default {
521
+ title: '安检结果查看',
522
+ data() {
523
+ let model = new PagedList('rs/sql/查找安检单', 20, {
524
+ f_plan_id: 'this.f_plan_id',
525
+ f_approved: 'this.f_approved',
526
+ f_entry_status: 'this.f_entry',
527
+ f_no_checkplan: 'this.f_no_checkplan',
528
+ f_filialeid: 'this.f_filialeid',
529
+ orderitem: "'f_offsite_time desc'"
530
+ })
531
+ model.f_check_type = ''
532
+ model.f_plan_id = ''
533
+ model.f_approved = ''
534
+ model.f_entry = ''
535
+ model.f_no_checkplan = ''
536
+ model.f_filialeid = `('${this.$login.f.orgid}')`
537
+ //model.f_check_type='民用'
538
+ // let searchData={
539
+ // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
540
+ // f_approved: this.model.f_approved,
541
+ // f_entry_status: this.model.f_entry,
542
+ // f_no_checkplan:this.model.f_no_checkplan[0],
543
+ // f_filialeid: this.model.f_filialeid,
544
+ // //orderitem: this.model.f_offsite_time,
545
+ // //condition:this.model.condition
546
+ // }
547
+ // model.f_subcompany = this.$login.f.f_fengongsi
548
+ return {
549
+ allCheckers: [{label: '请选择', value: ''}],
550
+ quyus: [{label: '请选择', value: ''}, ...this.$appdata.getParam('区域')],
551
+ bumens: [{label: '请选择', value: ''}],
552
+ teams: [{label: '请选择', value: ''}],
553
+ checkers:[{label: '请选择', value: ''}],
554
+ tableBrands: [{label: '全部', value: ''}],
555
+ audioshow: false,
556
+ safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
557
+ searchData: {
558
+ condition: "1=1",
559
+ orderitem: "f_offsite_time desc",
560
+ f_plan_id: "",
561
+ f_approved: '',
562
+ f_entry_status: '',
563
+ f_no_checkplan: '',
564
+ f_filialeid: `('${this.$login.f.orgid}')`
565
+ },
566
+ model: model,
567
+ excelHeaders: {
568
+ //searchData:searchData,
569
+ 'f_userinfo_code': '客户编号',
570
+ 'f_user_name': '客户姓名',
571
+ 'f_meternumber':'客户表号',
572
+ 'f_user_phone':'客户电话',
573
+ 'f_check_type': '客户类型',
574
+ 'f_residential_area': '小区',
575
+ 'f_address': '客户地址',
576
+ 'f_entry_status': '安检状态',
577
+ 'f_usegas': '用气状态',
578
+ 'f_offsite_time': '安检时间',
579
+ 'f_checker_name': '安检员',
580
+ 'f_safecheck_type':'安检类型',
581
+ 'f_repair_approved_note': '备注',
582
+ 'f_gas_date': '开户时间',
583
+ 'f_plan_name': '计划名称',
584
+ },
585
+ fun: this.$login.f,
586
+ pcds:[],
587
+ checkersid: [],
588
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
589
+ criteriaShow: false,
590
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
591
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
592
+ showModal: false,
593
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
594
+ f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
595
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
596
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
597
+ usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
598
+ showcheckmsg: false,
599
+ checkInfo: {},
600
+ orderDefault: "'f_offsite_time'",
601
+ orderFields: {
602
+ f_offsite_time: 'no'
603
+ },
604
+ sliceArea: [],
605
+ cbc:[]
606
+ }
607
+ },
608
+ methods: {
609
+ bumenChange(val) {
610
+ if (val) {
611
+ this.teams = this.$appdata.getParam(`工单-` + val) ? [{
612
+ label: '请选择',
613
+ value: ''
614
+ }, ...this.$appdata.getParam(`工单-` + val)] : [{label: '请选择', value: ''}]
615
+ }else {
616
+ this.checkers = this.allCheckers
617
+ }
618
+ },
619
+ teamChange(val) {
620
+ if (val) {
621
+ this.checkers = this.$appdata.getParam(val) ? [...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
622
+ }else {
623
+ this.checkers = this.allCheckers
624
+ }
625
+ },
626
+ quyuChange(val) {
627
+ if (val) {
628
+ this.bumens = this.$appdata.getParam(val) ? [{
629
+ label: '请选择',
630
+ value: ''
631
+ }, ...this.$appdata.getParam(val)] : [{label: '请选择', value: ''}]
632
+ }else {
633
+ this.checkers = this.allCheckers
634
+ }
635
+ },
636
+ //气表品牌查询
637
+ getTableBrands() {
638
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
639
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
640
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
641
+ resp.data.forEach((result) => {
642
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
643
+ })
644
+ })
645
+ },
646
+ //获取省市区列表
647
+ getPcd(val){
648
+ this.pcds = [{label:'全部',value:''}]
649
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
650
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
651
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
652
+ pcdlist.data.forEach((result)=>{
653
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
654
+ })
655
+ })
656
+ },
657
+ showaudio(){
658
+ //tag
659
+ this.audioshow=!this.audioshow
660
+ //tag
661
+ },
662
+ getmeterbook(val){
663
+ this.cbc=[]
664
+ this.cbc.push({
665
+ label:'全部',
666
+ value:''
667
+ })
668
+ if (val==''){
669
+
670
+ this.cbcs.forEach(res=>{
671
+ this.cbc.push({
672
+ label:res.f_book_name,
673
+ value:res.id
674
+ })
675
+ })
676
+ }else{
677
+ this.cbcs.forEach(res=>{
678
+ if (res.f_book_slice_area==val){
679
+ this.cbc.push({
680
+ label:res.f_book_name,
681
+ value:res.id
682
+ })
683
+ }
684
+ })
685
+ }
686
+ },
687
+ Mreadibook(val){
688
+ ////tag
689
+ ////tag
690
+ if (val){
691
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
692
+ items: 'name',
693
+ tablename: 't_zone',
694
+ condition: `parentid in ${val}`,
695
+ orderitem: 'id'
696
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
697
+ this.sliceArea=[]
698
+ this.sliceArea.push({
699
+ label:'全部',
700
+ value:''
701
+ })
702
+ res.data.forEach(ress=>{
703
+ this.sliceArea.push({
704
+ label:ress.name,
705
+ value:ress.name
706
+ })
707
+ })
708
+
709
+ })
710
+ }
711
+ },
712
+ getAllMeterBook(val){
713
+ ////tag
714
+ ////tag
715
+ this.cbcs=[]
716
+ if (val){
717
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
718
+ items: 'f_book_name,f_book_slice_area,id',
719
+ tablename: 't_meter_book',
720
+ condition: `f_filiale_id in ${val}`,
721
+ orderitem: 'id'
722
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
723
+ res.data.forEach(ress=>{
724
+ this.cbcs.push({
725
+ id:ress.id,
726
+ f_book_name:ress.f_book_name,
727
+ f_book_slice_area:ress.f_book_slice_area
728
+ })
729
+ })
730
+ this.cbc=[]
731
+ this.cbc.push({
732
+ label:'全部',
733
+ value:''
734
+ })
735
+ this.cbcs.forEach(res=>{
736
+ this.cbc.push({
737
+ label:res.f_book_name,
738
+ value:res.id
739
+ })
740
+ })
741
+ })
742
+ }
743
+ },
744
+ getRes(obj) {
745
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
746
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
747
+ this.Mreadibook(this.model.f_filialeid)
748
+ this.getAllMeterBook(this.model.f_filialeid)
749
+ this.getPcd(this.model.f_filialeid)
750
+ //this.$refs.paged.$refs.criteria.search()
751
+ },
752
+
753
+ change(row) {
754
+ // Vue.$login = {jwt: row.f_checker_id}
755
+ asyncReady(this).then(() => {
756
+ ////tag)
757
+ row.f_upload_state = '已传'
758
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
759
+ }).catch(
760
+ (respanse) => {
761
+ alert('获取配置文件失败')
762
+ })
763
+ },
764
+ readConfig() {
765
+ let gen = asyncReady(this)
766
+ return co(gen)
767
+ },
768
+ showChooser() {
769
+ this.showModal = true
770
+ },
771
+ hidden() {
772
+ this.criteriaShow = !this.criteriaShow
773
+ },
774
+ refresh() {
775
+ this.$refs.paged.$refs.criteria.search()
776
+ },
777
+ ok() {
778
+ this.showModal = false
779
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
780
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
781
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
782
+ }
783
+ },
784
+ cancel() {
785
+ this.showModal = false
786
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
787
+ this.model.f_plan_id=''
788
+ },
789
+ print(row) {
790
+ this.showcheckmsg = true
791
+ this.checkInfo = row
792
+ },
793
+
794
+ sort(field, rule) {
795
+ // 将所有排序方式设为不排序,实现相互排斥
796
+ for (let key in this.orderFields) {
797
+ if (key === field) {
798
+ this.orderFields[key] = rule
799
+ } else {
800
+ this.orderFields[key] = 'no'
801
+ }
802
+ }
803
+ // 如果新规则不排序,还原为默认排序
804
+ if (rule === 'no') {
805
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
806
+ } else {
807
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
808
+ }
809
+ this.search()
810
+ },
811
+ search() {
812
+ this.$refs.paged.$refs.criteria.search()
813
+ },
814
+ selfSearch(args) {
815
+ ////tag
816
+ //args.condition+=" and f_check_type='民用'"
817
+ if(args.model.f_check_date){
818
+ const daysBefore = Number(args.model.f_check_date);
819
+ if ( daysBefore > 0) {
820
+ // 获取当前日期
821
+ const now = new Date();
822
+ // 计算三天前的日期
823
+ const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
824
+ // 如果需要格式化日期,可以使用Date对象的方法
825
+ var formattedDate = threeDaysBefore.toISOString().split('T')[0];
826
+ args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
827
+ } else {
828
+ console.error('f_check_date不是一个有效的正整数');
829
+ }
830
+ }
831
+ this.model.search(args.condition, args.model, args.condValue)
832
+ },
833
+ getAllChecker() {
834
+ new HttpResetClass().load('POST', `/rs/sql/tel_singleTable_OrderBy`, {
835
+ data: {
836
+ items: 'name',
837
+ tablename: 't_user',
838
+ condition: `state = '在职' and rolestr like '%安检员%'`,
839
+ orderitem: 'id'
840
+ }
841
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
842
+ res.data.forEach(ress => {
843
+ this.allCheckers.push({
844
+ label: ress.name,
845
+ value: ress.name
846
+ })
847
+ })
848
+ this.checkers = this.allCheckers
849
+ })
850
+ }
851
+ },
852
+
853
+ ready() {
854
+ ////tag
855
+ this.function = this.f
856
+ ////tag
857
+ //获取气表品牌
858
+ this.getTableBrands()
859
+ this.getAllMeterBook()
860
+ let gen = select(this)
861
+ //this.pianqu()
862
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
863
+ co(gen)
864
+ this.getAllChecker()
865
+ },
866
+ watch: {
867
+ 'model.f_no_checkplan'(val) {
868
+ if (this.model.f_no_checkplan){
869
+ this.searchData.f_no_checkplan = val
870
+ }
871
+ if (this.model.f_no_checkplan == '有计划安检') {
872
+
873
+ this.showChooser()
874
+ }
875
+ },
876
+ 'model.condition'(val) {
877
+ if (val) {
878
+ this.searchData.condition = val
879
+ }
880
+
881
+ },
882
+ 'model.f_entry'(val) {
883
+ this.searchData.f_entry_status = val
884
+ },
885
+ 'model.f_plan_id'(val) {
886
+ if (val) {
887
+ this.searchData.f_plan_id = val
888
+ }
889
+ },
890
+ 'model.f_slice_area'(val) {
891
+ },
892
+ 'model.f_approved'(val) {
893
+ if (val) {
894
+ this.searchData.f_approved = val
895
+ }
896
+ },
897
+ }
898
+
899
+ }
900
+ </script>