safecheck-client 3.0.34-1 → 3.0.34-3

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