safecheck-client 3.0.33-6 → 3.0.33-61

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 (64) hide show
  1. package/package.json +3 -3
  2. package/src/App.vue +31 -31
  3. package/src/components/paper/PaperList.vue +5 -4
  4. package/src/components/planmanage/checkUserList.vue +34 -2
  5. package/src/components/report/CheckPlanCountChartArea.vue +5 -0
  6. package/src/components/rongcheng/AspiratedPaperFeedbackm.vue +28 -1
  7. package/src/components/rongcheng/AspiratedPaperMessage.vue +1 -1
  8. package/src/components/rongcheng/DefectPaper.vue +1 -1
  9. package/src/components/rongcheng/PaperListNPSQ.vue +29 -1
  10. package/src/components/rongcheng/PaperListSQ.vue +30 -11
  11. package/src/components/rongcheng/PhoneUpUserinfo.vue +939 -802
  12. package/src/components/rongcheng/SafecheckOrderV.vue +1 -1
  13. package/src/components/rongcheng/report/CheckPlanAreaList.vue +1 -3
  14. package/src/filiale/Util.js +5 -0
  15. package/src/filiale/bayan/android/AddPlanItem.vue +12 -3
  16. package/src/filiale/bayan/android/SafecheckOrderV.vue +2854 -2850
  17. package/src/filiale/bayan/android/SafecheckUserInfo.vue +532 -508
  18. package/src/filiale/dexin/android/SafecheckDevices.vue +1 -1
  19. package/src/filiale/dexin/android/WebMeterOpen.vue +1 -1
  20. package/src/filiale/dexin/android/WebMeterOpenEdit.vue +25 -37
  21. package/src/filiale/fugou/pc/AddToCheckBook.vue +56 -119
  22. package/src/filiale/fugou/pc/CheckBook.vue +2 -0
  23. package/src/filiale/fugou/pc/CheckBookEntry.vue +47 -19
  24. package/src/filiale/fugou/pc/CheckBookList.vue +2 -2
  25. package/src/filiale/fugou/pc/CheckBookSearchUser.vue +733 -574
  26. package/src/filiale/fugou/pc/CheckBookUser.vue +102 -45
  27. package/src/filiale/fugou/pc/PlanManage.vue +62 -8
  28. package/src/filiale/fugou/pc/checkUserList.vue +222 -42
  29. package/src/filiale/hanzhong/pc/CheckHiddenDanger.vue +15 -5
  30. package/src/filiale/hanzhong/pc/CheckSafeDetail.vue +12 -2
  31. package/src/filiale/hanzhong/pc/CheckSafeStatus.vue +12 -3
  32. package/src/filiale/hanzhong/pc/CheckSearchUser.vue +13 -0
  33. package/src/filiale/hanzhong/pc/CheckUserList.vue +30 -11
  34. package/src/filiale/hanzhong/pc/CheckerSafeDetail.vue +11 -2
  35. package/src/filiale/jingyang/pc/ReportCheckItemList.vue +543 -0
  36. package/src/filiale/jingyang/pc.js +1 -0
  37. package/src/filiale/rongchuang/android/SafecheckDevices.vue +468 -748
  38. package/src/filiale/rongchuang/android/SafecheckOrderV.vue +984 -1234
  39. package/src/filiale/rongchuang/android.js +1 -0
  40. package/src/filiale/rongchuang/pc/NewCheckpaper.vue +294 -305
  41. package/src/filiale/rongchuang/pc/PaperList.vue +812 -0
  42. package/src/filiale/rongchuang/pc.js +1 -0
  43. package/src/filiale/tongchuan/pc/checkUserList.vue +2 -2
  44. package/src/filiale/weinan/android/PaperFeedback.vue +8 -8
  45. package/src/filiale/weinan/android/SafecheckDevices.vue +1082 -1025
  46. package/src/filiale/weinan/android/SafecheckOrderV.vue +3325 -3276
  47. package/src/filiale/weinan/pc/CheckSearchUser.vue +1078 -0
  48. package/src/filiale/weinan/pc/DefectPaperNew.vue +7 -1
  49. package/src/filiale/weinan/pc.js +1 -0
  50. package/src/filiale/wensu/pc/CheckSearchUser.vue +2 -0
  51. package/src/filiale/wensu/pc/PrintMaterialBill.vue +172 -172
  52. package/src/filiale/wensu/pc/SelectCheckPlan.vue +342 -342
  53. package/src/filiale/wenxi/android/SafecheckUserInfo.vue +651 -651
  54. package/src/filiale/wuhai/pc/PaperList.vue +785 -0
  55. package/src/filiale/wuhai/pc.js +1 -0
  56. package/src/filiale/yangchunboneng/android/SafecheckOrderV.vue +2 -2
  57. package/src/filiale/yongzhou/pc/CheckPlan.vue +59 -0
  58. package/src/filiale/yongzhou/pc/DefectPaperNew.vue +1105 -0
  59. package/src/filiale/yongzhou/pc/SelectCheckPlan.vue +364 -0
  60. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +94 -187
  61. package/src/filiale/yongzhou/pc/safeDetail.vue +212 -14
  62. package/src/filiale/yongzhou/pc.js +3 -0
  63. package/src/filiale/yunchengminsheng/pc/checkUserList.vue +18 -1
  64. package/src/main.js +2 -2
