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