safecheck-client 3.0.30-3 → 3.0.30-34

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 (46) hide show
  1. package/examples/SafePlan-liaoyuan/App.vue +3 -1
  2. package/package.json +4 -3
  3. package/src/components/android/AddPlanItem.vue +5 -2
  4. package/src/components/android/CurrentCreate.vue +3 -1
  5. package/src/components/android/UploadPage.vue +228 -338
  6. package/src/components/paper/PlanChooser.vue +2 -2
  7. package/src/components/pc/Edit.vue +50 -0
  8. package/src/components/pc/NewCheckpaper.vue +9 -5
  9. package/src/components/pc/PaperEdit.vue +148 -0
  10. package/src/components/pc/SelectCheckPlanAndNoPLan.vue +3 -0
  11. package/src/components/querycheckpaper/CheckSearchUser.vue +10 -1
  12. package/src/filiale/bayan/android/PhoneUpUserinfo.vue +1377 -1377
  13. package/src/filiale/hanzhong/android/PaperFeedback.vue +1477 -0
  14. package/src/filiale/hanzhong/android/SafecheckDevices.vue +1313 -0
  15. package/src/filiale/hanzhong/android/SafecheckOrderV.vue +2683 -0
  16. package/src/filiale/hanzhong/android.js +5 -1
  17. package/src/filiale/huatong/android/SafecheckOrderV.vue +2426 -2418
  18. package/src/filiale/jingyang/android/PhoneUpUserinfo.vue +34 -34
  19. package/src/filiale/jingyang/pc/PaperList.vue +1 -2
  20. package/src/filiale/kelai/android/AddPlanItem.vue +488 -0
  21. package/src/filiale/kelai/android.js +1 -0
  22. package/src/filiale/pingxiang/pc/DefectPaperNew.vue +1 -1
  23. package/src/filiale/qianneng/android/PaperFeedback.vue +40 -0
  24. package/src/filiale/qingjian/android/PhoneUpUserinfo.vue +9 -3
  25. package/src/filiale/tongchuan/android/SafecheckDevices.vue +1 -0
  26. package/src/filiale/tongchuan/pc/PaperDefectMain.vue +2 -0
  27. package/src/filiale/wenxi/pc/DefectPaper.vue +1 -1
  28. package/src/filiale/yangchunboneng/android/CurrentCreate.vue +600 -598
  29. package/src/filiale/yangchunboneng/android/PaperFeedback.vue +20 -0
  30. package/src/filiale/yangchunboneng/pc/DefectPaperNew.vue +1 -1
  31. package/src/filiale/yangchunboneng/pc/PaperDefectMain.vue +2 -2
  32. package/src/filiale/yangchunboneng/pc/PaperList.vue +2 -2
  33. package/src/filiale/yongzhou/pc/NoCheckplanSafecheck.vue +230 -0
  34. package/src/filiale/yongzhou/pc/communityDetail.vue +16 -4
  35. package/src/filiale/yongzhou/pc/communityTypeDetailG.vue +8 -6
  36. package/src/filiale/yongzhou/pc/communityTypeDetailM.vue +8 -6
  37. package/src/filiale/yongzhou/pc/safeDetail.vue +18 -6
  38. package/src/filiale/yongzhou/pc/safeStatistics.vue +10 -0
  39. package/src/filiale/yongzhou/pc/safeStatisticsDay.vue +26 -6
  40. package/src/filiale/yongzhou/pc/safeStatisticsMonth.vue +20 -3
  41. package/src/filiale/yongzhou/pc/safeStatisticsYear.vue +10 -0
  42. package/src/filiale/yongzhou/pc/safeTable.vue +10 -2
  43. package/src/filiale/yongzhou/pc.js +1 -0
  44. package/src/filiale/zhongsheng/android/SafecheckUserInfo.vue +151 -53
  45. package/src/filiale/zhongsheng/pc/NewCheckpaper.vue +14 -0
  46. package/src/safecheck.js +6 -0
@@ -36,7 +36,16 @@
36
36
  <div class="col-sm-4 form-group">
37
37
  <label class="font_normal_body">小区名称:</label>
38
38
  <input style="width: 60%" class="input_search" v-model="model.f_residential_area"
