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