safecheck-client 3.0.33-128 → 3.0.33-129

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