safecheck-client 4.0.1-8 → 4.0.1-80

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 (82) hide show
  1. package/.trae/.ignore +0 -0
  2. package/.vscode/settings.json +3 -0
  3. package/package.json +5 -5
  4. package/src/assets//350/255/246/345/221/212 (3).png +0 -0
  5. package/src/assets//350/255/246/345/221/212 (4).png +0 -0
  6. package/src/assets//350/255/246/345/221/212 (5).png +0 -0
  7. package/src/components/NewDefectList/DefectListNew.vue +22 -3
  8. package/src/components/Util/RightTreeSafeDep.vue +12 -0
  9. package/src/components/android/AndroidDefectDeal.vue +356 -323
  10. package/src/components/android/AndroidDefectDetails.vue +3 -3
  11. package/src/components/android/AppInstallationMaterial.vue +865 -0
  12. package/src/components/android/DailyworkloadQuery.vue +2 -1
  13. package/src/components/android/NewCheckpaperAndroid.vue +22 -48
  14. package/src/components/android/SafecheckOrderV.vue +6 -0
  15. package/src/components/android/SwitchValve.vue +1 -1
  16. package/src/components/checkplan/CheckDetail.vue +1 -1
  17. package/src/components/map/SecurityCheckCoordinates.vue +361 -0
  18. package/src/components/paper/PaperList.vue +5 -0
  19. package/src/components/pc/DefectDeal.vue +2 -1
  20. package/src/components/pc/DefectMaterialLook.vue +98 -0
  21. package/src/components/pc/PaperDefectMain.vue +26 -1
  22. package/src/components/pc/RoleSelectorDep.vue +9 -2
  23. package/src/components/planmanage/PlanManage.vue +1 -0
  24. package/src/components/querycheckpaper/CheckPaperList.vue +6 -4
  25. package/src/components/querycheckpaper/CheckPaperSearchUser.vue +30 -4
  26. package/src/components/querycheckpaper/CheckSearchUser.vue +6 -1
  27. package/src/filiale/jinhong/android/CurrentCreate.vue +66 -22
  28. package/src/filiale/jinhong/pc/CheckBookList.vue +12 -7
  29. package/src/filiale/jinhong/pc/DefectPaperNew.vue +10 -10
  30. package/src/filiale/jinhong/pc/PaperList.vue +56 -47
  31. package/src/filiale/jinhong/pc/PlanManage.vue +2 -0
  32. package/src/filiale/jinhong/pc/checkPlanList.vue +2 -0
  33. package/src/filiale/jinhong/pc/checkUserList.vue +766 -742
  34. package/src/filiale/libo/android/PaperFeedback.vue +1579 -0
  35. package/src/filiale/libo/android/PhoneUpUserinfo.vue +1249 -0
  36. package/src/filiale/libo/android/SafecheckOrderV.vue +2302 -0
  37. package/src/filiale/libo/android.js +14 -0
  38. package/src/filiale/libo/pc/NewCheckpaper.vue +1987 -0
  39. package/src/filiale/libo/pc.js +12 -0
  40. package/src/filiale/meihekou/android/CurrentCreate.vue +1 -1
  41. package/src/filiale/meihekou/android/MeterReading.vue +9 -5
  42. package/src/filiale/meihekou/android/PhoneUpUserinfo.vue +3 -2
  43. package/src/filiale/meihekou/android/SafecheckDevices.vue +5 -5
  44. package/src/filiale/meihekou/android/SafecheckOrderV.vue +2446 -2427
  45. package/src/filiale/meihekou/pc/NewCheckpaper.vue +2 -2
  46. package/src/filiale/meihekou/pc/NewCheckpaperNew.vue +2050 -0
  47. package/src/filiale/meihekou/pc/PaperList.vue +1205 -0
  48. package/src/filiale/meihekou/pc.js +2 -0
  49. package/src/filiale/minsheng/android/SwitchValve.vue +1 -1
  50. package/src/filiale/qianneng/android/SwitchValve.vue +1 -1
  51. package/src/filiale/qingjian/pc/checkUserList.vue +35 -0
  52. package/src/filiale/taiyuan/android/AddPlanItem.vue +456 -0
  53. package/src/filiale/taiyuan/android/AreaPlan.vue +565 -0
  54. package/src/filiale/taiyuan/android/CurrentCreate.vue +1016 -0
  55. package/src/filiale/taiyuan/android/PhoneUpUserinfo.vue +1253 -0
  56. package/src/filiale/taiyuan/android/SafecheckOrderV.vue +2347 -0
  57. package/src/filiale/taiyuan/android/SafecheckUserInfo.vue +784 -0
  58. package/src/filiale/taiyuan/android.js +15 -0
  59. package/src/filiale/taiyuan/pc/DefectDeal.vue +1034 -0
  60. package/src/filiale/taiyuan/pc/NewCheckpaper.vue +1976 -0
  61. package/src/filiale/taiyuan/pc/PaperList.vue +795 -0
  62. package/src/filiale/taiyuan/pc/PlanManage.vue +891 -0
  63. package/src/filiale/taiyuan/pc/checkUserList.vue +798 -0
  64. package/src/filiale/taiyuan/pc.js +16 -0
  65. package/src/filiale/tianke/android/CurrentCreate.vue +3 -3
  66. package/src/filiale/tongchuan/android/SwitchValve.vue +1 -1
  67. package/src/filiale/xinkang/android/AddPlanItem.vue +244 -196
  68. package/src/filiale/xinkang/android/AndroidDefectDeal.vue +1 -0
  69. package/src/filiale/xinkang/android/SafecheckDevices.vue +52 -22
  70. package/src/filiale/xinkang/android/SafecheckOrderV.vue +24 -80
  71. package/src/filiale/xinkang/android/SafecheckUserInfo.vue +1 -1
  72. package/src/filiale/xinkang/pc/CheckSearchUser.vue +12 -12
  73. package/src/filiale/xinkang/pc/NewCheckpaper.vue +57 -72
  74. package/src/filiale/xinkang/pc/PaperList.vue +25 -10
  75. package/src/filiale/yuansheng/android/SwitchValve.vue +1 -1
  76. package/src/filiale/yunchengminsheng/android/PaperFeedback.vue +1030 -1030
  77. package/src/filiale/yunchengminsheng/android/SafecheckDevices.vue +4 -4
  78. package/src/filiale/yunchengminsheng/pc/PaperList.vue +811 -0
  79. package/src/filiale/yunchengminsheng/pc.js +1 -0
  80. package/src/main.js +33 -33
  81. package/src/safecheck-android.js +4 -0
  82. package/src/safecheck.js +6 -0
