safecheck-client 3.0.35-59 → 3.0.35-60

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,792 +1,792 @@
1
- <template>
2
- <div class="auto app-text">
3
- <div class="panel" style="padding: 10px 10px 5px 10px;">
4
- <div class="panel-body panel-self">
5
- <div class="col-xs-12" style="padding: 2px 0">
6
- <p>
7
- <label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;margin-left: 5%; font-size: 15px;" @click="searchHistory(userinfo.f_userinfoid)">收费记录</label>
8
- <label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;margin-left: 5%; font-size: 15px;" @click="upgetFilesDetail(userinfo.f_userinfoid)">设备列表</label>
9
- <label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none; margin-left:5%; font-size: 15px;" @click="upuserinfo(userinfo)">档案维护</label>
10
- </p>
11
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户编号:</b></p>
12
- <!--<a class="panel-title col-xs-7 text-left input-font" style="width: 79%;color: blue;text-decoration:underline" @click="searchHistory(userinfo.f_userinfoid)">{{ userinfo.f_userinfo_code }}</a>-->
13
- <p class="panel-title col-xs-6 text-left input-font" >
14
- <label style="text-decoration:none;">{{ userinfo.f_userinfo_code }}</label>
15
- </p>
16
- </div>
17
- <div class="col-xs-12" style="padding: 2px 0">
18
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户名称:</b></p>
19
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_user_name }}</p>
20
- </div>
21
- <div class="col-xs-12" style="padding: 2px 0">
22
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户类型:</b></p>
23
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_check_type }}
24
- </p>
25
- </div>
26
- <div class="col-xs-12" style="padding: 2px 0">
27
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户电话:</b></p>
28
- <p class="panel-title col-xs-6 text-left input-font" style="width: 62%">{{ userinfo.f_user_phone }}
29
- <img src="../../../assets/phone.png" style="width: 8%"
30
- v-on:click.stop.prevent='makeAPhoneCall(userinfo.f_user_phone)'/>
31
- </p>
32
- </div>
33
- <div class="col-xs-12" style="padding: 2px 0">
34
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>备用电话:</b></p>
35
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_rent_phone }}
36
- </div>
37
- <div class="col-xs-12" style="padding: 2px 0" v-if="userinfo.f_check_type=='民用'">
38
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>住房面积:</b></p>
39
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_housing_area }}
40
- </div>
41
- <div class="col-xs-12" style="padding: 2px 0" v-if="userinfo.f_check_type=='民用'">
42
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>常住人口:</b></p>
43
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_people_num }}
44
- </div>
45
- <div class="col-xs-12" style="padding: 2px 0">
46
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>阶梯类型:</b></p>
47
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_price_name }}</p>
48
- <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_price_name }}" v-model="userinfo.f_price_name"/>-->
49
-
50
- </div>
51
- <!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
52
- <!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
53
- <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
54
-
55
- <!-- </div>-->
56
- <div class="col-xs-12" style="padding: 2px 0">
57
- <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>用户小区:</b></p>
58
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
59
- </div>
60
- <div class="col-xs-12" style="padding: 2px 0">
61
- <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>用户地址:</b></p>
62
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_address }}</p>
63
- </div>
64
- <div class="col-xs-12" style="padding: 2px 0">
65
- <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>投保状态:</b></p>
66
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_istoubao }}</p>
67
- </div>
68
- <div class="col-xs-12" style="padding: 2px 0">
69
- <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>投保时间:</b></p>
70
- <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_toubao_enddate }}</p>
71
- </div>
72
- <div class="col-xs-12" style="padding: 2px 0">
73
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>开户日期:</b></p>
74
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_open_date }}</p>
75
- </div>
76
- <div class="col-xs-12" style="padding: 2px 0">
77
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>安检状态:</b></p>
78
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_state }}</p>
79
- </div>
80
-
81
-
82
- <div class="col-xs-12" style="padding: 2px 0">
83
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>安检人员:</b></p>
84
- <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_checker_name }}</p>
85
- </div>
86
- <!-- <div class="row" v-if="last_check_date != null && last_check_date != ''">-->
87
- <div class="col-xs-12" style="padding: 2px 0">
88
- <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>上次安检:</b></p>
89
- <p class="panel-title col-xs-6 text-left input-font">{{ last_check_date }}</p>
90
- </div>
91
-
92
- <div class="col-xs-12">
93
- <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone" @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改</button>
94
- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updatemetermodel" @click="showbiaoxinghao()">表型号修改</button>
95
- </div>
96
- <div class="col-xs-12">
97
- <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updatemeternumber&&(userinfo.planmeterss.f_aliasname=='机表')" @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改</button>
98
- <!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
99
- </div>
100
- </div>
101
- <div class="panel-body">
102
- <div v-show="false" class="row repair-info-content auto">
103
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
104
- <label class="control-label">
105
- <nobr>到达时间:</nobr>
106
- </label>
107
- <span>{{f_onsite_time}}</span>
108
- </div>
109
- <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
110
- <label class="control-label">
111
- <nobr>离开时间:</nobr>
112
- </label>
113
- <span>{{f_offsite_time}}</span>
114
- </div>
115
- </div>
116
- <div class="form-group" :class="style__">
117
- <span class="col-md-3 col-sm-4 col-xs-3 text-left"><img src="../../../assets/housestyle.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">入户状态:</span>
118
- <div :class="style__" class="col-md-9 col-sm-8 col-xs-9 right">
119
- <input type="radio" name="enterstatus" v-model="f_entry_status" id="nopeople" style="transform: scale(1.5);" value="到访不遇">&ensp;到访不遇
120
- <input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" style="transform: scale(1.5);" value="拒检">&ensp;拒绝安检
121
- <input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" style="transform: scale(1.5);" value="入户">&ensp;正常入户
122
- </div>
123
- <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
124
- <label class="text-left font">到访不遇照片:</label>
125
- <div class="auto">
126
- <div class="panel" style="padding: 10px 10px 5px 10px;">
127
- <div class="panel-body panel-self"
128
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
129
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
130
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
131
- v-for="(index,img) in f_noanswers_path">
132
- <img-self :src="img.f_noanswer_path" alt="到访不遇照片" :width="130" :height="160"></img-self>
133
- <img src="../../../assets/删除.png" @click="delfile('f_noanswers_path', img.f_noanswer_path,index)"
134
- style="width: 15px;margin-top: -80px" alt="">
135
- </div>
136
- </div>
137
- <div class="row text-right div-photo" :class="style__">
138
- <button type="button" name="button" class="btn btn-primary btn-photo"
139
- @click="takePic('拍照','f_noanswers_path', '到访不遇照片')">拍照
140
- </button>
141
- </div>
142
- </div>
143
- </div>
144
- </div>
145
- </div>
146
- <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='拒检'">
147
- <label class="text-left font">拒检照片:</label>
148
- <div class="auto">
149
- <div class="panel" style="padding: 10px 10px 5px 10px;">
150
- <div class="panel-body panel-self"
151
- style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
152
- <div class="row" style="height: 240px;overflow: scroll;top: 1px">
153
- <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
154
- v-for="(index,img) in f_rejectchecks_path">
155
- <img-self :src="img.f_rejectcheck_path" alt="拒检照片" :width="130" :height="160"></img-self>
156
- <img src="../../../assets/删除.png" @click="delfile('f_rejectchecks_path', img.f_rejectcheck_path,index)"
157
- style="width: 15px;margin-top: -80px" alt="">
158
- </div>
159
- </div>
160
- <div class="row text-right div-photo" :class="style__">
161
- <button type="button" name="button" class="btn btn-primary btn-photo"
162
- @click="takePic('拍照','f_rejectchecks_path', '拒检照片')">拍照
163
- </button>
164
- </div>
165
- </div>
166
- </div>
167
- </div>
168
- </div>
169
- </div>
170
- <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='入户'" style="margin-top: 6px">
171
- <span class="text-left col-md-3 col-sm-4 col-xs-4"> <img src="../../../assets/enterstatus.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">燃气使用:</span>
172
- <div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
173
- <input type="radio" name="isuseed" v-model="f_usegas" id="useedgas" style="transform: scale(1.5);" value="已使用">&ensp;已使用&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;
174
- <input type="radio" name="isuseed" v-model="f_usegas" id="nousegas" style="transform: scale(1.5);" value="封堵">&ensp;封堵
175
- </div>
176
- </div>
177
- <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'" style="margin-top: 6px">
178
- <span class="col-md-3 col-sm-4 col-xs-3 text-left"><img src="../../../assets/enterstatus.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">到访状态:</span>
179
- <div v-if="userinfo.f_check_type=='民用'" :class="style__" class="col-md-9 col-sm-8 col-xs-8">
180
- <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="长期无人">&ensp;长期无人
181
- <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="尚未装修">&ensp;尚未装修
182
- <p></p>
183
- <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="无法联系">&ensp;无法联系
184
- <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="首访不遇">&ensp;首访不遇
185
- </div>
186
- <div v-show="userinfo.f_check_type=='非民用'" :class="style__" class="col-md-9 col-sm-8 col-xs-8">
187
- <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="首访不遇">&ensp;首访不遇&ensp;
188
- <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="暂停营业">&ensp;暂停营业
189
- </div>
190
- </div>
191
- <!-- <div :class="style__" class="form-group" v-show="f_usegas == '未使用'">-->
192
- <!-- <sapn class="text-left col-md-12 col-sm-12 col-xs-12">处置方式:</sapn>-->
193
- <!-- <div class="col-xs-12 col-sm-12 col-md-12">-->
194
- <!-- <input type="checkbox" v-model="f_no_gas_device">无燃气具-->
195
- <!-- <input type="checkbox" v-model="f_close_valve">关闭表前阀-->
196
- <!-- <input type="checkbox" v-model="f_unload_battery">取下表内电池-->
197
- <!-- </div>-->
198
- <!-- </div>-->
199
- <div class="auto app-text" style="margin-top: 5px;" v-if="this.$parent.$parent.role != 'view'">
200
- <div class="panel" style="padding: 60px 7px 10px 0px;">
201
- <div class="panel-body panel-self">
202
- <div v-show="false" class="row">
203
- <p class="panel-title col-xs-4 text-left font">建档时间</p>
204
- <p class="panel-title col-xs-8 text-left input-font">{{ newfile_date }}</p>
205
- </div>
206
- <div class="row" v-if="last_check_date != null && last_check_date != ''">
207
- <p class="panel-title col-xs-4 text-left font">上次时间</p>
208
- <p class="panel-title col-xs-8 text-left input-font">{{ last_check_date }}</p>
209
- </div>
210
- <div class="row">
211
- <p class="panel-title col-xs-4 text-left font">上次状态</p>
212
- <p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date != null && last_check_date != ''">安检完成</p>
213
- <p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date == null || last_check_date == ''">未安检</p>
214
- </div>
215
- <div class="row" v-if="last_check_date != null && last_check_date != ''">
216
- <p class="panel-title col-xs-4 text-left font">上次结果</p>
217
- <p class="panel-title col-xs-8 text-left input-font" :class="last_check_result=='正常'?'':'color-red'">{{last_check_result}}</p>
218
- <div v-for="data in last_check_data.data" class="panel-title col-xs-offset-4 col-xs-8 text-left input-font">
219
- <p v-for="(key,item) in data">
220
- {{key}}:{{item}}
221
- </p>
222
- </div>
223
- </div>
224
- </div>
225
- </div>
226
- </div>
227
- </div>
228
- </div>
229
- <div v-if="showbModal">
230
- <modal :show.sync="showbModal" v-ref:modal backdrop="false">
231
- <div slot="modal-header" class="modal-header">
232
- <h4 class="modal-title">
233
- 选择表型号
234
- </h4>
235
- </div>
236
- <div slot="modal-body" class="modal-body">
237
- <div class="col-xs-12">
238
-
239
- <v-select :value.sync="biaoxinghao" v-model='biaoxinghao'
240
- :value-single="true"
241
- class="select_list select"
242
- :options='gmlist' placeholder='请选择表型号'
243
- close-on-select width="100%"></v-select>
244
- </div>
245
- <div class="col-xs-12" style="height: 10px">
246
-
247
- </div>
248
-
249
- </div>
250
- <div slot="modal-footer" class="modal-footer">
251
- <button class="btn btn-default" @click="biaoxinghaook()">确认</button>
252
- <button class="btn btn-default" @click="biaoxinghaocancel()">取消</button>
253
- </div>
254
- </modal>
255
- </div>
256
- </div>
257
- </template>
258
-
259
- <script>
260
- import { HttpResetClass } from 'vue-client'
261
- import * as Util from "../../Util";
262
- import Vue from "vue";
263
- import RadioGroup from "vue-client/src/vue-strap/src/radioGroup";
264
- import Radio from "vue-client/src/vue-strap/src/radioBtn";
265
-
266
- export default {
267
- title: "SafecheckUserInfo",
268
- props: ['userinfo'],
269
- data() {
270
- return this.$parent.$parent.data
271
- },
272
- created(){
273
- this.$set('showbModal',false)
274
- //tag
275
- this.$set('biaoxinghao','')
276
- },
277
- ready() {
278
- console.log('执行这里。。。。。',this.userinfo)
279
-
280
- //tag
281
- //tag)
282
- // //tag)
283
- // this.$set('userinfo.f_meter_no',this.userinfo.planmeterss.f_meter_no)
284
- // //tag)
285
- this.$set('beforephone',this.userinfo.f_user_phone)
286
- this.$set('gmlist',[])
287
- //tag
288
- if(Vue.config.safecheck != undefined){
289
- if(Vue.config.safecheck.SafecheckUserinfo != undefined){
290
- if(Vue.config.safecheck.SafecheckUserinfo.updateuserphone != undefined) {
291
- this.$set('updateuserphone',Vue.config.safecheck.SafecheckUserinfo.updateuserphone)
292
- }
293
- if(Vue.config.safecheck.SafecheckUserinfo.updatemetermodel != undefined) {
294
- this.$set('updatemetermodel',Vue.config.safecheck.SafecheckUserinfo.updatemetermodel)
295
- }
296
- if(Vue.config.safecheck.SafecheckUserinfo.updatemeternumber != undefined) {
297
- this.$set('updatemeternumber',Vue.config.safecheck.SafecheckUserinfo.updatemeternumber)
298
- }
299
- }
300
- }
301
- for (let i in this.userinfo) {
302
- //tag + ':' + JSON.stringify(this.userinfo[i]))
303
- }
304
- this.safecheckStateReady()
305
- },
306
- methods: {
307
- makeAPhoneCall(phoneNumber) {
308
- this.$androidUtil.makeAPhoneCall(phoneNumber)
309
- },
310
- updatebiaohao(f_meter_no,f_userinfo_id){
311
- this.$showMessage("将用户 "+this.userinfo.f_user_name+"的机表表号从"+this.userinfo.planmeterss.f_meter_no+"修改为"+f_meter_no,['confirm', 'cancel']).then((butt)=>{
312
- if(butt=="confirm"){
313
- let http = new HttpResetClass()
314
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoHao`, {
315
- f_meter_no:f_meter_no,
316
- f_userinfo_id: f_userinfo_id
317
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
318
- if(res.data.code == 200){
319
- this.$showMessage('修改成功!')
320
- }else{
321
- this.$showMessage('修改失败!,网络异常')
322
- }
323
- })
324
- }
325
- })
326
- },
327
- biaoxinghaook(){
328
- if (this.biaoxinghao==''){
329
- this.$showMessage("请选择表型号")
330
- return
331
- }
332
- //tag
333
- //tag
334
- this.$showMessage("是否确定进行修改?",['confirm', 'cancel']).then((butt)=>{
335
- if(butt=="confirm"){
336
- let http = new HttpResetClass()
337
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoXingHao`, {
338
- biaoxinghao:this.biaoxinghao,
339
- f_userinfo_id: this.userinfo.f_userinfoid
340
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
341
- if(res.data.code == 200){
342
- this.$showMessage('修改成功!')
343
- //tag
344
- this.showbModal=false
345
- }else{
346
- this.$showMessage('修改失败!,网络异常')
347
- }
348
- })
349
- }
350
- })
351
- },
352
- biaoxinghaocancel(){
353
- //tag
354
- this.showbModal=false
355
- },
356
- showbiaoxinghao(){
357
- this.gmlist=[]
358
- //tag)
359
- //tag
360
- let http1 = new HttpResetClass()
361
- http1.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
362
- items: 'gm.id,gm.f_meter_style',
363
- tablename: 't_gasbrand gb LEFT JOIN t_gasmodel gm ON gb.id= gm.f_gasbrand_id ',
364
- condition: `f_meter_brand = '${this.userinfo.planmeterss.f_aliasname}'`,
365
- // condition: `f_meter_brand = 'this.userinfo.planmeterss'`,
366
- orderitem: 'gm.id'
367
- }}, {resolveMsg: null, rejectMsg: null}).then((ress) => {
368
- ress.data.forEach(res=>{
369
- this.gmlist.push({
370
- label:res.f_meter_style,
371
- value:res.id
372
- })
373
- })
374
- //tag)
375
- //tag
376
- this.showbModal=true
377
- })
378
- },
379
- updatePhone(f_user_phone,f_userinfo_id){
380
-
381
- this.$showMessage("将用户 "+this.userinfo.f_user_name+"的电话号码从"+this.beforephone+"修改为"+f_user_phone,['confirm', 'cancel']).then((butt)=>{
382
- if(butt=="confirm"){
383
- let http = new HttpResetClass()
384
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdatePhone`, {
385
- f_user_phone:f_user_phone,
386
- f_userinfo_id: f_userinfo_id
387
- }, {resolveMsg: null, rejectMsg: null}).then((res) => {
388
- if(res.data.code == 200){
389
- this.$showMessage('修改成功!')
390
- }else{
391
- this.$showMessage('修改失败!,网络异常')
392
- }
393
- })
394
- }
395
- })
396
- },
397
- upuserinfo(userinfo) {
398
- this.$dispatch('gotoson', {
399
- _this: this.$parent.$parent,
400
- title: '档案信息变更',
401
- safe: false
402
- })
403
- this.$parent.$parent.$goto('PhoneUpUserinfo', {f_userinfo_id: userinfo.f_userinfoid,f_source:'安检',f_check_type:userinfo.f_check_type})
404
- },
405
- upgetFilesDetail(f_userinfo_id) {
406
- this.$dispatch('gotoson', {
407
- _this: this.$parent.$parent,
408
- title: '设备信息变更',
409
- safe: false
410
- })
411
- this.$parent.$parent.$goto('PhoneUpDetail', {f_userinfo_id: f_userinfo_id,f_source:'安检'})
412
- },
413
- searchHistory(f_userinfo_id) {
414
- this.$dispatch('gotoson', {
415
- _this: this.$parent.$parent,
416
- title: '购气记录',
417
- safe: false
418
- })
419
- this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
420
- },
421
- cameraCallBack (prop, fileName) {
422
- if (prop == 'f_noanswers_path') {
423
- let f_noanswer_path = fileName + '?' + Math.random()
424
- HostApp.__this__.f_noanswers_path.push({
425
- f_noanswer_path: f_noanswer_path
426
- })
427
- } else if (prop == 'f_rejectchecks_path') {
428
- let f_rejectcheck_path = fileName + '?' + Math.random()
429
- HostApp.__this__.f_rejectchecks_path.push({
430
- f_rejectcheck_path: f_rejectcheck_path
431
- })
432
- }else {
433
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
434
- }
435
- HostApp.__callback__ = null
436
- HostApp.__this__ = null
437
- },
438
- takePic (type ,prop, title) {
439
- HostApp.__callback__ = this.cameraCallBack
440
- HostApp.__this__ = this
441
- //tag
442
- let fileName
443
- if (prop == 'f_noanswers_path') {
444
- //tag
445
- if (this.f_noanswers_path.length == 3) {
446
- return
447
- }
448
- fileName = Util.guid() + '-' + prop + '.jpg'
449
- } else if (prop == 'f_rejectchecks_path') {
450
- //tag
451
- if (this.f_rejectchecks_path.length == 3) {
452
- return
453
- }
454
- fileName = Util.guid() + '-' + prop + '.jpg'
455
- }else {
456
- if (!this[prop] || this[prop].includes('nopic.png')) {
457
- fileName = Util.guid() + '-' + prop + '.jpg'
458
- } else {
459
- fileName = Util.getFileName(this[prop])
460
- }
461
- }
462
- let page = 'com.aofeng.hybrid.android.peripheral.CameraActivity'
463
- if(type === '相册'){
464
- page ='com.aofeng.hybrid.android.peripheral.ActionPickActivity'
465
- }
466
- HostApp._open_a_page({
467
- type: 'boomerang',
468
- page,
469
- param: {
470
- file: fileName,
471
- requestCode: 111,
472
- callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
473
- watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
474
- }
475
- })
476
- },
477
- delfile (prop, fileName, index) {
478
- if (fileName == Vue.nopic) {
479
- return
480
- } else {
481
- if (prop == 'f_noanswers_path') {
482
- this.f_noanswers_path.splice(index, 1)
483
- HostApp.delfile(fileName)
484
- }else if (prop == 'f_rejectchecks_path') {
485
- this.f_rejectchecks_path.splice(index, 1)
486
- HostApp.delfile(fileName)
487
- } else {
488
- HostApp.delfile(fileName)
489
- this[prop] = Vue.nopic
490
- }
491
- }
492
- },
493
- setEntryClass(val) {
494
- if (val == '到访不遇') {
495
- this.f_usegas = ''
496
- this.$set('f_entry_class', 'warning')
497
- } else if (val == '拒检') {
498
- this.f_usegas = ''
499
- this.$set('f_entry_class', 'danger')
500
- } else if (val == '入户') {
501
- this.$set('f_entry_class', 'success')
502
- }
503
- },
504
- setUsegas(val) {
505
- if (val == '未使用')
506
- this.$set('f_useclass', 'default')
507
- if (val == '已使用')
508
- this.$set('f_useclass', 'success')
509
- },
510
- start() {
511
- this.$parent.$parent.isStrat = true
512
- this.$set('action', !this.action)
513
- this.$set('f_onsite_time', Util.toStandardTimeString())
514
- },
515
- safecheckStateReady() {
516
- //tag
517
- //tag
518
- //tag
519
- if (!this.$parent.$parent.showBack) {
520
- this.$parent.$parent.showBack = true
521
- }
522
- //兼容下-如果没有通过外层查询带进来最新安检时间,就拿本地单子里存的上次安检时间
523
- if(this.$parent.$parent.item.f_plan_meters[0].f_last_check_date){
524
- this.$set('last_check_date', this.$parent.$parent.item.f_plan_meters[0].f_last_check_date)
525
- console.log('ggggggggggggg222',this.last_check_date)
526
- this.$set('newfile_date', this.$parent.$parent.item.f_plan_meters[0].f_newfile_date)
527
- if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_result) {
528
- let checkResult = JSON.parse(this.$parent.$parent.item.f_plan_meters[0].f_last_check_result)
529
- this.$set('last_check_result', checkResult.result)
530
- this.$set('last_check_data.data', checkResult.data)
531
- } else {
532
- this.$set('last_check_result', '')
533
- this.$set('last_check_data.data', [])
534
- }
535
- }else{
536
- if(!this.$parent.$parent.item.f_last_check_date){
537
- this.$parent.$parent.item.f_last_check_date='未安检'
538
- }
539
- this.$set('last_check_date', this.$parent.$parent.item.f_last_check_date)
540
- console.log('ggggggggggggggggggggg',this.last_check_date)
541
- if (this.$parent.$parent.item.f_last_check_result) {
542
- let checkResult = JSON.parse(this.$parent.$parent.item.f_last_check_result)
543
- this.$set('last_check_result', checkResult.result)
544
- this.$set('last_check_data.data', checkResult.data)
545
- } else {
546
- this.$set('last_check_result', '')
547
- this.$set('last_check_data.data', [])
548
- }
549
- }
550
-
551
- this.$set('upUserinfoSta', '否')
552
- this.upUserinfoSta=this.$appdata.getSingleValue('安检修改档案信息')
553
-
554
- if (this.$parent.$parent.role == 'inspect' && this.f_complete != '已完成') {
555
- this.start()
556
- }
557
- if (this.$parent.$parent.data.f_onsite_time) {
558
- //tag
559
- this.$parent.$parent.startClick = true
560
- }
561
- this.action = true
562
- //tag
563
- if (this.f_onsite_time) {
564
- this.$parent.$parent.isStrat = true
565
- this.$parent.$parent.data.f_onsite_time = Util.toStandardTimeString()
566
- }
567
- if (this.$parent.$parent.role == 'repair') {
568
- this.$set('style__', 'divmask')
569
- this.$set('style_view_', '')
570
- } else if (this.$parent.$parent.role == 'view') {
571
- this.$set('style__', 'divmask')
572
- this.$set('style_view_', 'divmask')
573
- //tag
574
- } else {
575
- this.$set('style__', '')
576
- this.$set('style_view_', '')
577
- }
578
- if (!this.f_nongasuser_path) {
579
- this.$set('f_nongasuser_path', '')
580
- }
581
- //到访多张照片
582
- this.$set('f_noanswers_path', [])
583
- if (this.f_noanswer_path) {
584
- this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer_path})
585
- } else {
586
- this.$set('f_noanswer_path', '')
587
- }
588
- if (this.f_noanswer1_path) {
589
- this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer1_path})
590
- } else {
591
- this.$set('f_noanswer1_path', '')
592
- }
593
- if (this.f_noanswer2_path) {
594
- this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer2_path})
595
- } else {
596
- this.$set('f_noanswer2_path', '')
597
- }
598
-
599
- if (!this.f_rejectcheck_path) {
600
- this.$set('f_rejectcheck_path', '')
601
- }
602
- //拒检多张照片
603
- this.$set('f_rejectchecks_path', [])
604
- if (this.f_rejectcheck_path) {
605
- this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck_path})
606
- } else {
607
- this.$set('f_rejectcheck_path', '')
608
- }
609
- if (this.f_rejectcheck1_path) {
610
- this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck1_path})
611
- } else {
612
- this.$set('f_rejectcheck1_path', '')
613
- }
614
- if (this.f_rejectcheck2_path) {
615
- this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck2_path})
616
- } else {
617
- this.$set('f_rejectcheck2_path', '')
618
- }
619
-
620
- this.$watch('f_noanswers_path.length', () => {
621
- //tag)
622
- for (let i = 0; i < 3; i++) {
623
-
624
- if (this.f_noanswers_path[i] && this.f_noanswers_path[i].f_noanswer_path) {
625
- //tag)
626
- if (i == 0) {
627
- this.f_noanswer_path = this.f_noanswers_path[i].f_noanswer_path
628
- } else {
629
- this['f_noanswer' + i + '_path'] = this.f_noanswers_path[i].f_noanswer_path
630
- }
631
- } else {
632
- //tag)
633
- if (i == 0) {
634
- this.f_noanswer_path = null
635
- } else {
636
- this['f_noanswer' + i + '_path'] = null
637
- }
638
- }
639
- }
640
- //tag
641
- })
642
- this.$watch('f_rejectchecks_path.length', () => {
643
- //tag)
644
- for (let i = 0; i < 3; i++) {
645
-
646
- if (this.f_rejectchecks_path[i] && this.f_rejectchecks_path[i].f_rejectcheck_path) {
647
- //tag)
648
- if (i == 0) {
649
- this.f_rejectcheck_path = this.f_rejectchecks_path[i].f_rejectcheck_path
650
- } else {
651
- this['f_rejectcheck' + i + '_path'] = this.f_rejectchecks_path[i].f_rejectcheck_path
652
- }
653
- } else {
654
- //tag)
655
- if (i == 0) {
656
- this.f_rejectcheck_path = null
657
- } else {
658
- this['f_rejectcheck' + i + '_path'] = null
659
- }
660
- }
661
- }
662
- //tag
663
- })
664
-
665
- this.$watch('f_usegas', (val) => {
666
- this.setUsegas(val)
667
- })
668
-
669
- this.setEntryClass(this.f_entry_status)
670
- this.$watch('f_entry_status', (val) => {
671
- this.setEntryClass(val)
672
-
673
- if (val == '到访不遇') {
674
- this.f_noanswer_path = Vue.nopic
675
- }
676
- if (val == '拒检') {
677
- this.f_rejectcheck_path = Vue.nopic
678
- }
679
-
680
- if (val != '入户') {
681
- //清理安检概括
682
- this.f_no_gas_device = false
683
- this.f_unload_battery = false
684
- this.f_close_valve = false
685
- //清理全局隐患
686
- this.f_defect_cramped = false
687
- this.f_defect_bedroom = false
688
- this.f_defect_longpipe = false
689
- this.f_defect_firesource = false
690
- this.f_defect_explosive = false
691
- this.f_defect_viacabinet = false
692
- this.f_defect_intermittent = false
693
- this.f_defect_nearfire = false
694
- this.f_defect_openkitchen = false
695
- this.f_defect_hang = false
696
- this.f_cramped_path = Vue.nopic
697
- //用户评价
698
- this.f_client_evaluation = null
699
- //清设备
700
- this.$set('f_meters', [])
701
- this.$set('f_plumbs', [])
702
- this.$set('f_valves', [])
703
- this.$set('f_inner_plumbs', [])
704
- this.$set('f_alarms', [])
705
- this.$set('f_cookers', [])
706
- this.$set('f_heaters', [])
707
- this.$set('f_furnaces', [])
708
- }else{
709
- this.f_rejectcheck_path = Vue.nopic
710
- this.f_noanswer_path = Vue.nopic
711
- this.f_noanswers_path = []
712
- this.f_novisit_reason=null
713
- }
714
- })
715
- }
716
- },
717
- components: {
718
- RadioGroup,
719
- Radio
720
- },
721
- }
722
- </script>
723
-
724
- <style scoped>
725
-
726
- .font {
727
- font: 15px PingFang-SC-Medium;
728
- color: #666666;
729
- }
730
-
731
- .input-font {
732
- font: 15px PingFang-SC-Medium;
733
- color: #333333;
734
- }
735
-
736
- .app-text {
737
- font-size: 12px;
738
- }
739
-
740
- .panel-self {
741
- border-radius: 10px;
742
- border: 1px solid #499EDF;
743
- background-color: #F8F8F8;
744
- }
745
-
746
- .app-text {
747
- font-size: 12px;
748
- }
749
-
750
- .panel-self {
751
- border-radius: 5px;
752
- border: 1px solid #c5e1f7;
753
- background-color: #F2F6FA;
754
- }
755
-
756
- .font {
757
- font: 15px PingFang-SC-Medium;
758
- color: #333333;
759
- }
760
-
761
- .panel-self {
762
- border-radius: 5px;
763
- border: 1px solid #c5e1f7;
764
- background-color: #F2F6FA;
765
- }
766
-
767
- .text-left {
768
- text-align: left;
769
- }
770
-
771
- .font {
772
- font: 15px PingFang-SC-Medium;
773
- color: #333333;
774
- }
775
-
776
- .btn-photo {
777
- border: 0;
778
- border-radius: 7px;
779
- background-color: #7dc1f4;
780
- font: 15px PingFang-SC-Bold;
781
- height: 20%;
782
- }
783
-
784
- .div-photo {
785
- width: auto;
786
- height: auto;
787
- /* margin-top: 10px; */
788
- position: absolute;
789
- bottom: 10px;
790
- right: 10px;
791
- }
792
- </style>
1
+ <template>
2
+ <div class="auto app-text">
3
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
4
+ <div class="panel-body panel-self">
5
+ <div class="col-xs-12" style="padding: 2px 0">
6
+ <p>
7
+ <label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;margin-left: 5%; font-size: 15px;" @click="searchHistory(userinfo.f_userinfoid)">收费记录</label>
8
+ <label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;margin-left: 5%; font-size: 15px;" @click="upgetFilesDetail(userinfo.f_userinfoid)">设备列表</label>
9
+ <label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none; margin-left:5%; font-size: 15px;" @click="upuserinfo(userinfo)">档案维护</label>
10
+ </p>
11
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户编号:</b></p>
12
+ <!--<a class="panel-title col-xs-7 text-left input-font" style="width: 79%;color: blue;text-decoration:underline" @click="searchHistory(userinfo.f_userinfoid)">{{ userinfo.f_userinfo_code }}</a>-->
13
+ <p class="panel-title col-xs-6 text-left input-font" >
14
+ <label style="text-decoration:none;">{{ userinfo.f_userinfo_code }}</label>
15
+ </p>
16
+ </div>
17
+ <div class="col-xs-12" style="padding: 2px 0">
18
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户名称:</b></p>
19
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_user_name }}</p>
20
+ </div>
21
+ <div class="col-xs-12" style="padding: 2px 0">
22
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户类型:</b></p>
23
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_check_type }}
24
+ </p>
25
+ </div>
26
+ <div class="col-xs-12" style="padding: 2px 0">
27
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>用户电话:</b></p>
28
+ <p class="panel-title col-xs-6 text-left input-font" style="width: 62%">{{ userinfo.f_user_phone }}
29
+ <img src="../../../assets/phone.png" style="width: 8%"
30
+ v-on:click.stop.prevent='makeAPhoneCall(userinfo.f_user_phone)'/>
31
+ </p>
32
+ </div>
33
+ <div class="col-xs-12" style="padding: 2px 0">
34
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>备用电话:</b></p>
35
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_rent_phone }}
36
+ </div>
37
+ <div class="col-xs-12" style="padding: 2px 0" v-if="userinfo.f_check_type=='民用'">
38
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>住房面积:</b></p>
39
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_housing_area }}
40
+ </div>
41
+ <div class="col-xs-12" style="padding: 2px 0" v-if="userinfo.f_check_type=='民用'">
42
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>常住人口:</b></p>
43
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_people_num }}
44
+ </div>
45
+ <div class="col-xs-12" style="padding: 2px 0">
46
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>阶梯类型:</b></p>
47
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_price_name }}</p>
48
+ <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_price_name }}" v-model="userinfo.f_price_name"/>-->
49
+
50
+ </div>
51
+ <!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
52
+ <!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
53
+ <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
54
+
55
+ <!-- </div>-->
56
+ <div class="col-xs-12" style="padding: 2px 0">
57
+ <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>用户小区:</b></p>
58
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
59
+ </div>
60
+ <div class="col-xs-12" style="padding: 2px 0">
61
+ <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>用户地址:</b></p>
62
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_address }}</p>
63
+ </div>
64
+ <div class="col-xs-12" style="padding: 2px 0">
65
+ <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>投保状态:</b></p>
66
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_istoubao }}</p>
67
+ </div>
68
+ <div class="col-xs-12" style="padding: 2px 0">
69
+ <p class="panel-title col-xs-5 text-left font" style="width: 30%;float: left"><b>投保时间:</b></p>
70
+ <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_toubao_enddate }}</p>
71
+ </div>
72
+ <div class="col-xs-12" style="padding: 2px 0">
73
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>开户日期:</b></p>
74
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_open_date }}</p>
75
+ </div>
76
+ <div class="col-xs-12" style="padding: 2px 0">
77
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>安检状态:</b></p>
78
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_state }}</p>
79
+ </div>
80
+
81
+
82
+ <div class="col-xs-12" style="padding: 2px 0">
83
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>安检人员:</b></p>
84
+ <p class="panel-title col-xs-6 text-left input-font">{{ userinfo.f_checker_name }}</p>
85
+ </div>
86
+ <!-- <div class="row" v-if="last_check_date != null && last_check_date != ''">-->
87
+ <div class="col-xs-12" style="padding: 2px 0">
88
+ <p class="panel-title col-xs-6 text-left font" style="width: 30%;float: left"><b>上次安检:</b></p>
89
+ <p class="panel-title col-xs-6 text-left input-font">{{ last_check_date }}</p>
90
+ </div>
91
+
92
+ <div class="col-xs-12">
93
+ <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone" @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改</button>
94
+ <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updatemetermodel" @click="showbiaoxinghao()">表型号修改</button>
95
+ </div>
96
+ <div class="col-xs-12">
97
+ <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updatemeternumber&&(userinfo.planmeterss.f_aliasname=='机表')" @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改</button>
98
+ <!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
99
+ </div>
100
+ </div>
101
+ <div class="panel-body">
102
+ <div v-show="false" class="row repair-info-content auto">
103
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
104
+ <label class="control-label">
105
+ <nobr>到达时间:</nobr>
106
+ </label>
107
+ <span>{{f_onsite_time}}</span>
108
+ </div>
109
+ <div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
110
+ <label class="control-label">
111
+ <nobr>离开时间:</nobr>
112
+ </label>
113
+ <span>{{f_offsite_time}}</span>
114
+ </div>
115
+ </div>
116
+ <div class="form-group" :class="style__">
117
+ <span class="col-md-3 col-sm-4 col-xs-3 text-left"><img src="../../../assets/housestyle.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">入户状态:</span>
118
+ <div :class="style__" class="col-md-9 col-sm-8 col-xs-9 right">
119
+ <input type="radio" name="enterstatus" v-model="f_entry_status" id="nopeople" style="transform: scale(1.5);" value="到访不遇">&ensp;到访不遇
120
+ <input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" style="transform: scale(1.5);" value="拒检">&ensp;拒绝安检
121
+ <input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" style="transform: scale(1.5);" value="入户">&ensp;正常入户
122
+ </div>
123
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
124
+ <label class="text-left font">到访不遇照片:</label>
125
+ <div class="auto">
126
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
127
+ <div class="panel-body panel-self"
128
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
129
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
130
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
131
+ v-for="(index,img) in f_noanswers_path">
132
+ <img-self :src="img.f_noanswer_path" alt="到访不遇照片" :width="130" :height="160"></img-self>
133
+ <img src="../../../assets/删除.png" @click="delfile('f_noanswers_path', img.f_noanswer_path,index)"
134
+ style="width: 15px;margin-top: -80px" alt="">
135
+ </div>
136
+ </div>
137
+ <div class="row text-right div-photo" :class="style__">
138
+ <button type="button" name="button" class="btn btn-primary btn-photo"
139
+ @click="takePic('拍照','f_noanswers_path', '到访不遇照片')">拍照
140
+ </button>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='拒检'">
147
+ <label class="text-left font">拒检照片:</label>
148
+ <div class="auto">
149
+ <div class="panel" style="padding: 10px 10px 5px 10px;">
150
+ <div class="panel-body panel-self"
151
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
152
+ <div class="row" style="height: 240px;overflow: scroll;top: 1px">
153
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
154
+ v-for="(index,img) in f_rejectchecks_path">
155
+ <img-self :src="img.f_rejectcheck_path" alt="拒检照片" :width="130" :height="160"></img-self>
156
+ <img src="../../../assets/删除.png" @click="delfile('f_rejectchecks_path', img.f_rejectcheck_path,index)"
157
+ style="width: 15px;margin-top: -80px" alt="">
158
+ </div>
159
+ </div>
160
+ <div class="row text-right div-photo" :class="style__">
161
+ <button type="button" name="button" class="btn btn-primary btn-photo"
162
+ @click="takePic('拍照','f_rejectchecks_path', '拒检照片')">拍照
163
+ </button>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='入户'" style="margin-top: 6px">
171
+ <span class="text-left col-md-3 col-sm-4 col-xs-4"> <img src="../../../assets/enterstatus.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">燃气使用:</span>
172
+ <div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
173
+ <input type="radio" name="isuseed" v-model="f_usegas" id="useedgas" style="transform: scale(1.5);" value="已使用">&ensp;已使用&ensp;&ensp;&ensp;&ensp;&ensp;&ensp;
174
+ <input type="radio" name="isuseed" v-model="f_usegas" id="nousegas" style="transform: scale(1.5);" value="封堵">&ensp;封堵
175
+ </div>
176
+ </div>
177
+ <div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'" style="margin-top: 6px">
178
+ <span class="col-md-3 col-sm-4 col-xs-3 text-left"><img src="../../../assets/enterstatus.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">到访状态:</span>
179
+ <div v-if="userinfo.f_check_type=='民用'" :class="style__" class="col-md-9 col-sm-8 col-xs-8">
180
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="长期无人">&ensp;长期无人
181
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="尚未装修">&ensp;尚未装修
182
+ <p></p>
183
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="无法联系">&ensp;无法联系
184
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="首访不遇">&ensp;首访不遇
185
+ </div>
186
+ <div v-show="userinfo.f_check_type=='非民用'" :class="style__" class="col-md-9 col-sm-8 col-xs-8">
187
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="首访不遇">&ensp;首访不遇&ensp;
188
+ <input type="radio" name="daofang_status" v-model="f_daofang_status" id="f_daofang_status" style="transform: scale(1.5);" value="暂停营业">&ensp;暂停营业
189
+ </div>
190
+ </div>
191
+ <!-- <div :class="style__" class="form-group" v-show="f_usegas == '未使用'">-->
192
+ <!-- <sapn class="text-left col-md-12 col-sm-12 col-xs-12">处置方式:</sapn>-->
193
+ <!-- <div class="col-xs-12 col-sm-12 col-md-12">-->
194
+ <!-- <input type="checkbox" v-model="f_no_gas_device">无燃气具-->
195
+ <!-- <input type="checkbox" v-model="f_close_valve">关闭表前阀-->
196
+ <!-- <input type="checkbox" v-model="f_unload_battery">取下表内电池-->
197
+ <!-- </div>-->
198
+ <!-- </div>-->
199
+ <div class="auto app-text" style="margin-top: 5px;" v-if="this.$parent.$parent.role != 'view'">
200
+ <div class="panel" style="padding: 60px 7px 10px 0px;">
201
+ <div class="panel-body panel-self">
202
+ <div v-show="false" class="row">
203
+ <p class="panel-title col-xs-4 text-left font">建档时间</p>
204
+ <p class="panel-title col-xs-8 text-left input-font">{{ newfile_date }}</p>
205
+ </div>
206
+ <div class="row" v-if="last_check_date != null && last_check_date != ''">
207
+ <p class="panel-title col-xs-4 text-left font">上次时间</p>
208
+ <p class="panel-title col-xs-8 text-left input-font">{{ last_check_date }}</p>
209
+ </div>
210
+ <div class="row">
211
+ <p class="panel-title col-xs-4 text-left font">上次状态</p>
212
+ <p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date != null && last_check_date != ''">安检完成</p>
213
+ <p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date == null || last_check_date == ''">未安检</p>
214
+ </div>
215
+ <div class="row" v-if="last_check_date != null && last_check_date != ''">
216
+ <p class="panel-title col-xs-4 text-left font">上次结果</p>
217
+ <p class="panel-title col-xs-8 text-left input-font" :class="last_check_result=='正常'?'':'color-red'">{{last_check_result}}</p>
218
+ <div v-for="data in last_check_data.data" class="panel-title col-xs-offset-4 col-xs-8 text-left input-font">
219
+ <p v-for="(key,item) in data">
220
+ {{key}}:{{item}}
221
+ </p>
222
+ </div>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+ </div>
229
+ <div v-if="showbModal">
230
+ <modal :show.sync="showbModal" v-ref:modal backdrop="false">
231
+ <div slot="modal-header" class="modal-header">
232
+ <h4 class="modal-title">
233
+ 选择表型号
234
+ </h4>
235
+ </div>
236
+ <div slot="modal-body" class="modal-body">
237
+ <div class="col-xs-12">
238
+
239
+ <v-select :value.sync="biaoxinghao" v-model='biaoxinghao'
240
+ :value-single="true"
241
+ class="select_list select"
242
+ :options='gmlist' placeholder='请选择表型号'
243
+ close-on-select width="100%"></v-select>
244
+ </div>
245
+ <div class="col-xs-12" style="height: 10px">
246
+
247
+ </div>
248
+
249
+ </div>
250
+ <div slot="modal-footer" class="modal-footer">
251
+ <button class="btn btn-default" @click="biaoxinghaook()">确认</button>
252
+ <button class="btn btn-default" @click="biaoxinghaocancel()">取消</button>
253
+ </div>
254
+ </modal>
255
+ </div>
256
+ </div>
257
+ </template>
258
+
259
+ <script>
260
+ import { HttpResetClass } from 'vue-client'
261
+ import * as Util from "../../Util";
262
+ import Vue from "vue";
263
+ import RadioGroup from "vue-client/src/vue-strap/src/radioGroup";
264
+ import Radio from "vue-client/src/vue-strap/src/radioBtn";
265
+
266
+ export default {
267
+ title: "SafecheckUserInfo",
268
+ props: ['userinfo'],
269
+ data() {
270
+ return this.$parent.$parent.data
271
+ },
272
+ created(){
273
+ this.$set('showbModal',false)
274
+ //tag
275
+ this.$set('biaoxinghao','')
276
+ },
277
+ ready() {
278
+ console.log('执行这里。。。。。',this.userinfo)
279
+
280
+ //tag
281
+ //tag)
282
+ // //tag)
283
+ // this.$set('userinfo.f_meter_no',this.userinfo.planmeterss.f_meter_no)
284
+ // //tag)
285
+ this.$set('beforephone',this.userinfo.f_user_phone)
286
+ this.$set('gmlist',[])
287
+ //tag
288
+ if(Vue.config.safecheck != undefined){
289
+ if(Vue.config.safecheck.SafecheckUserinfo != undefined){
290
+ if(Vue.config.safecheck.SafecheckUserinfo.updateuserphone != undefined) {
291
+ this.$set('updateuserphone',Vue.config.safecheck.SafecheckUserinfo.updateuserphone)
292
+ }
293
+ if(Vue.config.safecheck.SafecheckUserinfo.updatemetermodel != undefined) {
294
+ this.$set('updatemetermodel',Vue.config.safecheck.SafecheckUserinfo.updatemetermodel)
295
+ }
296
+ if(Vue.config.safecheck.SafecheckUserinfo.updatemeternumber != undefined) {
297
+ this.$set('updatemeternumber',Vue.config.safecheck.SafecheckUserinfo.updatemeternumber)
298
+ }
299
+ }
300
+ }
301
+ for (let i in this.userinfo) {
302
+ //tag + ':' + JSON.stringify(this.userinfo[i]))
303
+ }
304
+ this.safecheckStateReady()
305
+ },
306
+ methods: {
307
+ makeAPhoneCall(phoneNumber) {
308
+ this.$androidUtil.makeAPhoneCall(phoneNumber)
309
+ },
310
+ updatebiaohao(f_meter_no,f_userinfo_id){
311
+ this.$showMessage("将用户 "+this.userinfo.f_user_name+"的机表表号从"+this.userinfo.planmeterss.f_meter_no+"修改为"+f_meter_no,['confirm', 'cancel']).then((butt)=>{
312
+ if(butt=="confirm"){
313
+ let http = new HttpResetClass()
314
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoHao`, {
315
+ f_meter_no:f_meter_no,
316
+ f_userinfo_id: f_userinfo_id
317
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
318
+ if(res.data.code == 200){
319
+ this.$showMessage('修改成功!')
320
+ }else{
321
+ this.$showMessage('修改失败!,网络异常')
322
+ }
323
+ })
324
+ }
325
+ })
326
+ },
327
+ biaoxinghaook(){
328
+ if (this.biaoxinghao==''){
329
+ this.$showMessage("请选择表型号")
330
+ return
331
+ }
332
+ //tag
333
+ //tag
334
+ this.$showMessage("是否确定进行修改?",['confirm', 'cancel']).then((butt)=>{
335
+ if(butt=="confirm"){
336
+ let http = new HttpResetClass()
337
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoXingHao`, {
338
+ biaoxinghao:this.biaoxinghao,
339
+ f_userinfo_id: this.userinfo.f_userinfoid
340
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
341
+ if(res.data.code == 200){
342
+ this.$showMessage('修改成功!')
343
+ //tag
344
+ this.showbModal=false
345
+ }else{
346
+ this.$showMessage('修改失败!,网络异常')
347
+ }
348
+ })
349
+ }
350
+ })
351
+ },
352
+ biaoxinghaocancel(){
353
+ //tag
354
+ this.showbModal=false
355
+ },
356
+ showbiaoxinghao(){
357
+ this.gmlist=[]
358
+ //tag)
359
+ //tag
360
+ let http1 = new HttpResetClass()
361
+ http1.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
362
+ items: 'gm.id,gm.f_meter_style',
363
+ tablename: 't_gasbrand gb LEFT JOIN t_gasmodel gm ON gb.id= gm.f_gasbrand_id ',
364
+ condition: `f_meter_brand = '${this.userinfo.planmeterss.f_aliasname}'`,
365
+ // condition: `f_meter_brand = 'this.userinfo.planmeterss'`,
366
+ orderitem: 'gm.id'
367
+ }}, {resolveMsg: null, rejectMsg: null}).then((ress) => {
368
+ ress.data.forEach(res=>{
369
+ this.gmlist.push({
370
+ label:res.f_meter_style,
371
+ value:res.id
372
+ })
373
+ })
374
+ //tag)
375
+ //tag
376
+ this.showbModal=true
377
+ })
378
+ },
379
+ updatePhone(f_user_phone,f_userinfo_id){
380
+
381
+ this.$showMessage("将用户 "+this.userinfo.f_user_name+"的电话号码从"+this.beforephone+"修改为"+f_user_phone,['confirm', 'cancel']).then((butt)=>{
382
+ if(butt=="confirm"){
383
+ let http = new HttpResetClass()
384
+ http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdatePhone`, {
385
+ f_user_phone:f_user_phone,
386
+ f_userinfo_id: f_userinfo_id
387
+ }, {resolveMsg: null, rejectMsg: null}).then((res) => {
388
+ if(res.data.code == 200){
389
+ this.$showMessage('修改成功!')
390
+ }else{
391
+ this.$showMessage('修改失败!,网络异常')
392
+ }
393
+ })
394
+ }
395
+ })
396
+ },
397
+ upuserinfo(userinfo) {
398
+ this.$dispatch('gotoson', {
399
+ _this: this.$parent.$parent,
400
+ title: '档案信息变更',
401
+ safe: false
402
+ })
403
+ this.$parent.$parent.$goto('PhoneUpUserinfo', {f_userinfo_id: userinfo.f_userinfoid,f_source:'安检',f_check_type:userinfo.f_check_type})
404
+ },
405
+ upgetFilesDetail(f_userinfo_id) {
406
+ this.$dispatch('gotoson', {
407
+ _this: this.$parent.$parent,
408
+ title: '设备信息变更',
409
+ safe: false
410
+ })
411
+ this.$parent.$parent.$goto('PhoneUpDetail', {f_userinfo_id: f_userinfo_id,f_source:'安检'})
412
+ },
413
+ searchHistory(f_userinfo_id) {
414
+ this.$dispatch('gotoson', {
415
+ _this: this.$parent.$parent,
416
+ title: '购气记录',
417
+ safe: false
418
+ })
419
+ this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
420
+ },
421
+ cameraCallBack (prop, fileName) {
422
+ if (prop == 'f_noanswers_path') {
423
+ let f_noanswer_path = fileName + '?' + Math.random()
424
+ HostApp.__this__.f_noanswers_path.push({
425
+ f_noanswer_path: f_noanswer_path
426
+ })
427
+ } else if (prop == 'f_rejectchecks_path') {
428
+ let f_rejectcheck_path = fileName + '?' + Math.random()
429
+ HostApp.__this__.f_rejectchecks_path.push({
430
+ f_rejectcheck_path: f_rejectcheck_path
431
+ })
432
+ }else {
433
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
434
+ }
435
+ HostApp.__callback__ = null
436
+ HostApp.__this__ = null
437
+ },
438
+ takePic (type ,prop, title) {
439
+ HostApp.__callback__ = this.cameraCallBack
440
+ HostApp.__this__ = this
441
+ //tag
442
+ let fileName
443
+ if (prop == 'f_noanswers_path') {
444
+ //tag
445
+ if (this.f_noanswers_path.length == 3) {
446
+ return
447
+ }
448
+ fileName = Util.guid() + '-' + prop + '.jpg'
449
+ } else if (prop == 'f_rejectchecks_path') {
450
+ //tag
451
+ if (this.f_rejectchecks_path.length == 3) {
452
+ return
453
+ }
454
+ fileName = Util.guid() + '-' + prop + '.jpg'
455
+ }else {
456
+ if (!this[prop] || this[prop].includes('nopic.png')) {
457
+ fileName = Util.guid() + '-' + prop + '.jpg'
458
+ } else {
459
+ fileName = Util.getFileName(this[prop])
460
+ }
461
+ }
462
+ let page = 'com.aofeng.hybrid.android.peripheral.CameraActivity'
463
+ if(type === '相册'){
464
+ page ='com.aofeng.hybrid.android.peripheral.ActionPickActivity'
465
+ }
466
+ HostApp._open_a_page({
467
+ type: 'boomerang',
468
+ page,
469
+ param: {
470
+ file: fileName,
471
+ requestCode: 111,
472
+ callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
473
+ watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
474
+ }
475
+ })
476
+ },
477
+ delfile (prop, fileName, index) {
478
+ if (fileName == Vue.nopic) {
479
+ return
480
+ } else {
481
+ if (prop == 'f_noanswers_path') {
482
+ this.f_noanswers_path.splice(index, 1)
483
+ HostApp.delfile(fileName)
484
+ }else if (prop == 'f_rejectchecks_path') {
485
+ this.f_rejectchecks_path.splice(index, 1)
486
+ HostApp.delfile(fileName)
487
+ } else {
488
+ HostApp.delfile(fileName)
489
+ this[prop] = Vue.nopic
490
+ }
491
+ }
492
+ },
493
+ setEntryClass(val) {
494
+ if (val == '到访不遇') {
495
+ this.f_usegas = ''
496
+ this.$set('f_entry_class', 'warning')
497
+ } else if (val == '拒检') {
498
+ this.f_usegas = ''
499
+ this.$set('f_entry_class', 'danger')
500
+ } else if (val == '入户') {
501
+ this.$set('f_entry_class', 'success')
502
+ }
503
+ },
504
+ setUsegas(val) {
505
+ if (val == '未使用')
506
+ this.$set('f_useclass', 'default')
507
+ if (val == '已使用')
508
+ this.$set('f_useclass', 'success')
509
+ },
510
+ start() {
511
+ this.$parent.$parent.isStrat = true
512
+ this.$set('action', !this.action)
513
+ this.$set('f_onsite_time', Util.toStandardTimeString())
514
+ },
515
+ safecheckStateReady() {
516
+ //tag
517
+ //tag
518
+ //tag
519
+ if (!this.$parent.$parent.showBack) {
520
+ this.$parent.$parent.showBack = true
521
+ }
522
+ //兼容下-如果没有通过外层查询带进来最新安检时间,就拿本地单子里存的上次安检时间
523
+ if(this.$parent.$parent.item.f_plan_meters[0].f_last_check_date){
524
+ this.$set('last_check_date', this.$parent.$parent.item.f_plan_meters[0].f_last_check_date)
525
+ console.log('ggggggggggggg222',this.last_check_date)
526
+ this.$set('newfile_date', this.$parent.$parent.item.f_plan_meters[0].f_newfile_date)
527
+ if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_result) {
528
+ let checkResult = JSON.parse(this.$parent.$parent.item.f_plan_meters[0].f_last_check_result)
529
+ this.$set('last_check_result', checkResult.result)
530
+ this.$set('last_check_data.data', checkResult.data)
531
+ } else {
532
+ this.$set('last_check_result', '')
533
+ this.$set('last_check_data.data', [])
534
+ }
535
+ }else{
536
+ if(!this.$parent.$parent.item.f_last_check_date){
537
+ this.$parent.$parent.item.f_last_check_date='未安检'
538
+ }
539
+ this.$set('last_check_date', this.$parent.$parent.item.f_last_check_date)
540
+ console.log('ggggggggggggggggggggg',this.last_check_date)
541
+ if (this.$parent.$parent.item.f_last_check_result) {
542
+ let checkResult = JSON.parse(this.$parent.$parent.item.f_last_check_result)
543
+ this.$set('last_check_result', checkResult.result)
544
+ this.$set('last_check_data.data', checkResult.data)
545
+ } else {
546
+ this.$set('last_check_result', '')
547
+ this.$set('last_check_data.data', [])
548
+ }
549
+ }
550
+
551
+ this.$set('upUserinfoSta', '否')
552
+ this.upUserinfoSta=this.$appdata.getSingleValue('安检修改档案信息')
553
+
554
+ if (this.$parent.$parent.role == 'inspect' && this.f_complete != '已完成') {
555
+ this.start()
556
+ }
557
+ if (this.$parent.$parent.data.f_onsite_time) {
558
+ //tag
559
+ this.$parent.$parent.startClick = true
560
+ }
561
+ this.action = true
562
+ //tag
563
+ if (this.f_onsite_time) {
564
+ this.$parent.$parent.isStrat = true
565
+ this.$parent.$parent.data.f_onsite_time = Util.toStandardTimeString()
566
+ }
567
+ if (this.$parent.$parent.role == 'repair') {
568
+ this.$set('style__', 'divmask')
569
+ this.$set('style_view_', '')
570
+ } else if (this.$parent.$parent.role == 'view') {
571
+ this.$set('style__', 'divmask')
572
+ this.$set('style_view_', 'divmask')
573
+ //tag
574
+ } else {
575
+ this.$set('style__', '')
576
+ this.$set('style_view_', '')
577
+ }
578
+ if (!this.f_nongasuser_path) {
579
+ this.$set('f_nongasuser_path', '')
580
+ }
581
+ //到访多张照片
582
+ this.$set('f_noanswers_path', [])
583
+ if (this.f_noanswer_path) {
584
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer_path})
585
+ } else {
586
+ this.$set('f_noanswer_path', '')
587
+ }
588
+ if (this.f_noanswer1_path) {
589
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer1_path})
590
+ } else {
591
+ this.$set('f_noanswer1_path', '')
592
+ }
593
+ if (this.f_noanswer2_path) {
594
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer2_path})
595
+ } else {
596
+ this.$set('f_noanswer2_path', '')
597
+ }
598
+
599
+ if (!this.f_rejectcheck_path) {
600
+ this.$set('f_rejectcheck_path', '')
601
+ }
602
+ //拒检多张照片
603
+ this.$set('f_rejectchecks_path', [])
604
+ if (this.f_rejectcheck_path) {
605
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck_path})
606
+ } else {
607
+ this.$set('f_rejectcheck_path', '')
608
+ }
609
+ if (this.f_rejectcheck1_path) {
610
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck1_path})
611
+ } else {
612
+ this.$set('f_rejectcheck1_path', '')
613
+ }
614
+ if (this.f_rejectcheck2_path) {
615
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck2_path})
616
+ } else {
617
+ this.$set('f_rejectcheck2_path', '')
618
+ }
619
+
620
+ this.$watch('f_noanswers_path.length', () => {
621
+ //tag)
622
+ for (let i = 0; i < 3; i++) {
623
+
624
+ if (this.f_noanswers_path[i] && this.f_noanswers_path[i].f_noanswer_path) {
625
+ //tag)
626
+ if (i == 0) {
627
+ this.f_noanswer_path = this.f_noanswers_path[i].f_noanswer_path
628
+ } else {
629
+ this['f_noanswer' + i + '_path'] = this.f_noanswers_path[i].f_noanswer_path
630
+ }
631
+ } else {
632
+ //tag)
633
+ if (i == 0) {
634
+ this.f_noanswer_path = null
635
+ } else {
636
+ this['f_noanswer' + i + '_path'] = null
637
+ }
638
+ }
639
+ }
640
+ //tag
641
+ })
642
+ this.$watch('f_rejectchecks_path.length', () => {
643
+ //tag)
644
+ for (let i = 0; i < 3; i++) {
645
+
646
+ if (this.f_rejectchecks_path[i] && this.f_rejectchecks_path[i].f_rejectcheck_path) {
647
+ //tag)
648
+ if (i == 0) {
649
+ this.f_rejectcheck_path = this.f_rejectchecks_path[i].f_rejectcheck_path
650
+ } else {
651
+ this['f_rejectcheck' + i + '_path'] = this.f_rejectchecks_path[i].f_rejectcheck_path
652
+ }
653
+ } else {
654
+ //tag)
655
+ if (i == 0) {
656
+ this.f_rejectcheck_path = null
657
+ } else {
658
+ this['f_rejectcheck' + i + '_path'] = null
659
+ }
660
+ }
661
+ }
662
+ //tag
663
+ })
664
+
665
+ this.$watch('f_usegas', (val) => {
666
+ this.setUsegas(val)
667
+ })
668
+
669
+ this.setEntryClass(this.f_entry_status)
670
+ this.$watch('f_entry_status', (val) => {
671
+ this.setEntryClass(val)
672
+
673
+ if (val == '到访不遇') {
674
+ this.f_noanswer_path = Vue.nopic
675
+ }
676
+ if (val == '拒检') {
677
+ this.f_rejectcheck_path = Vue.nopic
678
+ }
679
+
680
+ if (val != '入户') {
681
+ //清理安检概括
682
+ this.f_no_gas_device = false
683
+ this.f_unload_battery = false
684
+ this.f_close_valve = false
685
+ //清理全局隐患
686
+ this.f_defect_cramped = false
687
+ this.f_defect_bedroom = false
688
+ this.f_defect_longpipe = false
689
+ this.f_defect_firesource = false
690
+ this.f_defect_explosive = false
691
+ this.f_defect_viacabinet = false
692
+ this.f_defect_intermittent = false
693
+ this.f_defect_nearfire = false
694
+ this.f_defect_openkitchen = false
695
+ this.f_defect_hang = false
696
+ this.f_cramped_path = Vue.nopic
697
+ //用户评价
698
+ this.f_client_evaluation = null
699
+ //清设备
700
+ this.$set('f_meters', [])
701
+ this.$set('f_plumbs', [])
702
+ this.$set('f_valves', [])
703
+ this.$set('f_inner_plumbs', [])
704
+ this.$set('f_alarms', [])
705
+ this.$set('f_cookers', [])
706
+ this.$set('f_heaters', [])
707
+ this.$set('f_furnaces', [])
708
+ }else{
709
+ this.f_rejectcheck_path = Vue.nopic
710
+ this.f_noanswer_path = Vue.nopic
711
+ this.f_noanswers_path = []
712
+ this.f_novisit_reason=null
713
+ }
714
+ })
715
+ }
716
+ },
717
+ components: {
718
+ RadioGroup,
719
+ Radio
720
+ },
721
+ }
722
+ </script>
723
+
724
+ <style scoped>
725
+
726
+ .font {
727
+ font: 15px PingFang-SC-Medium;
728
+ color: #666666;
729
+ }
730
+
731
+ .input-font {
732
+ font: 15px PingFang-SC-Medium;
733
+ color: #333333;
734
+ }
735
+
736
+ .app-text {
737
+ font-size: 12px;
738
+ }
739
+
740
+ .panel-self {
741
+ border-radius: 10px;
742
+ border: 1px solid #499EDF;
743
+ background-color: #F8F8F8;
744
+ }
745
+
746
+ .app-text {
747
+ font-size: 12px;
748
+ }
749
+
750
+ .panel-self {
751
+ border-radius: 5px;
752
+ border: 1px solid #c5e1f7;
753
+ background-color: #F2F6FA;
754
+ }
755
+
756
+ .font {
757
+ font: 15px PingFang-SC-Medium;
758
+ color: #333333;
759
+ }
760
+
761
+ .panel-self {
762
+ border-radius: 5px;
763
+ border: 1px solid #c5e1f7;
764
+ background-color: #F2F6FA;
765
+ }
766
+
767
+ .text-left {
768
+ text-align: left;
769
+ }
770
+
771
+ .font {
772
+ font: 15px PingFang-SC-Medium;
773
+ color: #333333;
774
+ }
775
+
776
+ .btn-photo {
777
+ border: 0;
778
+ border-radius: 7px;
779
+ background-color: #7dc1f4;
780
+ font: 15px PingFang-SC-Bold;
781
+ height: 20%;
782
+ }
783
+
784
+ .div-photo {
785
+ width: auto;
786
+ height: auto;
787
+ /* margin-top: 10px; */
788
+ position: absolute;
789
+ bottom: 10px;
790
+ right: 10px;
791
+ }
792
+ </style>