safecheck-client 3.0.35-61 → 3.0.35-64

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