@@ -258,6 +258,9 @@
258
258
  <th>
259
259
  <nobr>接收人</nobr>
260
260
  </th>
261
+ <th v-if="$parent.$parent.$parent.canlook">
262
+ <nobr>材料明细</nobr>
263
+ </th>
261
264
  </tr>
262
265
  </template>
263
266
  <template partial='body'>
@@ -279,6 +282,9 @@
279
282
  <td style="text-align: center">{{row.f_service_id}}</td>
280
283
  <td style="text-align: center">{{row.f_handlingtype}}</td>
281
284
  <td style="text-align: center">{{row.f_order_man}}</td>
285
+ <td class="flex-around" v-if="$parent.$parent.$parent.canlook">
286
+ <button type="button" name="button" class="btn btn-link" @click.stop="$parent.$parent.$parent.lookMateril(row)">查看材料</button>
287
+ </td>
282
288
  </template>
283
289
  </data-grid>
284
290
  </criteria-paged>
@@ -366,6 +372,16 @@
366
372
  </div>
367
373
  <div slot="modal-footer" class="modal-footer" style="text-align: center" v-show="false"></div>
368
374
  </modal>
375
+ <modal :show.sync="showmaterial" backdrop="false" style="overflow: scroll;height: 100%">
376
+ <header slot="modal-header" class="modal-header text-center">
377
+ <button type="button" class="close" @click="close2"><span>&times;</span></button>
378
+ <h4 class="modal-title">材料查看</h4>
379
+ </header>
380
+ <article slot="modal-body">
381
+ <defect-material-look v-if="showmaterial" :selectdata = "selectdata" ></defect-material-look>
382
+ </article>
383
+ <footer slot="modal-footer"></footer>
384
+ </modal>
369
385
  </div>
370
386
  </div>
371
387
  </template>
@@ -423,7 +439,8 @@
423
439
  model.f_filialeid = `('${this.$login.f.orgid}')`
424
440
  return {
425
441
  audioshow:false,
426
-
442
+ showmaterial: false,
443
+ selectdata: {},
427
444
  model: model,
428
445
  deal_dispose:[{label:'全部',value:''},{label:'报修',value:'报修'},{label:'现场整改',value:'现场整改'},{label:'自行处理',value:'自行处理'},{label:'未处理',value:'未处理'}],
429
446
  repairStateOptions: this.getSafeParam('隐患状态'),
@@ -477,6 +494,7 @@
477
494
  showModal3: false,
478
495
  progressbarWidth:'0',
479
496
  canToRepair: this.$appdata.getSingleValue('隐患明细转维修'),
497
+ canlook: this.$appdata.getSingleValue('隐患明细查看材料')?true:false,
480
498
  checkes: []
481
499
  }
482
500
  },
@@ -486,6 +504,13 @@
486
504
  }
487
505
  },
