safecheck-client 3.0.39-8 → 3.0.39-81

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