safecheck-client 3.0.35-gongyi → 3.0.35-gongyi-1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +119 -119
- package/src/components/Util/RightTreeSafe.vue +348 -348
- package/src/components/android/AreaPlan.vue +503 -503
- package/src/components/android/CurrentCreate.vue +972 -972
- package/src/components/android/SafecheckOrderV.vue +2408 -2408
- package/src/components/android/userinfo/SafecheckUserInfo.vue +611 -611
- package/src/components/defect/DefectListWeixiu.vue +479 -479
- package/src/components/defect/DefectPaper.vue +277 -165
- package/src/components/defect/DefectPaperWeiXiu.vue +655 -580
- package/src/components/paper/PaperList.vue +797 -757
- package/src/components/pc/CheckBookList.vue +590 -560
- package/src/components/pc/CheckBookManage.vue +964 -910
- package/src/components/pc/NewCheckpaper.vue +1333 -1333
- package/src/components/planmanage/PlanManage.vue +782 -782
- package/src/components/planmanage/checkUserList.vue +691 -691
- package/src/components/querycheckpaper/CheckSearchUser.vue +1037 -1035
- package/src/components/report/CheckPlanAreaList.vue +521 -495
- package/src/components/report/CheckPlanUserList.vue +217 -217
- package/src/components/report/HiddenSituation.vue +100 -2
- package/src/safecheck.js +1 -1
@@ -1,611 +1,611 @@
|
|
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)" style="color: #00b3ee;text-decoration:none;">{{ userinfo.f_userinfo_code }}</label><label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;" @click="upuserinfo(userinfo.f_userinfoid)">信息变更</label>
|
10
|
-
</p>
|
11
|
-
</div>
|
12
|
-
<div class="col-xs-12" style="padding: 2px 0">
|
13
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
14
|
-
<p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_user_name }}</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_check_type }}
|
19
|
-
</p>
|
20
|
-
</div>
|
21
|
-
<div class="col-xs-12" style="padding: 2px 0">
|
22
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户电话:</b></p>
|
23
|
-
<input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_user_phone2 ? userinfo.f_user_phone2 : userinfo.f_user_phone }}" v-model="userinfo.f_user_phone"/>
|
24
|
-
|
25
|
-
</div>
|
26
|
-
<!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
|
27
|
-
<!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
|
28
|
-
<!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
|
29
|
-
|
30
|
-
<!-- </div>-->
|
31
|
-
<div class="col-xs-12" style="padding: 2px 0">
|
32
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户小区:</b></p>
|
33
|
-
<p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
|
34
|
-
</div>
|
35
|
-
<div class="col-xs-12" style="padding: 2px 0">
|
36
|
-
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
37
|
-
<p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_address }}</p>
|
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 col-xs-7 text-left input-font">{{ userinfo.f_state }}</p>
|
42
|
-
</div>
|
43
|
-
<div class="col-xs-12">
|
44
|
-
<button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone" @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改</button>
|
45
|
-
<button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>
|
46
|
-
</div>
|
47
|
-
<div class="col-xs-12">
|
48
|
-
<button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')" @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改</button>
|
49
|
-
<!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
|
50
|
-
</div>
|
51
|
-
</div>
|
52
|
-
<div class="panel-body">
|
53
|
-
<div v-show="false" class="row repair-info-content auto">
|
54
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
55
|
-
<label class="control-label">
|
56
|
-
<nobr>到达时间:</nobr>
|
57
|
-
</label>
|
58
|
-
<span>{{f_onsite_time}}</span>
|
59
|
-
</div>
|
60
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
|
61
|
-
<label class="control-label">
|
62
|
-
<nobr>离开时间:</nobr>
|
63
|
-
</label>
|
64
|
-
<span>{{f_offsite_time}}</span>
|
65
|
-
</div>
|
66
|
-
</div>
|
67
|
-
|
68
|
-
|
69
|
-
<div class="form-group" :class="style__">
|
70
|
-
<span class="col-md-3 col-sm-4 col-xs-4 text-left"><img src="../../../assets/housestyle.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">入户状态:</span>
|
71
|
-
<div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
|
72
|
-
<input type="radio" name="enterstatus" v-model="f_entry_status" id="nopeople" value="到访不遇">到访不遇
|
73
|
-
<input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" value="拒检">拒检
|
74
|
-
<input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" value="入户">入户
|
75
|
-
</div>
|
76
|
-
<div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
|
77
|
-
<label class="text-left font">到访不遇照片:</label>
|
78
|
-
<div class="auto">
|
79
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
80
|
-
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
81
|
-
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
82
|
-
<div class="col-sm-4">
|
83
|
-
<img-self :src="f_noanswer_path" alt="到访不遇照片" width="150" height="200"></img-self>
|
84
|
-
</div>
|
85
|
-
</div>
|
86
|
-
<div class="row text-right div-photo" :class="style__">
|
87
|
-
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_noanswer_path', '到访不遇照片')">拍照</button>
|
88
|
-
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_noanswer_path', this.f_noanswer_path)" style="width: 25%;"></img>
|
89
|
-
</div>
|
90
|
-
</div>
|
91
|
-
</div>
|
92
|
-
</div>
|
93
|
-
<div class="auto">
|
94
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
95
|
-
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
96
|
-
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
97
|
-
<div class="col-sm-4">
|
98
|
-
<img-self :src="f_noanswer1_path" alt="到访不遇照片" width="150" height="200"></img-self>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
<div class="row text-right div-photo" :class="style__">
|
102
|
-
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_noanswer1_path', '到访不遇照片')">拍照</button>
|
103
|
-
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_noanswer1_path', this.f_noanswer_path)" style="width: 25%;"></img>
|
104
|
-
</div>
|
105
|
-
</div>
|
106
|
-
</div>
|
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" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
114
|
-
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
115
|
-
<div class="col-sm-4">
|
116
|
-
<img-self :src="f_rejectcheck_path" alt="拒检照片" width="150" height="200"></img-self>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
<div class="row text-right div-photo">
|
120
|
-
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_rejectcheck_path', '拒检照片')">拍照</button>
|
121
|
-
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_rejectcheck_path', this.f_rejectcheck_path)" style="width: 25%;"></img>
|
122
|
-
</div>
|
123
|
-
</div>
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
<div class="auto">
|
127
|
-
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
128
|
-
<div class="panel-body panel-self" 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-sm-4">
|
131
|
-
<img-self :src="f_rejectcheck1_path" alt="拒检照片" width="150" height="200"></img-self>
|
132
|
-
</div>
|
133
|
-
</div>
|
134
|
-
<div class="row text-right div-photo">
|
135
|
-
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_rejectcheck1_path', '拒检照片')">拍照</button>
|
136
|
-
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_rejectcheck1_path', this.f_rejectcheck_path)" style="width: 25%;"></img>
|
137
|
-
</div>
|
138
|
-
</div>
|
139
|
-
</div>
|
140
|
-
</div>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
<div :class="style__" class="form-group" v-show="f_usegas == '未使用'">
|
144
|
-
<sapn class="text-left col-md-12 col-sm-12 col-xs-12">处置方式:</sapn>
|
145
|
-
<div class="col-xs-12 col-sm-12 col-md-12">
|
146
|
-
<input type="checkbox" v-model="f_no_gas_device">无燃气具
|
147
|
-
<input type="checkbox" v-model="f_close_valve">关闭表前阀
|
148
|
-
<input type="checkbox" v-model="f_unload_battery">取下表内电池
|
149
|
-
</div>
|
150
|
-
</div>
|
151
|
-
<div class="auto app-text" style="margin-top: 5px;" v-if="this.$parent.$parent.role != 'view'">
|
152
|
-
<div class="panel" style="padding: 60px 7px 10px 0px;">
|
153
|
-
<div class="panel-body panel-self">
|
154
|
-
<div v-show="false" class="row">
|
155
|
-
<p class="panel-title col-xs-4 text-left font">建档时间</p>
|
156
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ newfile_date }}</p>
|
157
|
-
</div>
|
158
|
-
<div class="row" v-if="last_check_date != null && last_check_date != ''">
|
159
|
-
<p class="panel-title col-xs-4 text-left font">上次安检时间</p>
|
160
|
-
<p class="panel-title col-xs-8 text-left input-font">{{ last_check_date }}</p>
|
161
|
-
</div>
|
162
|
-
<div class="row">
|
163
|
-
<p class="panel-title col-xs-4 text-left font">上次安检状态</p>
|
164
|
-
<p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date != null && last_check_date != ''">安检完成</p>
|
165
|
-
<p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date == null || last_check_date == ''">未安检</p>
|
166
|
-
</div>
|
167
|
-
<div class="row" v-if="last_check_date != null && last_check_date != ''">
|
168
|
-
<p class="panel-title col-xs-4 text-left font">上次安检结果</p>
|
169
|
-
<p class="panel-title col-xs-8 text-left input-font" :class="last_check_result=='正常'?'':'color-red'">{{last_check_result}}</p>
|
170
|
-
<div v-for="data in last_check_data.data" class="panel-title col-xs-offset-4 col-xs-8 text-left input-font">
|
171
|
-
<p v-for="(key,item) in data">
|
172
|
-
{{key}}:{{item}}
|
173
|
-
</p>
|
174
|
-
</div>
|
175
|
-
</div>
|
176
|
-
</div>
|
177
|
-
</div>
|
178
|
-
</div>
|
179
|
-
</div>
|
180
|
-
</div>
|
181
|
-
<div v-if="showbModal">
|
182
|
-
<modal :show.sync="showbModal" v-ref:modal backdrop="false">
|
183
|
-
<div slot="modal-header" class="modal-header">
|
184
|
-
<h4 class="modal-title">
|
185
|
-
选择表型号
|
186
|
-
</h4>
|
187
|
-
</div>
|
188
|
-
<div slot="modal-body" class="modal-body">
|
189
|
-
<div class="col-xs-12">
|
190
|
-
|
191
|
-
<v-select :value.sync="biaoxinghao" v-model='biaoxinghao'
|
192
|
-
:value-single="true"
|
193
|
-
class="select_list select"
|
194
|
-
:options='gmlist' placeholder='请选择表型号'
|
195
|
-
close-on-select width="100%"></v-select>
|
196
|
-
</div>
|
197
|
-
<div class="col-xs-12" style="height: 10px">
|
198
|
-
|
199
|
-
</div>
|
200
|
-
|
201
|
-
</div>
|
202
|
-
<div slot="modal-footer" class="modal-footer">
|
203
|
-
<button class="btn btn-default" @click="biaoxinghaook()">确认</button>
|
204
|
-
<button class="btn btn-default" @click="biaoxinghaocancel()">取消</button>
|
205
|
-
</div>
|
206
|
-
</modal>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
</template>
|
210
|
-
|
211
|
-
<script>
|
212
|
-
import { HttpResetClass } from 'vue-client'
|
213
|
-
import * as Util from "../../Util";
|
214
|
-
import Vue from "vue";
|
215
|
-
import RadioGroup from "vue-client/src/vue-strap/src/radioGroup";
|
216
|
-
import Radio from "vue-client/src/vue-strap/src/radioBtn";
|
217
|
-
|
218
|
-
export default {
|
219
|
-
name: "SafecheckUserInfo",
|
220
|
-
props: ['userinfo'],
|
221
|
-
data() {
|
222
|
-
return this.$parent.$parent.data
|
223
|
-
},
|
224
|
-
created(){
|
225
|
-
this.$set('showbModal',false)
|
226
|
-
console.log(this.showbModal)
|
227
|
-
this.$set('biaoxinghao','')
|
228
|
-
},
|
229
|
-
ready() {
|
230
|
-
console.log("77777777777777777")
|
231
|
-
console.log(JSON.stringify(this.userinfo.planmeterss))
|
232
|
-
// console.log(JSON.stringify(this.userinfo.planmeterss.f_meter_no))
|
233
|
-
// this.$set('userinfo.f_meter_no',this.userinfo.planmeterss.f_meter_no)
|
234
|
-
// console.log(JSON.stringify(this.userinfo.f_meter_no))
|
235
|
-
this.$set('beforephone',this.userinfo.f_user_phone)
|
236
|
-
this.$set('gmlist',[])
|
237
|
-
console.log(this.beforephone)
|
238
|
-
if(Vue.config.safecheck != undefined){
|
239
|
-
if(Vue.config.safecheck.SafecheckUserinfo != undefined){
|
240
|
-
if(Vue.config.safecheck.SafecheckUserinfo.updateuserphone != undefined) {
|
241
|
-
this.$set('updateuserphone',Vue.config.safecheck.SafecheckUserinfo.updateuserphone)
|
242
|
-
}
|
243
|
-
}
|
244
|
-
}
|
245
|
-
for (let i in this.userinfo) {
|
246
|
-
console.log(JSON.stringify(i) + ':' + JSON.stringify(this.userinfo[i]))
|
247
|
-
}
|
248
|
-
this.safecheckStateReady()
|
249
|
-
},
|
250
|
-
methods: {
|
251
|
-
updatebiaohao(f_meter_no,f_userinfo_id){
|
252
|
-
this.$showMessage("将用户 "+this.userinfo.f_user_name+"的机表表号从"+this.userinfo.planmeterss.f_meter_no+"修改为"+f_meter_no,['confirm', 'cancel']).then((butt)=>{
|
253
|
-
if(butt=="confirm"){
|
254
|
-
let http = new HttpResetClass()
|
255
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoHao`, {
|
256
|
-
f_meter_no:f_meter_no,
|
257
|
-
f_userinfo_id: f_userinfo_id
|
258
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
259
|
-
if(res.data.code == 200){
|
260
|
-
this.$showMessage('修改成功!')
|
261
|
-
}else{
|
262
|
-
this.$showMessage('修改失败!,网络异常')
|
263
|
-
}
|
264
|
-
})
|
265
|
-
}
|
266
|
-
})
|
267
|
-
},
|
268
|
-
biaoxinghaook(){
|
269
|
-
if (this.biaoxinghao==''){
|
270
|
-
this.$showMessage("请选择表型号")
|
271
|
-
return
|
272
|
-
}
|
273
|
-
console.log("开始更新")
|
274
|
-
console.log(this.biaoxinghao)
|
275
|
-
this.$showMessage("是否确定进行修改?",['confirm', 'cancel']).then((butt)=>{
|
276
|
-
if(butt=="confirm"){
|
277
|
-
let http = new HttpResetClass()
|
278
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoXingHao`, {
|
279
|
-
biaoxinghao:this.biaoxinghao,
|
280
|
-
f_userinfo_id: this.userinfo.f_userinfoid
|
281
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
282
|
-
if(res.data.code == 200){
|
283
|
-
this.$showMessage('修改成功!')
|
284
|
-
console.log("开始关闭")
|
285
|
-
this.showbModal=false
|
286
|
-
}else{
|
287
|
-
this.$showMessage('修改失败!,网络异常')
|
288
|
-
}
|
289
|
-
})
|
290
|
-
}
|
291
|
-
})
|
292
|
-
},
|
293
|
-
biaoxinghaocancel(){
|
294
|
-
console.log("开始关闭")
|
295
|
-
this.showbModal=false
|
296
|
-
},
|
297
|
-
showbiaoxinghao(){
|
298
|
-
this.gmlist=[]
|
299
|
-
console.log(JSON.stringify(this.userinfo.planmeterss))
|
300
|
-
console.log("9999999999999999999999999999999")
|
301
|
-
let http1 = new HttpResetClass()
|
302
|
-
http1.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
|
303
|
-
items: 'gm.id,gm.f_meter_style',
|
304
|
-
tablename: 't_gasbrand gb LEFT JOIN t_gasmodel gm ON gb.id= gm.f_gasbrand_id ',
|
305
|
-
condition: `f_meter_brand = '${this.userinfo.planmeterss.f_aliasname}'`,
|
306
|
-
// condition: `f_meter_brand = 'this.userinfo.planmeterss'`,
|
307
|
-
orderitem: 'gm.id'
|
308
|
-
}}, {resolveMsg: null, rejectMsg: null}).then((ress) => {
|
309
|
-
ress.data.forEach(res=>{
|
310
|
-
this.gmlist.push({
|
311
|
-
label:res.f_meter_style,
|
312
|
-
value:res.id
|
313
|
-
})
|
314
|
-
})
|
315
|
-
console.log(JSON.stringify(this.gmlist))
|
316
|
-
console.log("8888888888888888888888")
|
317
|
-
this.showbModal=true
|
318
|
-
})
|
319
|
-
},
|
320
|
-
updatePhone(f_user_phone,f_userinfo_id){
|
321
|
-
|
322
|
-
this.$showMessage("将用户 "+this.userinfo.f_user_name+"的电话号码从"+this.beforephone+"修改为"+f_user_phone,['confirm', 'cancel']).then((butt)=>{
|
323
|
-
if(butt=="confirm"){
|
324
|
-
let http = new HttpResetClass()
|
325
|
-
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdatePhone`, {
|
326
|
-
f_user_phone:f_user_phone,
|
327
|
-
f_userinfo_id: f_userinfo_id
|
328
|
-
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
329
|
-
if(res.data.code == 200){
|
330
|
-
this.$showMessage('修改成功!')
|
331
|
-
}else{
|
332
|
-
this.$showMessage('修改失败!,网络异常')
|
333
|
-
}
|
334
|
-
})
|
335
|
-
}
|
336
|
-
})
|
337
|
-
},
|
338
|
-
upuserinfo(f_userinfo_id) {
|
339
|
-
this.$dispatch('gotoson', {
|
340
|
-
_this: this.$parent.$parent,
|
341
|
-
title: '档案信息变更',
|
342
|
-
safe: false
|
343
|
-
})
|
344
|
-
this.$parent.$parent.$goto('PhoneUpUserinfo', {f_userinfo_id: f_userinfo_id,f_source:'安检'})
|
345
|
-
},
|
346
|
-
searchHistory(f_userinfo_id) {
|
347
|
-
this.$dispatch('gotoson', {
|
348
|
-
_this: this.$parent.$parent,
|
349
|
-
title: '购气记录',
|
350
|
-
safe: false
|
351
|
-
})
|
352
|
-
this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
|
353
|
-
},
|
354
|
-
cameraCallBack(prop, fileName) {
|
355
|
-
HostApp.__this__.$set(prop, fileName + '?' + Math.random())
|
356
|
-
console.log('photo file name:' + HostApp.__this__.f_nongasuser_path)
|
357
|
-
HostApp.__callback__ = null
|
358
|
-
HostApp.__this__ = null
|
359
|
-
},
|
360
|
-
takePic(prop, title) {
|
361
|
-
HostApp.__callback__ = this.cameraCallBack
|
362
|
-
HostApp.__this__ = this
|
363
|
-
console.log('this[prop]:' + this[prop])
|
364
|
-
let fileName
|
365
|
-
if (!this[prop] || this[prop].includes("nopic.png")) {
|
366
|
-
fileName = Util.guid() + '-' + prop + '.jpg'
|
367
|
-
} else {
|
368
|
-
fileName = Util.getFileName(this[prop])
|
369
|
-
}
|
370
|
-
HostApp._open_a_page({
|
371
|
-
type: 'boomerang',
|
372
|
-
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
373
|
-
param: {
|
374
|
-
file: fileName,
|
375
|
-
requestCode: 111,
|
376
|
-
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
377
|
-
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
378
|
-
}
|
379
|
-
})
|
380
|
-
},
|
381
|
-
delfile(prop, fileName) {
|
382
|
-
if (fileName == Vue.nopic)
|
383
|
-
return
|
384
|
-
else {
|
385
|
-
HostApp.delfile(fileName)
|
386
|
-
this[prop] = Vue.nopic
|
387
|
-
}
|
388
|
-
},
|
389
|
-
setEntryClass(val) {
|
390
|
-
if (val == '到访不遇') {
|
391
|
-
this.f_usegas = ''
|
392
|
-
this.$set('f_entry_class', 'warning')
|
393
|
-
} else if (val == '拒检') {
|
394
|
-
this.f_usegas = ''
|
395
|
-
this.$set('f_entry_class', 'danger')
|
396
|
-
} else if (val == '入户') {
|
397
|
-
this.$set('f_entry_class', 'success')
|
398
|
-
}
|
399
|
-
},
|
400
|
-
setUsegas(val) {
|
401
|
-
if (val == '未使用')
|
402
|
-
this.$set('f_useclass', 'default')
|
403
|
-
if (val == '已使用')
|
404
|
-
this.$set('f_useclass', 'success')
|
405
|
-
},
|
406
|
-
start() {
|
407
|
-
this.$parent.$parent.isStrat = true
|
408
|
-
this.$set('action', !this.action)
|
409
|
-
this.$set('f_onsite_time', Util.toStandardTimeString())
|
410
|
-
},
|
411
|
-
safecheckStateReady() {
|
412
|
-
console.log('进入paperState====>', this.$parent.$parent.showBack)
|
413
|
-
console.log('parent.item====>', this.$parent.$parent.item)
|
414
|
-
console.log('model====>', this.$parent.$parent.model)
|
415
|
-
if (!this.$parent.$parent.showBack) {
|
416
|
-
this.$parent.$parent.showBack = true
|
417
|
-
}
|
418
|
-
//兼容下-如果没有通过外层查询带进来最新安检时间,就拿本地单子里存的上次安检时间
|
419
|
-
if(this.$parent.$parent.item.f_plan_meters[0].f_last_check_date){
|
420
|
-
this.$set('last_check_date', this.$parent.$parent.item.f_plan_meters[0].f_last_check_date)
|
421
|
-
this.$set('newfile_date', this.$parent.$parent.item.f_plan_meters[0].f_newfile_date)
|
422
|
-
if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_result) {
|
423
|
-
let checkResult = JSON.parse(this.$parent.$parent.item.f_plan_meters[0].f_last_check_result)
|
424
|
-
this.$set('last_check_result', checkResult.result)
|
425
|
-
this.$set('last_check_data.data', checkResult.data)
|
426
|
-
} else {
|
427
|
-
this.$set('last_check_result', '')
|
428
|
-
this.$set('last_check_data.data', [])
|
429
|
-
}
|
430
|
-
}else{
|
431
|
-
this.$set('last_check_date', this.$parent.$parent.item.f_last_check_date)
|
432
|
-
if (this.$parent.$parent.item.f_last_check_result) {
|
433
|
-
let checkResult = JSON.parse(this.$parent.$parent.item.f_last_check_result)
|
434
|
-
this.$set('last_check_result', checkResult.result)
|
435
|
-
this.$set('last_check_data.data', checkResult.data)
|
436
|
-
} else {
|
437
|
-
this.$set('last_check_result', '')
|
438
|
-
this.$set('last_check_data.data', [])
|
439
|
-
}
|
440
|
-
}
|
441
|
-
|
442
|
-
this.$set('upUserinfoSta', '否')
|
443
|
-
this.upUserinfoSta=this.$appdata.getSingleValue('安检修改档案信息')
|
444
|
-
|
445
|
-
if (this.$parent.$parent.role == 'inspect' && this.f_complete != '已完成') {
|
446
|
-
this.start()
|
447
|
-
}
|
448
|
-
if (this.$parent.$parent.data.f_onsite_time) {
|
449
|
-
console.log('已经开始安检')
|
450
|
-
this.$parent.$parent.startClick = true
|
451
|
-
}
|
452
|
-
this.action = true
|
453
|
-
console.log('this.f_onsite_time', this.f_onsite_time)
|
454
|
-
if (this.f_onsite_time) {
|
455
|
-
this.$parent.$parent.isStrat = true
|
456
|
-
this.$parent.$parent.data.f_onsite_time = Util.toStandardTimeString()
|
457
|
-
}
|
458
|
-
if (this.$parent.$parent.role == 'repair') {
|
459
|
-
this.$set('style__', 'divmask')
|
460
|
-
this.$set('style_view_', '')
|
461
|
-
} else if (this.$parent.$parent.role == 'view') {
|
462
|
-
this.$set('style__', 'divmask')
|
463
|
-
this.$set('style_view_', 'divmask')
|
464
|
-
console.log('set style for ....')
|
465
|
-
} else {
|
466
|
-
this.$set('style__', '')
|
467
|
-
this.$set('style_view_', '')
|
468
|
-
}
|
469
|
-
if (!this.f_nongasuser_path)
|
470
|
-
this.$set('f_nongasuser_path', '')
|
471
|
-
if (!this.f_noanswer_path)
|
472
|
-
this.$set('f_noanswer_path', '')
|
473
|
-
if (!this.f_rejectcheck_path)
|
474
|
-
this.$set('f_rejectcheck_path', '')
|
475
|
-
|
476
|
-
if (!this.f_noanswer1_path)
|
477
|
-
this.$set('f_noanswer1_path', '')
|
478
|
-
if (!this.f_rejectcheck1_path)
|
479
|
-
this.$set('f_rejectcheck1_path', '')
|
480
|
-
|
481
|
-
this.$watch('f_usegas', (val) => {
|
482
|
-
this.setUsegas(val)
|
483
|
-
})
|
484
|
-
|
485
|
-
this.setEntryClass(this.f_entry_status)
|
486
|
-
this.$watch('f_entry_status', (val) => {
|
487
|
-
this.setEntryClass(val)
|
488
|
-
|
489
|
-
if (val == '到访不遇') {
|
490
|
-
this.f_rejectcheck_path = Vue.nopic
|
491
|
-
this.f_rejectcheck1_path = Vue.nopic
|
492
|
-
}
|
493
|
-
if (val == '拒检') {
|
494
|
-
this.f_noanswer_path = Vue.nopic
|
495
|
-
this.f_noanswer1_path = Vue.nopic
|
496
|
-
}
|
497
|
-
|
498
|
-
if (val != '入户') {
|
499
|
-
//清理安检概括
|
500
|
-
this.f_no_gas_device = false
|
501
|
-
this.f_unload_battery = false
|
502
|
-
this.f_close_valve = false
|
503
|
-
//清理全局隐患
|
504
|
-
this.f_defect_cramped = false
|
505
|
-
this.f_defect_bedroom = false
|
506
|
-
this.f_defect_longpipe = false
|
507
|
-
this.f_defect_firesource = false
|
508
|
-
this.f_defect_explosive = false
|
509
|
-
this.f_defect_viacabinet = false
|
510
|
-
this.f_defect_intermittent = false
|
511
|
-
this.f_defect_nearfire = false
|
512
|
-
this.f_defect_openkitchen = false
|
513
|
-
this.f_defect_hang = false
|
514
|
-
this.f_cramped_path = Vue.nopic
|
515
|
-
//用户评价
|
516
|
-
this.f_client_evaluation = null
|
517
|
-
//清设备
|
518
|
-
this.$set('f_meters', [])
|
519
|
-
this.$set('f_plumbs', [])
|
520
|
-
this.$set('f_valves', [])
|
521
|
-
this.$set('f_inner_plumbs', [])
|
522
|
-
this.$set('f_alarms', [])
|
523
|
-
this.$set('f_cookers', [])
|
524
|
-
this.$set('f_heaters', [])
|
525
|
-
this.$set('f_furnaces', [])
|
526
|
-
}else{
|
527
|
-
this.f_rejectcheck_path = Vue.nopic
|
528
|
-
this.f_noanswer_path = Vue.nopic
|
529
|
-
this.f_rejectcheck1_path = Vue.nopic
|
530
|
-
this.f_noanswer1_path = Vue.nopic
|
531
|
-
this.f_novisit_reason=null
|
532
|
-
}
|
533
|
-
})
|
534
|
-
}
|
535
|
-
},
|
536
|
-
components: {
|
537
|
-
RadioGroup,
|
538
|
-
Radio
|
539
|
-
},
|
540
|
-
}
|
541
|
-
</script>
|
542
|
-
|
543
|
-
<style scoped>
|
544
|
-
|
545
|
-
.font {
|
546
|
-
font: 15px PingFang-SC-Medium;
|
547
|
-
color: #666666;
|
548
|
-
}
|
549
|
-
|
550
|
-
.input-font {
|
551
|
-
font: 15px PingFang-SC-Medium;
|
552
|
-
color: #333333;
|
553
|
-
}
|
554
|
-
|
555
|
-
.app-text {
|
556
|
-
font-size: 12px;
|
557
|
-
}
|
558
|
-
|
559
|
-
.panel-self {
|
560
|
-
border-radius: 10px;
|
561
|
-
border: 1px solid #499EDF;
|
562
|
-
background-color: #F8F8F8;
|
563
|
-
}
|
564
|
-
|
565
|
-
.app-text {
|
566
|
-
font-size: 12px;
|
567
|
-
}
|
568
|
-
|
569
|
-
.panel-self {
|
570
|
-
border-radius: 5px;
|
571
|
-
border: 1px solid #c5e1f7;
|
572
|
-
background-color: #F2F6FA;
|
573
|
-
}
|
574
|
-
|
575
|
-
.font {
|
576
|
-
font: 15px PingFang-SC-Medium;
|
577
|
-
color: #333333;
|
578
|
-
}
|
579
|
-
|
580
|
-
.panel-self {
|
581
|
-
border-radius: 5px;
|
582
|
-
border: 1px solid #c5e1f7;
|
583
|
-
background-color: #F2F6FA;
|
584
|
-
}
|
585
|
-
|
586
|
-
.text-left {
|
587
|
-
text-align: left;
|
588
|
-
}
|
589
|
-
|
590
|
-
.font {
|
591
|
-
font: 15px PingFang-SC-Medium;
|
592
|
-
color: #333333;
|
593
|
-
}
|
594
|
-
|
595
|
-
.btn-photo {
|
596
|
-
border: 0;
|
597
|
-
border-radius: 7px;
|
598
|
-
background-color: #7dc1f4;
|
599
|
-
font: 15px PingFang-SC-Bold;
|
600
|
-
height: 20%;
|
601
|
-
}
|
602
|
-
|
603
|
-
.div-photo {
|
604
|
-
width: auto;
|
605
|
-
height: auto;
|
606
|
-
/* margin-top: 10px; */
|
607
|
-
position: absolute;
|
608
|
-
bottom: 10px;
|
609
|
-
right: 10px;
|
610
|
-
}
|
611
|
-
</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)" style="color: #00b3ee;text-decoration:none;">{{ userinfo.f_userinfo_code }}</label><label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;" @click="upuserinfo(userinfo.f_userinfoid)">信息变更</label>
|
10
|
+
</p>
|
11
|
+
</div>
|
12
|
+
<div class="col-xs-12" style="padding: 2px 0">
|
13
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户名称:</b></p>
|
14
|
+
<p class="panel-title col-xs-7 text-left input-font">{{ userinfo.f_user_name }}</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_check_type }}
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
<div class="col-xs-12" style="padding: 2px 0">
|
22
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户电话:</b></p>
|
23
|
+
<input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_user_phone2 ? userinfo.f_user_phone2 : userinfo.f_user_phone }}" v-model="userinfo.f_user_phone"/>
|
24
|
+
|
25
|
+
</div>
|
26
|
+
<!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
|
27
|
+
<!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
|
28
|
+
<!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
|
29
|
+
|
30
|
+
<!-- </div>-->
|
31
|
+
<div class="col-xs-12" style="padding: 2px 0">
|
32
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户小区:</b></p>
|
33
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
|
34
|
+
</div>
|
35
|
+
<div class="col-xs-12" style="padding: 2px 0">
|
36
|
+
<p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户地址:</b></p>
|
37
|
+
<p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_address }}</p>
|
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 col-xs-7 text-left input-font">{{ userinfo.f_state }}</p>
|
42
|
+
</div>
|
43
|
+
<div class="col-xs-12">
|
44
|
+
<button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone" @click="updatePhone(userinfo.f_user_phone,userinfo.f_userinfoid)">电话修改</button>
|
45
|
+
<button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>
|
46
|
+
</div>
|
47
|
+
<div class="col-xs-12">
|
48
|
+
<button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')" @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改</button>
|
49
|
+
<!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<div class="panel-body">
|
53
|
+
<div v-show="false" class="row repair-info-content auto">
|
54
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
55
|
+
<label class="control-label">
|
56
|
+
<nobr>到达时间:</nobr>
|
57
|
+
</label>
|
58
|
+
<span>{{f_onsite_time}}</span>
|
59
|
+
</div>
|
60
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-if="data.f_date_leave">
|
61
|
+
<label class="control-label">
|
62
|
+
<nobr>离开时间:</nobr>
|
63
|
+
</label>
|
64
|
+
<span>{{f_offsite_time}}</span>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
|
69
|
+
<div class="form-group" :class="style__">
|
70
|
+
<span class="col-md-3 col-sm-4 col-xs-4 text-left"><img src="../../../assets/housestyle.png" style="width: 20px;margin-bottom: 5px;text-align: left" alt="">入户状态:</span>
|
71
|
+
<div :class="style__" class="col-md-9 col-sm-8 col-xs-8 text-center">
|
72
|
+
<input type="radio" name="enterstatus" v-model="f_entry_status" id="nopeople" value="到访不遇">到访不遇
|
73
|
+
<input type="radio" name="enterstatus" v-model="f_entry_status" id="rejectchecck" value="拒检">拒检
|
74
|
+
<input type="radio" name="enterstatus" v-model="f_entry_status" id="enterhouse" value="入户">入户
|
75
|
+
</div>
|
76
|
+
<div class="form-group col-sm-12 col-xs-12" :class="style__" v-show="f_entry_status=='到访不遇'">
|
77
|
+
<label class="text-left font">到访不遇照片:</label>
|
78
|
+
<div class="auto">
|
79
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
80
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
81
|
+
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
82
|
+
<div class="col-sm-4">
|
83
|
+
<img-self :src="f_noanswer_path" alt="到访不遇照片" width="150" height="200"></img-self>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
<div class="row text-right div-photo" :class="style__">
|
87
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_noanswer_path', '到访不遇照片')">拍照</button>
|
88
|
+
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_noanswer_path', this.f_noanswer_path)" style="width: 25%;"></img>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<div class="auto">
|
94
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
95
|
+
<div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
96
|
+
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
97
|
+
<div class="col-sm-4">
|
98
|
+
<img-self :src="f_noanswer1_path" alt="到访不遇照片" width="150" height="200"></img-self>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
<div class="row text-right div-photo" :class="style__">
|
102
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_noanswer1_path', '到访不遇照片')">拍照</button>
|
103
|
+
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_noanswer1_path', this.f_noanswer_path)" style="width: 25%;"></img>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
</div>
|
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" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
114
|
+
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
115
|
+
<div class="col-sm-4">
|
116
|
+
<img-self :src="f_rejectcheck_path" alt="拒检照片" width="150" height="200"></img-self>
|
117
|
+
</div>
|
118
|
+
</div>
|
119
|
+
<div class="row text-right div-photo">
|
120
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_rejectcheck_path', '拒检照片')">拍照</button>
|
121
|
+
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_rejectcheck_path', this.f_rejectcheck_path)" style="width: 25%;"></img>
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
<div class="auto">
|
127
|
+
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
128
|
+
<div class="panel-body panel-self" 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-sm-4">
|
131
|
+
<img-self :src="f_rejectcheck1_path" alt="拒检照片" width="150" height="200"></img-self>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
<div class="row text-right div-photo">
|
135
|
+
<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_rejectcheck1_path', '拒检照片')">拍照</button>
|
136
|
+
<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_rejectcheck1_path', this.f_rejectcheck_path)" style="width: 25%;"></img>
|
137
|
+
</div>
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
<div :class="style__" class="form-group" v-show="f_usegas == '未使用'">
|
144
|
+
<sapn class="text-left col-md-12 col-sm-12 col-xs-12">处置方式:</sapn>
|
145
|
+
<div class="col-xs-12 col-sm-12 col-md-12">
|
146
|
+
<input type="checkbox" v-model="f_no_gas_device">无燃气具
|
147
|
+
<input type="checkbox" v-model="f_close_valve">关闭表前阀
|
148
|
+
<input type="checkbox" v-model="f_unload_battery">取下表内电池
|
149
|
+
</div>
|
150
|
+
</div>
|
151
|
+
<div class="auto app-text" style="margin-top: 5px;" v-if="this.$parent.$parent.role != 'view'">
|
152
|
+
<div class="panel" style="padding: 60px 7px 10px 0px;">
|
153
|
+
<div class="panel-body panel-self">
|
154
|
+
<div v-show="false" class="row">
|
155
|
+
<p class="panel-title col-xs-4 text-left font">建档时间</p>
|
156
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ newfile_date }}</p>
|
157
|
+
</div>
|
158
|
+
<div class="row" v-if="last_check_date != null && last_check_date != ''">
|
159
|
+
<p class="panel-title col-xs-4 text-left font">上次安检时间</p>
|
160
|
+
<p class="panel-title col-xs-8 text-left input-font">{{ last_check_date }}</p>
|
161
|
+
</div>
|
162
|
+
<div class="row">
|
163
|
+
<p class="panel-title col-xs-4 text-left font">上次安检状态</p>
|
164
|
+
<p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date != null && last_check_date != ''">安检完成</p>
|
165
|
+
<p class="panel-title col-xs-8 text-left input-font" v-if="last_check_date == null || last_check_date == ''">未安检</p>
|
166
|
+
</div>
|
167
|
+
<div class="row" v-if="last_check_date != null && last_check_date != ''">
|
168
|
+
<p class="panel-title col-xs-4 text-left font">上次安检结果</p>
|
169
|
+
<p class="panel-title col-xs-8 text-left input-font" :class="last_check_result=='正常'?'':'color-red'">{{last_check_result}}</p>
|
170
|
+
<div v-for="data in last_check_data.data" class="panel-title col-xs-offset-4 col-xs-8 text-left input-font">
|
171
|
+
<p v-for="(key,item) in data">
|
172
|
+
{{key}}:{{item}}
|
173
|
+
</p>
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
</div>
|
177
|
+
</div>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
</div>
|
181
|
+
<div v-if="showbModal">
|
182
|
+
<modal :show.sync="showbModal" v-ref:modal backdrop="false">
|
183
|
+
<div slot="modal-header" class="modal-header">
|
184
|
+
<h4 class="modal-title">
|
185
|
+
选择表型号
|
186
|
+
</h4>
|
187
|
+
</div>
|
188
|
+
<div slot="modal-body" class="modal-body">
|
189
|
+
<div class="col-xs-12">
|
190
|
+
|
191
|
+
<v-select :value.sync="biaoxinghao" v-model='biaoxinghao'
|
192
|
+
:value-single="true"
|
193
|
+
class="select_list select"
|
194
|
+
:options='gmlist' placeholder='请选择表型号'
|
195
|
+
close-on-select width="100%"></v-select>
|
196
|
+
</div>
|
197
|
+
<div class="col-xs-12" style="height: 10px">
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
<div slot="modal-footer" class="modal-footer">
|
203
|
+
<button class="btn btn-default" @click="biaoxinghaook()">确认</button>
|
204
|
+
<button class="btn btn-default" @click="biaoxinghaocancel()">取消</button>
|
205
|
+
</div>
|
206
|
+
</modal>
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
</template>
|
210
|
+
|
211
|
+
<script>
|
212
|
+
import { HttpResetClass } from 'vue-client'
|
213
|
+
import * as Util from "../../Util";
|
214
|
+
import Vue from "vue";
|
215
|
+
import RadioGroup from "vue-client/src/vue-strap/src/radioGroup";
|
216
|
+
import Radio from "vue-client/src/vue-strap/src/radioBtn";
|
217
|
+
|
218
|
+
export default {
|
219
|
+
name: "SafecheckUserInfo",
|
220
|
+
props: ['userinfo'],
|
221
|
+
data() {
|
222
|
+
return this.$parent.$parent.data
|
223
|
+
},
|
224
|
+
created(){
|
225
|
+
this.$set('showbModal',false)
|
226
|
+
console.log(this.showbModal)
|
227
|
+
this.$set('biaoxinghao','')
|
228
|
+
},
|
229
|
+
ready() {
|
230
|
+
console.log("77777777777777777")
|
231
|
+
console.log(JSON.stringify(this.userinfo.planmeterss))
|
232
|
+
// console.log(JSON.stringify(this.userinfo.planmeterss.f_meter_no))
|
233
|
+
// this.$set('userinfo.f_meter_no',this.userinfo.planmeterss.f_meter_no)
|
234
|
+
// console.log(JSON.stringify(this.userinfo.f_meter_no))
|
235
|
+
this.$set('beforephone',this.userinfo.f_user_phone)
|
236
|
+
this.$set('gmlist',[])
|
237
|
+
console.log(this.beforephone)
|
238
|
+
if(Vue.config.safecheck != undefined){
|
239
|
+
if(Vue.config.safecheck.SafecheckUserinfo != undefined){
|
240
|
+
if(Vue.config.safecheck.SafecheckUserinfo.updateuserphone != undefined) {
|
241
|
+
this.$set('updateuserphone',Vue.config.safecheck.SafecheckUserinfo.updateuserphone)
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
for (let i in this.userinfo) {
|
246
|
+
console.log(JSON.stringify(i) + ':' + JSON.stringify(this.userinfo[i]))
|
247
|
+
}
|
248
|
+
this.safecheckStateReady()
|
249
|
+
},
|
250
|
+
methods: {
|
251
|
+
updatebiaohao(f_meter_no,f_userinfo_id){
|
252
|
+
this.$showMessage("将用户 "+this.userinfo.f_user_name+"的机表表号从"+this.userinfo.planmeterss.f_meter_no+"修改为"+f_meter_no,['confirm', 'cancel']).then((butt)=>{
|
253
|
+
if(butt=="confirm"){
|
254
|
+
let http = new HttpResetClass()
|
255
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoHao`, {
|
256
|
+
f_meter_no:f_meter_no,
|
257
|
+
f_userinfo_id: f_userinfo_id
|
258
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
259
|
+
if(res.data.code == 200){
|
260
|
+
this.$showMessage('修改成功!')
|
261
|
+
}else{
|
262
|
+
this.$showMessage('修改失败!,网络异常')
|
263
|
+
}
|
264
|
+
})
|
265
|
+
}
|
266
|
+
})
|
267
|
+
},
|
268
|
+
biaoxinghaook(){
|
269
|
+
if (this.biaoxinghao==''){
|
270
|
+
this.$showMessage("请选择表型号")
|
271
|
+
return
|
272
|
+
}
|
273
|
+
console.log("开始更新")
|
274
|
+
console.log(this.biaoxinghao)
|
275
|
+
this.$showMessage("是否确定进行修改?",['confirm', 'cancel']).then((butt)=>{
|
276
|
+
if(butt=="confirm"){
|
277
|
+
let http = new HttpResetClass()
|
278
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdateBiaoXingHao`, {
|
279
|
+
biaoxinghao:this.biaoxinghao,
|
280
|
+
f_userinfo_id: this.userinfo.f_userinfoid
|
281
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
282
|
+
if(res.data.code == 200){
|
283
|
+
this.$showMessage('修改成功!')
|
284
|
+
console.log("开始关闭")
|
285
|
+
this.showbModal=false
|
286
|
+
}else{
|
287
|
+
this.$showMessage('修改失败!,网络异常')
|
288
|
+
}
|
289
|
+
})
|
290
|
+
}
|
291
|
+
})
|
292
|
+
},
|
293
|
+
biaoxinghaocancel(){
|
294
|
+
console.log("开始关闭")
|
295
|
+
this.showbModal=false
|
296
|
+
},
|
297
|
+
showbiaoxinghao(){
|
298
|
+
this.gmlist=[]
|
299
|
+
console.log(JSON.stringify(this.userinfo.planmeterss))
|
300
|
+
console.log("9999999999999999999999999999999")
|
301
|
+
let http1 = new HttpResetClass()
|
302
|
+
http1.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: {
|
303
|
+
items: 'gm.id,gm.f_meter_style',
|
304
|
+
tablename: 't_gasbrand gb LEFT JOIN t_gasmodel gm ON gb.id= gm.f_gasbrand_id ',
|
305
|
+
condition: `f_meter_brand = '${this.userinfo.planmeterss.f_aliasname}'`,
|
306
|
+
// condition: `f_meter_brand = 'this.userinfo.planmeterss'`,
|
307
|
+
orderitem: 'gm.id'
|
308
|
+
}}, {resolveMsg: null, rejectMsg: null}).then((ress) => {
|
309
|
+
ress.data.forEach(res=>{
|
310
|
+
this.gmlist.push({
|
311
|
+
label:res.f_meter_style,
|
312
|
+
value:res.id
|
313
|
+
})
|
314
|
+
})
|
315
|
+
console.log(JSON.stringify(this.gmlist))
|
316
|
+
console.log("8888888888888888888888")
|
317
|
+
this.showbModal=true
|
318
|
+
})
|
319
|
+
},
|
320
|
+
updatePhone(f_user_phone,f_userinfo_id){
|
321
|
+
|
322
|
+
this.$showMessage("将用户 "+this.userinfo.f_user_name+"的电话号码从"+this.beforephone+"修改为"+f_user_phone,['confirm', 'cancel']).then((butt)=>{
|
323
|
+
if(butt=="confirm"){
|
324
|
+
let http = new HttpResetClass()
|
325
|
+
http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdatePhone`, {
|
326
|
+
f_user_phone:f_user_phone,
|
327
|
+
f_userinfo_id: f_userinfo_id
|
328
|
+
}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
329
|
+
if(res.data.code == 200){
|
330
|
+
this.$showMessage('修改成功!')
|
331
|
+
}else{
|
332
|
+
this.$showMessage('修改失败!,网络异常')
|
333
|
+
}
|
334
|
+
})
|
335
|
+
}
|
336
|
+
})
|
337
|
+
},
|
338
|
+
upuserinfo(f_userinfo_id) {
|
339
|
+
this.$dispatch('gotoson', {
|
340
|
+
_this: this.$parent.$parent,
|
341
|
+
title: '档案信息变更',
|
342
|
+
safe: false
|
343
|
+
})
|
344
|
+
this.$parent.$parent.$goto('PhoneUpUserinfo', {f_userinfo_id: f_userinfo_id,f_source:'安检'})
|
345
|
+
},
|
346
|
+
searchHistory(f_userinfo_id) {
|
347
|
+
this.$dispatch('gotoson', {
|
348
|
+
_this: this.$parent.$parent,
|
349
|
+
title: '购气记录',
|
350
|
+
safe: false
|
351
|
+
})
|
352
|
+
this.$parent.$parent.$goto('phone-sell-info', {f_userinfo_id: f_userinfo_id})
|
353
|
+
},
|
354
|
+
cameraCallBack(prop, fileName) {
|
355
|
+
HostApp.__this__.$set(prop, fileName + '?' + Math.random())
|
356
|
+
console.log('photo file name:' + HostApp.__this__.f_nongasuser_path)
|
357
|
+
HostApp.__callback__ = null
|
358
|
+
HostApp.__this__ = null
|
359
|
+
},
|
360
|
+
takePic(prop, title) {
|
361
|
+
HostApp.__callback__ = this.cameraCallBack
|
362
|
+
HostApp.__this__ = this
|
363
|
+
console.log('this[prop]:' + this[prop])
|
364
|
+
let fileName
|
365
|
+
if (!this[prop] || this[prop].includes("nopic.png")) {
|
366
|
+
fileName = Util.guid() + '-' + prop + '.jpg'
|
367
|
+
} else {
|
368
|
+
fileName = Util.getFileName(this[prop])
|
369
|
+
}
|
370
|
+
HostApp._open_a_page({
|
371
|
+
type: 'boomerang',
|
372
|
+
page: 'com.aofeng.hybrid.android.peripheral.CameraActivity',
|
373
|
+
param: {
|
374
|
+
file: fileName,
|
375
|
+
requestCode: 111,
|
376
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");',
|
377
|
+
watermark: title + '\t时间:' + Util.toStandardTimeString() + '\t' + Vue.user.name
|
378
|
+
}
|
379
|
+
})
|
380
|
+
},
|
381
|
+
delfile(prop, fileName) {
|
382
|
+
if (fileName == Vue.nopic)
|
383
|
+
return
|
384
|
+
else {
|
385
|
+
HostApp.delfile(fileName)
|
386
|
+
this[prop] = Vue.nopic
|
387
|
+
}
|
388
|
+
},
|
389
|
+
setEntryClass(val) {
|
390
|
+
if (val == '到访不遇') {
|
391
|
+
this.f_usegas = ''
|
392
|
+
this.$set('f_entry_class', 'warning')
|
393
|
+
} else if (val == '拒检') {
|
394
|
+
this.f_usegas = ''
|
395
|
+
this.$set('f_entry_class', 'danger')
|
396
|
+
} else if (val == '入户') {
|
397
|
+
this.$set('f_entry_class', 'success')
|
398
|
+
}
|
399
|
+
},
|
400
|
+
setUsegas(val) {
|
401
|
+
if (val == '未使用')
|
402
|
+
this.$set('f_useclass', 'default')
|
403
|
+
if (val == '已使用')
|
404
|
+
this.$set('f_useclass', 'success')
|
405
|
+
},
|
406
|
+
start() {
|
407
|
+
this.$parent.$parent.isStrat = true
|
408
|
+
this.$set('action', !this.action)
|
409
|
+
this.$set('f_onsite_time', Util.toStandardTimeString())
|
410
|
+
},
|
411
|
+
safecheckStateReady() {
|
412
|
+
console.log('进入paperState====>', this.$parent.$parent.showBack)
|
413
|
+
console.log('parent.item====>', this.$parent.$parent.item)
|
414
|
+
console.log('model====>', this.$parent.$parent.model)
|
415
|
+
if (!this.$parent.$parent.showBack) {
|
416
|
+
this.$parent.$parent.showBack = true
|
417
|
+
}
|
418
|
+
//兼容下-如果没有通过外层查询带进来最新安检时间,就拿本地单子里存的上次安检时间
|
419
|
+
if(this.$parent.$parent.item.f_plan_meters[0].f_last_check_date){
|
420
|
+
this.$set('last_check_date', this.$parent.$parent.item.f_plan_meters[0].f_last_check_date)
|
421
|
+
this.$set('newfile_date', this.$parent.$parent.item.f_plan_meters[0].f_newfile_date)
|
422
|
+
if (this.$parent.$parent.item.f_plan_meters[0].f_last_check_result) {
|
423
|
+
let checkResult = JSON.parse(this.$parent.$parent.item.f_plan_meters[0].f_last_check_result)
|
424
|
+
this.$set('last_check_result', checkResult.result)
|
425
|
+
this.$set('last_check_data.data', checkResult.data)
|
426
|
+
} else {
|
427
|
+
this.$set('last_check_result', '')
|
428
|
+
this.$set('last_check_data.data', [])
|
429
|
+
}
|
430
|
+
}else{
|
431
|
+
this.$set('last_check_date', this.$parent.$parent.item.f_last_check_date)
|
432
|
+
if (this.$parent.$parent.item.f_last_check_result) {
|
433
|
+
let checkResult = JSON.parse(this.$parent.$parent.item.f_last_check_result)
|
434
|
+
this.$set('last_check_result', checkResult.result)
|
435
|
+
this.$set('last_check_data.data', checkResult.data)
|
436
|
+
} else {
|
437
|
+
this.$set('last_check_result', '')
|
438
|
+
this.$set('last_check_data.data', [])
|
439
|
+
}
|
440
|
+
}
|
441
|
+
|
442
|
+
this.$set('upUserinfoSta', '否')
|
443
|
+
this.upUserinfoSta=this.$appdata.getSingleValue('安检修改档案信息')
|
444
|
+
|
445
|
+
if (this.$parent.$parent.role == 'inspect' && this.f_complete != '已完成') {
|
446
|
+
this.start()
|
447
|
+
}
|
448
|
+
if (this.$parent.$parent.data.f_onsite_time) {
|
449
|
+
console.log('已经开始安检')
|
450
|
+
this.$parent.$parent.startClick = true
|
451
|
+
}
|
452
|
+
this.action = true
|
453
|
+
console.log('this.f_onsite_time', this.f_onsite_time)
|
454
|
+
if (this.f_onsite_time) {
|
455
|
+
this.$parent.$parent.isStrat = true
|
456
|
+
this.$parent.$parent.data.f_onsite_time = Util.toStandardTimeString()
|
457
|
+
}
|
458
|
+
if (this.$parent.$parent.role == 'repair') {
|
459
|
+
this.$set('style__', 'divmask')
|
460
|
+
this.$set('style_view_', '')
|
461
|
+
} else if (this.$parent.$parent.role == 'view') {
|
462
|
+
this.$set('style__', 'divmask')
|
463
|
+
this.$set('style_view_', 'divmask')
|
464
|
+
console.log('set style for ....')
|
465
|
+
} else {
|
466
|
+
this.$set('style__', '')
|
467
|
+
this.$set('style_view_', '')
|
468
|
+
}
|
469
|
+
if (!this.f_nongasuser_path)
|
470
|
+
this.$set('f_nongasuser_path', '')
|
471
|
+
if (!this.f_noanswer_path)
|
472
|
+
this.$set('f_noanswer_path', '')
|
473
|
+
if (!this.f_rejectcheck_path)
|
474
|
+
this.$set('f_rejectcheck_path', '')
|
475
|
+
|
476
|
+
if (!this.f_noanswer1_path)
|
477
|
+
this.$set('f_noanswer1_path', '')
|
478
|
+
if (!this.f_rejectcheck1_path)
|
479
|
+
this.$set('f_rejectcheck1_path', '')
|
480
|
+
|
481
|
+
this.$watch('f_usegas', (val) => {
|
482
|
+
this.setUsegas(val)
|
483
|
+
})
|
484
|
+
|
485
|
+
this.setEntryClass(this.f_entry_status)
|
486
|
+
this.$watch('f_entry_status', (val) => {
|
487
|
+
this.setEntryClass(val)
|
488
|
+
|
489
|
+
if (val == '到访不遇') {
|
490
|
+
this.f_rejectcheck_path = Vue.nopic
|
491
|
+
this.f_rejectcheck1_path = Vue.nopic
|
492
|
+
}
|
493
|
+
if (val == '拒检') {
|
494
|
+
this.f_noanswer_path = Vue.nopic
|
495
|
+
this.f_noanswer1_path = Vue.nopic
|
496
|
+
}
|
497
|
+
|
498
|
+
if (val != '入户') {
|
499
|
+
//清理安检概括
|
500
|
+
this.f_no_gas_device = false
|
501
|
+
this.f_unload_battery = false
|
502
|
+
this.f_close_valve = false
|
503
|
+
//清理全局隐患
|
504
|
+
this.f_defect_cramped = false
|
505
|
+
this.f_defect_bedroom = false
|
506
|
+
this.f_defect_longpipe = false
|
507
|
+
this.f_defect_firesource = false
|
508
|
+
this.f_defect_explosive = false
|
509
|
+
this.f_defect_viacabinet = false
|
510
|
+
this.f_defect_intermittent = false
|
511
|
+
this.f_defect_nearfire = false
|
512
|
+
this.f_defect_openkitchen = false
|
513
|
+
this.f_defect_hang = false
|
514
|
+
this.f_cramped_path = Vue.nopic
|
515
|
+
//用户评价
|
516
|
+
this.f_client_evaluation = null
|
517
|
+
//清设备
|
518
|
+
this.$set('f_meters', [])
|
519
|
+
this.$set('f_plumbs', [])
|
520
|
+
this.$set('f_valves', [])
|
521
|
+
this.$set('f_inner_plumbs', [])
|
522
|
+
this.$set('f_alarms', [])
|
523
|
+
this.$set('f_cookers', [])
|
524
|
+
this.$set('f_heaters', [])
|
525
|
+
this.$set('f_furnaces', [])
|
526
|
+
}else{
|
527
|
+
this.f_rejectcheck_path = Vue.nopic
|
528
|
+
this.f_noanswer_path = Vue.nopic
|
529
|
+
this.f_rejectcheck1_path = Vue.nopic
|
530
|
+
this.f_noanswer1_path = Vue.nopic
|
531
|
+
this.f_novisit_reason=null
|
532
|
+
}
|
533
|
+
})
|
534
|
+
}
|
535
|
+
},
|
536
|
+
components: {
|
537
|
+
RadioGroup,
|
538
|
+
Radio
|
539
|
+
},
|
540
|
+
}
|
541
|
+
</script>
|
542
|
+
|
543
|
+
<style scoped>
|
544
|
+
|
545
|
+
.font {
|
546
|
+
font: 15px PingFang-SC-Medium;
|
547
|
+
color: #666666;
|
548
|
+
}
|
549
|
+
|
550
|
+
.input-font {
|
551
|
+
font: 15px PingFang-SC-Medium;
|
552
|
+
color: #333333;
|
553
|
+
}
|
554
|
+
|
555
|
+
.app-text {
|
556
|
+
font-size: 12px;
|
557
|
+
}
|
558
|
+
|
559
|
+
.panel-self {
|
560
|
+
border-radius: 10px;
|
561
|
+
border: 1px solid #499EDF;
|
562
|
+
background-color: #F8F8F8;
|
563
|
+
}
|
564
|
+
|
565
|
+
.app-text {
|
566
|
+
font-size: 12px;
|
567
|
+
}
|
568
|
+
|
569
|
+
.panel-self {
|
570
|
+
border-radius: 5px;
|
571
|
+
border: 1px solid #c5e1f7;
|
572
|
+
background-color: #F2F6FA;
|
573
|
+
}
|
574
|
+
|
575
|
+
.font {
|
576
|
+
font: 15px PingFang-SC-Medium;
|
577
|
+
color: #333333;
|
578
|
+
}
|
579
|
+
|
580
|
+
.panel-self {
|
581
|
+
border-radius: 5px;
|
582
|
+
border: 1px solid #c5e1f7;
|
583
|
+
background-color: #F2F6FA;
|
584
|
+
}
|
585
|
+
|
586
|
+
.text-left {
|
587
|
+
text-align: left;
|
588
|
+
}
|
589
|
+
|
590
|
+
.font {
|
591
|
+
font: 15px PingFang-SC-Medium;
|
592
|
+
color: #333333;
|
593
|
+
}
|
594
|
+
|
595
|
+
.btn-photo {
|
596
|
+
border: 0;
|
597
|
+
border-radius: 7px;
|
598
|
+
background-color: #7dc1f4;
|
599
|
+
font: 15px PingFang-SC-Bold;
|
600
|
+
height: 20%;
|
601
|
+
}
|
602
|
+
|
603
|
+
.div-photo {
|
604
|
+
width: auto;
|
605
|
+
height: auto;
|
606
|
+
/* margin-top: 10px; */
|
607
|
+
position: absolute;
|
608
|
+
bottom: 10px;
|
609
|
+
right: 10px;
|
610
|
+
}
|
611
|
+
</style>
|