488
506
  methods: {
507
+ lookMateril(row){
508
+ this.selectdata=row
509
+ this.showmaterial=true
510
+ },
511
+ close2(){
512
+ this.showmaterial=false
513
+ },
489
514
  delConfigKey(obj){
490
515
  // 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
491
516
  Object.keys(obj).forEach(key =>{
@@ -2,7 +2,7 @@
2
2
  <div style="width: 100%;height: 100%">
3
3
  <div class="col-sm-6 form-group" style="margin-bottom: 0px">
4
4
  <label class="font_normal_body">所属部门</label>
5
- <right-tree-safe-dep :width="leftWidth" @re-res="getRes" :resobjprop.sync="resobjprop"></right-tree-safe-dep>
5
+ <right-tree-safe-dep v-ref:selector :width="leftWidth" @re-res="getRes" :resobjprop.sync="resobjprop"></right-tree-safe-dep>
6
6
  </div>
7
7
  <div class="col-sm-6 form-group" style="margin-bottom: 0px">
8
8
  <label class="font_normal_body">{{ roleLable }}</label>
@@ -65,7 +65,8 @@
65
65
  selVal: '',
66
66
  organizationname:this.$login.f.organizationname,
67
67
  resids: [],
68
- changeval: ''
68
+ changeval: '',
69
+ show: true
69
70
  }
70
71
  },
71
72
  watch: {
@@ -86,6 +87,12 @@
86
87
  await this.filterUser(this.resids)
87
88
  },
88
89
  methods: {
90
+ async clear() {
91
+ const emptyValue = this.valueMultiple ? [] : '';
92
+ this.selVal = emptyValue;
93
+ this.valuechange(emptyValue);
94
+ this.$refs.selector.clear()
95
+ },
89
96
  async search() {
90
97
  let http = new HttpResetClass()
91
98
  const res = await http.load('POST', '/rs/search', {
@@ -771,6 +771,7 @@ export default {
771
771
  if(res.data.code==200){
772
772
  //Vue.showMessage("下发成功!其中有"+res.data.repet+"个计划己经是下发状态")
773
773
  this.$showMessage("下发成功!")
774
+ this.checkplan.check.checkes = []
774
775
  }else{
775
776
  this.$showMessage("下发失败!")
776
777
  }
@@ -53,6 +53,7 @@
53
53
  import {PagedList} from 'vue-client'
54
54
  import Vue from "vue";
55
55
  import HttpResetClass from "vue-client/src/plugins/HttpResetClass";
56
+ import {isEmpty} from "../Util";
56
57
 
57
58
  let asyncReady = async function (self) {
58
59
  // 获取配置信息
@@ -86,9 +87,11 @@ export default {
86
87
  }
87
88
  },
88
89
  ready() {
89
- //tag
90
90
  this.rowdata = this.row
91
- var condition = "f_userinfoid = '" + this.row.f_userinfo_id + "'"
91
+ var condition =' 1=1 '
92
+ if(!isEmpty(this.row.f_userinfo_id)){
93
+ condition+= " and f_userinfoid = '" + this.row.f_userinfo_id + "'"
94
+ }
92
95
  if (this.row.filialeCon){
93
96
  condition += ` and ${this.row.filialeCon}`
94
97
  }
@@ -122,8 +125,7 @@ export default {
122
125
  return '正常'
123
126
  },
124
127
  goDetail(row) {
125
- row.f_upload_state = '已传'
126
- this.$goto('new-check-paper', {f_plan_id: row.f_check_plan_id, item: row, role: 'view'}, 'self')
128
+ this.$emit('showcheckpaper',row)
127
129
  }
128
130
  }
129
131
  }
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <!--安检综合查询主界面-->
3
- <div id="unit" class="flex-row" :class="{'binary':showItem}">
3
+ <div id="unit" class="flex-row" :class="{'binary':showItem}" v-show="showinfo1">
4
4
  <div :class="{'basic-main':!showItem,'binary-left':showItem}">
5
5
  <!--展示查询界面-->
6
6
  <check-search-user class="flex" :tempval="hidden" :style="style" :style2="style2" @select-changed="selected"
@@ -9,11 +9,12 @@
9
9
  </div>
10
10
  <div class="binary-right" v-show="showItem">
11
11
  <div class="flex">
12
- <check-paper-list style="height: 100%" :row="rowData"></check-paper-list>
12
+ <check-paper-list style="height: 100%" :row="rowData" v-on:showcheckpaper="checkpapershow"></check-paper-list>
13
13
  </div>
14
14
  </div>
15
15
  </div>
16
-
16
+ <new-check-paper v-if="showinfo2" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback1"></new-check-paper>
17
+ <new-check-paper-temp v-if="showinfo3" :f_plan_id="shouinfodata.f_check_plan_id" :item="shouinfodata" :role="'view'" v-on:showback="showback2"></new-check-paper-temp>
17
18
  </template>
18
19
 
19
20
  <script>
@@ -29,10 +30,35 @@ export default {
29
30
  barwidth: '100%',
30
31
  showItem: false,
31
32
  rowData: {},
32
- filialeCon: ''
33
+ filialeCon: '',
34
+ shouinfodata:{},
35
+ showinfo1:true,
36
+ showinfo2: false,
37
+ showinfo3:false
38
+
33
39
  }
34
40
  },
35
41
  methods: {
42
+ showback1(){
43
+ this.showinfo1 = true
44
+ this.showinfo2 = false
45
+ },
46
+ showback2(){
47
+ this.showinfo1 = true
48
+ this.showinfo3 = false
49
+ },
50
+ checkpapershow(val){
51
+ val.f_upload_state = '已传'
52
+ this.shouinfodata = JSON.parse(JSON.stringify(val))
53
+ this.showinfo1 = false
54
+ if (val.f_safe_type == '已挂表未办卡安检'){
55
+ this.showinfo2 = false
56
+ this.showinfo3 = true
57
+ return
58
+ }
59
+ this.showinfo2 = true
60
+ this.showinfo3 = false
61
+ },
36
62
  show() {
37
63
  this.showItem = this.showItem ? false : true
38
64
  },
@@ -189,6 +189,11 @@
189
189
  <input type="number" class="input_search" v-model="model.f_check_version"
190
190
  style="width: 60%" placeholder="到访不遇次数">
191
191
  </div>
192
+ <div :class="$parent.$parent.style" v-show="$parent.$parent.criteriaShow">
193
+ <label class="font_normal_body">安检结果</label>
194
+ <input style="width: 60%" type="text" class="input_search" v-model="model.f_defect_content"
195
+ placeholder="安检结果" condition="f_defect_content like '%{}%'">
196
+ </div>
192
197
  </div>
193
198
 
194
199
  <div class="row" v-show="$parent.$parent.$parent.showItem">
@@ -399,7 +404,7 @@
399
404
  <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_date }}</td>
400
405
  <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_last_check_state }}</td>
401
406
  <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">
402
- {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '无问题' : row.f_last_check_result) }}
407
+ {{row.f_last_check_state!='入户' ? '': (row.f_last_check_result == '无隐患' ? '正常' : row.f_last_check_result) }}
403
408
  </td>
