safecheck-client 3.0.39-73 → 3.0.39-74

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