safecheck-client 3.0.33-129 → 3.0.33-130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,777 +1,777 @@
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">小&emsp;&emsp;区</label>
25
- <input type="text" class="input_search" v-model="model.f_residential_area"
26
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
- </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">详细地址</label>
30
- <input type="text" class="input_search" v-model="model.f_address"
31
- style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
32
- </div>
33
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
-
35
- <export-excel-safe :data="$parent.$parent.searchData"
36
- :field="$parent.$parent.excelHeaders"
37
- :choose-col="true"
38
- sqlurl="rs/logic/SafeExportExcel" sql-name="查找安检单" template-name='安检计划明细'></export-excel-safe>
39
- <!-- <export-excel :data="$parent.$parent.getCondition" -->
40
- <!-- :field="$parent.$parent.getfield"-->
41
- <!-- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'-->
42
- <!-- :choose-col="true"></export-excel>-->
43
- <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
44
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
45
-
46
- <button class="button_spacing button_search" @click="search()">查询</button>
47
- <div style="float: right" class="button_spacing"
48
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
49
- @click="$parent.$parent.hidden()"></div>
50
- </div>
51
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
52
- <label class="font_normal_body">安检计划</label>
53
- <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
54
- @click="$parent.$parent.showChooser"
55
- style="width: 60%" placeholder="安检计划" readonly="readonly">
56
- </div>
57
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
58
- <label class="font_normal_body">开始时间</label>
59
- <datepicker
60
- :value.sync="model.f_check_start"
61
- placeholder='开始时间' style="width: 60%"
62
- :disabled-days-of-week="[]"
63
- :format="'yyyy-MM-dd'"
64
- :show-rest-button="reset"
65
- v-model="model.f_check_start"
66
- condition="f_offsite_time > ='{} 00:00:00'">
67
- </datepicker>
68
- <!-- <datepicker-->
69
- <!-- class="select_list select"-->
70
- <!-- :value.sync="model.f_check_start"-->
71
- <!-- placeholder='开始时间' style="width: 60%"-->
72
- <!-- :disabled-days-of-week="[]"-->
73
- <!-- :format="'yyyy-MM-dd'"-->
74
- <!-- :show-rest-button="reset"-->
75
- <!-- v-model="model.f_check_start"-->
76
- <!-- condition="f_offsite_time > ='{} 00:00:00'">-->
77
- <!-- </datepicker>-->
78
- </div>
79
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
80
- <label class="font_normal_body">结束时间</label>
81
- <datepicker
82
- :value.sync="model.f_check_end"
83
- placeholder='结束时间' style="width: 60%"
84
- :disabled-days-of-week="[]"
85
- :format="'yyyy-MM-dd'"
86
- :show-rest-button="reset"
87
- v-model="model.f_check_end"
88
- condition="f_offsite_time <= '{} 23:59:59'">
89
- </datepicker>
90
- </div>
91
-
92
-
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_safecheck_type" v-model='model.f_safecheck_type'
97
- :value-single="true" style="width: 60%"
98
- class="select_list select"
99
- :options='$parent.$parent.safetype' placeholder='安检类型'
100
- close-on-select
101
- condition="f_safecheck_type = '{}'"></v-select>
102
- </div>
103
-
104
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
105
-
106
- <label class="font_normal_body">客户类型</label>
107
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
108
- :value-single="true" style="width: 60%"
109
- class="select_list select"
110
- :options='$parent.$parent.checktype' placeholder='客户类型'
111
- close-on-select
112
- condition="f_check_type = '{}'"></v-select>
113
- </div>
114
-
115
-
116
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
117
- <label class="font_normal_body">安检状态</label>
118
- <v-select id="f_entry"
119
- class="select_list select"
120
- placeholder='安检状态' style="width: 60%"
121
- v-model='model.f_entry'
122
- :value.sync="$parent.$parent.model.f_entry"
123
- :options='$parent.$parent.f_entry_status'
124
- condition=""
125
- :value-single="true"
126
- close-on-select clear-button></v-select>
127
- </div>
128
-
129
-
130
-
131
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
132
- <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
133
- <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
134
- <!-- :value-single="true" style="width: 60%"-->
135
- <!-- class="select_list select"-->
136
- <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
137
- <!-- close-on-select-->
138
- <!-- condition="f_checker_id = '{}'"></v-select>-->
139
- <!-- </div>-->
140
- <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
141
- <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
142
- <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
143
- <!-- </right-tree>-->
144
- <!-- </div>-->
145
- <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
146
- <role-selector-safe
147
- role-name="安检员"
148
- role-lable="安&nbsp;检&nbsp;员&nbsp;"
149
- @re-res="$parent.$parent.getRes"
150
- :value.sync="model.f_checker_id"
151
- v-model="model.f_checker_id"
152
- :value-multiple="true"
153
- :value-close="false"
154
- condition="f_checker_name in {}">
155
- </role-selector-safe>
156
- </div>
157
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
158
- <label class="font_normal_body">部&emsp;&emsp;门</label>
159
- <v-select class="select_list select"
160
- placeholder='部门' style="width: 60%"
161
- :value.sync="model.f_department_name" v-model="model.f_department_name"
162
- :options='$parent.$parent.deplist'
163
- condition="f_department_name in {}"
164
- :multiple="true">
165
- </v-select>
166
- </div>
167
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
168
- <label class="font_normal_body">片&emsp;&emsp;区</label>
169
- <v-select class="select_list select"
170
- placeholder='片区/管理站' style="width: 60%"
171
- :value.sync="model.f_slice_area" v-model="model.f_slice_area"
172
- :options='$parent.$parent.sliceArea'
173
- filer-key="name"
174
- close-on-select clear-button
175
- condition="f_slice_area='{}'"
176
- @change="$parent.$parent.getmeterbook(model.f_slice_area)"
177
- :value-single="true">
178
- </v-select>
179
- </div>
180
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
181
- <label class="font_normal_body">抄&ensp;表&ensp;册</label>
182
- <v-select class="select_list select"
183
- placeholder='抄表册' style="width: 60%"
184
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
185
- :options='$parent.$parent.cbc'
186
- filer-key="name"
187
- close-on-select clear-button
188
- condition="f_meter_book_num={}"
189
- :value-single="true">
190
- </v-select>
191
- </div>
192
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
193
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
194
- <v-select class="select_list select"
195
- placeholder='请选择' style="width: 60%"
196
- :value.sync="model.f_pcd" v-model="model.f_pcd"
197
- :options='$parent.$parent.pcds'
198
- filer-key="name"
199
- close-on-select clear-button
200
- condition="f_pcd='{}'"
201
- :value-single="true">
202
- </v-select>
203
- </div>
204
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
205
- <label class="font_normal_body">用户类型</label>
206
- <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
207
- :value-single="true" style="width: 60%"
208
- class="select_list select"
209
- :options='$parent.$parent.f_check_type' placeholder='请选择'
210
- close-on-select
211
- condition="f_check_type = '{}'"></v-select>
212
- </div>
213
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
214
- <label class="font_normal_body">安检计划类型</label>
215
- <v-select :value.sync="model.f_no_checkplan" v-model='model.f_no_checkplan'
216
- :value-single="true" style="width: 60%"
217
- :options='$parent.$parent.safePlan'
218
- placeholder='请选择'
219
- close-on-select
220
- condition="f_no_checkplan = '{}'"></v-select>
221
- </div>
222
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
223
- <input type="text" class="input_search" v-model="model.f_no_meet_left"
224
- style="width: 23%" placeholder="" condition="f_check_version >= {}">
225
- <label class="font_normal_body" style="margin: 0 10px">≤ 到访不遇次数 ≤</label>
226
- <input type="text" class="input_search" v-model="model.f_no_meet_right"
227
- style="width: 24%" placeholder="" condition="f_check_version <= {}">
228
- </div>
229
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
230
- <label class="font_normal_body">表具类型</label>
231
- <v-select :value.sync="model.f_meter_type" v-model='model.f_meter_type'
232
- :value-single="true" style="width: 60%"
233
- :options='$parent.$parent.metertypes'
234
- placeholder='请选择'
235
- close-on-select
236
- condition="f_meter_type = '{}'"></v-select>
237
- </div>
238
- </div>
239
- <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
240
- <div slot="modal-header" class="modal-header">
241
- <h4 class="modal-title">
242
- 选择计划
243
- </h4>
244
- </div>
245
- <div slot="modal-body" class="modal-body">
246
- <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
247
- </div>
248
- <div slot="modal-footer" class="modal-footer" style="text-align: center">
249
- <button class="button_search" @click="$parent.$parent.ok">确认</button>
250
- <button class="button_search" @click="$parent.$parent.cancel">取消</button>
251
- </div>
252
- </modal>
253
- </div>
254
- </criteria>
255
- <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
256
- <template partial='head'>
257
- <tr>
258
- <th>
259
- <nobr>操作</nobr>
260
- </th>
261
- <th>
262
- <nobr>客户编号</nobr>
263
- </th>
264
- <th>
265
- <nobr>客户名称</nobr>
266
- </th>
267
- <th>
268
- <nobr>客户电话</nobr>
269
- </th>
270
- <th>
271
- <nobr>客户地址</nobr>
272
- </th>
273
- <th>
274
- <nobr>安检状态</nobr>
275
- </th>
276
- <th>
277
- <nobr>到访不遇次数</nobr>
278
- </th>
279
- <th>
280
- <data-order field="f_offsite_time" name="安检时间"></data-order>
281
- </th>
282
- <th>
283
- <nobr>安检员</nobr>
284
- </th>
285
- <th>
286
- <nobr>安检计划名称</nobr>
287
- </th>
288
- <th>
289
- <nobr>安检计划类型</nobr>
290
- </th>
291
- <th>
292
- <nobr>表类型</nobr>
293
- </th>
294
- <th>
295
- <nobr>表品牌&表型号</nobr>
296
- </th>
297
- <th>
298
- <nobr>客户类型</nobr>
299
- </th>
300
- <th>
301
- <nobr>用气性质</nobr>
302
- </th>
303
- <th>
304
- <nobr>表号</nobr>
305
- </th>
306
- <th>
307
- <nobr>累购气量</nobr>
308
- </th>
309
- <th>
310
- <nobr>已用气量</nobr>
311
- </th>
312
- <th>
313
- <nobr>剩余气量</nobr>
314
- </th>
315
- <th>
316
- <nobr>气量异常差值</nobr>
317
- </th>
318
- <th>
319
- <nobr>累购金额</nobr>
320
- </th>
321
- <th>
322
- <nobr>已用金额</nobr>
323
- </th>
324
- <th>
325
- <nobr>剩余金额</nobr>
326
- </th>
327
- <th>
328
- <nobr>金额异常差值</nobr>
329
- </th>
330
- <th>
331
- <nobr>系统表底数</nobr>
332
- </th>
333
- <th>
334
- <nobr>机械表底数</nobr>
335
- </th>
336
- <th>
337
- <nobr>防盗卡号1</nobr>
338
- </th>
339
- <th>
340
- <nobr>防盗卡号2</nobr>
341
- </th>
342
- <th>
343
- <nobr>备注</nobr>
344
- </th>
345
- <th v-if="$parent.$parent.$parent.audioshow">
346
- <nobr>录音</nobr>
347
- </th>
348
- </tr>
349
- </template>
350
- <template partial='body'>
351
- <td style="text-align: center">
352
- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
353
- </td>
354
- <td style="text-align: center">{{row.f_userinfo_code}}</td>
355
- <td style="text-align: center">{{row.f_user_name}}</td>
356
- <td style="text-align: center">{{row.f_user_phone}}</td>
357
- <td style="text-align: center">{{row.f_address}}</td>
358
- <td style="text-align: center">{{row.f_entry_status}}</td>
359
- <td style="text-align: center">{{row.f_check_version}}</td>
360
- <td style="text-align: center">{{row.f_offsite_time}}</td>
361
- <td style="text-align: center">{{row.f_checker_name}}</td>
362
- <td style="text-align: center">{{row.f_plan_name}}</td>
363
- <td style="text-align: center">{{row.f_no_checkplan}}</td>
364
- <td style="text-align: center">{{row.f_meter_type}}</td>
365
- <td style="text-align: center">{{row.f_meter_style}}</td>
366
- <td style="text-align: center">{{row.f_check_type}}</td>
367
- <td style="text-align: center">{{row.f_gasproperties}}</td>
368
- <td style="text-align: center">{{row.f_meternumber}}</td>
369
- <td style="text-align: center">{{row.f_total_gas}}</td>
370
- <td style="text-align: center">{{row.f_used_gas}}</td>
371
- <td style="text-align: center">{{row.f_residue_gas}}</td>
372
- <td style="text-align: center">{{row.f_difference_gas}}</td>
373
- <td style="text-align: center">{{row.f_total_fee}}</td>
374
- <td style="text-align: center">{{row.f_used_fee}}</td>
375
- <td style="text-align: center">{{row.f_residue_fee}}</td>
376
- <td style="text-align: center">{{row.f_difference_fee}}</td>
377
- <td style="text-align: center">{{row.f_base_num_system}}</td>
378
- <td style="text-align: center">{{row.f_base_num_machinery}}</td>
379
- <td style="text-align: center">{{row.f_defendcard}}</td>
380
- <td style="text-align: center">{{row.f_defendcard_two}}</td>
381
- <td style="text-align: center">{{row.f_repair_approved_note}}</td>
382
- <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
383
- <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
384
- <audio controls="controls" v-if="row.f_recording1_path">
385
- <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
386
- </audio>
387
- <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
388
- @click="$parent.$parent.$parent.print(row)">
389
- 打印
390
- </button>-->
391
- </td>
392
- </template>
393
- </data-grid>
394
- </criteria-paged>
395
- <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
396
- </div>
397
- </div>
398
- </template>
399
-
400
- <script>
401
- import {PagedList} from 'vue-client'
402
- import Vue from 'vue'
403
- import co from 'co'
404
- import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
405
-
406
- //获取json配置文件
407
- let asyncReady = async function (self) {
408
- // 获取配置信息
409
- try {
410
- let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
411
- Vue.config = res.data
412
- } catch (error) {
413
- // 忽略704,文件找不到异常R
414
- if (error.status !== 704) {
415
- throw error
416
- }
417
- }
418
- }
419
-
420
- let select = function* (self) {
421
- let http = new HttpResetClass()
422
- let getGasman = yield http.load('POST', '/rs/search', {
423
- source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
424
- userid: self.$login.f.id
425
- }, {resolveMsg: null, rejectMsg: null})
426
- ////tag
427
- self.checkersid.push({label: '全部', value: ''})
428
- getGasman.data.forEach((checker) => {
429
- self.checkersid.push({label: checker.name, value: checker.id})
430
- })
431
- }
432
-
433
- export default {
434
- title: '安检结果查看',
435
- data() {
436
- let model = new PagedList('rs/sql/查找安检单', 20, {
437
- f_plan_id: 'this.f_plan_id',
438
- f_approved: 'this.f_approved',
439
- f_entry_status: 'this.f_entry',
440
- f_check_start:'this.f_check_start',
441
- f_check_end:'this.f_check_end',
442
- f_no_checkplan: 'this.f_no_checkplan',
443
- f_filialeid: 'this.f_filialeid',
444
- orderitem: "'f_offsite_time desc'"
445
- })
446
- model.f_check_type=''
447
- model.f_plan_id = ''
448
- model.f_approved = ''
449
- model.f_check_start = ''
450
- model.f_check_end = ''
451
- model.f_entry = ''
452
- model.f_no_checkplan = ''
453
- model.f_filialeid = `('${this.$login.f.orgid}')`
454
- //model.f_check_type='民用'
455
- // let searchData={
456
- // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
457
- // f_approved: this.model.f_approved,
458
- // f_entry_status: this.model.f_entry,
459
- // f_no_checkplan:this.model.f_no_checkplan[0],
460
- // f_filialeid: this.model.f_filialeid,
461
- // //orderitem: this.model.f_offsite_time,
462
- // //condition:this.model.condition
463
- // }
464
- // model.f_subcompany = this.$login.f.f_fengongsi
465
- return {
466
- audioshow:false,
467
- searchData: {
468
- condition: "1=1",
469
- orderitem: "f_offsite_time desc",
470
- f_plan_id: "",
471
- f_approved: '',
472
- f_entry_status: '',
473
- f_no_checkplan: '',
474
- f_filialeid: `('${this.$login.f.orgid}')`
475
- },
476
- model: model,
477
- excelHeaders: {
478
- //searchData:searchData,
479
- 'f_userinfo_code': '客户编号',
480
- 'f_user_name': '客户姓名',
481
- 'f_user_phone':'客户电话',
482
- 'f_check_type': '客户类型',
483
- 'f_residential_area': '小区',
484
- 'f_address': '客户地址',
485
- 'f_entry_status': '安检状态',
486
- 'f_check_version': '到访不遇次数',
487
- 'f_offsite_time': '安检时间',
488
- 'f_checker_name': '安检员',
489
- 'f_plan_name': '安检计划名称',
490
- 'f_no_checkplan': '安检计划类型',
491
- "f_meter_type":"表类型",
492
- "f_meter_style":"表品牌&表型号",
493
- "f_collection_type":"用气性质",
494
- "f_meternumber":"表号",
495
- "f_total_gas":"累购气量",
496
- "f_used_gas":"已用气量",
497
- "f_residue_gas":"剩余气量",
498
- "f_difference_gas":"气量异常差值",
499
- "f_total_fee":"累购金额",
500
- "f_used_fee":"已用金额",
501
- "f_residue_fee":"剩余金额",
502
- "f_difference_fee":"金额异常差值",
503
- "f_base_num_system":"系统表底数",
504
- "f_base_num_machinery":"机械表底数",
505
- "f_defendcard":"防盗卡号1",
506
- "f_defendcard_two":"防盗卡号2",
507
- 'f_repair_approved_note': '备注'
508
- },
509
- fun: this.$login.f,
510
- pcds:[],
511
- checkersid: [],
512
- safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
513
- safePlan: this.$appdata.getParam('安检计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检计划类型')]:[{label: '全部', value: ''}],
514
- criteriaShow: false,
515
- checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
516
- f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
517
- metertypes:this.$appdata.getParam('安检表具类型')?[{label:'全部',value:''},...this.$appdata.getParam('安检表具类型')]:[{label: '全部', value: ''}],
518
- showModal: false,
519
- f_approval_states: this.$appdata.getParam('安检单审核状态'),
520
- f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
521
- f_checkplans: this.$appdata.getParam('有无计划'),
522
- showcheckmsg: false,
523
- checkInfo: {},
524
- orderDefault: "'f_offsite_time'",
525
- orderFields: {
526
- f_offsite_time: 'no'
527
- },
528
- sliceArea: [],
529
- deplist:[],
530
- cbc:[]
531
- }
532
- },
533
- methods: {
534
- /*获取部门*/
535
- getdep(){
536
- let http= new HttpResetClass()
537
- http.load('POST', '/rs/sql/safe_singleTable_OrderBy',
538
- {data:
539
- {
540
- items:"*",
541
- tablename:"t_department",
542
- orderitem:"id",
543
- condition:`parentid = '${this.$login.f.orgid}'`}
544
- }, {resolveMsg: null, rejectMsg: null}).then((res)=>{
545
- res.data.forEach((result)=>{
546
- this.deplist.push({label:result.name,value:result.name})
547
- })
548
- })
549
- },
550
- //获取省市区列表
551
- getPcd(val){
552
- this.pcds = [{label:'全部',value:''}]
553
- new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
554
- {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
555
- {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
556
- pcdlist.data.forEach((result)=>{
557
- this.pcds.push({label:result.f_pcd,value:result.f_pcd})
558
- })
559
- })
560
- },
561
- showaudio(){
562
- //tag
563
- this.audioshow=!this.audioshow
564
- //tag
565
- },
566
- getmeterbook(val){
567
- this.cbc=[]
568
- this.cbc.push({
569
- label:'全部',
570
- value:''
571
- })
572
- if (val==''){
573
-
574
- this.cbcs.forEach(res=>{
575
- this.cbc.push({
576
- label:res.f_book_name,
577
- value:res.id
578
- })
579
- })
580
- }else{
581
- this.cbcs.forEach(res=>{
582
- if (res.f_book_slice_area==val){
583
- this.cbc.push({
584
- label:res.f_book_name,
585
- value:res.id
586
- })
587
- }
588
- })
589
- }
590
- },
591
- Mreadibook(val){
592
- ////tag
593
- ////tag
594
- if (val){
595
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
596
- items: 'name',
597
- tablename: 't_zone',
598
- condition: `parentid in ${val}`,
599
- orderitem: 'id'
600
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
601
- this.sliceArea=[]
602
- this.sliceArea.push({
603
- label:'全部',
604
- value:''
605
- })
606
- res.data.forEach(ress=>{
607
- this.sliceArea.push({
608
- label:ress.name,
609
- value:ress.name
610
- })
611
- })
612
-
613
- })
614
- }
615
- },
616
- getAllMeterBook(val){
617
- ////tag
618
- ////tag
619
- this.cbcs=[]
620
- if (val){
621
- new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
622
- items: 'f_book_name,f_book_slice_area,id',
623
- tablename: 't_meter_book',
624
- condition: `f_filiale_id in ${val}`,
625
- orderitem: 'id'
626
- }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
627
- res.data.forEach(ress=>{
628
- this.cbcs.push({
629
- id:ress.id,
630
- f_book_name:ress.f_book_name,
631
- f_book_slice_area:ress.f_book_slice_area
632
- })
633
- })
634
- this.cbc=[]
635
- this.cbc.push({
636
- label:'全部',
637
- value:''
638
- })
639
- this.cbcs.forEach(res=>{
640
- this.cbc.push({
641
- label:res.f_book_name,
642
- value:res.id
643
- })
644
- })
645
- })
646
- }
647
- },
648
- getRes(obj) {
649
- this.model.f_filialeid = this.$login.convertToIn(obj.resids);
650
- this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
651
- this.Mreadibook(this.model.f_filialeid)
652
- this.getAllMeterBook(this.model.f_filialeid)
653
- this.getPcd(this.model.f_filialeid)
654
- //this.$refs.paged.$refs.criteria.search()
655
- },
656
-
657
- change(row) {
658
- // Vue.$login = {jwt: row.f_checker_id}
659
- asyncReady(this).then(() => {
660
- ////tag)
661
- row.f_upload_state = '已传'
662
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
663
- }).catch(
664
- (respanse) => {
665
- alert('获取配置文件失败')
666
- })
667
- },
668
- readConfig() {
669
- let gen = asyncReady(this)
670
- return co(gen)
671
- },
672
- showChooser() {
673
- this.showModal = true
674
- },
675
- hidden() {
676
- this.criteriaShow = !this.criteriaShow
677
- },
678
- refresh() {
679
- this.$refs.paged.$refs.criteria.search()
680
- },
681
- ok() {
682
- this.showModal = false
683
- if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
684
- this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
685
- this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
686
- }
687
- },
688
- cancel() {
689
- this.showModal = false
690
- this.model.f_check_plan = {f_plan_name: '', id: ''}
691
- this.model.f_plan_id=''
692
- },
693
- print(row) {
694
- this.showcheckmsg = true
695
- this.checkInfo = row
696
- },
697
-
698
- sort(field, rule) {
699
- // 将所有排序方式设为不排序,实现相互排斥
700
- for (let key in this.orderFields) {
701
- if (key === field) {
702
- this.orderFields[key] = rule
703
- } else {
704
- this.orderFields[key] = 'no'
705
- }
706
- }
707
- // 如果新规则不排序,还原为默认排序
708
- if (rule === 'no') {
709
- this.model.paramSource.orderitem = `'${this.orderDefault}'`
710
- } else {
711
- this.model.paramSource.orderitem = `'${field} ${rule}'`
712
- }
713
- this.search()
714
- },
715
- search() {
716
- this.$refs.paged.$refs.criteria.search()
717
- },
718
- selfSearch(args) {
719
- ////tag
720
- //args.condition+=" and f_check_type='民用'"
721
- this.model.f_check_start = args.model.f_check_start
722
- this.model.f_check_end = args.model.f_check_end
723
- this.model.search(args.condition, args.model, args.condValue)
724
- }
725
- },
726
-
727
- ready() {
728
- ////tag
729
- this.function = this.f
730
- ////tag
731
-
732
- let gen = select(this)
733
- //this.pianqu()
734
- this.Mreadibook(`('${this.$login.f.orgid}')`)
735
- co(gen)
736
- this.getdep()
737
- },
738
- watch: {
739
- 'model.f_no_checkplan'(val) {
740
- if (this.model.f_no_checkplan){
741
- this.searchData.f_no_checkplan = val
742
- }
743
- if (this.model.f_no_checkplan == '有计划安检') {
744
-
745
- this.showChooser()
746
- }
747
- },
748
- 'model.condition'(val) {
749
- if (val) {
750
- this.searchData.condition = val
751
- }
752
-
753
- },
754
- 'model.f_entry'(val) {
755
- if (val) {
756
- this.searchData.f_entry_status = val
757
- }
758
- },
759
- 'model.f_plan_id'(val) {
760
- if (val) {
761
- this.searchData.f_plan_id = val
762
- }
763
- },
764
- 'model.f_slice_area'(val) {
765
- if (val) {
766
-
767
- }
768
- },
769
- 'model.f_approved'(val) {
770
- if (val) {
771
- this.searchData.f_approved = val
772
- }
773
- },
774
- }
775
-
776
- }
777
- </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">小&emsp;&emsp;区</label>
25
+ <input type="text" class="input_search" v-model="model.f_residential_area"
26
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
27
+ </div>
28
+ <div class="form-group col-sm-2" >
29
+ <label class="font_normal_body">详细地址</label>
30
+ <input type="text" class="input_search" v-model="model.f_address"
31
+ style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
32
+ </div>
33
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
34
+
35
+ <export-excel-safe :data="$parent.$parent.searchData"
36
+ :field="$parent.$parent.excelHeaders"
37
+ :choose-col="true"
38
+ sqlurl="rs/logic/SafeExportExcel" sql-name="查找安检单" template-name='安检计划明细'></export-excel-safe>
39
+ <!-- <export-excel :data="$parent.$parent.getCondition" -->
40
+ <!-- :field="$parent.$parent.getfield"-->
41
+ <!-- sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'-->
42
+ <!-- :choose-col="true"></export-excel>-->
43
+ <!-- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="!$parent.$parent.audioshow">录音</button>-->
44
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
45
+
46
+ <button class="button_spacing button_search" @click="search()">查询</button>
47
+ <div style="float: right" class="button_spacing"
48
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
49
+ @click="$parent.$parent.hidden()"></div>
50
+ </div>
51
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
52
+ <label class="font_normal_body">安检计划</label>
53
+ <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
54
+ @click="$parent.$parent.showChooser"
55
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
56
+ </div>
57
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
58
+ <label class="font_normal_body">开始时间</label>
59
+ <datepicker
60
+ :value.sync="model.f_check_start"
61
+ placeholder='开始时间' style="width: 60%"
62
+ :disabled-days-of-week="[]"
63
+ :format="'yyyy-MM-dd'"
64
+ :show-rest-button="reset"
65
+ v-model="model.f_check_start"
66
+ condition="f_offsite_time > ='{} 00:00:00'">
67
+ </datepicker>
68
+ <!-- <datepicker-->
69
+ <!-- class="select_list select"-->
70
+ <!-- :value.sync="model.f_check_start"-->
71
+ <!-- placeholder='开始时间' style="width: 60%"-->
72
+ <!-- :disabled-days-of-week="[]"-->
73
+ <!-- :format="'yyyy-MM-dd'"-->
74
+ <!-- :show-rest-button="reset"-->
75
+ <!-- v-model="model.f_check_start"-->
76
+ <!-- condition="f_offsite_time > ='{} 00:00:00'">-->
77
+ <!-- </datepicker>-->
78
+ </div>
79
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
80
+ <label class="font_normal_body">结束时间</label>
81
+ <datepicker
82
+ :value.sync="model.f_check_end"
83
+ placeholder='结束时间' style="width: 60%"
84
+ :disabled-days-of-week="[]"
85
+ :format="'yyyy-MM-dd'"
86
+ :show-rest-button="reset"
87
+ v-model="model.f_check_end"
88
+ condition="f_offsite_time <= '{} 23:59:59'">
89
+ </datepicker>
90
+ </div>
91
+
92
+
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_safecheck_type" v-model='model.f_safecheck_type'
97
+ :value-single="true" style="width: 60%"
98
+ class="select_list select"
99
+ :options='$parent.$parent.safetype' placeholder='安检类型'
100
+ close-on-select
101
+ condition="f_safecheck_type = '{}'"></v-select>
102
+ </div>
103
+
104
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
105
+
106
+ <label class="font_normal_body">客户类型</label>
107
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
108
+ :value-single="true" style="width: 60%"
109
+ class="select_list select"
110
+ :options='$parent.$parent.checktype' placeholder='客户类型'
111
+ close-on-select
112
+ condition="f_check_type = '{}'"></v-select>
113
+ </div>
114
+
115
+
116
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
117
+ <label class="font_normal_body">安检状态</label>
118
+ <v-select id="f_entry"
119
+ class="select_list select"
120
+ placeholder='安检状态' style="width: 60%"
121
+ v-model='model.f_entry'
122
+ :value.sync="$parent.$parent.model.f_entry"
123
+ :options='$parent.$parent.f_entry_status'
124
+ condition=""
125
+ :value-single="true"
126
+ close-on-select clear-button></v-select>
127
+ </div>
128
+
129
+
130
+
131
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
132
+ <!-- <label class="font_normal_body">安&ensp;检&ensp;员</label>-->
133
+ <!-- <v-select :value.sync="model.f_checker_id" v-model='model.f_checker_id'-->
134
+ <!-- :value-single="true" style="width: 60%"-->
135
+ <!-- class="select_list select"-->
136
+ <!-- :options='$parent.$parent.checkersid' placeholder='安检员'-->
137
+ <!-- close-on-select-->
138
+ <!-- condition="f_checker_id = '{}'"></v-select>-->
139
+ <!-- </div>-->
140
+ <!-- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">-->
141
+ <!-- <label class="font_normal_body" style="margin-right: 2px">公&emsp;&emsp;司</label>-->
142
+ <!-- <right-tree @re-res="$parent.$parent.getRes" :initresid="$parent.$parent.$login.f.orgid">-->
143
+ <!-- </right-tree>-->
144
+ <!-- </div>-->
145
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
146
+ <role-selector-safe
147
+ role-name="安检员"
148
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
149
+ @re-res="$parent.$parent.getRes"
150
+ :value.sync="model.f_checker_id"
151
+ v-model="model.f_checker_id"
152
+ :value-multiple="true"
153
+ :value-close="false"
154
+ condition="f_checker_name in {}">
155
+ </role-selector-safe>
156
+ </div>
157
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
158
+ <label class="font_normal_body">部&emsp;&emsp;门</label>
159
+ <v-select class="select_list select"
160
+ placeholder='部门' style="width: 60%"
161
+ :value.sync="model.f_department_name" v-model="model.f_department_name"
162
+ :options='$parent.$parent.deplist'
163
+ condition="f_department_name in {}"
164
+ :multiple="true">
165
+ </v-select>
166
+ </div>
167
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
168
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
169
+ <v-select class="select_list select"
170
+ placeholder='片区/管理站' style="width: 60%"
171
+ :value.sync="model.f_slice_area" v-model="model.f_slice_area"
172
+ :options='$parent.$parent.sliceArea'
173
+ filer-key="name"
174
+ close-on-select clear-button
175
+ condition="f_slice_area='{}'"
176
+ @change="$parent.$parent.getmeterbook(model.f_slice_area)"
177
+ :value-single="true">
178
+ </v-select>
179
+ </div>
180
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
181
+ <label class="font_normal_body">抄&ensp;表&ensp;册</label>
182
+ <v-select class="select_list select"
183
+ placeholder='抄表册' style="width: 60%"
184
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
185
+ :options='$parent.$parent.cbc'
186
+ filer-key="name"
187
+ close-on-select clear-button
188
+ condition="f_meter_book_num={}"
189
+ :value-single="true">
190
+ </v-select>
191
+ </div>
192
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
193
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
194
+ <v-select class="select_list select"
195
+ placeholder='请选择' style="width: 60%"
196
+ :value.sync="model.f_pcd" v-model="model.f_pcd"
197
+ :options='$parent.$parent.pcds'
198
+ filer-key="name"
199
+ close-on-select clear-button
200
+ condition="f_pcd='{}'"
201
+ :value-single="true">
202
+ </v-select>
203
+ </div>
204
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
205
+ <label class="font_normal_body">用户类型</label>
206
+ <v-select :value.sync="model.f_check_type" v-model='model.f_check_type'
207
+ :value-single="true" style="width: 60%"
208
+ class="select_list select"
209
+ :options='$parent.$parent.f_check_type' placeholder='请选择'
210
+ close-on-select
211
+ condition="f_check_type = '{}'"></v-select>
212
+ </div>
213
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
214
+ <label class="font_normal_body">安检计划类型</label>
215
+ <v-select :value.sync="model.f_no_checkplan" v-model='model.f_no_checkplan'
216
+ :value-single="true" style="width: 60%"
217
+ :options='$parent.$parent.safePlan'
218
+ placeholder='请选择'
219
+ close-on-select
220
+ condition="f_no_checkplan = '{}'"></v-select>
221
+ </div>
222
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
223
+ <input type="text" class="input_search" v-model="model.f_no_meet_left"
224
+ style="width: 23%" placeholder="" condition="f_check_version >= {}">
225
+ <label class="font_normal_body" style="margin: 0 10px">≤ 到访不遇次数 ≤</label>
226
+ <input type="text" class="input_search" v-model="model.f_no_meet_right"
227
+ style="width: 24%" placeholder="" condition="f_check_version <= {}">
228
+ </div>
229
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
230
+ <label class="font_normal_body">表具类型</label>
231
+ <v-select :value.sync="model.f_meter_type" v-model='model.f_meter_type'
232
+ :value-single="true" style="width: 60%"
233
+ :options='$parent.$parent.metertypes'
234
+ placeholder='请选择'
235
+ close-on-select
236
+ condition="f_meter_type = '{}'"></v-select>
237
+ </div>
238
+ </div>
239
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
240
+ <div slot="modal-header" class="modal-header">
241
+ <h4 class="modal-title">
242
+ 选择计划
243
+ </h4>
244
+ </div>
245
+ <div slot="modal-body" class="modal-body">
246
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
247
+ </div>
248
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
249
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
250
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
251
+ </div>
252
+ </modal>
253
+ </div>
254
+ </criteria>
255
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
256
+ <template partial='head'>
257
+ <tr>
258
+ <th>
259
+ <nobr>操作</nobr>
260
+ </th>
261
+ <th>
262
+ <nobr>客户编号</nobr>
263
+ </th>
264
+ <th>
265
+ <nobr>客户名称</nobr>
266
+ </th>
267
+ <th>
268
+ <nobr>客户电话</nobr>
269
+ </th>
270
+ <th>
271
+ <nobr>客户地址</nobr>
272
+ </th>
273
+ <th>
274
+ <nobr>安检状态</nobr>
275
+ </th>
276
+ <th>
277
+ <nobr>到访不遇次数</nobr>
278
+ </th>
279
+ <th>
280
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
281
+ </th>
282
+ <th>
283
+ <nobr>安检员</nobr>
284
+ </th>
285
+ <th>
286
+ <nobr>安检计划名称</nobr>
287
+ </th>
288
+ <th>
289
+ <nobr>安检计划类型</nobr>
290
+ </th>
291
+ <th>
292
+ <nobr>表类型</nobr>
293
+ </th>
294
+ <th>
295
+ <nobr>表品牌&表型号</nobr>
296
+ </th>
297
+ <th>
298
+ <nobr>客户类型</nobr>
299
+ </th>
300
+ <th>
301
+ <nobr>用气性质</nobr>
302
+ </th>
303
+ <th>
304
+ <nobr>表号</nobr>
305
+ </th>
306
+ <th>
307
+ <nobr>累购气量</nobr>
308
+ </th>
309
+ <th>
310
+ <nobr>已用气量</nobr>
311
+ </th>
312
+ <th>
313
+ <nobr>剩余气量</nobr>
314
+ </th>
315
+ <th>
316
+ <nobr>气量异常差值</nobr>
317
+ </th>
318
+ <th>
319
+ <nobr>累购金额</nobr>
320
+ </th>
321
+ <th>
322
+ <nobr>已用金额</nobr>
323
+ </th>
324
+ <th>
325
+ <nobr>剩余金额</nobr>
326
+ </th>
327
+ <th>
328
+ <nobr>金额异常差值</nobr>
329
+ </th>
330
+ <th>
331
+ <nobr>系统表底数</nobr>
332
+ </th>
333
+ <th>
334
+ <nobr>机械表底数</nobr>
335
+ </th>
336
+ <th>
337
+ <nobr>防盗卡号1</nobr>
338
+ </th>
339
+ <th>
340
+ <nobr>防盗卡号2</nobr>
341
+ </th>
342
+ <th>
343
+ <nobr>备注</nobr>
344
+ </th>
345
+ <th v-if="$parent.$parent.$parent.audioshow">
346
+ <nobr>录音</nobr>
347
+ </th>
348
+ </tr>
349
+ </template>
350
+ <template partial='body'>
351
+ <td style="text-align: center">
352
+ <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>
353
+ </td>
354
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
355
+ <td style="text-align: center">{{row.f_user_name}}</td>
356
+ <td style="text-align: center">{{row.f_user_phone}}</td>
357
+ <td style="text-align: center">{{row.f_address}}</td>
358
+ <td style="text-align: center">{{row.f_entry_status}}</td>
359
+ <td style="text-align: center">{{row.f_check_version}}</td>
360
+ <td style="text-align: center">{{row.f_offsite_time}}</td>
361
+ <td style="text-align: center">{{row.f_checker_name}}</td>
362
+ <td style="text-align: center">{{row.f_plan_name}}</td>
363
+ <td style="text-align: center">{{row.f_no_checkplan}}</td>
364
+ <td style="text-align: center">{{row.f_meter_type}}</td>
365
+ <td style="text-align: center">{{row.f_meter_style}}</td>
366
+ <td style="text-align: center">{{row.f_check_type}}</td>
367
+ <td style="text-align: center">{{row.f_gasproperties}}</td>
368
+ <td style="text-align: center">{{row.f_meternumber}}</td>
369
+ <td style="text-align: center">{{row.f_total_gas}}</td>
370
+ <td style="text-align: center">{{row.f_used_gas}}</td>
371
+ <td style="text-align: center">{{row.f_residue_gas}}</td>
372
+ <td style="text-align: center">{{row.f_difference_gas}}</td>
373
+ <td style="text-align: center">{{row.f_total_fee}}</td>
374
+ <td style="text-align: center">{{row.f_used_fee}}</td>
375
+ <td style="text-align: center">{{row.f_residue_fee}}</td>
376
+ <td style="text-align: center">{{row.f_difference_fee}}</td>
377
+ <td style="text-align: center">{{row.f_base_num_system}}</td>
378
+ <td style="text-align: center">{{row.f_base_num_machinery}}</td>
379
+ <td style="text-align: center">{{row.f_defendcard}}</td>
380
+ <td style="text-align: center">{{row.f_defendcard_two}}</td>
381
+ <td style="text-align: center">{{row.f_repair_approved_note}}</td>
382
+ <td style="text-align: center" v-if="$parent.$parent.$parent.audioshow">
383
+ <!-- <button class="button_spacing button_search-1" @click='$parent.$parent.$parent.change(row)'>查看</button>-->
384
+ <audio controls="controls" v-if="row.f_recording1_path">
385
+ <source type="audio/mpeg" :src="'rs/audio/file/'+row.f_recording1_path">
386
+ </audio>
387
+ <!--<button type="button" class="button_new-1 button_spacing" data-toggle="dropdown"
388
+ @click="$parent.$parent.$parent.print(row)">
389
+ 打印
390
+ </button>-->
391
+ </td>
392
+ </template>
393
+ </data-grid>
394
+ </criteria-paged>
395
+ <check-msg v-if="showcheckmsg" :show="showcheckmsg" :data="checkInfo"></check-msg>
396
+ </div>
397
+ </div>
398
+ </template>
399
+
400
+ <script>
401
+ import {PagedList} from 'vue-client'
402
+ import Vue from 'vue'
403
+ import co from 'co'
404
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
405
+
406
+ //获取json配置文件
407
+ let asyncReady = async function (self) {
408
+ // 获取配置信息
409
+ try {
410
+ let res = await Vue.resetget(`/phone/rs/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
411
+ Vue.config = res.data
412
+ } catch (error) {
413
+ // 忽略704,文件找不到异常R
414
+ if (error.status !== 704) {
415
+ throw error
416
+ }
417
+ }
418
+ }
419
+
420
+ let select = function* (self) {
421
+ let http = new HttpResetClass()
422
+ let getGasman = yield http.load('POST', '/rs/search', {
423
+ source: 'this.getParentByType($department$).getAllChildrens().where(row.getAttributes().get($rolestr$).indexOf($安检员$) != -1))',
424
+ userid: self.$login.f.id
425
+ }, {resolveMsg: null, rejectMsg: null})
426
+ ////tag
427
+ self.checkersid.push({label: '全部', value: ''})
428
+ getGasman.data.forEach((checker) => {
429
+ self.checkersid.push({label: checker.name, value: checker.id})
430
+ })
431
+ }
432
+
433
+ export default {
434
+ title: '安检结果查看',
435
+ data() {
436
+ let model = new PagedList('rs/sql/查找安检单', 20, {
437
+ f_plan_id: 'this.f_plan_id',
438
+ f_approved: 'this.f_approved',
439
+ f_entry_status: 'this.f_entry',
440
+ f_check_start:'this.f_check_start',
441
+ f_check_end:'this.f_check_end',
442
+ f_no_checkplan: 'this.f_no_checkplan',
443
+ f_filialeid: 'this.f_filialeid',
444
+ orderitem: "'f_offsite_time desc'"
445
+ })
446
+ model.f_check_type=''
447
+ model.f_plan_id = ''
448
+ model.f_approved = ''
449
+ model.f_check_start = ''
450
+ model.f_check_end = ''
451
+ model.f_entry = ''
452
+ model.f_no_checkplan = ''
453
+ model.f_filialeid = `('${this.$login.f.orgid}')`
454
+ //model.f_check_type='民用'
455
+ // let searchData={
456
+ // f_plan_id: this.model.f_checker_id==undefined?"":this.model.f_checker_id,
457
+ // f_approved: this.model.f_approved,
458
+ // f_entry_status: this.model.f_entry,
459
+ // f_no_checkplan:this.model.f_no_checkplan[0],
460
+ // f_filialeid: this.model.f_filialeid,
461
+ // //orderitem: this.model.f_offsite_time,
462
+ // //condition:this.model.condition
463
+ // }
464
+ // model.f_subcompany = this.$login.f.f_fengongsi
465
+ return {
466
+ audioshow:false,
467
+ searchData: {
468
+ condition: "1=1",
469
+ orderitem: "f_offsite_time desc",
470
+ f_plan_id: "",
471
+ f_approved: '',
472
+ f_entry_status: '',
473
+ f_no_checkplan: '',
474
+ f_filialeid: `('${this.$login.f.orgid}')`
475
+ },
476
+ model: model,
477
+ excelHeaders: {
478
+ //searchData:searchData,
479
+ 'f_userinfo_code': '客户编号',
480
+ 'f_user_name': '客户姓名',
481
+ 'f_user_phone':'客户电话',
482
+ 'f_check_type': '客户类型',
483
+ 'f_residential_area': '小区',
484
+ 'f_address': '客户地址',
485
+ 'f_entry_status': '安检状态',
486
+ 'f_check_version': '到访不遇次数',
487
+ 'f_offsite_time': '安检时间',
488
+ 'f_checker_name': '安检员',
489
+ 'f_plan_name': '安检计划名称',
490
+ 'f_no_checkplan': '安检计划类型',
491
+ "f_meter_type":"表类型",
492
+ "f_meter_style":"表品牌&表型号",
493
+ "f_collection_type":"用气性质",
494
+ "f_meternumber":"表号",
495
+ "f_total_gas":"累购气量",
496
+ "f_used_gas":"已用气量",
497
+ "f_residue_gas":"剩余气量",
498
+ "f_difference_gas":"气量异常差值",
499
+ "f_total_fee":"累购金额",
500
+ "f_used_fee":"已用金额",
501
+ "f_residue_fee":"剩余金额",
502
+ "f_difference_fee":"金额异常差值",
503
+ "f_base_num_system":"系统表底数",
504
+ "f_base_num_machinery":"机械表底数",
505
+ "f_defendcard":"防盗卡号1",
506
+ "f_defendcard_two":"防盗卡号2",
507
+ 'f_repair_approved_note': '备注'
508
+ },
509
+ fun: this.$login.f,
510
+ pcds:[],
511
+ checkersid: [],
512
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
513
+ safePlan: this.$appdata.getParam('安检计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检计划类型')]:[{label: '全部', value: ''}],
514
+ criteriaShow: false,
515
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
516
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
517
+ metertypes:this.$appdata.getParam('安检表具类型')?[{label:'全部',value:''},...this.$appdata.getParam('安检表具类型')]:[{label: '全部', value: ''}],
518
+ showModal: false,
519
+ f_approval_states: this.$appdata.getParam('安检单审核状态'),
520
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
521
+ f_checkplans: this.$appdata.getParam('有无计划'),
522
+ showcheckmsg: false,
523
+ checkInfo: {},
524
+ orderDefault: "'f_offsite_time'",
525
+ orderFields: {
526
+ f_offsite_time: 'no'
527
+ },
528
+ sliceArea: [],
529
+ deplist:[],
530
+ cbc:[]
531
+ }
532
+ },
533
+ methods: {
534
+ /*获取部门*/
535
+ getdep(){
536
+ let http= new HttpResetClass()
537
+ http.load('POST', '/rs/sql/safe_singleTable_OrderBy',
538
+ {data:
539
+ {
540
+ items:"*",
541
+ tablename:"t_department",
542
+ orderitem:"id",
543
+ condition:`parentid = '${this.$login.f.orgid}'`}
544
+ }, {resolveMsg: null, rejectMsg: null}).then((res)=>{
545
+ res.data.forEach((result)=>{
546
+ this.deplist.push({label:result.name,value:result.name})
547
+ })
548
+ })
549
+ },
550
+ //获取省市区列表
551
+ getPcd(val){
552
+ this.pcds = [{label:'全部',value:''}]
553
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
554
+ {data:{items:"*",tablename:"t_pcd",orderitem:"id",condition:`f_orgid in ${val}`}},
555
+ {resolveMsg: null, rejectMsg: null}).then((pcdlist)=>{
556
+ pcdlist.data.forEach((result)=>{
557
+ this.pcds.push({label:result.f_pcd,value:result.f_pcd})
558
+ })
559
+ })
560
+ },
561
+ showaudio(){
562
+ //tag
563
+ this.audioshow=!this.audioshow
564
+ //tag
565
+ },
566
+ getmeterbook(val){
567
+ this.cbc=[]
568
+ this.cbc.push({
569
+ label:'全部',
570
+ value:''
571
+ })
572
+ if (val==''){
573
+
574
+ this.cbcs.forEach(res=>{
575
+ this.cbc.push({
576
+ label:res.f_book_name,
577
+ value:res.id
578
+ })
579
+ })
580
+ }else{
581
+ this.cbcs.forEach(res=>{
582
+ if (res.f_book_slice_area==val){
583
+ this.cbc.push({
584
+ label:res.f_book_name,
585
+ value:res.id
586
+ })
587
+ }
588
+ })
589
+ }
590
+ },
591
+ Mreadibook(val){
592
+ ////tag
593
+ ////tag
594
+ if (val){
595
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
596
+ items: 'name',
597
+ tablename: 't_zone',
598
+ condition: `parentid in ${val}`,
599
+ orderitem: 'id'
600
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
601
+ this.sliceArea=[]
602
+ this.sliceArea.push({
603
+ label:'全部',
604
+ value:''
605
+ })
606
+ res.data.forEach(ress=>{
607
+ this.sliceArea.push({
608
+ label:ress.name,
609
+ value:ress.name
610
+ })
611
+ })
612
+
613
+ })
614
+ }
615
+ },
616
+ getAllMeterBook(val){
617
+ ////tag
618
+ ////tag
619
+ this.cbcs=[]
620
+ if (val){
621
+ new HttpResetClass().load('POST',`/rs/sql/tel_singleTable_OrderBy`, {data: {
622
+ items: 'f_book_name,f_book_slice_area,id',
623
+ tablename: 't_meter_book',
624
+ condition: `f_filiale_id in ${val}`,
625
+ orderitem: 'id'
626
+ }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
627
+ res.data.forEach(ress=>{
628
+ this.cbcs.push({
629
+ id:ress.id,
630
+ f_book_name:ress.f_book_name,
631
+ f_book_slice_area:ress.f_book_slice_area
632
+ })
633
+ })
634
+ this.cbc=[]
635
+ this.cbc.push({
636
+ label:'全部',
637
+ value:''
638
+ })
639
+ this.cbcs.forEach(res=>{
640
+ this.cbc.push({
641
+ label:res.f_book_name,
642
+ value:res.id
643
+ })
644
+ })
645
+ })
646
+ }
647
+ },
648
+ getRes(obj) {
649
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
650
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
651
+ this.Mreadibook(this.model.f_filialeid)
652
+ this.getAllMeterBook(this.model.f_filialeid)
653
+ this.getPcd(this.model.f_filialeid)
654
+ //this.$refs.paged.$refs.criteria.search()
655
+ },
656
+
657
+ change(row) {
658
+ // Vue.$login = {jwt: row.f_checker_id}
659
+ asyncReady(this).then(() => {
660
+ ////tag)
661
+ row.f_upload_state = '已传'
662
+ this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
663
+ }).catch(
664
+ (respanse) => {
665
+ alert('获取配置文件失败')
666
+ })
667
+ },
668
+ readConfig() {
669
+ let gen = asyncReady(this)
670
+ return co(gen)
671
+ },
672
+ showChooser() {
673
+ this.showModal = true
674
+ },
675
+ hidden() {
676
+ this.criteriaShow = !this.criteriaShow
677
+ },
678
+ refresh() {
679
+ this.$refs.paged.$refs.criteria.search()
680
+ },
681
+ ok() {
682
+ this.showModal = false
683
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
684
+ this.model.f_plan_id = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
685
+ this.model.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
686
+ }
687
+ },
688
+ cancel() {
689
+ this.showModal = false
690
+ this.model.f_check_plan = {f_plan_name: '', id: ''}
691
+ this.model.f_plan_id=''
692
+ },
693
+ print(row) {
694
+ this.showcheckmsg = true
695
+ this.checkInfo = row
696
+ },
697
+
698
+ sort(field, rule) {
699
+ // 将所有排序方式设为不排序,实现相互排斥
700
+ for (let key in this.orderFields) {
701
+ if (key === field) {
702
+ this.orderFields[key] = rule
703
+ } else {
704
+ this.orderFields[key] = 'no'
705
+ }
706
+ }
707
+ // 如果新规则不排序,还原为默认排序
708
+ if (rule === 'no') {
709
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
710
+ } else {
711
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
712
+ }
713
+ this.search()
714
+ },
715
+ search() {
716
+ this.$refs.paged.$refs.criteria.search()
717
+ },
718
+ selfSearch(args) {
719
+ ////tag
720
+ //args.condition+=" and f_check_type='民用'"
721
+ this.model.f_check_start = args.model.f_check_start
722
+ this.model.f_check_end = args.model.f_check_end
723
+ this.model.search(args.condition, args.model, args.condValue)
724
+ }
725
+ },
726
+
727
+ ready() {
728
+ ////tag
729
+ this.function = this.f
730
+ ////tag
731
+
732
+ let gen = select(this)
733
+ //this.pianqu()
734
+ this.Mreadibook(`('${this.$login.f.orgid}')`)
735
+ co(gen)
736
+ this.getdep()
737
+ },
738
+ watch: {
739
+ 'model.f_no_checkplan'(val) {
740
+ if (this.model.f_no_checkplan){
741
+ this.searchData.f_no_checkplan = val
742
+ }
743
+ if (this.model.f_no_checkplan == '有计划安检') {
744
+
745
+ this.showChooser()
746
+ }
747
+ },
748
+ 'model.condition'(val) {
749
+ if (val) {
750
+ this.searchData.condition = val
751
+ }
752
+
753
+ },
754
+ 'model.f_entry'(val) {
755
+ if (val) {
756
+ this.searchData.f_entry_status = val
757
+ }
758
+ },
759
+ 'model.f_plan_id'(val) {
760
+ if (val) {
761
+ this.searchData.f_plan_id = val
762
+ }
763
+ },
764
+ 'model.f_slice_area'(val) {
765
+ if (val) {
766
+
767
+ }
768
+ },
769
+ 'model.f_approved'(val) {
770
+ if (val) {
771
+ this.searchData.f_approved = val
772
+ }
773
+ },
774
+ }
775
+
776
+ }
777
+ </script>