safecheck-client 3.0.35-34 → 3.0.35-36

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