safecheck-client 3.0.39-79 → 3.0.39-80

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