39
- placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
39
+ placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
40
+ </div>
41
+ <div class="form-group col-sm-4">
42
+ <label class="font_normal_body">用户类型</label>
43
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
44
+ :value-single="true" style="width: 60%"
45
+ class="select_list select"
46
+ :options='$parent.$parent.user_types' placeholder='用户类型'
47
+ close-on-select
48
+ condition="tcpi.f_user_type = '{}'"></v-select>
40
49
  </div>
41
50
  <div class="col-sm-4 form-group" style="margin: 0">
42
51
  <role-selector-safe
@@ -167,6 +176,9 @@
167
176
  <th>
168
177
  <nobr>31日</nobr>
169
178
  </th>
179
+ <th>
180
+ <nobr>小计</nobr>
181
+ </th>
170
182
  </tr>
171
183
  </template>
172
184
  <template partial='body'>
@@ -204,7 +216,7 @@
204
216
  <td style="text-align: center">{{ row.day29 }}</td>
205
217
  <td style="text-align: center">{{ row.day30 }}</td>
206
218
  <td style="text-align: center">{{ row.day31 }}</td>
207
-
219
+ <td style="text-align: center">{{ row.countarea }}</td>
208
220
  </template>
209
221
  <template partial="foot">
210
222
  <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
@@ -239,6 +251,7 @@
239
251
  <td style="text-align: center">{{ model.sums.day29 }}</td>
240
252
  <td style="text-align: center">{{ model.sums.day30 }}</td>
241
253
  <td style="text-align: center">{{ model.sums.day31 }}</td>
254
+ <td style="text-align: center">{{ model.sums.countarea }}</td>
242
255
  </template>
243
256
  </data-grid>
244
257
  </criteria-paged>
@@ -285,7 +298,8 @@ export default {
285
298
  day28: '',
286
299
  day29: '',
287
300
  day30: '',
288
- day31: ''
301
+ day31: '',
302
+ countarea:''
289
303
  }),
290
304
  resids: {},
291
305
  searchData: {
@@ -324,8 +338,10 @@ export default {
324
338
  'day28': '28日',
325
339
  'day29': '29日',
326
340
  'day30': '30日',
327
- 'day31': '31日'
341
+ 'day31': '31日',
342
+ 'countarea':'小计'
328
343
  },
344
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
329
345
  printshow: false,
330
346
  defaultPrint: ['f_residential_area', 'day1',
331
347
  'day2',
@@ -357,12 +373,16 @@ export default {
357
373
  'day28',
358
374
  'day29',
359
375
  'day30',
360
- 'day31'],
376
+ 'day31','countarea'],
361
377
  sumsmodel: {},
362
378
  }
363
379
  },
364
380
  ready() {
365
- this.model.search('1=1')
381
+ let a = new Date()
382
+ let year = a.getFullYear()
383
+ let month = '0'+(a.getMonth()+1)
384
+ this.$refs.paged.$refs.criteria.model.start_time = year + '-'+ (month.substring(month.length-2))
385
+ this.$refs.paged.$refs.criteria.model.end_time = year + '-'+ (month.substring(month.length-2))
366
386
  },