@@ -0,0 +1,543 @@
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 = '{}'">
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="ReportCheckItemList" template-name='安检结果明细导出'></export-excel-safe>
39
+
40
+ <button class="button_spacing button_search" @click="search()">查询</button>
41
+ <div style="float: right" class="button_spacing"
42
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
43
+ @click="$parent.$parent.hidden()"></div>
44
+ </div>
45
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
46
+ <label class="font_normal_body">开始时间</label>
47
+ <datepicker
48
+ :value.sync="model.f_check_start"
49
+ placeholder='开始时间' style="width: 60%"
50
+ :disabled-days-of-week="[]"
51
+ :format="'yyyy-MM-dd'"
52
+ :show-rest-button="reset"
53
+ v-model="model.f_check_start"
54
+ condition="f_offsite_time > ='{} 00:00:00'">
55
+ </datepicker>
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_end"
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_end"
66
+ condition="f_offsite_time <= '{} 23:59:59'">
67
+ </datepicker>
68
+ </div>
69
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
70
+ <label class="font_normal_body">安检状态</label>
71
+ <v-select id="f_entry"
72
+ class="select_list select"
73
+ placeholder='安检状态' style="width: 60%"
74
+ v-model='model.f_entry'
75
+ :value.sync="$parent.$parent.model.f_entry"
76
+ :options='$parent.$parent.f_entry_status'
77
+ condition="f_entry_status = '{}'"
78
+ :value-single="true"
79
+ close-on-select clear-button></v-select>
80
+ </div>
81
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
82
+ <label class="font_normal_body">开户时间</label>
83
+ <datepicker
84
+ :value.sync="model.f_check_gasstart"
85
+ placeholder='开始时间' style="width: 60%"
86
+ :disabled-days-of-week="[]"
87
+ :format="'yyyy-MM-dd'"
88
+ :show-rest-button="reset"
89
+ v-model="model.f_check_gasstart"
90
+ condition="f_gas_date > ='{} 00:00:00'">
91
+ </datepicker>
92
+ </div>
93
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
94
+ <label class="font_normal_body">开户时间</label>
95
+ <datepicker
96
+ :value.sync="model.f_check_gasend"
97
+ placeholder='结束时间' style="width: 60%"
98
+ :disabled-days-of-week="[]"
99
+ :format="'yyyy-MM-dd'"
100
+ :show-rest-button="reset"
101
+ v-model="model.f_check_gasend"
102
+ condition="f_gas_date <= '{} 23:59:59'">
103
+ </datepicker>
104
+ </div>
105
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
106
+ <label class="font_normal_body">气表品牌</label>
107
+ <v-select
108
+ class="select_list select"
109
+ placeholder='气表品牌' style="width: 60%"
110
+ v-model='model.tableBrand'
111
+ :value.sync="model.tableBrand"
112
+ :options='$parent.$parent.tableBrands'
113
+ condition="f_rqb_qbpp = '{}'"
114
+ :value-single="true"
115
+ close-on-select clear-button></v-select>
116
+ </div>
117
+ <div class="col-sm-4 form-group" v-show="$parent.$parent.criteriaShow" style="margin: 0">
118
+ <role-selector-safe
119
+ role-name="安检员"
120
+ role-lable="安&nbsp;检&nbsp;员&nbsp;"
121
+ @re-res="$parent.$parent.getRes"
122
+ :value.sync="model.f_checker_id"
123
+ v-model="model.f_checker_id"
124
+ condition="f_checker_name = '{}'">
125
+ </role-selector-safe>
126
+ </div>
127
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
128
+ <label class="font_normal_body">未用燃气</label>
129
+ <v-select class="select_list select"
130
+ placeholder='请选择' style="width: 60%"
131
+ :value.sync="model.f_usegas" v-model="model.f_usegas"
132
+ :options='$parent.$parent.usegas'
133
+ filer-key="name"
134
+ close-on-select clear-button
135
+ condition="f_usegas='{}'"
136
+ :value-single="true">
137
+ </v-select>
138
+ </div>
139
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
140
+ <label class="font_normal_body">导&ensp;出&ensp;项</label>
141
+ <v-select class="select_list select"
142
+ placeholder='请选择' style="width: 60%"
143
+ :value.sync="$parent.$parent.f_excel_items" v-model="$parent.$parent.f_excel_items"
144
+ :options='$parent.$parent.excelitems'
145
+ :multiple="true"
146
+ filer-key="name"
147
+ clear-button>
148
+ </v-select>
149
+ </div>
150
+ <modal :show.sync="$parent.$parent.showModal" v-ref:modal backdrop="false">
151
+ <div slot="modal-header" class="modal-header">
152
+ <h4 class="modal-title">
153
+ 选择计划
154
+ </h4>
155
+ </div>
156
+ <div slot="modal-body" class="modal-body">
157
+ <plan-chooser :f.sync="$parent.$parent.fun" v-ref:chooser></plan-chooser>
158
+ </div>
159
+ <div slot="modal-footer" class="modal-footer" style="text-align: center">
160
+ <button class="button_search" @click="$parent.$parent.ok">确认</button>
161
+ <button class="button_search" @click="$parent.$parent.cancel">取消</button>
162
+ </div>
163
+ </modal>
164
+ </div>
165
+ </div>
166
+ </criteria>
167
+ <data-grid class="list_area table_sy" style="overflow: hidden" :model="model" partial='list' v-ref:grid>
168
+ <template partial='head'>
169
+ <tr>
170
+ <th>
171
+ <nobr>客户编号</nobr>
172
+ </th>
173
+ <th>
174
+ <nobr>客户名称</nobr>
175
+ </th>
176
+ <th>
177
+ <nobr>客户表号</nobr>
178
+ </th>
179
+ <th>
180
+ <nobr>气表品牌</nobr>
181
+ </th>
182
+ <th>
183
+ <nobr>客户电话</nobr>
184
+ </th>
185
+ <th>
186
+ <nobr>客户类型</nobr>
187
+ </th>
188
+ <th>
189
+ <nobr>客户地址</nobr>
190
+ </th>
191
+ <th>
192
+ <nobr>安检状态</nobr>
193
+ </th>
194
+ <th>
195
+ <nobr>用气状态</nobr>
196
+ </th>
197
+ <th>
198
+ <data-order field="f_offsite_time" name="安检时间"></data-order>
199
+ </th>
200
+ <th>
201
+ <nobr>安检员</nobr>
202
+ </th>
203
+ <th>
204
+ <nobr>备注</nobr>
205
+ </th>
206
+ <th>
207
+ <nobr>开户时间</nobr>
208
+ </th>
209
+ </tr>
210
+ </template>
211
+ <template partial='body'>
212
+
213
+ <td style="text-align: center">{{row.f_userinfo_code}}</td>
214
+ <td style="text-align: center">{{row.f_user_name}}</td>
215
+ <td style="text-align: center">{{row.f_meternumber}}</td>
216
+ <td style="text-align: center">{{row.f_meter_brand}}</td>
217
+ <td style="text-align: center">{{row.f_user_phone}}</td>
218
+ <td style="text-align: center">{{row.f_check_type}}</td>
219
+ <td style="text-align: center">{{ row.f_address }}</td>
220
+ <td style="text-align: center">{{ row.f_entry_status }}</td>
221
+ <td style="text-align: center">{{ row.f_usegas }}</td>
222
+ <td style="text-align: center">{{ row.f_offsite_time }}</td>
223
+ <td style="text-align: center">{{ row.f_checker_name }}</td>
224
+ <td style="text-align: center">{{ row.f_repair_approved_note }}</td>
225
+ <td style="text-align: center">{{ row.f_gas_date }}</td>
226
+ </template>
227
+ </data-grid>
228
+ </criteria-paged>
229
+ </div>
230
+ </div>
231
+ </template>
232
+
233
+ <script>
234
+ import {PagedList} from 'vue-client'
235
+ import Vue from 'vue'
236
+ import co from 'co'
237
+ import AppData from '../../../stores/AppData'
238
+ import * as Util from '../../Util'
239
+ import getNowDate from "../../../utils/getNowDate";
240
+ import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
241
+ import BenzAMRRecorder from 'benz-amr-recorder'
242
+
243
+ const Excelconfig = {
244
+ '燃气表': {
245
+ 'f_rqb_jbbh':'基表编号',
246
+ 'f_rqb_qbpp': '气表品牌',
247
+ 'f_rqb_qpxh': '气表型号',
248
+ 'f_rqb_jqfx': '进气方向',
249
+ 'f_rqb_lgql': '累购气量',
250
+ 'f_rqb_lgje': '累购金额',
251
+ 'f_rqb_yyql': '已用气量',
252
+ 'f_rqb_yyje': '已用金额',
253
+ 'f_rqb_syql': '剩余气量',
254
+ 'f_rqb_syje': '剩余金额',
255
+ 'f_rqb_qlyccz': '气量异常差值',
256
+ 'f_rqb_jeyccz': '金额异常差值',
257
+ 'f_rqb_bxh': '表箱号',
258
+ 'f_rqb_scrq': '生产日期',
259
+ 'f_rqb_kssyrq': '开始使用日期',
260
+ 'f_rqb_lq': '表漏气',
261
+ 'f_rqb_ztb': '直通表',
262
+ 'f_rqb_sb': '死表',
263
+ 'f_rqb_fs': '表腐蚀',
264
+ 'f_rqb_qbgb': '气不过表',
265
+ 'f_rqb_kbbh': '卡表表号',
266
+ 'f_rqb_bsh': '表损坏',
267
+ 'f_rqb_jbds':'机械读数'
268
+ },
269
+ '立管': {
270
+ 'f_lg_fs': '立管腐蚀',
271
+ 'f_lg_bg': '立管包裹',
272
+ 'f_lg_yxylsfzc': '立管运行压力是否正常',
273
+ 'f_lg_jglq':'立管接口漏气'
274
+ },
275
+ '阀门': {
276
+ 'f_fm_bqfsflq': '表前阀是否漏气',
277
+ 'f_fm_bqfsfbg': '表前阀是否包裹',
278
+ 'f_fm_zbfsflq': '自闭阀是否漏气',
279
+ 'f_fm_zbfsfbg':'自闭阀是否包裹',
280
+ 'f_fm_zbfsfsh': '自闭阀是否损坏',
281
+ 'f_fm_zqfsflq': '灶前阀是否漏气',
282
+ 'f_fm_fmxs':'阀门形式'
283
+ },
284
+ '管道': {
285
+ 'f_gd_lq': '管道漏气',
286
+ 'f_gd_ckt': '管道穿客厅',
287
+ 'f_gd_cws': '管道穿卧室',
288
+ 'f_gd_ydqgj':'管道与电气过近',
289
+ 'f_gd_af': '管道暗封',
290
+ 'f_gd_sg': '管道私改',
291
+ 'f_gd_cfty':'管道厨房他用',
292
+ 'f_gd_gdk': '管道固定卡',
293
+ 'f_gd_rg':'管道软管'
294
+ },
295
+ '报警器': {
296
+ 'f_bjq_sfaz':'报警器是否安装'
297
+ },
298
+ '灶具': {
299
+ 'f_zj_sbpp': '灶具设备品牌',
300
+ 'f_zj_sbxh': '灶具设备型号',
301
+ 'f_zj_scrq': '灶具生产日期',
302
+ 'f_zj_kssyrq':'灶具开始使用日期',
303
+ 'f_zj_rgcd': '灶具软管长度(米)',
304
+ 'f_zj_qysfpp': '灶具气源是否匹配',
305
+ 'f_zj_sfsh':'灶具是否损坏',
306
+ 'f_zj_sfbf': '灶具是否报废',
307
+ 'f_zj_yqmjlbz':'灶具与墙面距离不足',
308
+ 'f_zj_xhbhsfzc': '灶具熄火保护是否正常',
309
+ 'f_zj_rgcz': '灶具软管材质',
310
+ 'f_zj_zjxs':'灶具灶具形成',
311
+ 'f_zj_yhdabh': '灶具用户档案编号',
312
+ 'f_zj_ygnx':'灶具已过年限'
313
+ },
314
+ '热水器': {
315
+ 'f_rsq_sbpp': '热水器设备品牌',
316
+ 'f_rsq_sbxh': '热水器设备型号',
317
+ 'f_rsq_kssyrq': '热水器开始使用日期',
318
+ 'f_rsq_rgcd':'热水器软管长度(米)',
319
+ 'f_rsq_lq': '热水器漏气',
320
+ 'f_rsq_yd': '热水器烟道',
321
+ 'f_rsq_rgcz':'热水器软管材质',
322
+ 'f_rsq_azwz': '热水器安装位置'
323
+ },
324
+ '壁挂炉': {
325
+ 'f_bgl_sbpp': '壁挂炉设备品牌',
326
+ 'f_bgl_sbxh': '壁挂炉设备型号',
327
+ 'f_bgl_kssyrq': '壁挂炉开始使用日期',
328
+ 'f_bgl_rgcd':'壁挂炉软管长度(米)',
329
+ 'f_bgl_yd': '壁挂炉烟道',
330
+ 'f_bgl_czxx': '壁挂炉材质选项',
331
+ 'f_bgl_azwz':'壁挂炉安装位置'
332
+ },
333
+ '隐患': {
334
+ 'f_yh_tfbl': '通风不良',
335
+ 'f_yh_rqssazzws': '燃气设施安装在卧室/卫生间',
336
+ 'f_yh_rgcg': '软管超过两米',
337
+ 'f_yh_rgrh':'软管老化',
338
+ 'f_yh_dewy': '第二火源',
339
+ 'f_yh_dfyrybp': '堆放易燃易爆品',
340
+ 'f_yh_rgcq':'软管穿墙/棚顶',
341
+ 'f_yh_rgyjt': '软管有接头',
342
+ 'f_yh_rglhygj': '软管离火源过近',
343
+ 'f_yh_kfscf': '开放式厨房',
344
+ 'f_yh_rqgddzzw':'燃气管道/燃气表搭挂重物',
345
+ 'f_yh_rqssgdblg': '燃气设施固定不牢固',
346
+ 'f_yh_zdyh': '重点用户',
347
+ 'f_yh_dxcr':'电线缠绕',
348
+ 'f_yh_ddbgf': '断电不关阀',
349
+ 'f_yh_ddbg': '吊顶包管',
350
+ 'f_yh_sjrrq': '私接热水器或壁挂炉',
351
+ 'f_yh_sflq':'是否漏气',
352
+ 'f_yh_lqwz': '漏气位置',
353
+ 'f_yh_qlyc': '气量异常',
354
+ 'f_yh_sjst':'私接三通',
355
+ 'f_yh_sjsyz':'私接商用灶'
356
+ }
357
+ }
358
+
359
+ export default {
360
+ title: '安检项明细导出',
361
+ data() {
362
+ let model = new PagedList('rs/sql/ReportCheckItemList', 20)
363
+ return {
364
+ tableBrands: [{label: '全部', value: ''}],
365
+ audioshow: false,
366
+ safeAudit: this.$appdata.getSingleValue('安检审核') == '是' ? true : false,
367
+ searchData: {
368
+ condition: "1=1",
369
+ orderitem: "f_offsite_time desc",
370
+ f_plan_id: "",
371
+ f_approved: '',
372
+ f_entry_status: '',
373
+ f_no_checkplan: '',
374
+ f_filialeid: `('${this.$login.f.orgid}')`
375
+ },
376
+ model: model,
377
+ excelHeadersStr:{
378
+ 'f_userinfo_code': '客户编号',
379
+ 'f_user_name': '客户姓名',
380
+ 'f_meternumber':'客户表号',
381
+ 'f_user_phone':'客户电话',
382
+ 'f_check_type': '客户类型',
383
+ 'f_residential_area': '小区',
384
+ 'f_address': '客户地址',
385
+ 'f_entry_status': '安检状态',
386
+ 'f_usegas': '用气状态',
387
+ 'f_offsite_time': '安检时间',
388
+ 'f_checker_name': '安检员',
389
+ 'f_repair_approved_note': '备注',
390
+ 'f_gas_date': '开户时间',
391
+ 'f_plan_name': '计划名称'
392
+ },
393
+ excelHeaders: {
394
+ 'f_userinfo_code': '客户编号',
395
+ 'f_user_name': '客户姓名',
396
+ 'f_meternumber':'客户表号',
397
+ 'f_user_phone':'客户电话',
398
+ 'f_check_type': '客户类型',
399
+ 'f_residential_area': '小区',
400
+ 'f_address': '客户地址',
401
+ 'f_entry_status': '安检状态',
402
+ 'f_usegas': '用气状态',
403
+ 'f_offsite_time': '安检时间',
404
+ 'f_checker_name': '安检员',
405
+ 'f_repair_approved_note': '备注',
406
+ 'f_gas_date': '开户时间',
407
+ 'f_plan_name': '计划名称'
408
+ },
409
+ fun: this.$login.f,
410
+ pcds:[],
411
+ checkersid: [],
412
+ f_excel_items:[],
413
+ excelitems:this.$appdata.getParam('安检结果导出项'),
414
+ safetype: this.$appdata.getParam('安检类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检类型')]:[{label: '全部', value: ''}],
415
+ criteriaShow: false,
416
+ checktype: this.$appdata.getParam('用户类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用户类型')]:[{label: '全部', value: ''}],
417
+ f_check_type:[{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
418
+ showModal: false,
419
+ safe_types:this.$appdata.getParam('计划类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('计划类型')]:[{label: '全部', value: ''}],
420
+ f_approval_states: this.$appdata.getParam('安检单审核状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检单审核状态')]:[{label: '全部', value: ''}],
421
+ f_entry_status: this.$appdata.getParam('安检状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('安检状态')]:[{label: '全部', value: ''}],
422
+ no_checkplans: this.$appdata.getParam('有无计划')?[{label: '全部', value: ''}, ...this.$appdata.getParam('有无计划')]:[{label: '全部', value: ''}],
423
+ usegas: this.$appdata.getParam('用气状态')?[{label: '全部', value: ''}, ...this.$appdata.getParam('用气状态')]:[{label: '全部', value: ''}],
424
+ showcheckmsg: false,
425
+ checkInfo: {},
426
+ orderDefault: "'f_offsite_time'",
427
+ orderFields: {
428
+ f_offsite_time: 'no'
429
+ },
430
+ sliceArea: [],
431
+ cbc:[]
432
+ }
433
+ },
434
+ methods: {
435
+ //气表品牌查询
436
+ getTableBrands() {
437
+ new HttpResetClass().load("POST", `/rs/sql/safe_singleTable_OrderBy`,
438
+ {data: {items: "*", tablename: "t_gasbrand", orderitem: "id", condition: ` 1=1 `}},
439
+ {resolveMsg: null, rejectMsg: null}).then((resp) => {
440
+ resp.data.forEach((result) => {
441
+ this.tableBrands.push({label: result.f_meter_brand, value: result.f_meter_brand})
442
+ })
443
+ })
444
+ },
445
+ getRes(obj) {
446
+ this.model.f_filialeid = this.$login.convertToIn(obj.resids);
447
+ this.searchData.f_filialeid = this.$login.convertToIn(obj.resids);
448
+ },
449
+ showChooser() {
450
+ this.showModal = true
451
+ },
452
+ hidden() {
453
+ this.criteriaShow = !this.criteriaShow
454
+ },
455
+ ok() {
456
+ this.showModal = false
457
+ if (this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id) {
458
+ this.$refs.paged.$refs.criteria.$refs.modal.f_plan_name = this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow.id
459
+ this.$refs.paged.$refs.criteria.$refs.modal.f_check_plan=this.$refs.paged.$refs.criteria.$refs.modal.$children[0].selectedRow
460
+ }
461
+ },
462
+ cancel() {
463
+ this.showModal = false
464
+ this.$refs.paged.$refs.criteria.$refs.modal.f_check_plan = {f_plan_name: '', id: ''}
465
+ this.$refs.paged.$refs.criteria.$refs.modal.f_plan_id=''
466
+ },
467
+ sort(field, rule) {
468
+ // 将所有排序方式设为不排序,实现相互排斥
469
+ for (let key in this.orderFields) {
470
+ if (key === field) {
471
+ this.orderFields[key] = rule
472
+ } else {
473
+ this.orderFields[key] = 'no'
474
+ }
475
+ }
476
+ // 如果新规则不排序,还原为默认排序
477
+ if (rule === 'no') {
478
+ this.model.paramSource.orderitem = `'${this.orderDefault}'`
479
+ } else {
480
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
481
+ }
482
+ this.search()
483
+ },
484
+ search() {
485
+ this.$refs.paged.$refs.criteria.search()
486
+ },
487
+ selfSearch(args) {
488
+ ////tag
489
+ //args.condition+=" and f_check_type='民用'"
490
+ if(args.model.f_check_date){
491
+ const daysBefore = Number(args.model.f_check_date);
492
+ if ( daysBefore > 0) {
493
+ // 获取当前日期
494
+ const now = new Date();
495
+ // 计算三天前的日期
496
+ const threeDaysBefore = new Date(now.getTime() - (daysBefore * 24 * 60 * 60 * 1000));
497
+ // 如果需要格式化日期,可以使用Date对象的方法
498
+ var formattedDate = threeDaysBefore.toISOString().split('T')[0];
499
+ args.condition += ` and f_offsite_time <='${formattedDate} 23:59:59'`;
500
+ } else {
501
+ console.error('f_check_date不是一个有效的正整数');
502
+ }
503
+ }
504
+ this.model.search(args.condition, args.model, args.condValue)
505
+ }
506
+ },
507
+
508
+ ready() {
509
+ ////tag
510
+ this.function = this.f
511
+ ////tag
512
+ //获取气表品牌
513
+ this.getTableBrands()
514
+ // let gen = select(this)
515
+ // co(gen)
516
+ },
517
+ watch: {
518
+ 'model.f_no_checkplan'(val) {
519
+ if (this.model.f_no_checkplan){
520
+ this.searchData.f_no_checkplan = val
521
+ }
522
+ if (this.model.f_no_checkplan == '有计划安检') {
523
+
524
+ this.showChooser()
525
+ }
526
+ },
527
+ 'model.condition'(val) {
528
+ if (val) {
529
+ this.searchData.condition = val
530
+ }
531
+ },
532
+ 'f_excel_items'(val){
533
+ this.excelHeaders = JSON.parse(JSON.stringify(this.excelHeadersStr))
534
+ if(val.length > 0){
535
+ val.forEach((item)=>{
536
+ this.excelHeaders = Object.assign(this.excelHeaders, JSON.parse(JSON.stringify(this.excelHeaders)),Excelconfig[item])
537
+ })
538
+ }
539
+ }
540
+ }
541
+
542
+ }
543
+ </script>
@@ -5,6 +5,7 @@ import Vue from "vue";
5
5
  let specialComp = {
6
6
  'UserInfoAuditNew': (resolve) => { require(['./pc/UserInfoAuditNew'], resolve) },
7
7
  'paper-main': (resolve) => { require(['./pc/PaperList'], resolve) },
8
+ 'report_check_item_list': (resolve) => { require(['./pc/ReportCheckItemList'], resolve) },
8
9
  'check-search-user': (resolve) => { require(['./pc/CheckSearchUser'], resolve) },
9
10
  }
10
11
  exports.specialComp = specialComp