404
409
  <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_createfile_date }}</td>
405
410
  <td v-bind:class="{newcolor:row.code==1}" style="text-align: center">{{ row.f_gas_date }}</td>
@@ -147,24 +147,24 @@
147
147
  <criteria partial='criteria' @condition-changed='search' v-ref:cri>
148
148
  <div partial>
149
149
  <form>
150
- <div class="row app-row">
151
- <!--小区名称-->
152
- <v-select :value.sync="model.f_residential_area" class="input-font clear-select-with"
153
- :options='$parent.$parent.residentialAreaOptions' placeholder='小区名称' :width="'32.5%'"
154
- v-model="model.f_residential_area" condition="ti.f_residential_area = '{}'"
155
- @change="$parent.$parent.getbuilds" close-on-select clear-button>
156
- </v-select>
157
- <!--楼栋-->
158
- <v-select :value.sync="model.f_building" class="input-font" :options='$parent.$parent.buildOptions'
159
- placeholder='楼栋' :width="'32.5%'" v-model="model.f_building" condition="ti.f_building = '{}'"
160
- @change="$parent.$parent.getUnits" close-on-select clear-button>
161
- </v-select>
162
- <!--单元-->
163
- <v-select :value.sync="model.f_unit" class="input-font" :options='$parent.$parent.unitOptions'
164
- placeholder='单元' :width="'32.5%'" v-model="model.f_unit" condition="ti.f_unit = '{}'" close-on-select
165
- clear-button>
166
- </v-select>
167
- </div>
150
+ <!-- <div class="row app-row">-->
151
+ <!-- &lt;!&ndash;小区名称&ndash;&gt;-->
152
+ <!-- <v-select :value.sync="model.f_residential_area" class="input-font clear-select-with"-->
153
+ <!-- :options='$parent.$parent.residentialAreaOptions' placeholder='小区名称' :width="'32.5%'"-->
154
+ <!-- v-model="model.f_residential_area" condition="ti.f_residential_area = '{}'"-->
155
+ <!-- @change="$parent.$parent.getbuilds" close-on-select clear-button>-->
156
+ <!-- </v-select>-->
157
+ <!-- &lt;!&ndash;楼栋&ndash;&gt;-->
158
+ <!-- <v-select :value.sync="model.f_building" class="input-font" :options='$parent.$parent.buildOptions'-->
159
+ <!-- placeholder='楼栋' :width="'32.5%'" v-model="model.f_building" condition="ti.f_building = '{}'"-->
160
+ <!-- @change="$parent.$parent.getUnits" close-on-select clear-button>-->
161
+ <!-- </v-select>-->
162
+ <!-- &lt;!&ndash;单元&ndash;&gt;-->
163
+ <!-- <v-select :value.sync="model.f_unit" class="input-font" :options='$parent.$parent.unitOptions'-->
164
+ <!-- placeholder='单元' :width="'32.5%'" v-model="model.f_unit" condition="ti.f_unit = '{}'" close-on-select-->
165
+ <!-- clear-button>-->
166
+ <!-- </v-select>-->
167
+ <!-- </div>-->
168
168
  <div class="row app-row">