367
387
  methods: {
368
388
  selfSearch(args) {
@@ -35,8 +35,17 @@
35
35
  </div>
36
36
  <div class="col-sm-4 form-group">
37
37
  <label class="font_normal_body">小区名称:</label>
38
- <input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="f_residential_area like '%{}%'">
38
+ <input style="width: 60%" class="input_search" v-model="model.f_residential_area" placeholder="请输入小区(可模糊查询)" condition="tcpi.f_residential_area like '%{}%'">
39
39
  </div>
40
+ <div class="form-group col-sm-4">
41
+ <label class="font_normal_body">用户类型</label>
42
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
43
+ :value-single="true" style="width: 60%"
44
+ class="select_list select"
45
+ :options='$parent.$parent.user_types' placeholder='用户类型'
46
+ close-on-select
47
+ condition="tcpi.f_user_type = '{}'"></v-select>
48
+ </div>
40
49
  <div class="col-sm-4 form-group" style="margin: 0">
41
50
  <role-selector-safe
42
51
  role-name="安检员"
@@ -108,6 +117,9 @@
108
117
  <th>
109
118
  <nobr>12月</nobr>
110
119
  </th>
120
+ <th>
121
+ <nobr>小计</nobr>
122
+ </th>
111
123
  </tr>
112
124
  </template>
113
125
  <template partial='body'>
@@ -126,6 +138,7 @@
126
138
  <td style="text-align: center">{{ row.month10 }}</td>
127
139
  <td style="text-align: center">{{ row.month11 }}</td>
128
140
  <td style="text-align: center">{{ row.month12 }}</td>
141
+ <td style="text-align: center">{{ row.countarea }}</td>
129
142
  </template>
130
143
  <template partial="foot">
131
144
  <td style="text-align: center" colspan="2"><span><b>合计:</b></span></td>
@@ -141,6 +154,7 @@
141
154
  <td style="text-align: center">{{ model.sums.month10 }}</td>
142
155
  <td style="text-align: center">{{ model.sums.month11 }}</td>
143
156
  <td style="text-align: center">{{ model.sums.month12 }}</td>
157
+ <td style="text-align: center">{{ model.sums.countarea }}</td>
144
158
  </template>
145
159
  </data-grid>
146
160
  </criteria-paged>
@@ -169,13 +183,15 @@ export default {
169
183
  month9: '',
170
184
  month10: '',
171
185
  month11: '',
172
- month12: ''
186
+ month12: '',
187
+ countarea: ''
173
188
  }),
174
189
  resids:{},
175
190
  searchData:{
176
191
  condition: "1=1",
177
192
  orgid: this.$login.f.orgid
178
193
  },
194
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
179
195
  excelHeaders:{
180
196
  'f_residential_area': '小区名称',
181
197
  'month1': '1月',
@@ -190,9 +206,10 @@ export default {
190
206
  'month10': '10月',
191
207
  'month11': '11月',
192
208
  'month12': '12月',
209
+ 'countarea':'小计'
193
210
  },
194
211
  printshow: false,
195
- defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12',],
212
+ defaultPrint: ['f_residential_area', 'month1', 'month2', 'month3', 'month4', 'month5', 'month6', 'month7', 'month8', 'month9', 'month10', 'month11', 'month12','countarea'],
196
213
  sumsmodel: {},
197
214
  }
198
215
  },
@@ -35,6 +35,15 @@
35
35
  <input type="text" class="input_search" v-model="model.f_residential_area"
36
36
  style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
37
37
  </div>
38
+ <div class="form-group col-sm-2">
39
+ <label class="font_normal_body">用户类型</label>
40
+ <v-select :value.sync="model.f_user_type" v-model='model.f_user_type'
41
+ :value-single="true" style="width: 60%"
42
+ class="select_list select"
43
+ :options='$parent.$parent.user_types' placeholder='用户类型'
44
+ close-on-select
45
+ condition="tcpi.f_user_type = '{}'"></v-select>
46
+ </div>
38
47
  <div class="col-sm-4 form-group" style="margin-top: 8px">
39
48
  <button class="button_search button_spacing" @click="search()">查询</button>
40
49
  <report-print class="button_export button_spacing" style="width:28%" id='shexian'></report-print>
@@ -79,6 +88,7 @@
79
88
  let model = new DataModel('rs/report/safeStatisticsYear', {})
80
89
  // model.f_filialeid = '(' + this.$login.f.orgid + ')'
