safecheck-client 3.0.35-6 → 3.0.35-61

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