safecheck-client 3.0.34-7 → 3.0.34-9

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