169
169
  <div class="col-xs-4">
170
170
  <img src="../../../assets/用户ID.png" style="width: 20px;margin-bottom: 5px" alt="">
@@ -207,6 +207,18 @@
207
207
  </v-select>
208
208
  </div>
209
209
 
210
+ <div class="row app-row" v-if="$parent.$parent.criteriaShow">
211
+ <div class="col-xs-4">
212
+ <img src="../../../assets/安检状态.png" style="width: 20px;margin-bottom: 5px" alt="">
213
+ <label for="f_plan_name" class="font text-left">安检册:</label>
214
+ </div>
215
+ <v-select id="f_plan_name" :value.sync="model.f_check_book" class="input-font"
216
+ :options='$parent.$parent.checkBooks' placeholder='安检册' :width="'60%'" v-model="model.f_check_book"
217
+ @select-search="$parent.$parent.getCheckBook"
218
+ condition="f_check_book_id like '%{}%'" align="right" close-on-select clear-button>
219
+ </v-select>
220
+ </div>
221
+
210
222
  <div class="row app-row" v-if="$parent.$parent.criteriaShow">
211
223
  <div class="col-xs-4">
212
224
  <img src="../../../assets/是否已检.png" style="width: 20px;margin-bottom: 5px" alt="">
@@ -645,6 +657,7 @@ export default {
645
657
  buildOptions: [],
646
658
  unitOptions: [],
647
659
  planNameOptions: [],
660
+ checkBooks: [],
648
661
  upcomingCount: 0,
649
662
  doneCount: 0,
650
663
  tempSaveCount: 0,
@@ -657,6 +670,7 @@ export default {
657
670
  }
658
671
  },
