safecheck-client 3.0.39-6 → 3.0.39-8

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