safecheck-client 3.0.32-33 → 3.0.32-34

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