659
672
  ready() {
673
+ this.getCheckBook()
660
674
  this.getAllArea()
661
675
  this.getAllPlanName()
662
676
  this.selfSearch()
@@ -675,6 +689,29 @@ export default {
675
689
  window.removeEventListener('popstate', this.fun, false);//false阻止默认事件
676
690
  },
677
691
  methods: {
692
+ getCheckBook(val){
693
+ this.checkBooks=[]
694
+ let condition = '1=1'
695
+ if (val){
696
+ condition = `f_check_book_name like '%${val}%' `
697
+ }
698
+ new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/api/af-safecheck/sql/safe_singleTable_OrderBy`, {
699
+ data: {
700
+ items: 'id,f_check_book_name,f_check_book_type',
701
+ tablename: 't_check_book',
702
+ condition: ` ${condition}`,
703
+ orderitem: 'id desc'
704
+ }
705
+ }, {resolveMsg: null, rejectMsg: null}).then(res => {
706
+ this.checkBooks.push({label: '全部', value: ''})
707
+ res.data.forEach(ress => {
708
+ this.checkBooks.push({
709
+ label: ress.f_check_book_name,
710
+ value: ress.id
711
+ })
712
+ })
713
+ })
714
+ },
678
715
  scan() {
679
716
  HostApp.__this__ = this,
680
717
  HostApp.scanCode({ callback: "javascript:HostApp.__this__.getCode();" })
@@ -972,7 +1009,7 @@ export default {
972
1009
  if (this.planName) {
973
1010
  condition += " and f_plan_name like '%" + this.planName + "%'"
974
1011
  } else {
975
- if (this.$refs.paged.$refs.cri.model.f_plan_name)
1012
+ if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0)
976
1013
  condition += " and f_plan_name like '%" + this.$refs.paged.$refs.cri.model.f_plan_name + "%'"
977
1014
  }
978
1015
  // if(this.$refs.paged.$refs.cri.model.f_plan_year)
@@ -1000,10 +1037,17 @@ export default {
1000
1037
  }
1001
1038
  if (this.$refs.paged.$refs.cri.model.f_enter_number)
1002
1039
  condition += " and ti.f_enter_number like '%" + this.$refs.paged.$refs.cri.model.f_enter_number + "%'"
1040
+ if (this.$refs.paged.$refs.cri.model.f_check_book.length > 0){
1041
+ if (this.$refs.paged.$refs.cri.model.f_plan_name.length > 0 || this.planName){
1042
+ condition += " and ti.f_check_book_id like '%" + this.$refs.paged.$refs.cri.model.f_check_book + "%'"
1043
+ }else {
1044
+ this.$showMessage("使用安检册筛选项必须选择计划名称")
1045
+ return
1046
+ }
1047
+ }
1003
1048
  if (this.$refs.paged.$refs.cri.model.f_check_version)
1004
- condition += " and ti.f_check_version <= " + this.$refs.paged.$refs.cri.model.f_check_version
1005
- //tag
1006
- this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' or f_last_check_state = '拒检')) and ti.f_no_checkplan = '有计划安检'" + condition)
1049
+ condition += " and ti.f_check_version = " + this.$refs.paged.$refs.cri.model.f_check_version
1050
+ this.model.search("((f_complete = '' or f_complete = null or f_complete = '未完成') or (f_state = '未检') or (f_last_check_state = '到访不遇' )) and ti.f_no_checkplan = '有计划安检'" + condition)
1007
1051
 
1008
1052
  },
1009
1053
  getNewOrder() {
@@ -6,6 +6,7 @@
6
6
  <div class="row" v-show="!$parent.$parent.$parent.showItemAll">
7
7
  <div :class="$parent.$parent.style2" style="margin: 0px">
8
8
  <role-selector-safe-dep
9
+ v-ref:selector
9
10
  role-name="安检员"
10
11
  role-lable="安&nbsp;检&nbsp;员&nbsp;"
11
12
  @re-res="$parent.$parent.getRes"
@@ -20,11 +21,10 @@
20
21
  <div :class="$parent.$parent.style">
21
22
  <label class="font_normal_body">安检册名称</label>
22
23
  <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
23
- :value-single="true" style="width: 60%"
24
+ :multiple="true" style="width: 60%"
24
25
  class="select_list select"
25
26
  :options='$parent.$parent.checkBooks' placeholder='安检册名称'
26
- close-on-select
27
- condition="tcb.id ='{}'"></v-select>
27
+ condition="tcb.id in {}"></v-select>
28
28
  </div>
29
29
  <!-- <div :class="$parent.$parent.style">-->
30
30
  <!-- <label class="font_normal_body">表册类型</label>-->
@@ -46,6 +46,7 @@
46
46
  <!-- </div>-->
47
47
  <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
48
48
  <button type="button" class="button_search button_spacing" @click="search()">查询</button>
49
+ <button type="button" class="button_search button_spacing" @click="$parent.$parent.clean()">重置</button>
49
50
  <button type="button" class="button_new button_spacing" @click="$parent.$parent.add()">新增安检册</button>
50
51
  <button type="button" class="button_new button_spacing" @click="$parent.$parent.showModal = true">安检册用户管理</button>
51
52
  <div style="float: right" class="button_spacing"
@@ -73,13 +74,12 @@
73
74
  </div>
74
75
 
75
76
  <div :class="$parent.$parent.style">
76
- <label class="font_normal_body">安检册名</label>
77
+ <label class="font_normal_body">安检册名称</label>
77
78
  <v-select :value.sync="model.f_check_book_id" v-model='model.f_check_book_id'
78
- :value-single="true" style="width: 60%"
79
+ :multiple="true" style="width: 60%"
79
80
  class="select_list select"
80
81
  :options='$parent.$parent.checkBooks' placeholder='安检册名称'
81
- close-on-select
82
- condition="tcb.id ='{}'"></v-select>
82
+ condition="tcb.id in {}"></v-select>
83
83
  </div>
84
84
  <div :class="$parent.$parent.style" style="width: auto;margin-top:8px;float: right">
85
85
  <button type="button" class="button_search button_spacing" @click="search()">查询</button>
@@ -257,6 +257,11 @@ export default {
257
257
  bus.$off('fresh-main')
258
258
  },
259
259
  methods: {
260
+ clean(){
261
+ this.$refs.paged.$refs.criteria.model.f_checker_id = ''
262
+ this.$refs.paged.$refs.criteria.model.f_check_book_id = []
263
+ this.$refs.paged.$refs.criteria.$refs.selector.clear()
264
+ },
260
265
  getchecker(val){
261
266
  this.$refs.paged.$refs.criteria.model.f_checker_id = ''
262
267
  if(val && val.length > 0){
@@ -331,10 +331,10 @@
331
331
  <th><nobr>计划名</nobr></th>
332
332
  <th><nobr>是否有隐患</nobr></th>
333
333
  <th><nobr>隐患数</nobr></th>
334
- <th><nobr>处理数</nobr></th>
335
- <th><nobr>完成数</nobr></th>
336
- <th><nobr>处理情况</nobr></th>
337
- <th><nobr>完成情况</nobr></th>
334
+ <!-- <th><nobr>处理数</nobr></th>-->
335
+ <!-- <th><nobr>完成数</nobr></th>-->
336
+ <!-- <th><nobr>处理情况</nobr></th>-->
337
+ <!-- <th><nobr>完成情况</nobr></th>-->
338
338
  <!-- <th><nobr>维修情况</nobr></th>-->
339
339
  <th><nobr>维修员</nobr></th>
340
340
  <th><nobr>隐患明细</nobr></th>
@@ -353,10 +353,10 @@
353
353
  <td style="text-align: center;white-space:nowrap;">{{row.f_plan_name}}</td>
354
354
  <td style="text-align: center;white-space:nowrap;">{{row.f_has_defect}}</td>
355
355
  <td style="text-align: center;white-space:nowrap;">{{row.f_defect_count}}</td>
356
- <td style="text-align: center;white-space:nowrap;">{{row.f_deal_count}}</td>
357
- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>
358
- <td style="text-align: center;white-space:nowrap;">{{row.f_is_deal}}</td>
359
- <td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>
356
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_deal_count}}</td>-->
357
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repair_count}}</td>-->
358
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_is_deal}}</td>-->
359
+ <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_is_repair}}</td>-->
360
360
  <!-- <td style="text-align: center;white-space:nowrap;">{{row.f_repaired}}</td>-->
361
361
  <td style="text-align: center;white-space:nowrap;">{{row.f_repairman}}</td>
362
362
  <td style="text-align: center;white-space:nowrap;"><span :title="$parent.$parent.$parent.trouble(row.f_defect_content)" style="display: block;max-width: 300px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{{ $parent.$parent.$parent.trouble(row.f_defect_content)}}</span></td>
@@ -526,8 +526,8 @@ export default {
526
526
  repairers:[],
527
527
  cbcs:[],
528
528
  thead: '',
529
- headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患明细','处理数','完成数','处理情况','完成情况','维修员'],
530
- bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','defecttext','f_deal_count','f_repair_count','f_is_deal','f_is_repair','f_repairman'],
529
+ headData: ['入户状态','用户编号','用户名','用户电话','用户小区','用户地址','安检时间','安检员','计划名','是否有隐患','隐患数','隐患明细','维修员'],
530
+ bodyData: ['f_entry_status','f_userinfo_code','f_user_name','f_user_phone','f_residential_area','f_address','f_offsite_time','f_checker_name','f_plan_name','f_has_defect','f_defect_count','defecttext','f_repairman'],
531
531
  }
532
532
  },
533
533
  props:{
@@ -10,51 +10,29 @@
10
10
  <input type="text" class="input_search" v-model="model.f_userinfo_code"
11
11
  style="width: 60%" placeholder="客户编号" condition="f_userinfo_code='{}'">
12
12
  </div>
13
- <div class="form-group col-sm-2" >
14
- <label class="font_normal_body">客户名称</label>
15
- <input type="text" class="input_search" v-model="model.f_user_name"
16
- style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
17
- </div>
18
- <div class="form-group col-sm-2" >
19
- <label class="font_normal_body">客户电话</label>
20
- <input type="text" class="input_search" v-model="model.f_user_phone"
21
- style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
22
- </div>
23
13
  <div class="form-group col-sm-2" >
24
14
  <label class="font_normal_body">客户表号</label>
25
15
  <input type="text" class="input_search" v-model="model.f_meternumber"
26
16
  style="width: 60%" placeholder="客户表号" condition="f_meternumber like '%{}%'">
27
17
  </div>
28
- <div class="form-group col-sm-2" >
29
- <label class="font_normal_body">小&emsp;&emsp;区</label>
30
- <input type="text" class="input_search" v-model="model.f_residential_area"
31
- style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
32
- </div>
33
18
  <div class="form-group col-sm-2" >
34
19
  <label class="font_normal_body">详细地址</label>
35
20
  <input type="text" class="input_search" v-model="model.f_address"
36
21
  style="width: 60%" placeholder="详细地址" condition="f_address like '%{}%'">
37
22
  </div>
38
- <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
39
-
40
- <export-excel :data="$parent.$parent.searchData"
41
- :field="$parent.$parent.excelHeaders"
42
- :choose-col="true"
43
- sqlurl="api/af-safecheck/logic/exportfile" sql-name="查找安检单" template-name='安检记录明细'></export-excel>
44
- <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
45
-
46
- <button class="button_spacing button_search" @click="search()">查询</button>
47
- <div style="float: right" class="button_spacing"
48
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
49
- @click="$parent.$parent.hidden()"></div>
50
- </div>
51
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
52
- <label class="font_normal_body">安检计划</label>
53
- <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
54
- @click="$parent.$parent.showChooser"
55
- style="width: 60%" placeholder="安检计划" readonly="readonly">
23
+ <div class="form-group col-sm-2" >
24
+ <label class="font_normal_body">安&ensp;检&ensp;册</label>
25
+ <v-select class="select_list select"
26
+ placeholder='安检册' style="width: 60%"
27
+ :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
28
+ :options='$parent.$parent.checkBooks'
29
+ filer-key="name"
30
+ close-on-select clear-button
31
+ condition="f_check_book_name = '{}'"
32
+ :value-single="true">
33
+ </v-select>
56
34
  </div>
57
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
35
+ <div class="form-group col-sm-2" >
58
36
  <label class="font_normal_body">开始时间</label>
59
37
  <datepicker
60
38
  :value.sync="model.f_check_start"
@@ -66,7 +44,7 @@
66
44
  condition="f_offsite_time > ='{} 00:00:00'">
67
45
  </datepicker>
68
46
  </div>
69
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
47
+ <div class="form-group col-sm-2" >
70
48
  <label class="font_normal_body">结束时间</label>
71
49
  <datepicker
72
50
  :value.sync="model.f_check_end"
@@ -78,7 +56,46 @@
78
56
  condition="f_offsite_time <= '{} 23:59:59'">
79
57
  </datepicker>
80
58
  </div>
59
+ <div class="form-group col-sm-2" style="width: auto;margin-top:8px;float: right">
81
60
 
61
+ <export-excel :data="$parent.$parent.searchData"
62
+ :field="$parent.$parent.excelHeaders"
63
+ :choose-col="true"
64
+ sqlurl="api/af-safecheck/logic/exportfile" sql-name="查找安检单" template-name='安检记录明细'></export-excel>
65
+ <button class="button_spacing button_search" @click="$parent.$parent.showaudio()" v-if="$parent.$parent.audioshow">隐藏</button>
66
+
67
+ <button class="button_spacing button_search" @click="search()">查询</button>
68
+ <div style="float: right" class="button_spacing"
69
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
70
+ @click="$parent.$parent.hidden()"></div>
71
+ </div>
72
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
73
+ <label class="font_normal_body">到访不遇数</label>
74
+ <input type="text" class="input_search" v-model="model.f_check_version"
75
+ style="width: 60%" placeholder="到访不遇次数" >
76
+ </div>
77
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
78
+ <label class="font_normal_body">客户名称</label>
79
+ <input type="text" class="input_search" v-model="model.f_user_name"
80
+ style="width: 60%" placeholder="客户名称" condition="f_user_name like '%{}%'">
81
+ </div>
82
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
83
+ <label class="font_normal_body">客户电话</label>
84
+ <input type="text" class="input_search" v-model="model.f_user_phone"
85
+ style="width: 60%" placeholder="客户电话" condition="f_user_phone like '%{}%'">
86
+ </div>
87
+
88
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
89
+ <label class="font_normal_body">小&emsp;&emsp;区</label>
90
+ <input type="text" class="input_search" v-model="model.f_residential_area"
91
+ style="width: 60%" placeholder="小区" condition="f_residential_area like '%{}%'">
92
+ </div>
93
+ <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
94
+ <label class="font_normal_body">安检计划</label>
95
+ <input type="text" class="input_search" v-model="$parent.$parent.model.f_check_plan.f_plan_name"
96
+ @click="$parent.$parent.showChooser"
97
+ style="width: 60%" placeholder="安检计划" readonly="readonly">
98
+ </div>
82
99
 
83
100
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow" >
84
101
 
@@ -140,18 +157,7 @@
140
157
  :value-single="true">
141
158
  </v-select>
142
159
  </div>
143
- <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
144
- <label class="font_normal_body">安&ensp;检&ensp;册</label>
145
- <v-select class="select_list select"
146
- placeholder='安检册' style="width: 60%"
147
- :value.sync="model.f_meter_book_num" v-model="model.f_meter_book_num"
148
- :options='$parent.$parent.checkBooks'
149
- filer-key="name"
150
- close-on-select clear-button
151
- condition="f_check_book_name = '{}'"
152
- :value-single="true">
153
- </v-select>
154
- </div>
160
+
155
161
  <div class="form-group col-sm-2" v-show="$parent.$parent.criteriaShow">
156
162
  <label class="font_normal_body">省&ensp;市&ensp;区</label>
157
163
  <v-select class="select_list select"
@@ -782,6 +788,9 @@ export default {
782
788
  if(this.checker_name){
783
789
  args.condition += ` and f_checker_name in (${this.checker_name}) `
784
790
  }
791
+ if(args.model.f_check_version){
792
+ args.condition += ` and f_check_version = '${args.model.f_check_version}' and f_entry_status='到访不遇' `
793
+ }
785
794
  this.model.search(args.condition, args.model, args.condValue)
786
795
  }
787
796
  },
@@ -571,6 +571,8 @@
571
571
  },
572
572
  showcCreatePlan(){
573
573
  this.showCreatePlan=true
574
+ this.createPlan.f_plan_year=new Date().getFullYear()
575
+ this.createPlan.f_safecheck_type='年度普检'
574
576
  },
575
577
  cancel(){
576
578
  this.showCondtion=false