81
90
  return {
91
+ user_types: [{label:'全部',value:''},{label:'民用',value:'民用'},{label:'非民用',value:'非民用'}],
82
92
  userid: this.$login.f.id,
83
93
  source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() == $organization$))`,
84
94
  model: model
@@ -14,7 +14,10 @@
14
14
  隐患类型明细表民用
15
15
  </button>
16
16
  <button class="button_spacing button_search" @click="showaudio(5)" :class="{color:searchs.search5}">
17
- 安检员明细
17
+ 安检员明细(有计划)
18
+ </button>
19
+ <button class="button_spacing button_search" @click="showaudio(9)" :class="{color:searchs.search9}">
20
+ 安检员明细(无计划)
18
21
  </button>
19
22
  <button class="button_spacing button_search" @click="showaudio(6)" :class="{color:searchs.search6}">
20
23
  安检日报表
@@ -58,6 +61,10 @@
58
61
  <div v-if="searchs.search8">
59
62
  <safe-statistics-year ></safe-statistics-year>
60
63
  </div>
64
+ <!--安检年报表-->
65
+ <div v-if="searchs.search9">
66
+ <no-checkplan-safecheck ></no-checkplan-safecheck>
67
+ </div>
61
68
  </template>
62
69
 
63
70
 
@@ -77,7 +84,8 @@ export default {
77
84
  search5: false,
78
85
  search6: false,
79
86
  search7: false,
80
- search8: false
87
+ search8: false,
88
+ search9: false
81
89
  },
82
90
  currentActiveSearch:''
83
91
  }
@@ -15,6 +15,7 @@ let specialComp = {
15
15
  "safe-statistics-day":(resolve) => { require(['./pc/safeStatisticsDay.vue'], resolve) },
16
16
  "safe-statistics-month":(resolve) => { require(['./pc/safeStatisticsMonth.vue'], resolve) },
17
17
  "safe-statistics-year":(resolve) => { require(['./pc/safeStatisticsYear.vue'], resolve) },
18
+ "no-checkplan-safecheck":(resolve) => { require(['./pc/NoCheckplanSafecheck.vue'], resolve) },
18
19
  }
19
20
  exports.specialComp = specialComp
20
21
 
@@ -4,7 +4,6 @@
4
4
  <div class="panel-body panel-self">
5
5
  <div class="col-xs-12" style="padding: 2px 0">
6
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
7
  <p class="panel-title col-xs-7 text-left input-font" >
9
8
  <label @click="searchHistory(userinfo.f_userinfoid)" style="color: #00b3ee;text-decoration:none;">{{ userinfo.f_userinfo_code }}</label><label v-if="upUserinfoSta=='是'" style="color: #00b3ee;text-decoration:none;" @click="upuserinfo(userinfo.f_userinfoid)">信息变更</label>
10
9
  </p>
@@ -21,18 +20,7 @@
21
20
  <div class="col-xs-12" style="padding: 2px 0">
22
21
  <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户电话:</b></p>
23
22
  <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"/>
24
-
25
23
  </div>
26
- <!-- <div class="col-xs-12" style="padding: 2px 0">-->
27
- <!-- <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>备用电话:</b></p>-->
28
- <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meters?userinfo.f_meters[0].f_rent_phone:null}}" v-model="userinfo.f_rent_phone"/>-->
29
-
30
- <!-- </div>-->
31
- <!-- <div class="col-xs-12" style="padding: 2px 0" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')">-->
32
- <!-- <p class="panel-title text-left font" style="width: 23%;float: left"><b>机表表号:</b></p>-->
33
- <!-- <input class="panel-title text-left input-font" style="width: 53%" value="{{ userinfo.f_meter_no }}" v-model="userinfo.f_meter_no"/>-->
34
-
35
- <!-- </div>-->
36
24
  <div class="col-xs-12" style="padding: 2px 0">
37
25
  <p class="panel-title col-xs-5 text-left font" style="width: 21%;float: left"><b>用户小区:</b></p>
38
26
  <p class="panel-title text-left input-font" style="width: 79%">{{ userinfo.f_residential_area }}</p>
@@ -52,7 +40,6 @@
52
40
  </div>
53
41
  <div class="col-xs-12">
54
42
  <button type="button" style="width: 45%;float: left" class="btn btn-primary" v-if="updateuserphone&&(userinfo.planmeterss.f_aliasname=='机表')" @click="updatebiaohao(userinfo.f_meter_no,userinfo.f_userinfoid)">表号修改</button>
55
- <!-- <button type="button" style="width: 45%;float: right" class="btn btn-primary" v-if="updateuserphone" @click="showbiaoxinghao()">表型号修改</button>-->
56
43
  </div>
57
44
  </div>
58
45
  <div class="panel-body">
@@ -83,15 +70,20 @@
83
70
  <label class="text-left font">到访不遇照片:</label>
84
71
  <div class="auto">
85
72
  <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">
73
+ <div class="panel-body panel-self"
74
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
87
75
  <div class="row" style="height: 240px;overflow: scroll;top: 1px">
88
- <div class="col-sm-4">
89
- <img-self :src="f_noanswer_path" alt="到访不遇照片" width="150" height="200"></img-self>
76
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
77
+ v-for="(index,img) in f_noanswers_path">
78
+ <img-self :src="img.f_noanswer_path" alt="到访不遇照片" :width="130" :height="160"></img-self>
79
+ <img src="../../../assets/删除.png" @click="delfile('f_noanswers_path', img.f_noanswer_path,index)"
80
+ style="width: 15px;margin-top: -80px" alt="">
90
81
  </div>
91
82
  </div>
92
83
  <div class="row text-right div-photo" :class="style__">
93
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_noanswer_path', '到访不遇照片')">拍照</button>
94
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_noanswer_path', this.f_noanswer_path)" style="width: 25%;"></img>
84
+ <button type="button" name="button" class="btn btn-primary btn-photo"
85
+ @click="takePic('f_noanswers_path', '到访不遇照片')">拍照
86
+ </button>
95
87
  </div>
96
88
  </div>
97
89
  </div>
@@ -101,15 +93,20 @@
101
93
  <label class="text-left font">拒检照片:</label>
102
94
  <div class="auto">
103
95
  <div class="panel" style="padding: 10px 10px 5px 10px;">
104
- <div class="panel-body panel-self" style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
96
+ <div class="panel-body panel-self"
97
+ style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
105
98
  <div class="row" style="height: 240px;overflow: scroll;top: 1px">
106
- <div class="col-sm-4">
107
- <img-self :src="f_rejectcheck_path" alt="拒检照片" width="150" height="200"></img-self>
99
+ <div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
100
+ v-for="(index,img) in f_rejectchecks_path">
101
+ <img-self :src="img.f_rejectcheck_path" alt="拒检照片" :width="130" :height="160"></img-self>
102
+ <img src="../../../assets/删除.png" @click="delfile('f_rejectchecks_path', img.f_rejectcheck_path,index)"
103
+ style="width: 15px;margin-top: -80px" alt="">
108
104
  </div>
109
105
  </div>
110
- <div class="row text-right div-photo">
111
- <button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_rejectcheck_path', '拒检照片')">拍照</button>
112
- &nbsp;&nbsp;&nbsp;&nbsp;<img src="../../../assets/remove.png" :class="style__" @click="delfile('f_rejectcheck_path', this.f_rejectcheck_path)" style="width: 25%;"></img>
106
+ <div class="row text-right div-photo" :class="style__">
107
+ <button type="button" name="button" class="btn btn-primary btn-photo"
108
+ @click="takePic('f_rejectchecks_path', '拒检照片')">拍照
109
+ </button>
113
110
  </div>
114
111
  </div>
115
112
  </div>
@@ -310,23 +307,6 @@ export default {
310
307
  }
311
308
  })
312
309
  },
313
- // updatePhones(f_rent_phone,f_userinfo_id){
314
- // this.$showMessage("将用户 "+this.userinfo.f_meters[0].f_rent_phone+"的电话号码从"+this.beforesphone+"修改为"+f_rent_phone,['confirm', 'cancel']).then((butt)=>{
315
- // if(butt=="confirm"){
316
- // let https = new HttpResetClass()
317
- // https.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/safecheckUpdatePhone`, {
318
- // f_rent_phone:f_rent_phone,
319
- // f_userinfo_id: f_userinfo_id,
320
- // }, {resolveMsg: null, rejectMsg: null}).then((res) => {
321
- // if(res.data.code == 200){
322
- // this.$showMessage('修改成功!')
323
- // }else{
324
- // this.$showMessage('修改失败!,网络异常')
325
- // }
326
- // })
327
- // }
328
- // })
329
- // },
330
310
  upuserinfo(f_userinfo_id) {
331
311
  this.$dispatch('gotoson', {
332
312
  _this: this.$parent.$parent,
@@ -344,9 +324,20 @@ export default {
344
324
  //tag
345
325
  this.$parent.$parent.$goto('phone-sell-info-xin', {f_userinfo_id: f_userinfo_id})
346
326
  },
347
- cameraCallBack(prop, fileName) {
348
- HostApp.__this__.$set(prop, fileName + '?' + Math.random())
349
- //tag
327
+ cameraCallBack (prop, fileName) {
328
+ if (prop == 'f_noanswers_path') {
329
+ let f_noanswer_path = fileName + '?' + Math.random()
330
+ HostApp.__this__.f_noanswers_path.push({
331
+ f_noanswer_path: f_noanswer_path
332
+ })
333
+ } else if (prop == 'f_rejectchecks_path') {
334
+ let f_rejectcheck_path = fileName + '?' + Math.random()
335
+ HostApp.__this__.f_rejectchecks_path.push({
336
+ f_rejectcheck_path: f_rejectcheck_path
337
+ })
338
+ }else {
339
+ HostApp.__this__.$set(prop, fileName + '?' + Math.random())
340
+ }
350
341
  HostApp.__callback__ = null
351
342
  HostApp.__this__ = null
352
343
  },
@@ -355,10 +346,24 @@ export default {
355
346
  HostApp.__this__ = this
356
347
  //tag
357
348
  let fileName
358
- if (!this[prop] || this[prop].includes("nopic.png")) {
349
+ if (prop == 'f_noanswers_path') {
350
+ //tag
351
+ if (this.f_noanswers_path.length == 3) {
352
+ return
353
+ }
359
354
  fileName = Util.guid() + '-' + prop + '.jpg'
360
- } else {
355
+ } else if (prop == 'f_rejectchecks_path') {
356
+ //tag
357
+ if (this.f_rejectchecks_path.length == 3) {
358
+ return
359
+ }
360
+ fileName = Util.guid() + '-' + prop + '.jpg'
361
+ }else {
362
+ if (!this[prop] || this[prop].includes('nopic.png')) {
363
+ fileName = Util.guid() + '-' + prop + '.jpg'
364
+ } else {
361
365
  fileName = Util.getFileName(this[prop])
366
+ }
362
367
  }
363
368
  HostApp._open_a_page({
364
369
  type: 'boomerang',
@@ -371,12 +376,20 @@ export default {
371
376
  }
372
377
  })
373
378
  },
374
- delfile(prop, fileName) {
375
- if (fileName == Vue.nopic)
379
+ delfile (prop, fileName, index) {
380
+ if (fileName == Vue.nopic) {
376
381
  return
377
- else {
378
- HostApp.delfile(fileName)
379
- this[prop] = Vue.nopic
382
+ } else {
383
+ if (prop == 'f_noanswers_path') {
384
+ this.f_noanswers_path.splice(index, 1)
385
+ HostApp.delfile(fileName)
386
+ }else if (prop == 'f_rejectchecks_path') {
387
+ this.f_rejectchecks_path.splice(index, 1)
388
+ HostApp.delfile(fileName)
389
+ } else {
390
+ HostApp.delfile(fileName)
391
+ this[prop] = Vue.nopic
392
+ }
380
393
  }
381
394
  },
382
395
  setEntryClass(val) {
@@ -461,10 +474,85 @@ export default {
461
474
  }
462
475
  if (!this.f_nongasuser_path)
463
476
  this.$set('f_nongasuser_path', '')
464
- if (!this.f_noanswer_path)
477
+ //到访多张照片
478
+ this.$set('f_noanswers_path', [])
479
+ if (this.f_noanswer_path) {
480
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer_path})
481
+ } else {
465
482
  this.$set('f_noanswer_path', '')
466
- if (!this.f_rejectcheck_path)
483
+ }
484
+ if (this.f_noanswer1_path) {
485
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer1_path})
486
+ } else {
487
+ this.$set('f_noanswer1_path', '')
488
+ }
489
+ if (this.f_noanswer2_path) {
490
+ this.f_noanswers_path.push({f_noanswer_path: this.f_noanswer2_path})
491
+ } else {
492
+ this.$set('f_noanswer2_path', '')
493
+ }
494
+ //拒检多张照片
495
+ this.$set('f_rejectchecks_path', [])
496
+ if (this.f_rejectcheck_path) {
497
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck_path})
498
+ } else {
467
499
  this.$set('f_rejectcheck_path', '')
500
+ }
501
+ if (this.f_rejectcheck1_path) {
502
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck1_path})
503
+ } else {
504
+ this.$set('f_rejectcheck1_path', '')
505
+ }
506
+ if (this.f_rejectcheck2_path) {
507
+ this.f_rejectchecks_path.push({f_rejectcheck_path: this.f_rejectcheck2_path})
508
+ } else {
509
+ this.$set('f_rejectcheck2_path', '')
510
+ }
511
+
512
+ this.$watch('f_noanswers_path.length', () => {
513
+ //tag)
514
+ for (let i = 0; i < 3; i++) {
515
+
516
+ if (this.f_noanswers_path[i] && this.f_noanswers_path[i].f_noanswer_path) {
517
+ //tag)
518
+ if (i == 0) {
519
+ this.f_noanswer_path = this.f_noanswers_path[i].f_noanswer_path
520
+ } else {
521
+ this['f_noanswer' + i + '_path'] = this.f_noanswers_path[i].f_noanswer_path
522
+ }
523
+ } else {
524
+ //tag)
525
+ if (i == 0) {
526
+ this.f_noanswer_path = null
527
+ } else {
528
+ this['f_noanswer' + i + '_path'] = null
529
+ }
530
+ }
531
+ }
532
+ //tag
533
+ })
534
+ this.$watch('f_rejectchecks_path.length', () => {
535
+ //tag)
536
+ for (let i = 0; i < 3; i++) {
537
+
538
+ if (this.f_rejectchecks_path[i] && this.f_rejectchecks_path[i].f_rejectcheck_path) {
539
+ //tag)
540
+ if (i == 0) {
541
+ this.f_rejectcheck_path = this.f_rejectchecks_path[i].f_rejectcheck_path
542
+ } else {
543
+ this['f_rejectcheck' + i + '_path'] = this.f_rejectchecks_path[i].f_rejectcheck_path
544
+ }
545
+ } else {
546
+ //tag)
547
+ if (i == 0) {
548
+ this.f_rejectcheck_path = null
549
+ } else {
550
+ this['f_rejectcheck' + i + '_path'] = null
551
+ }
552
+ }
553
+ }
554
+ //tag
555
+ })
468
556
 
469
557
 
470
558
  this.$watch('f_usegas', (val) => {
@@ -477,9 +565,15 @@ export default {
477
565
 
478
566
  if (val == '到访不遇') {
479
567
  this.f_rejectcheck_path = Vue.nopic
568
+ this.f_rejectcheck1_path = Vue.nopic
569
+ this.f_rejectcheck2_path = Vue.nopic
570
+ this.f_rejectchecks_path = []
480
571
  }
481
572
  if (val == '拒检') {
482
573
  this.f_noanswer_path = Vue.nopic
574
+ this.f_noanswer_path1 = Vue.nopic
575
+ this.f_noanswer_path2 = Vue.nopic
576
+ this.f_noanswers_path = []
483
577
  }
484
578
 
485
579
  if (val != '入户') {
@@ -510,6 +604,10 @@ export default {
510
604
  this.$set('f_cookers', [])
511
605
  this.$set('f_heaters', [])
512
606
  this.$set('f_furnaces', [])
607
+ } else {
608
+ this.f_rejectcheck_path = Vue.nopic
609
+ this.f_noanswer_path = Vue.nopic
610
+ this.f_novisit_reason = null
513
611
  }
514
612
  })
515
613
  }
@@ -380,6 +380,16 @@ div {
380
380
  <img-self-safe v-if="this.paperdata.f_entry_status=='到访不遇'" :src="showimg3" width="300"
381
381
  height="400"></img-self-safe>
382
382
  </div>
383
+ <div class="col-md-6">
384
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer1_path"
385
+ :src="showimg5" width="300"
386
+ height="400"></img-self-plus>
387
+ </div>
388
+ <div class="col-md-6">
389
+ <img-self-plus v-if="this.paperdata.f_entry_status=='到访不遇'&& this.paperdata.f_noanswer2_path"
390
+ :src="showimg6" width="300"
391
+ height="400"></img-self-plus>
392
+ </div>
383
393
  <div class="col-md-6">
384
394
  <img-self-safe v-if="this.paperdata.f_entry_status=='拒检'" :src="showimg4" width="300"
385
395
  height="400"></img-self-safe>
@@ -479,6 +489,8 @@ export default {
479
489
  showimg2: '',
480
490
  showimg3: '',
481
491
  showimg4: '',
492
+ showimg5: '',
493
+ showimg6: '',
482
494
  startClick: false, //开始安检按钮是否可点击
483
495
  isStrat: false, //是否开始安检
484
496
  checkResult: {},//查询结果
@@ -684,6 +696,8 @@ export default {
684
696
  }
685
697
  this.ajresult = JSON.parse(this.data.f_defect_content).result
686
698
  this.showimg3 = this.data.f_noanswer_path
699
+ this.showimg5 = this.data.f_noanswer1_path
700
+ this.showimg6 = this.data.f_noanswer2_path
687
701
  this.showimg4 = this.data.f_rejectcheck_path
688
702
  this.paperdata = this.data
689
703
  this.loading = false
package/src/safecheck.js CHANGED
@@ -869,6 +869,12 @@ export default function (filiale) {
869
869
  Vue.component('defect-deal', (resolve) => {
870
870
  require(['./components/pc/DefectDeal'], resolve)
871
871
  })
872
+ Vue.component('paper-edit', (resolve) => {
873
+ require(['./components/pc/PaperEdit'], resolve)
874
+ })
875
+ Vue.component('edit', (resolve) => {
876
+ require(['./components/pc/Edit'], resolve)
877
+ })
872
878
 
873
879
  if (filiale) {
874
880
  let filialeComp = require(`./filiale/${filiale}/pc`).specialComp