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