safecheck-client 3.0.39-6 → 3.0.39-8

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